From bb133ff79afcef9ac4faf8190a7939518ab31642 Mon Sep 17 00:00:00 2001 From: Winnie Hellmann Date: Mon, 9 Oct 2017 15:15:40 +0200 Subject: Make new .dropdown-menu-selectable style global --- app/assets/stylesheets/framework/dropdowns.scss | 67 +++++++++++-------------- 1 file changed, 28 insertions(+), 39 deletions(-) diff --git a/app/assets/stylesheets/framework/dropdowns.scss b/app/assets/stylesheets/framework/dropdowns.scss index 0494a105195..70cbdd6483d 100644 --- a/app/assets/stylesheets/framework/dropdowns.scss +++ b/app/assets/stylesheets/framework/dropdowns.scss @@ -484,39 +484,41 @@ } .dropdown-menu-selectable { - a { - padding-left: 26px; - position: relative; + li { + a { + padding: 8px 40px; + position: relative; - &.is-indeterminate, - &.is-active { - color: $gl-text-color; - - &::before { - position: absolute; - left: 6px; - top: 16px; - transform: translateY(-50%); - font: normal normal normal 14px/1 FontAwesome; - font-size: inherit; - text-rendering: auto; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - } + &.is-indeterminate, + &.is-active { + color: $gl-text-color; - &.dropdown-menu-user-link { &::before { - top: 50%; + position: absolute; + left: 16px; + top: 16px; + transform: translateY(-50%); + font: normal normal normal 14px/1 FontAwesome; + font-size: inherit; + text-rendering: auto; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + } + + &.dropdown-menu-user-link { + &::before { + top: 50%; + } } } - } - &.is-indeterminate::before { - content: "\f068"; - } + &.is-indeterminate::before { + content: "\f068"; + } - &.is-active::before { - content: "\f00c"; + &.is-active::before { + content: "\f00c"; + } } } } @@ -758,19 +760,6 @@ #{$selector}.dropdown-menu, #{$selector}.dropdown-menu-nav { margin-bottom: 24px; - - &.dropdown-menu-selectable { - li { - a { - padding: 8px 40px; - - &.is-indeterminate::before, - &.is-active::before { - left: 16px; - } - } - } - } } #{$selector}.dropdown-menu-align-right { -- cgit v1.2.1