Skip to content

Commit

Permalink
Merge pull request #146 from bwbohl/nav-sticky
Browse files Browse the repository at this point in the history
Make navigation bar stick fix sidemen in Safari
  • Loading branch information
rettinghaus authored Jul 13, 2020
2 parents bbc26ad + cebc7d5 commit 6c47790
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _sass/_specs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ $label-font-weight: bold;
font-size: smaller;
font-style: italic;
}

.top-navigation {
background-color: #e5e5e5;
border-bottom: .5px solid #999999;
Expand Down Expand Up @@ -372,6 +372,9 @@ $label-font-weight: bold;
height: 100vh;
overflow: auto;
position: sticky;
@media screen and (-webkit-min-device-pixel-ratio:0) {
position: -webkit-sticky;
}
top: 0;
margin-top: -20px;
margin-bottom: -20px;
Expand Down
5 changes: 5 additions & 0 deletions _sass/mei.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ code, kbd, pre, samp {
Navbar styles
*/
header.navbar {
position: sticky;
@media screen and (-webkit-min-device-pixel-ratio:0) {
position: -webkit-sticky;
}
top: 0;
background-color: $dark-color;
margin-bottom: 20px;
z-index: 10;
Expand Down

0 comments on commit 6c47790

Please sign in to comment.