From b31ca91756881852f53052a290a012654b88dc14 Mon Sep 17 00:00:00 2001 From: Marwan Date: Sat, 30 Mar 2024 06:55:47 +0300 Subject: [PATCH] feat: make the nav stick to the buttom of the pages --- Gemfile | 2 ++ assets/css/custom.scss | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/Gemfile b/Gemfile index a76c33fb51c..df0a1e36513 100644 --- a/Gemfile +++ b/Gemfile @@ -6,3 +6,5 @@ group :test do gem "html-proofer", "~> 3.19.4" gem "rake" end + +gem "webrick", "~> 1.8" diff --git a/assets/css/custom.scss b/assets/css/custom.scss index 2ac41717b44..7bff576450e 100644 --- a/assets/css/custom.scss +++ b/assets/css/custom.scss @@ -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 {