@include disable-mouse-outline;
}
- .is-dropdown-submenu-parent {
- position: relative;
-
- a::after {
- float: $global-right;
- margin-top: 3px;
- margin-#{$global-left}: 10px;
- }
-
- @if $dropdownmenu-arrows {
- &.is-down-arrow a {
- padding-#{$global-right}: 1.5rem;
- position: relative;
- }
-
- &.is-down-arrow > a::after {
- @include css-triangle(5px, $dropdownmenu-arrow-color, down);
- position: absolute;
- top: rem-calc(2px) + rem-calc(get-side($menu-item-padding, top));
- #{$global-right}: 5px;
- }
-
- &.is-left-arrow > a::after {
- @include css-triangle(5px, $dropdownmenu-arrow-color, left);
- float: left;
- margin-left: 0;
- margin-right: 10px;
- }
-
- &.is-right-arrow > a::after {
- @include css-triangle(5px, $dropdownmenu-arrow-color, right);
- }
- }
+ .no-js & ul {
+ display: none;
+ }
- &.is-left-arrow.opens-inner .is-dropdown-submenu {
- right: 0;
+ &.align-right {
+ .is-dropdown-submenu.first-sub {
+ top: 100%;
left: auto;
+ right: 0;
}
+ }
+ }
- &.is-right-arrow.opens-inner .is-dropdown-submenu {
- left: 0;
- right: auto;
- }
+ .is-dropdown-menu.vertical {
+ width: 100px;
- &.opens-inner .is-dropdown-submenu {
- top: 100%;
- }
+ &.align-right {
+ float: right;
+ }
- &.opens-left .is-dropdown-submenu {
- left: auto;
- right: 100%;
- }
+ > li .is-dropdown-submenu {
+ top: 0;
+ left: 100%;
}
+ }
- .no-js & ul {
- display: none;
+ .is-dropdown-submenu-parent {
+ position: relative;
+
+ a::after {
+ float: $global-right;
+ margin-top: 3px;
+ margin-#{$global-left}: 10px;
}
- .is-dropdown-submenu {
- display: none;
- position: absolute;
- top: 0;
- #{$global-left}: 100%;
- min-width: $dropdownmenu-min-width;
- z-index: 1;
- background: $dropdownmenu-background;
- border: $dropdownmenu-border;
-
- @if (type-of($dropdownmenu-border-width) == 'number') {
- .is-dropdown-submenu {
- margin-top: (-$dropdownmenu-border-width);
- }
+ @if $dropdownmenu-arrows {
+ &.is-down-arrow a {
+ padding-#{$global-right}: 1.5rem;
+ position: relative;
}
- > li {
- width: 100%;
+ &.is-down-arrow > a::after {
+ @include css-triangle(5px, $dropdownmenu-arrow-color, down);
+ position: absolute;
+ top: rem-calc(2px) + rem-calc(get-side($menu-item-padding, top));
+ #{$global-right}: 5px;
}
- &.first-sub {
- top: 100%;
- #{$global-left}: 0;
- #{$global-right}: auto;
+ &.is-left-arrow > a::after {
+ @include css-triangle(5px, $dropdownmenu-arrow-color, left);
+ float: left;
+ margin-left: 0;
+ margin-right: 10px;
}
- // [TODO] Cut back specificity
- // scss-lint:disable SelectorDepth
- &:not(.js-dropdown-nohover) > .is-dropdown-submenu-parent:hover > &,
- &.js-dropdown-active {
- display: block;
+ &.is-right-arrow > a::after {
+ @include css-triangle(5px, $dropdownmenu-arrow-color, right);
}
}
- &.align-right {
- .is-dropdown-submenu.first-sub {
- top: 100%;
- left: auto;
- right: 0;
- }
+ &.is-left-arrow.opens-inner .is-dropdown-submenu {
+ right: 0;
+ left: auto;
+ }
+
+ &.is-right-arrow.opens-inner .is-dropdown-submenu {
+ left: 0;
+ right: auto;
+ }
+
+ &.opens-inner .is-dropdown-submenu {
+ top: 100%;
+ }
+
+ &.opens-left .is-dropdown-submenu {
+ left: auto;
+ right: 100%;
}
}
- .is-dropdown-menu.vertical {
- width: 100px;
+ .is-dropdown-submenu {
+ display: none;
+ position: absolute;
+ top: 0;
+ #{$global-left}: 100%;
+ min-width: $dropdownmenu-min-width;
+ z-index: 1;
+ background: $dropdownmenu-background;
+ border: $dropdownmenu-border;
+
+ @if (type-of($dropdownmenu-border-width) == 'number') {
+ .is-dropdown-submenu {
+ margin-top: (-$dropdownmenu-border-width);
+ }
+ }
- &.align-right {
- float: right;
+ > li {
+ width: 100%;
}
- > li .is-dropdown-submenu {
- top: 0;
- left: 100%;
+ &.first-sub {
+ top: 100%;
+ #{$global-left}: 0;
+ #{$global-right}: auto;
+ }
+
+ // [TODO] Cut back specificity
+ // scss-lint:disable SelectorDepth
+ &:not(.js-dropdown-nohover) > .is-dropdown-submenu-parent:hover > &,
+ &.js-dropdown-active {
+ display: block;
}
}
}