diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2017-10-09 13:49:03 +0200 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2017-12-08 11:56:04 +0100 |
commit | e5747f87a0e16ec95ab92308b9309719f33f0382 (patch) | |
tree | e71b6f1112931d23c648941329948efc23b080f9 | |
parent | 0fd735aaf2c4a9ad12f6f6fc0a672a060755a785 (diff) | |
download | gitlab-ce-e5747f87a0e16ec95ab92308b9309719f33f0382.tar.gz |
Make new .is-active style global
-rw-r--r-- | app/assets/stylesheets/framework/dropdowns.scss | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/app/assets/stylesheets/framework/dropdowns.scss b/app/assets/stylesheets/framework/dropdowns.scss index 28cf9740d8e..d249a69493d 100644 --- a/app/assets/stylesheets/framework/dropdowns.scss +++ b/app/assets/stylesheets/framework/dropdowns.scss @@ -476,13 +476,12 @@ &.is-indeterminate, &.is-active { - font-weight: $gl-font-weight-bold; color: $gl-text-color; &::before { position: absolute; left: 6px; - top: 50%; + top: 16px; transform: translateY(-50%); font: normal normal normal 14px/1 FontAwesome; font-size: inherit; @@ -490,6 +489,12 @@ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } + + &.dropdown-menu-user-link { + &::before { + top: 50%; + } + } } &.is-indeterminate::before { @@ -498,9 +503,6 @@ &.is-active::before { content: "\f00c"; - position: absolute; - top: 50%; - transform: translateY(-50%); } } } @@ -800,19 +802,6 @@ color: $brand-danger; } } - - &.is-active { - font-weight: inherit; - - &::before { - top: 16px; - } - - &.dropdown-menu-user-link::before { - top: 50%; - transform: translateY(-50%); - } - } } &.dropdown-menu-empty-item a { |