diff --git a/app/assets/stylesheets/color_themes/_color_theme_override_dark.scss b/app/assets/stylesheets/color_themes/_color_theme_override_dark.scss index fe2f17f11..34aa72c76 100644 --- a/app/assets/stylesheets/color_themes/_color_theme_override_dark.scss +++ b/app/assets/stylesheets/color_themes/_color_theme_override_dark.scss @@ -1,7 +1,7 @@ // Only overriding existing selectors here, so disable some lint rules // scss-lint:disable IdSelector, SelectorFormat, NestingDepth, SelectorDepth, QualifyingElement body { - .navbar.navbar-fixed-top #user_menu .dropdown-menu > li > a { + .navbar.navbar-fixed-top #user-menu .dropdown-menu > li > a { color: $text-color; &:hover { color: $white; } } diff --git a/app/assets/stylesheets/header.scss b/app/assets/stylesheets/header.scss index 6b884148a..813157826 100644 --- a/app/assets/stylesheets/header.scss +++ b/app/assets/stylesheets/header.scss @@ -1,3 +1,14 @@ +.not-connected-menu { + .navbar-left { + float: left; + } + + .navbar-right, + .navbar-right li { + float: right; + } +} + .navbar.navbar-fixed-top { border-bottom: none; box-shadow: 1px 0 2px $black; @@ -13,13 +24,14 @@ margin-left: -15px; } - #header-title { + .header-title { margin-top: -7px; img { height: 32px; opacity: .7; } + img:hover { opacity: 1; } @@ -107,28 +119,17 @@ } } - #user_menu { + .user-avatar { + height: $navbar-height; + margin-bottom: -$navbar-padding-vertical; + margin-right: 10px; + margin-top: -$navbar-padding-vertical; + padding: ($navbar-height - 30px) / 2 0; + .avatar { height: 30px; width: 30px; } - .user-avatar { - height: $navbar-height; - padding: ($navbar-height - 30px)/2 0; - margin-bottom: -$navbar-padding-vertical; - margin-top: -$navbar-padding-vertical; - margin-right: 10px; - } - } - - .not-connected-menu { - .navbar-left { - float: left; - } - .navbar-right, - .navbar-right li { - float: right; - } } @media (max-width: $grid-float-breakpoint-max) { @@ -147,30 +148,27 @@ } } - #navbar-collapse { - .form-group, - .twitter-typeahead { - display: block !important; - margin-bottom: 0; + .form-group, + .twitter-typeahead { + margin-bottom: 0; - &, - input { width: 100%; } - } + &, + input { width: 100%; } } .nav-badges .dropdown-menu { width: 300px; } - #user_menu .dropdown-menu { + .user-menu-dropdown { + background-color: transparent; + border: 0; + box-shadow: none; display: block; + margin-top: -8px; // To compensate parent ul margin + padding: 0; position: static; width: 100%; - background-color: transparent; - box-shadow: none; - border: 0; - padding: 0; - margin-top: -8px; // To compensate parent ul margin a { color: #9d9d9d; @@ -178,8 +176,8 @@ padding: 10px 15px; &:hover { - color: #fff; background-color: transparent; + color: #fff; } } } @@ -199,26 +197,26 @@ } } - #user_menu { + #user-menu { &.open .dropdown-toggle { background-color: darken($navbar-inverse-bg, 7%); } .dropdown-toggle { margin: 0 1px; min-width: 160px; } + } - .dropdown-menu { - background-color: darken($navbar-inverse-bg, 7%); - border-top: 0; - width: 100%; + .user-menu-dropdown { + background-color: darken($navbar-inverse-bg, 7%); + border-top: 0; + width: 100%; - > li > a { - color: $gray-light; - padding-left: 55px; + a { + color: $gray-light; + padding-left: 55px; - &:hover { - background-color: $brand-primary; - color: $gray-lighter; - } + &:hover { + background-color: $brand-primary; + color: $gray-lighter; } } } diff --git a/app/assets/stylesheets/mobile/header.scss b/app/assets/stylesheets/mobile/header.scss index 499bc7c18..159e6a536 100644 --- a/app/assets/stylesheets/mobile/header.scss +++ b/app/assets/stylesheets/mobile/header.scss @@ -33,7 +33,7 @@ $mobile-navbar-height: 46px; li { float: left; } } - #header-title { + .header-title { padding: 7px 15px; margin: 0 0 0 -15px; height: $mobile-navbar-height; diff --git a/app/assets/templates/header_tpl.jst.hbs b/app/assets/templates/header_tpl.jst.hbs index b0b2e67c6..2b815d1ec 100644 --- a/app/assets/templates/header_tpl.jst.hbs +++ b/app/assets/templates/header_tpl.jst.hbs @@ -11,7 +11,7 @@ - + {{ podname }} @@ -68,7 +68,7 @@