diff --git a/ui/app/models/cluster.js b/ui/app/models/cluster.js index ca4f20742d..9eac03c4ee 100644 --- a/ui/app/models/cluster.js +++ b/ui/app/models/cluster.js @@ -72,7 +72,7 @@ export default DS.Model.extend({ }), stateGlyph(state) { - const glyph = 'checkmark'; + const glyph = 'checkmark-circled-outline'; const glyphs = { 'stream-wals': 'android-sync', diff --git a/ui/app/styles/components/console-ui-panel.scss b/ui/app/styles/components/console-ui-panel.scss index 9649bb8bb1..31d91603bd 100644 --- a/ui/app/styles/components/console-ui-panel.scss +++ b/ui/app/styles/components/console-ui-panel.scss @@ -117,8 +117,10 @@ } .panel-open .console-ui-panel-scroller { + box-shadow: $box-shadow-highest; transform: translate3d(0, 0, 0); } + .panel-open .console-ui-panel-scroller.fullscreen { bottom: 0; top: 0; diff --git a/ui/app/styles/components/global-flash.scss b/ui/app/styles/components/global-flash.scss index d1c0597786..f0819100e7 100644 --- a/ui/app/styles/components/global-flash.scss +++ b/ui/app/styles/components/global-flash.scss @@ -15,7 +15,7 @@ z-index: 1; .notification { - box-shadow: 0 0 25px rgba($black, 0.2); + box-shadow: $box-shadow-high; margin: 20px; @include until($desktop) { margin: 1rem 0; diff --git a/ui/app/styles/components/linked-block.scss b/ui/app/styles/components/linked-block.scss index dfa6d7c8d0..8dc3ec8726 100644 --- a/ui/app/styles/components/linked-block.scss +++ b/ui/app/styles/components/linked-block.scss @@ -1,13 +1,13 @@ .linked-block { cursor: pointer; + transition: box-shadow $speed; + will-change: box-shadow; + &:hover, - &:focus { - position: relative; - box-shadow: $box-link-hover-shadow; - } + &:focus, &:active { position: relative; - box-shadow: $box-link-active-shadow; + box-shadow: $box-link-hover-shadow, $box-shadow-middle; } } diff --git a/ui/app/styles/components/login-form.scss b/ui/app/styles/components/login-form.scss new file mode 100644 index 0000000000..d458abd8f8 --- /dev/null +++ b/ui/app/styles/components/login-form.scss @@ -0,0 +1,3 @@ +.login-form { + box-shadow: $box-shadow, $box-shadow-high; +} \ No newline at end of file diff --git a/ui/app/styles/components/popup-menu.scss b/ui/app/styles/components/popup-menu.scss index 83b92a43a2..3594d830f9 100644 --- a/ui/app/styles/components/popup-menu.scss +++ b/ui/app/styles/components/popup-menu.scss @@ -1,16 +1,17 @@ .popup-menu-content { border-radius: 2px; margin: -2px 0 0 0; + & > .box { border-radius: 2px; + box-shadow: $box-shadow, $box-shadow-middle; padding: 0; position: relative; width: 175px; - @include css-top-arrow(8px, $white, 1px, $blue, 155px); } + &.is-wide > .box { - width: 200px; - @include css-top-arrow(8px, $white, 1px, $blue, 178px); + width: 300px; } .confirm-action span .button { @@ -18,58 +19,98 @@ margin: .25rem auto; width: 95%; } -} -.popup-menu-trigger { - min-width: auto; -} -.popup-menu-trigger.is-active { - &, - &:active, - &:focus { - box-shadow: 0 0 0 1px $blue; + + .menu { + padding: $size-11 0; + + button.link, + a { + background: transparent; + box-shadow: none; + border: none; + color: $menu-item-color; + display: block; + height: auto; + font-size: $size-7; + font-weight: $font-weight-semibold; + padding: $size-9 $size-8; + text-align: left; + text-decoration: none; + width: 100%; + + &:hover { + background-color: $menu-item-hover-background-color; + color: $menu-item-hover-color; + } + + &.is-active { + background-color: $menu-item-active-background-color; + color: $menu-item-active-color; + } + + &.is-destroy { + color: $red; + + &:hover { + background-color: $red; + color: $white; + } + } + } } -} -.ember-basic-dropdown-content--left.popup-menu { - margin: 0px 0 0 -8px; -} - -.popup-menu-content .menu { - button.link, - a { - border-radius: $menu-item-radius; - color: $menu-item-color; - font-size: $size-7; + .menu-label { + color: $grey-dark; + font-size: $size-8; font-weight: $font-weight-semibold; - display: block; - padding: $size-9 $size-6; - box-shadow: none; - border: none; - background: transparent; - height: auto; - width: 100%; - text-align: left; - text-decoration: none; + letter-spacing: 0; + margin: 0; + padding: $size-10 $size-8 $size-11; + text-transform: none; + } - &:hover { - background-color: $menu-item-hover-background-color; - color: $menu-item-hover-color; + .menu-content { + padding: $size-10 $size-8; + } + + hr { + background-color: $grey-light; + margin: $size-11 0; + } +} + +.popup-menu-trigger { + height: 2rem; + min-width: 0; + padding: 0 $size-10; +} + +.status-menu-content { + margin-top: 8px; +} + +.ember-basic-dropdown-content { + &--left.popup-menu { + margin: 0px 0 0 -8px; + } + + &--below { + &.ember-basic-dropdown--transitioning-in { + animation: drop-fade-above .15s; } - &.is-active { - background-color: $menu-item-active-background-color; - color: $menu-item-active-color; + &.ember-basic-dropdown--transitioning-out { + animation: drop-fade-above .15s reverse; + } + } + + &--above { + &.ember-basic-dropdown--transitioning-in { + animation: drop-fade-below .15s; + } + + &.ember-basic-dropdown--transitioning-out { + animation: drop-fade-below .15s reverse; } } } -.popup-menu-content .menu-list { - margin: 0.1rem; -} -.popup-menu-content .menu-label { - background: $grey-lighter; - font-size: $size-8; - letter-spacing: 0; - margin: 0; - padding: $size-10 calc(#{$size-6} + .1rem); - text-transform: none; -} diff --git a/ui/app/styles/components/sidebar.scss b/ui/app/styles/components/sidebar.scss index 5e6e213538..521486199e 100644 --- a/ui/app/styles/components/sidebar.scss +++ b/ui/app/styles/components/sidebar.scss @@ -55,7 +55,8 @@ } .menu-label { - color: $grey-light; + color: $grey; + font-weight: $font-weight-semibold; font-size: $size-small; line-height: 1; margin-bottom: $size-8; @@ -72,14 +73,8 @@ transition: 250ms border-width; &.is-active { - color: $blue; - background-color: $dark-white; border-right: 4px solid $blue; } - - &:hover { - background-color: $dark-white; - } } } } diff --git a/ui/app/styles/components/status-menu.scss b/ui/app/styles/components/status-menu.scss index 1fe965b998..00d27c7b44 100644 --- a/ui/app/styles/components/status-menu.scss +++ b/ui/app/styles/components/status-menu.scss @@ -1,62 +1,3 @@ -.status-menu-content { - max-width: 360px; - min-width: 280px; - border-radius: 3px; - margin: 0 -17px 0 0; - will-change: transform, opacity; - - .card { - position: relative; - border-radius: 2px; - border: $base-border; - box-shadow: 0 0 4px rgba($black, 0.21); - color: $black; - @include css-top-arrow(8px, $grey-lighter, 1px, $grey, 100%, -25px); - .card-content { - padding: $size-6 $size-3; - } - } - - .card-header-title, - .menu-label { - background: $grey-lighter; - color: $grey-dark; - font-size: $size-7; - font-weight: normal; - letter-spacing: 0; - margin: 0; - padding: 8px $size-3; - text-transform: uppercase; - } - - .replication-card { - @include css-top-arrow(8px, $grey-lighter, 1px, $grey, 100%, -98px); - .box-label { - box-shadow: none; - } - a.is-active, - a:hover { - box-shadow: 0 0 0 1px $blue; - } - } - - &.ember-basic-dropdown-content--below.ember-basic-dropdown--transitioning-in { - animation: drop-fade-above .15s; - } - &.ember-basic-dropdown-content--below.ember-basic-dropdown--transitioning-out { - animation: drop-fade-above .15s reverse; - } - &.ember-basic-dropdown-content--above.ember-basic-dropdown--transitioning-in { - animation: drop-fade-below .15s; - } - &.ember-basic-dropdown-content--above.ember-basic-dropdown--transitioning-out { - animation: drop-fade-below .15s reverse; - } -} -.status-menu-content-replication { - margin-top: 5px; -} - .is-status-chevron { line-height: 0; padding: 0.3em 0 0 $size-11; @@ -73,39 +14,3 @@ min-width: 0; } } - -.status-menu-content .menu { - button.link, - a { - font-size: $size-6; - font-weight: 500; - padding: $size-9 $size-3; - border-radius: $menu-item-radius; - color: $menu-item-color; - display: block; - padding: $size-9 $size-3; - box-shadow: none; - border: none; - background: transparent; - height: auto; - width: 100%; - text-align: left; - - .icon { - color: $menu-item-hover-background-color; - } - &:hover { - background-color: $menu-item-hover-background-color; - color: $menu-item-hover-color; - .icon { - color: $menu-item-hover-color; - } - - } - - &.is-active { - background-color: $menu-item-active-background-color; - color: $menu-item-active-color; - } - } -} diff --git a/ui/app/styles/components/sub-nav.scss b/ui/app/styles/components/sub-nav.scss index 5c2f4447e4..9c336fa77d 100644 --- a/ui/app/styles/components/sub-nav.scss +++ b/ui/app/styles/components/sub-nav.scss @@ -1,29 +1,35 @@ .sub-nav { &.tabs { - background: $grey-lighter; - padding: 0 1.25rem; + box-shadow: inset 0 -1px 0 $grey-light; + ul { border-color: transparent; } + + li { + &:focus { + box-shadow: none; + } + &.is-active a { + border-color: $blue; + color: $blue; + } + } + a { color: $grey-dark; font-weight: $font-weight-semibold; text-decoration: none; - padding: 1.5rem 1rem; + padding: $size-6 $size-8 $size-8; border-bottom: 2px solid transparent; transition: border-color $speed; + + &:hover, + &:active { + border-color: $grey-light; + } } - a:hover, - a:active { - border-color: $grey-light; - } - li:focus { - box-shadow: none; - } - li.is-active a { - border-color: $blue; - color: $blue; - } + .ember-basic-dropdown-trigger { outline: none; } diff --git a/ui/app/styles/core.scss b/ui/app/styles/core.scss index bad506107d..0b19ace128 100644 --- a/ui/app/styles/core.scss +++ b/ui/app/styles/core.scss @@ -56,6 +56,7 @@ @import "./components/linked-block"; @import "./components/list-pagination"; @import "./components/loader"; +@import "./components/login-form"; @import "./components/message-in-page"; @import "./components/page-header"; @import "./components/popup-menu"; diff --git a/ui/app/styles/core/buttons.scss b/ui/app/styles/core/buttons.scss index 9472a28733..b588ae78c0 100644 --- a/ui/app/styles/core/buttons.scss +++ b/ui/app/styles/core/buttons.scss @@ -1,8 +1,8 @@ $button-box-shadow-standard: 0 3px 1px 0 rgba($black, 0.12); .button { - box-shadow: $button-box-shadow-standard; border: 1px solid $grey-light; + box-shadow: $box-shadow-low; color: $grey-dark; display: inline-block; font-size: $size-small; @@ -58,13 +58,14 @@ $button-box-shadow-standard: 0 3px 1px 0 rgba($black, 0.12); &.is-hovered { background-color: darken($color, 5%); border-color: darken($color, 5%); + box-shadow: $box-shadow-middle; } &:active, &.is-active { background-color: darken($color, 10%); border-color: darken($color, 10%); - box-shadow: none; + box-shadow: $box-shadow-middle; } &:focus, diff --git a/ui/app/styles/core/menu.scss b/ui/app/styles/core/menu.scss index 81fb5de04d..f970ade367 100644 --- a/ui/app/styles/core/menu.scss +++ b/ui/app/styles/core/menu.scss @@ -1,11 +1,11 @@ -.column .menu-list a { +.column .menu-list a { border-radius: 0; border-right: 0 solid transparent; font-weight: $font-weight-semibold; &:hover, &.is-active { - color: $menu-item-hover-background-color; - background-color: $menu-item-active-color; + color: $menu-item-active-color; + background-color: $menu-item-active-background-color; } } diff --git a/ui/app/styles/core/tags.scss b/ui/app/styles/core/tags.scss index 99eb6be525..8ad30752e5 100644 --- a/ui/app/styles/core/tags.scss +++ b/ui/app/styles/core/tags.scss @@ -1,17 +1,21 @@ .tag:not(body) { background-color: lighten($grey-light, 17%); border-radius: 2px; + color: $grey-dark; height: auto; - padding: 0 0.75em; + padding: 0 $size-10; margin-right: 0.5rem; font-weight: normal; + code { - color: $grey; + color: $grey-dark; } } + .tag.is-outlined { border: 1px solid currentColor; } + .tag.is-inverted { border-color: $grey; background: none; @@ -19,6 +23,7 @@ color: $grey-dark; } } + .tag.is-bold { font-weight: bold; } diff --git a/ui/app/styles/utils/_bulma_variables.scss b/ui/app/styles/utils/_bulma_variables.scss index 6a97abeda0..33f9e5b3ff 100644 --- a/ui/app/styles/utils/_bulma_variables.scss +++ b/ui/app/styles/utils/_bulma_variables.scss @@ -64,6 +64,10 @@ $radius: 2px; //box $box-radius: 0; $box-shadow: 0 0 0 1px rgba($black, 0.1); +$box-shadow-low: 0 5px 1px -2px rgba($black, 0.12), 0 3px 2px -1px rgba($black, 0); +$box-shadow-middle: 0 8px 4px -4px rgba($black, 0.10), 0 6px 8px -2px rgba($black, 0.05); +$box-shadow-high: 0 12px 5px -7px rgba($black, 0.08), 0 11px 10px -3px rgba($black, 0.10); +$box-shadow-highest: 0 16px 6px -10px rgba($black, 0.06), 0 16px 16px -4px rgba($black, 0.20); $link: $blue; $text: $black; @@ -81,6 +85,12 @@ $progress-bar-background-color: lighten($grey-light, 15%); $base-border: 1px solid $grey-light; +//menu +$menu-item-hover-color: $text; +$menu-item-hover-background-color: $grey-lighter; +$menu-item-active-color: $link; +$menu-item-active-background-color: transparent; + // animations $speed: 150ms; $speed-slow: $speed * 2; diff --git a/ui/app/templates/components/auth-info.hbs b/ui/app/templates/components/auth-info.hbs index 80e0d4f9eb..e2f83610e4 100644 --- a/ui/app/templates/components/auth-info.hbs +++ b/ui/app/templates/components/auth-info.hbs @@ -1,56 +1,57 @@ -
+
diff --git a/ui/app/templates/components/identity/item-alias/alias-details.hbs b/ui/app/templates/components/identity/item-alias/alias-details.hbs index 6ccbcb8448..d83cb0b20f 100644 --- a/ui/app/templates/components/identity/item-alias/alias-details.hbs +++ b/ui/app/templates/components/identity/item-alias/alias-details.hbs @@ -12,7 +12,7 @@{{model.mountType}}
+ {{model.mountType}}
{{model.mountAccessor}}
{{item.mountType}}
+ {{item.mountType}}
{{item.mountAccessor}}