diff --git a/Changelog.md b/Changelog.md index b8fe3820e..f9d8dab4b 100644 --- a/Changelog.md +++ b/Changelog.md @@ -43,6 +43,7 @@ If so, please delete it since it will prevent the federation from working proper * Support direct links to comments on mobile [#7508](https://github.com/diaspora/diaspora/pull/7508) * Add inviter first and last name in the invitation e-mail [#7484](https://github.com/diaspora/diaspora/pull/7484) * Add markdown editor for comments and conversations [#7482](https://github.com/diaspora/diaspora/pull/7482) +* Improve responsive header in desktop version [#7509](https://github.com/diaspora/diaspora/pull/7509) # 0.6.8.0 diff --git a/app/assets/stylesheets/header.scss b/app/assets/stylesheets/header.scss index 4e883094e..3c02d47ae 100644 --- a/app/assets/stylesheets/header.scss +++ b/app/assets/stylesheets/header.scss @@ -6,63 +6,47 @@ .navbar-brand { font-weight: bold; font-size: $font-size-h3; + margin-left: -15px; } - @media (max-width: $grid-float-breakpoint-max) { - .navbar-header > .nav li { display: inline-block !important; } - .nav-badge { - color: $navbar-inverse-link-color; - padding-left: 12px; - padding-right: 12px; - &:hover { color: $navbar-inverse-link-hover-color; } - &:hover, - &:focus { - background-color: transparent; - } + #header-title { + margin-top: -7px; + + img { + height: 32px; + opacity: .7; } - #navbar-collapse { - .form-group, .twitter-typeahead { - display: block !important; - margin-bottom: 0; - &, & input { width: 100% } - } + img:hover { + opacity: 1; } } - @media (min-width: $grid-float-breakpoint) { - input[type="search"] { - @include transition(width); - margin-top: 2px; - width: 200px; - &:not(.active) { - background-color: $navbar-inverse-bg; - border-color: $gray-light; - width: 150px; - } - } - #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: none; - width: 100%; - & > li > a { - color: $gray-light; - padding-left: 55px; - &:hover { - background-color: $brand-primary; - color: $gray-lighter; - } - } - } + + .navbar-header > ul, + .navbar-header > ul li { + float: left; + } + + [class^="entypo-"], + [class*="entypo-"] { + color: inherit; + font-size: $font-size-h3; + vertical-align: middle; + } + + .nav-badge { + padding: 16px 12px; + + .badge { + position: absolute; + right: 10px; + top: 10px; } } .navbar-nav:not(.nav-badges) > li > a { font-weight: bold; } .nav-badges { + margin: 0; + li { height: $navbar-height; } .dropdown-open { background-color: $dropdown-bg; @@ -118,19 +102,6 @@ } } } - [class^="entypo-"], [class*="entypo-"] { - color: inherit; - font-size: $font-size-h3; - vertical-align: middle; - } - .nav-badge { - margin-bottom: -2px; - .badge { - position: absolute; - right: 10px; - top: 10px; - } - } #user_menu { .avatar { @@ -145,4 +116,75 @@ margin-right: 10px; } } + + @media (max-width: $grid-float-breakpoint-max) { + + .navbar-nav.hidden-xs { + margin: 0; + margin-top: 6px; + } + + .nav-badge { + color: $navbar-inverse-link-color; + &:hover { color: $navbar-inverse-link-hover-color; } + &:hover, + &:focus { + background-color: transparent; + } + } + + #navbar-collapse { + .form-group, + .twitter-typeahead { + display: block !important; + margin-bottom: 0; + + &, + input { width: 100%; } + } + } + + .nav-badges .dropdown-menu { + width: 300px; + } + } + + @media (min-width: $grid-float-breakpoint) { + + [type="search"] { + @include transition(width); + margin-top: 2px; + width: 200px; + + &:not(.active) { + background-color: $navbar-inverse-bg; + border-color: $gray-light; + width: 150px; + } + } + + #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%; + + > li > a { + color: $gray-light; + padding-left: 55px; + + &:hover { + background-color: $brand-primary; + color: $gray-lighter; + } + } + } + } + } } diff --git a/app/assets/templates/header_tpl.jst.hbs b/app/assets/templates/header_tpl.jst.hbs index ee9eb0fb7..481b59ad6 100644 --- a/app/assets/templates/header_tpl.jst.hbs +++ b/app/assets/templates/header_tpl.jst.hbs @@ -10,46 +10,24 @@ - {{ podname }} + + + {{ podname }} + - - - - +