Skip to content

Commit

Permalink
feat: make the nav stick to the buttom of the pages
Browse files Browse the repository at this point in the history
  • Loading branch information
MarwanBz committed Mar 30, 2024
1 parent b410562 commit b31ca91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ group :test do
gem "html-proofer", "~> 3.19.4"
gem "rake"
end

gem "webrick", "~> 1.8"
10 changes: 10 additions & 0 deletions assets/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ blockquote {
line-height: 0;
}

nav.main-nav {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 10;
background-color: #fff;
transition: all 0.3s ease-in-out;
}

.main-links {
a {
&:hover {
Expand Down

0 comments on commit b31ca91

Please sign in to comment.