|
@@ -80,7 +80,6 @@ $positions: (
|
|
|
// =============================================================================
|
|
|
// Wagtail userbar proper
|
|
|
// =============================================================================
|
|
|
-
|
|
|
.#{$namespace}-userbar-reset {
|
|
|
all: initial;
|
|
|
}
|
|
@@ -107,163 +106,163 @@ $positions: (
|
|
|
}
|
|
|
|
|
|
|
|
|
- .#{$namespace}-userbar-trigger {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- width: $size-home-button;
|
|
|
- height: $size-home-button;
|
|
|
- margin: 0 !important;
|
|
|
- overflow: hidden;
|
|
|
- background-color: $color-white;
|
|
|
- border-radius: 50%;
|
|
|
- color: $color-black;
|
|
|
- padding: 0 !important;
|
|
|
- cursor: pointer;
|
|
|
- box-shadow: $box-shadow-props, 0 1px 10px 0 rgba(107, 214, 230, .7);
|
|
|
- transition: all 0.2s ease-in-out;
|
|
|
- font-size: 16px;
|
|
|
- text-decoration: none !important;
|
|
|
- position: relative;
|
|
|
-
|
|
|
- .#{$namespace}-userbar.touch.is-active &,
|
|
|
- .#{$namespace}-userbar.no-touch &:hover {
|
|
|
- box-shadow: $box-shadow-props, 0 3px 15px 0 rgba(107, 214, 230, .95);
|
|
|
- }
|
|
|
-
|
|
|
- .#{$namespace}-userbar-help-text {
|
|
|
- position: absolute;
|
|
|
- top: 100%;
|
|
|
- left: 0;
|
|
|
- }
|
|
|
-
|
|
|
- &.#{$namespace}-icon:before {
|
|
|
- transition: color .2s ease;
|
|
|
- font-size: 32px;
|
|
|
- width: auto;
|
|
|
- margin: 0;
|
|
|
- }
|
|
|
+.#{$namespace}-userbar-trigger {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ width: $size-home-button;
|
|
|
+ height: $size-home-button;
|
|
|
+ margin: 0 !important;
|
|
|
+ overflow: hidden;
|
|
|
+ background-color: $color-white;
|
|
|
+ border-radius: 50%;
|
|
|
+ color: $color-black;
|
|
|
+ padding: 0 !important;
|
|
|
+ cursor: pointer;
|
|
|
+ box-shadow: $box-shadow-props, 0 1px 10px 0 rgba(107, 214, 230, .7);
|
|
|
+ transition: all 0.2s ease-in-out;
|
|
|
+ font-size: 16px;
|
|
|
+ text-decoration: none !important;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ .#{$namespace}-userbar.touch.is-active &,
|
|
|
+ .#{$namespace}-userbar.no-touch &:hover {
|
|
|
+ box-shadow: $box-shadow-props, 0 3px 15px 0 rgba(107, 214, 230, .95);
|
|
|
}
|
|
|
|
|
|
- .#{$namespace}-userbar-items {
|
|
|
- display: block;
|
|
|
- list-style: none;
|
|
|
+ .#{$namespace}-userbar-help-text {
|
|
|
position: absolute;
|
|
|
+ top: 100%;
|
|
|
+ left: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.#{$namespace}-icon:before {
|
|
|
+ transition: color .2s ease;
|
|
|
+ font-size: 32px;
|
|
|
+ width: auto;
|
|
|
margin: 0;
|
|
|
- min-width: 210px;
|
|
|
- visibility: hidden;
|
|
|
- font-family: 'Open Sans', sans-serif;
|
|
|
- font-size: 14px;
|
|
|
- box-sizing: border-box;
|
|
|
- padding-left: 0;
|
|
|
- text-decoration: none;
|
|
|
-
|
|
|
- .#{$namespace}-userbar.is-active & {
|
|
|
- visibility: visible;
|
|
|
- }
|
|
|
}
|
|
|
+}
|
|
|
|
|
|
- // Arrow
|
|
|
- .#{$namespace}-userbar-items:after {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- width: 0;
|
|
|
- height: 0;
|
|
|
- opacity: 0;
|
|
|
- border: solid $width-arrow transparent;
|
|
|
- transition-duration: .15s;
|
|
|
- transition-timing-function: cubic-bezier(.55, 0, .1, 1);
|
|
|
-
|
|
|
- .#{$namespace}-userbar.is-active & {
|
|
|
- opacity: 1;
|
|
|
- transform: translateY(0);
|
|
|
- transition-delay: .3s;
|
|
|
- }
|
|
|
+.#{$namespace}-userbar-items {
|
|
|
+ display: block;
|
|
|
+ list-style: none;
|
|
|
+ position: absolute;
|
|
|
+ margin: 0;
|
|
|
+ min-width: 210px;
|
|
|
+ visibility: hidden;
|
|
|
+ font-family: 'Open Sans', sans-serif;
|
|
|
+ font-size: 14px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding-left: 0;
|
|
|
+ text-decoration: none;
|
|
|
+
|
|
|
+ .#{$namespace}-userbar.is-active & {
|
|
|
+ visibility: visible;
|
|
|
}
|
|
|
+}
|
|
|
|
|
|
+// Arrow
|
|
|
+.#{$namespace}-userbar-items:after {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ width: 0;
|
|
|
+ height: 0;
|
|
|
+ opacity: 0;
|
|
|
+ border: solid $width-arrow transparent;
|
|
|
+ transition-duration: .15s;
|
|
|
+ transition-timing-function: cubic-bezier(.55, 0, .1, 1);
|
|
|
+
|
|
|
+ .#{$namespace}-userbar.is-active & {
|
|
|
+ opacity: 1;
|
|
|
+ transform: translateY(0);
|
|
|
+ transition-delay: .3s;
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
- .#{$namespace}-userbar-nav {
|
|
|
- background: transparent !important;
|
|
|
- padding: 0;
|
|
|
- margin: 0 !important;
|
|
|
- display: block !important;
|
|
|
|
|
|
- .#{$namespace}-action {
|
|
|
+.#{$namespace}-userbar-nav {
|
|
|
+ background: transparent !important;
|
|
|
+ padding: 0;
|
|
|
+ margin: 0 !important;
|
|
|
+ display: block !important;
|
|
|
|
|
|
- background: transparent;
|
|
|
- }
|
|
|
+ .#{$namespace}-action {
|
|
|
+
|
|
|
+ background: transparent;
|
|
|
}
|
|
|
+}
|
|
|
|
|
|
|
|
|
|
|
|
- .#{$namespace}-userbar__item {
|
|
|
- margin: 0;
|
|
|
- background-color: $color-grey-1;
|
|
|
- opacity: 0;
|
|
|
- overflow: hidden;
|
|
|
- transition-duration: .125s;
|
|
|
- transition-timing-function: cubic-bezier(.55, 0, .1, 1);
|
|
|
- font-family: 'Open Sans', sans-serif;
|
|
|
- font-size: 16px !important;
|
|
|
- text-decoration: none !important;
|
|
|
+.#{$namespace}-userbar__item {
|
|
|
+ margin: 0;
|
|
|
+ background-color: $color-grey-1;
|
|
|
+ opacity: 0;
|
|
|
+ overflow: hidden;
|
|
|
+ transition-duration: .125s;
|
|
|
+ transition-timing-function: cubic-bezier(.55, 0, .1, 1);
|
|
|
+ font-family: 'Open Sans', sans-serif;
|
|
|
+ font-size: 16px !important;
|
|
|
+ text-decoration: none !important;
|
|
|
+
|
|
|
+ &:first-child {
|
|
|
+ border-top-left-radius: $userbar-radius;
|
|
|
+ border-top-right-radius: $userbar-radius;
|
|
|
+ }
|
|
|
|
|
|
- &:first-child {
|
|
|
- border-top-left-radius: $userbar-radius;
|
|
|
- border-top-right-radius: $userbar-radius;
|
|
|
- }
|
|
|
+ &:last-child {
|
|
|
+ border-bottom-right-radius: $userbar-radius;
|
|
|
+ border-bottom-left-radius: $userbar-radius;
|
|
|
+ }
|
|
|
|
|
|
- &:last-child {
|
|
|
- border-bottom-right-radius: $userbar-radius;
|
|
|
- border-bottom-left-radius: $userbar-radius;
|
|
|
- }
|
|
|
+ & + & {
|
|
|
+ border-top: 1px solid darken($color-grey-1, 3%);
|
|
|
+ }
|
|
|
|
|
|
- & + & {
|
|
|
- border-top: 1px solid darken($color-grey-1, 3%);
|
|
|
- }
|
|
|
|
|
|
+ a,
|
|
|
+ .#{$namespace}-action {
|
|
|
+ color: #aaa;
|
|
|
+ display: block;
|
|
|
+ text-decoration: none !important;
|
|
|
+ transform: none !important;
|
|
|
+ transition: none !important;
|
|
|
+ margin: 0 !important;
|
|
|
+ font-size: 14px !important;
|
|
|
|
|
|
- a,
|
|
|
- .#{$namespace}-action {
|
|
|
- color: #aaa;
|
|
|
- display: block;
|
|
|
- text-decoration: none !important;
|
|
|
- transform: none !important;
|
|
|
- transition: none !important;
|
|
|
- margin: 0 !important;
|
|
|
- font-size: 14px !important;
|
|
|
-
|
|
|
- &:hover,
|
|
|
- &:focus {
|
|
|
- outline: none;
|
|
|
- color: $color-white;
|
|
|
- background-color: rgba(100, 100, 100, 0.15);
|
|
|
- }
|
|
|
+ &:hover,
|
|
|
+ &:focus {
|
|
|
+ outline: none;
|
|
|
+ color: $color-white;
|
|
|
+ background-color: rgba(100, 100, 100, 0.15);
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- .#{$namespace}-icon {
|
|
|
- position: relative;
|
|
|
+ .#{$namespace}-icon {
|
|
|
+ position: relative;
|
|
|
|
|
|
- &:before {
|
|
|
- position: absolute;
|
|
|
- top: 50%;
|
|
|
- transform: translateY(-50%);
|
|
|
- left: 14px;
|
|
|
- }
|
|
|
+ &:before {
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ transform: translateY(-50%);
|
|
|
+ left: 14px;
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- a,
|
|
|
- input {
|
|
|
- font-size: 14px !important;
|
|
|
- text-align: left;
|
|
|
- padding: 0.8em 1.7em 0.8em 2.7em;
|
|
|
- }
|
|
|
+ a,
|
|
|
+ input {
|
|
|
+ font-size: 14px !important;
|
|
|
+ text-align: left;
|
|
|
+ padding: 0.8em 1.7em 0.8em 2.7em;
|
|
|
+ }
|
|
|
|
|
|
- input {
|
|
|
- border: 0;
|
|
|
- background: none;
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
+ input {
|
|
|
+ border: 0;
|
|
|
+ background: none;
|
|
|
+ width: 100%;
|
|
|
}
|
|
|
+}
|
|
|
|
|
|
|
|
|
|
|
@@ -288,12 +287,9 @@ $positions: (
|
|
|
}
|
|
|
|
|
|
.#{$namespace}-userbar-nav .#{$namespace}-userbar__item {
|
|
|
- // Yes, we could use an @else, but there's a bug in scss-lint.
|
|
|
@if $vertical == 'bottom' {
|
|
|
transform: translateY(1em);
|
|
|
- }
|
|
|
-
|
|
|
- @if $vertical == 'top' {
|
|
|
+ } @else {
|
|
|
transform: translateY(-1em);
|
|
|
}
|
|
|
}
|
|
@@ -336,7 +332,6 @@ $positions: (
|
|
|
// =============================================================================
|
|
|
|
|
|
// Active state for the list items comes last.
|
|
|
-
|
|
|
.#{$namespace}-userbar.is-active .#{$namespace}-userbar__item {
|
|
|
transform: translateY(0);
|
|
|
opacity: 1;
|