Skip to content

Commit

Permalink
Prevent logo and toggle icon in topbar from overlapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Geisler committed May 10, 2017
1 parent a9baa14 commit 59ef967
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion app/assets/stylesheets/blacklight/_header.scss
Expand Up @@ -2,6 +2,13 @@
Header bar at top (Bootstrap nav-bar)
*/

.topbar > .container {
@media (max-width: breakpoint-max(xs)) {
margin-left: 0;
margin-right: 0;
}
}

.navbar-brand { /* The main logo image for the Blacklight instance */
@if $logo-image {
background: transparent $logo-image no-repeat top left;
Expand Down Expand Up @@ -46,6 +53,6 @@
// hide 'search' label at very small screens
@media screen and (max-width: breakpoint-max(xs)) {
@include sr-only();
}
}
}
}
2 changes: 1 addition & 1 deletion app/views/shared/_header_navbar.html.erb
@@ -1,4 +1,4 @@
<nav class="navbar navbar-toggleable-md navbar-inverse bg-inverse" role="navigation">
<nav class="navbar navbar-toggleable-md navbar-inverse bg-inverse topbar" role="navigation">
<div class="<%= container_classes %>">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#user-util-collapse" aria-controls="user-util-collapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
Expand Down

0 comments on commit 59ef967

Please sign in to comment.