-
{{ 'transports.empty' | translate }}
+
+
+ {{ 'transports.empty' | translate }}
+
diff --git a/static/skywire-manager-src/src/app/components/pages/node/routing/transport-list/transport-list.component.scss b/static/skywire-manager-src/src/app/components/pages/node/routing/transport-list/transport-list.component.scss
index b9bbcc5b75..8460bc3e4d 100644
--- a/static/skywire-manager-src/src/app/components/pages/node/routing/transport-list/transport-list.component.scss
+++ b/static/skywire-manager-src/src/app/components/pages/node/routing/transport-list/transport-list.component.scss
@@ -14,15 +14,3 @@
text-align: right;
width: 90px;
}
-
-@media (max-width: (map-get($grid-breakpoints, md) - 1)) , (min-width: map-get($grid-breakpoints, lg)) and (max-width: (map-get($grid-breakpoints, xl) - 1)) {
- .table-container {
- padding: 0;
- }
-}
-
-@media (max-width: (map-get($grid-breakpoints, md) - 1)) {
- .full-list-table-container {
- padding: 0;
- }
-}
diff --git a/static/skywire-manager-src/src/assets/scss/_backgrounds.scss b/static/skywire-manager-src/src/assets/scss/_backgrounds.scss
index f8f1c05cee..3ae0db6899 100644
--- a/static/skywire-manager-src/src/assets/scss/_backgrounds.scss
+++ b/static/skywire-manager-src/src/assets/scss/_backgrounds.scss
@@ -12,10 +12,32 @@
.elevated-box {
background-image: url('/assets/img/background-pattern.png');
- box-shadow: inset 0 0 55px 0 rgba(75, 101, 137, 0.25), 5px 5px 7px 0 rgba(0, 0, 0, 0.35);
+ box-shadow: inset 0 0 55px 0 rgba(53, 87, 134, 0.4), 5px 5px 7px 0 rgba(0, 0, 0, 0.35);
border: $box-border solid 1px;
}
+.rounded-elevated-box {
+ width: 100%;
+ @extend .elevated-box;
+ border-radius: $mat-dialog-radius;
+ overflow: hidden;
+ padding: 3px;
+
+ .box-internal-container {
+ border-radius: $mat-dialog-radius;
+ padding: $containers-padding - 3px;
+ border: scale-color($box-border, $alpha: -65%) solid 1px;
+ overflow: hidden;
+ }
+}
+
+.small-rounded-elevated-box {
+ @extend .rounded-elevated-box;
+ width: unset;
+ padding: 0;
+ box-shadow: inset 0 0 20px 0 rgba(53, 87, 134, 0.4), 5px 5px 7px 0 rgba(0, 0, 0, 0.35);
+}
+
// Backgrounds for the rounded boxes used as containers in the app.
$elevated-containers-colors: (
translucid: map_get($theme-colors, translucid),
diff --git a/static/skywire-manager-src/src/assets/scss/_responsive_tables.scss b/static/skywire-manager-src/src/assets/scss/_responsive_tables.scss
index 1c97ebe050..d9cccca87d 100644
--- a/static/skywire-manager-src/src/assets/scss/_responsive_tables.scss
+++ b/static/skywire-manager-src/src/assets/scss/_responsive_tables.scss
@@ -42,12 +42,6 @@ $responsive-table-colors: (
}
tr {
- &:last-of-type {
- td, th {
- border-bottom: none;
- }
- }
-
.sortable-column {
@extend .selectable;
@@ -101,19 +95,13 @@ $responsive-table-colors: (
}
.mat-checkbox-background, .mat-checkbox-frame {
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- position: absolute;
box-sizing: border-box;
- pointer-events: none;
width: 18px;
height: 18px;
- background: rgba(30, 34, 39, 0.10) !important;
+ background: rgba(0, 0, 0, 0.3) !important;
border-radius: 6px;
border-width: 2px;
- border-color: rgba(0, 0, 0, 0.15);
+ border-color: rgba(0, 0, 0, 0.5);
}
.mat-ripple-element {
@@ -202,6 +190,8 @@ $responsive-table-colors: (
.title {
margin-right: auto;
+ font-size: $font-size-base;
+ font-weight: bold;
}
mat-icon {
@@ -215,7 +205,8 @@ $responsive-table-colors: (
color: $blue-dark;
border-radius: 1000px;
cursor: pointer;
- opacity: 0.9;
+
+ @extend .subtle-transparent-button;
@media (max-width: (map-get($grid-breakpoints, md) - 1)) {
& {
@@ -225,9 +216,28 @@ $responsive-table-colors: (
font-size: 24px !important;
}
}
+ }
+}
- &:hover {
- opacity: 1;
- }
+// Allows to remove the margin at the right of the last mat-icon element inside
+// generic-title-container, to make it be shown correctly when there is a paginator.
+.paginator-icons-fixer {
+ mat-icon:last-of-type {
+ margin-right: 0 !important;
+ }
+}
+
+// Controls the padding of the elements in the main area when in the visor details page.
+@media (max-width: (map-get($grid-breakpoints, md) - 1)) , (min-width: map-get($grid-breakpoints, lg)) and (max-width: (map-get($grid-breakpoints, xl) - 1)) {
+ .small-node-list-margins {
+ padding: 0 !important;
+ }
+}
+
+// Controls the padding of the elements in the main area when showing the full list of any of the
+// elements of a visor.
+@media (max-width: (map-get($grid-breakpoints, md) - 1)) {
+ .full-node-list-margins {
+ padding: 0 !important;
}
}
diff --git a/static/skywire-manager-src/src/assets/scss/_variables.scss b/static/skywire-manager-src/src/assets/scss/_variables.scss
index 17def06d8e..f699b1b68d 100644
--- a/static/skywire-manager-src/src/assets/scss/_variables.scss
+++ b/static/skywire-manager-src/src/assets/scss/_variables.scss
@@ -30,7 +30,7 @@ $theme-colors: (
blue: $blue,
blue-dark: $blue-dark,
translucid: rgba(32, 34, 38, .44),
- translucid-hover: rgba(0, 0, 0, 0.1),
+ translucid-hover: rgba(0, 0, 0, 0.2),
translucid-white: rgba(255, 255, 255, .44),
translucid-dark: rgba(21, 75, 108, .91),
white: $white,
@@ -70,12 +70,10 @@ $mat-dialog-radius: 10px;
//
// Container
//
-$containers-padding: 20px;
+$containers-padding: 15px;
//
// Sizes
//
$header-height: 82px;
$header-buttons-height: 40px;
-
-$additional-margin: 5px;
diff --git a/static/skywire-manager-src/src/assets/scss/utilities/_utilities.scss b/static/skywire-manager-src/src/assets/scss/utilities/_utilities.scss
index 3dac6de45b..dabe20ebba 100644
--- a/static/skywire-manager-src/src/assets/scss/utilities/_utilities.scss
+++ b/static/skywire-manager-src/src/assets/scss/utilities/_utilities.scss
@@ -46,3 +46,19 @@
}
}
}
+
+.transparent-button {
+ opacity: 0.5;
+
+ &:hover {
+ opacity: 1;
+ }
+}
+
+.subtle-transparent-button {
+ opacity: 0.85;
+
+ &:hover {
+ opacity: 1;
+ }
+}
diff --git a/static/skywire-manager-src/src/styles.scss b/static/skywire-manager-src/src/styles.scss
index 2196341659..cd199ca92d 100644
--- a/static/skywire-manager-src/src/styles.scss
+++ b/static/skywire-manager-src/src/styles.scss
@@ -81,11 +81,3 @@ button:focus {
.mat-snack-bar-container {
max-width: 90vw !important;
}
-
-.transparent-button {
- opacity: 0.5;
-
- &:hover {
- opacity: 1;
- }
-}
From 25f3f36976fcd4a073d34d47a741c9f6774f67c9 Mon Sep 17 00:00:00 2001
From: Senyoret1 <34079003+Senyoret1@users.noreply.github.com>
Date: Thu, 2 Jul 2020 17:34:29 -0400
Subject: [PATCH 3/8] Add the dark theme to the options page
---
.../layout/button/button.component.scss | 6 +++++
.../settings/password/password.component.html | 12 ++++-----
.../settings/password/password.component.scss | 6 -----
.../refresh-rate/refresh-rate.component.html | 8 +++---
.../refresh-rate/refresh-rate.component.scss | 5 ----
.../src/assets/scss/_forms.scss | 26 +++++++++++++++++++
.../src/assets/scss/_variables.scss | 1 +
static/skywire-manager-src/src/theme.scss | 4 +--
8 files changed, 45 insertions(+), 23 deletions(-)
diff --git a/static/skywire-manager-src/src/app/components/layout/button/button.component.scss b/static/skywire-manager-src/src/app/components/layout/button/button.component.scss
index e457ee6c2b..ef13aae758 100644
--- a/static/skywire-manager-src/src/app/components/layout/button/button.component.scss
+++ b/static/skywire-manager-src/src/app/components/layout/button/button.component.scss
@@ -15,6 +15,12 @@ button {
}
}
+::ng-deep .mat-raised-button[disabled] {
+ background-color: $blue-medium !important;
+ color: $white !important;
+ opacity: 0.5;
+}
+
mat-icon, mat-spinner {
display: inline-block;
margin-right: 20px;
diff --git a/static/skywire-manager-src/src/app/components/pages/settings/password/password.component.html b/static/skywire-manager-src/src/app/components/pages/settings/password/password.component.html
index dc83c48dad..3779ee47b1 100644
--- a/static/skywire-manager-src/src/app/components/pages/settings/password/password.component.html
+++ b/static/skywire-manager-src/src/app/components/pages/settings/password/password.component.html
@@ -1,11 +1,11 @@
-
-
diff --git a/static/skywire-manager-src/src/app/components/pages/settings/password/password.component.scss b/static/skywire-manager-src/src/app/components/pages/settings/password/password.component.scss
index f322889f6a..79d3995c2e 100644
--- a/static/skywire-manager-src/src/app/components/pages/settings/password/password.component.scss
+++ b/static/skywire-manager-src/src/app/components/pages/settings/password/password.component.scss
@@ -8,9 +8,3 @@ app-button {
float: right;
margin-right: 32px;
}
-
-.help-container {
- color: $light-gray;
- height: 0px;
- text-align: right;
-}
diff --git a/static/skywire-manager-src/src/app/components/pages/settings/refresh-rate/refresh-rate.component.html b/static/skywire-manager-src/src/app/components/pages/settings/refresh-rate/refresh-rate.component.html
index 3714e7b5c0..6784c7c59e 100644
--- a/static/skywire-manager-src/src/app/components/pages/settings/refresh-rate/refresh-rate.component.html
+++ b/static/skywire-manager-src/src/app/components/pages/settings/refresh-rate/refresh-rate.component.html
@@ -1,11 +1,11 @@
-
-
diff --git a/static/skywire-manager-src/src/app/components/pages/settings/refresh-rate/refresh-rate.component.scss b/static/skywire-manager-src/src/app/components/pages/settings/refresh-rate/refresh-rate.component.scss
index 239e23fc37..6e9502c6c4 100644
--- a/static/skywire-manager-src/src/app/components/pages/settings/refresh-rate/refresh-rate.component.scss
+++ b/static/skywire-manager-src/src/app/components/pages/settings/refresh-rate/refresh-rate.component.scss
@@ -14,8 +14,3 @@ mat-form-field ::ng-deep {
}
}
-.help-container {
- color: $light-gray;
- height: 0px;
- text-align: right;
-}
diff --git a/static/skywire-manager-src/src/assets/scss/_forms.scss b/static/skywire-manager-src/src/assets/scss/_forms.scss
index f2f406350f..16aff8d082 100644
--- a/static/skywire-manager-src/src/assets/scss/_forms.scss
+++ b/static/skywire-manager-src/src/assets/scss/_forms.scss
@@ -54,3 +54,29 @@
mat-form-field {
display: block !important;
}
+
+// White form fields, to be shown with the dark background.
+.white-form-field {
+ .mat-select-value-text, .mat-form-field-label, .mat-select-value, .mat-select-arrow {
+ color: $white !important;
+ }
+
+ .mat-form-field-underline {
+ background-color: scale-color($white, $alpha: -50%) !important;
+ }
+
+ .mat-form-field-ripple {
+ background-color: $white !important;
+ }
+
+ .mat-input-element {
+ caret-color: $white;
+ }
+}
+
+// Container for the white help icons shown in the forms, to be shown with the dark background.
+.form-help-icon-container {
+ color: scale-color($white, $alpha: -20%);
+ height: 0px;
+ text-align: right;
+}
diff --git a/static/skywire-manager-src/src/assets/scss/_variables.scss b/static/skywire-manager-src/src/assets/scss/_variables.scss
index f699b1b68d..5ca670fe8a 100644
--- a/static/skywire-manager-src/src/assets/scss/_variables.scss
+++ b/static/skywire-manager-src/src/assets/scss/_variables.scss
@@ -7,6 +7,7 @@ $black: #202226;
$blue-light: #00C3FF;
$blue: #0072FF;
+$blue-medium: #215f9e;
$blue-dark: #154B6C;
$blue-dark-Background1: #0e192a;
$blue-dark-Background2: #101f34;
diff --git a/static/skywire-manager-src/src/theme.scss b/static/skywire-manager-src/src/theme.scss
index 69e6f360ca..ec9733f191 100644
--- a/static/skywire-manager-src/src/theme.scss
+++ b/static/skywire-manager-src/src/theme.scss
@@ -8,8 +8,8 @@ $general-typography: mat-typography-config(
@include mat-core($general-typography);
$mat-skywire-primary: (
- 100: $blue-light,
- 500: $blue,
+ 100: $blue-medium,
+ 500: $blue-medium,
contrast: (
100: $white,
500: $white,
From 7b1694e06a84e5940c7786ef6b8a0ce5c9a99705 Mon Sep 17 00:00:00 2001
From: Senyoret1 <34079003+Senyoret1@users.noreply.github.com>
Date: Sat, 4 Jul 2020 16:11:19 -0400
Subject: [PATCH 4/8] Update the design of the modal windows
---
.../confirmation/confirmation.component.html | 8 +++
.../confirmation/confirmation.component.scss | 10 ++-
.../confirmation/confirmation.component.ts | 13 +++-
.../layout/dialog/dialog.component.html | 6 +-
.../layout/dialog/dialog.component.scss | 21 +++++-
.../layout/dialog/dialog.component.ts | 4 ++
.../select-page/select-page.component.html | 2 +-
.../select-column.component.html | 2 +-
.../select-language.component.scss | 2 +-
.../select-option.component.html | 2 +-
.../select-tab/select-tab.component.html | 2 +-
.../pages/login/login.component.html | 2 +-
.../pages/login/login.component.scss | 8 +++
.../pages/node-list/node-list.component.html | 2 +-
.../pages/node-list/node-list.component.ts | 67 +++++++++++-------
.../pages/node/actions/actions.component.ts | 9 +--
.../apps/node-apps/log/log.component.html | 10 +--
.../apps/node-apps/log/log.component.scss | 35 ++++++---
.../route-details.component.html | 10 +--
.../transport-details.component.html | 4 +-
.../settings/password/password.component.html | 6 +-
.../refresh-rate/refresh-rate.component.html | 2 +-
.../src/assets/i18n/en.json | 12 ++--
.../assets/img/modal-background-pattern.png | Bin 0 -> 957 bytes
.../src/assets/scss/_backgrounds.scss | 2 +
.../src/assets/scss/_dialogs.scss | 19 +++--
.../src/assets/scss/_forms.scss | 9 ++-
.../src/assets/scss/_variables.scss | 3 +
28 files changed, 196 insertions(+), 76 deletions(-)
create mode 100644 static/skywire-manager-src/src/assets/img/modal-background-pattern.png
diff --git a/static/skywire-manager-src/src/app/components/layout/confirmation/confirmation.component.html b/static/skywire-manager-src/src/app/components/layout/confirmation/confirmation.component.html
index 8c94d7e135..c8f39b529e 100644
--- a/static/skywire-manager-src/src/app/components/layout/confirmation/confirmation.component.html
+++ b/static/skywire-manager-src/src/app/components/layout/confirmation/confirmation.component.html
@@ -2,6 +2,14 @@
{{ (state !== confirmationStates.Done ? data.text : doneText) | translate }}
+
+
+ - {{ element | translate }}
+
+
+
+ {{ data.lowerText | translate }}
+
-
+
+
+
-
+
diff --git a/static/skywire-manager-src/src/app/components/layout/dialog/dialog.component.scss b/static/skywire-manager-src/src/app/components/layout/dialog/dialog.component.scss
index de583d930f..9ec68779a5 100644
--- a/static/skywire-manager-src/src/app/components/layout/dialog/dialog.component.scss
+++ b/static/skywire-manager-src/src/app/components/layout/dialog/dialog.component.scss
@@ -3,15 +3,20 @@
@import 'utilities/utilities';
@import 'text';
+:host {
+ color: $black;
+}
+
.header {
margin-top: -$mat-dialog-padding;
margin-left: -$mat-dialog-padding;
margin-right: -$mat-dialog-padding;
margin-bottom: 0;
- color: $blue-dark;
+ color: $blue-medium;
padding: 0px ($mat-dialog-padding - 10) 0px $mat-dialog-padding;
font-size: $font-size-base;
text-transform: uppercase;
+ font-weight: bold;
display: flex;
justify-content: space-between;
align-items: center;
@@ -29,7 +34,7 @@
span {
@extend .reactivate-mouse;
line-height: $font-size-base;
- margin: 17px 0;
+ margin: 18px 0;
}
.mat-icon-button {
@@ -48,3 +53,15 @@
}
}
}
+
+.header-separator {
+ height: 1px;
+ background-color: $modal-separator;
+ margin-left: -12px;
+ margin-right: -12px;
+}
+
+.content-margin {
+ padding-top: 18px;
+ padding-bottom: $mat-dialog-padding !important;
+}
diff --git a/static/skywire-manager-src/src/app/components/layout/dialog/dialog.component.ts b/static/skywire-manager-src/src/app/components/layout/dialog/dialog.component.ts
index 987b3e36c8..ab17e114b6 100644
--- a/static/skywire-manager-src/src/app/components/layout/dialog/dialog.component.ts
+++ b/static/skywire-manager-src/src/app/components/layout/dialog/dialog.component.ts
@@ -19,4 +19,8 @@ export class DialogComponent {
* If false, the contents must include its own scrollable container.
*/
@Input() includeScrollableArea = true;
+ /**
+ * If true, vertical margins will be added to the content.
+ */
+ @Input() includeVerticalMargins = true;
}
diff --git a/static/skywire-manager-src/src/app/components/layout/paginator/select-page/select-page.component.html b/static/skywire-manager-src/src/app/components/layout/paginator/select-page/select-page.component.html
index 503eca14ce..bc6ff28b1a 100644
--- a/static/skywire-manager-src/src/app/components/layout/paginator/select-page/select-page.component.html
+++ b/static/skywire-manager-src/src/app/components/layout/paginator/select-page/select-page.component.html
@@ -1,4 +1,4 @@
-
+