diff --git a/app/assets/javascripts/app/views/notifications_view.js b/app/assets/javascripts/app/views/notifications_view.js index d7b753f0c..d388865a1 100644 --- a/app/assets/javascripts/app/views/notifications_view.js +++ b/app/assets/javascripts/app/views/notifications_view.js @@ -54,7 +54,7 @@ app.views.Notifications = Backbone.View.extend({ var change = unread ? 1 : -1, allNotes = $(".list-group > a:eq(0) .badge"), typeNotes = $(".list-group > a[data-type=" + type + "] .badge"), - headerBadge = $("#notifications-link .badge"), + headerBadge = $(".notifications-link .badge"), note = $(".stream_element[data-guid=" + guid + "]"), markAllReadLink = $("a#mark_all_read_link"), translationKey = unread ? "notifications.mark_read" : "notifications.mark_unread"; diff --git a/app/assets/stylesheets/bootstrap-variables.scss b/app/assets/stylesheets/bootstrap-variables.scss index bf0764955..c6c58d3a2 100644 --- a/app/assets/stylesheets/bootstrap-variables.scss +++ b/app/assets/stylesheets/bootstrap-variables.scss @@ -363,7 +363,7 @@ $navbar-height: 50px; // $navbar-border-radius: $border-radius-base // $navbar-padding-horizontal: floor(($grid-gutter-width / 2)) // $navbar-padding-vertical: (($navbar-height - $line-height-computed) / 2) -// $navbar-collapse-max-height: 340px +$navbar-collapse-max-height: 480px; // $navbar-default-color: #777 // $navbar-default-bg: #f8f8f8 diff --git a/app/assets/stylesheets/header.scss b/app/assets/stylesheets/header.scss index b63f217f5..00d8172ee 100644 --- a/app/assets/stylesheets/header.scss +++ b/app/assets/stylesheets/header.scss @@ -9,6 +9,21 @@ header > .dark-header > nav { @media (max-width: $grid-float-breakpoint-max) { .col-lg-10 { padding: 0; } + .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; } + } + #navbar-collapse { + .form-group, .twitter-typeahead { + display: block !important; + margin-bottom: 0; + &, & input { width: 100% } + } + } } @media (min-width: $grid-float-breakpoint) { input[type="search"] { @@ -21,79 +36,6 @@ header > .dark-header > nav { width: 150px; } } - .navbar-nav:not(.nav-badges) > li > a { font-weight: bold; } - .nav-badges { - margin-left: 20px; - & > li { height: 50px; } - .dropdown > a:focus { outline: 0px none; } - .dropdown-open { - background-color: $dropdown-bg; - & > a { color: $dropdown-link-color; } - .dropdown-menu { display: block; } - } - .dropdown-menu { - border-top: none; - margin-left: -1px; - padding: 0px; - width: 400px; - .avatar { - width: 35px; - height: 35px; - } - .header { - padding: 10px; - border-bottom: 1px solid $border-grey; - h4 { margin: 5px 0; } - } - .notifications { - position: relative; - max-height: 350px; - } - .stream_element.media { - padding: 5px; - .tooltip { position: fixed; } - .unread-toggle { - margin-right: 10px; - opacity: 1; - } - & > .pull-right > .aspect_membership_dropdown { display: none; } - } - .ajax-loader { - border-bottom: 1px solid $border-grey; - padding: 10px; - .spinner { - height: 30px; - width: 30px; - } - } - .view_all { - background-color: $link-color; - border-top: 3px solid $white; - text-align: center; - a { - color: $white; - display: block; - font-weight: bold; - padding: 5px; - &:hover { text-decoration: none; } - } - } - } - } - [class^="entypo-"], [class*="entypo-"] { - color: inherit; - font-size: $font-size-h3; - vertical-align: middle; - } - .nav-badge { - margin-bottom: -2px; - .badge { - background-color: $brand-danger; - position: absolute; - right: 10px; - top: 10px; - } - } #user_menu { &.open .dropdown-toggle { background-color: darken($navbar-inverse-bg, 7%); } .dropdown-toggle { @@ -116,6 +58,79 @@ header > .dark-header > nav { } } + .navbar-nav:not(.nav-badges) > li > a { font-weight: bold; } + .nav-badges { + & > li { height: 50px; } + .dropdown > a:focus { outline: 0px none; } + .dropdown-open { + background-color: $dropdown-bg; + & > a { color: $dropdown-link-color; } + .dropdown-menu { display: block; } + } + .dropdown-menu { + border-top: none; + margin-left: -1px; + padding: 0px; + width: 400px; + .avatar { + width: 35px; + height: 35px; + } + .header { + padding: 10px; + border-bottom: 1px solid $border-grey; + h4 { margin: 5px 0; } + } + .notifications { + position: relative; + max-height: 350px; + } + .stream_element.media { + padding: 5px; + .tooltip { position: fixed; } + .unread-toggle { + margin-right: 10px; + opacity: 1; + } + & > .pull-right > .aspect_membership_dropdown { display: none; } + } + .ajax-loader { + border-bottom: 1px solid $border-grey; + padding: 10px; + .spinner { + height: 30px; + width: 30px; + } + } + .view_all { + background-color: $link-color; + border-top: 3px solid $white; + text-align: center; + a { + color: $white; + display: block; + font-weight: bold; + padding: 5px; + &:hover { text-decoration: none; } + } + } + } + } + [class^="entypo-"], [class*="entypo-"] { + color: inherit; + font-size: $font-size-h3; + vertical-align: middle; + } + .nav-badge { + margin-bottom: -2px; + .badge { + background-color: $brand-danger; + position: absolute; + right: 10px; + top: 10px; + } + } + #user_menu { .avatar { height: 30px; diff --git a/app/assets/templates/header_tpl.jst.hbs b/app/assets/templates/header_tpl.jst.hbs index e835337a1..4e050172f 100644 --- a/app/assets/templates/header_tpl.jst.hbs +++ b/app/assets/templates/header_tpl.jst.hbs @@ -12,24 +12,37 @@ {{ podname }} +