Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions app/assets/stylesheets/scholar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -440,3 +440,24 @@ label[for=user_password] {
.whats-new h3 {
margin-top: 50px;
}

/* Fixed masthead styles */
#masthead.navbar-fixed-top {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1030;
}

/* Prevent page content from being hidden behind the fixed masthead */
body {
padding-top: 60px;
}

@media (max-width: 767px) {
/* On small screens the navbar collapses and should not overlap content */
body {
padding-top: 0;
}
}
2 changes: 1 addition & 1 deletion app/views/_masthead.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<header>
<nav id="masthead" class="navbar navbar-inverse navbar-static-top" role="navigation">
<nav id="masthead" class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
Expand Down
Loading