diff --git a/Changelog.md b/Changelog.md index 6b78357343fb53eeffe0cda52265c928c85fd703..fd2663fc37c523dc3d6bc7337ffb22cb69f6c749 100644 --- a/Changelog.md +++ b/Changelog.md @@ -10,6 +10,7 @@ * Convert all ActivityStreams::Photo to StatusMessages and drop ActivityStreams::Photo [#4144](https://github.com/diaspora/diaspora/issues/4144) * Port the Rails application to strong_parameters in preparation to the upgrade to Rails 4 [#4143](https://github.com/diaspora/diaspora/issues/4143) * Refactor left bar side menu, improve tag autosuggestion design [#4271](https://github.com/diaspora/diaspora/issues/4271), [#4316](https://github.com/diaspora/diaspora/pull/4316) +* Extract and factorize the header css in a new file, fix ugly header in registration [#4389](https://github.com/diaspora/diaspora/pull/4389) ## Bug fixes * Check twitter write access before adding/authorizing it for a user. [#4124](https://github.com/diaspora/diaspora/issues/4124) diff --git a/app/assets/stylesheets/header.css.scss b/app/assets/stylesheets/header.css.scss index 344fcd0867029b0419e6d0e5a5289262cf48356e..f3eea7d7206fe6f7d32ba29d5a2fc22f1489eefe 100644 --- a/app/assets/stylesheets/header.css.scss +++ b/app/assets/stylesheets/header.css.scss @@ -44,6 +44,7 @@ body > header { display: inline-block; margin-top: 2px; float: left; + width: 61px; a:hover { text-decoration: none; } @@ -56,6 +57,18 @@ body > header { font-weight: bold; font-size: smaller; + .badge_count { + @include border-radius(2px); + z-index: 3; + position: absolute; + top: -4px; + left: 15px; + padding: 1px 2px; + background-color: #A40802; + line-height: 12px; + color: #fff; + } + &:hover .badge_count { background-color: lighten(#A40802, 5%); } .icons-notifications_grey { height: 16px; } @@ -74,29 +87,19 @@ body > header { padding: 0px 3px; } - #message_inbox_badge { padding-top: 3px; } - - #notification_badge { - .active { - z-index: 10; - background-color: #fff; - border: 1px solid #888; - border-bottom: 0px; - margin-left: 0px; - padding-bottom: 12px; - } + #message_inbox_badge { + padding-top: 3px; + margin-right: 0px; + padding-right: 0px; + } - .badge_count { - @include border-radius(2px); - z-index: 3; - position: absolute; - top: -2px; - left: 13px; - padding: 0 2px 1px 2px; - background-color: #A40802; - line-height: 12px; - color: #fff; - } + #notification_badge.active { + z-index: 10; + background-color: #fff; + border: 1px solid #888; + border-bottom: 0px; + margin-left: 0px; + padding-bottom: 12px; } #notification_dropdown { @@ -192,7 +195,8 @@ body > header { width: 200px; } - &::-webkit-input-placeholder, &:-moz-placeholder { text-shadow: none; } + &::-webkit-input-placeholder { text-shadow: none; } + &:-moz-placeholder { text-shadow: none; } } } } @@ -212,10 +216,8 @@ body > header { margin: -2px -5px 0px 0px; padding: 5px 7px 5px 32px; - border { - left: 1px solid #333; - right: 1px solid #333; - } + border-left: 1px solid #333; + border-right: 1px solid #333; li { a { @@ -253,7 +255,6 @@ body > header { &.active { margin-top: -3px; - margin-right: -5px; @include dropdown-shadow; background-color: rgb(34,30,30); border: 1px solid #999; @@ -286,10 +287,8 @@ body > header { height: 100%; display: inline-block; margin-left: -4px; - border { - left: 1px solid #333; - right: 1px solid #333; - } + border-left: 1px solid #333; + border-right: 1px solid #333; &:last-child { margin-left: -5px;