From: Michael Tremer Date: Sun, 15 Jul 2018 12:01:58 +0000 (+0100) Subject: features: Fix scrollspy X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f043320c252637e0b040ebd7cabaa6107bd86f2;p=ipfire.org.git features: Fix scrollspy Signed-off-by: Michael Tremer --- diff --git a/src/scss/_variables.scss b/src/scss/_variables.scss index 9a776c01..aac1fd61 100644 --- a/src/scss/_variables.scss +++ b/src/scss/_variables.scss @@ -82,6 +82,9 @@ $h6-font-size: 1.25rem; $display1-size: 7.5rem; +// Links +$link-color: $primary; + // Navbar $navbar-brand-font-size: 36px; $navbar-brand-height: 32px; diff --git a/src/scss/style.scss b/src/scss/style.scss index bd2712f2..a48e2d40 100644 --- a/src/scss/style.scss +++ b/src/scss/style.scss @@ -41,6 +41,9 @@ @import '_icons'; body { + // For scrollspy + position: relative; + min-height: 75rem; padding-top: 6rem; } @@ -80,6 +83,17 @@ h6 { box-shadow: $shadow-1; } +.nav { + .nav-link { + color: $blue-grey-900; + + &.active { + color: $link-color; + border-left: 2px solid $link-color; + } + } +} + footer { .btn-toolbar .icon { height: 2.25rem; @@ -185,6 +199,12 @@ footer { } } +// Sidebar navigation + +#sidebar .nav { + position: fixed; +} + .page-scroll { display: block; visibility: visible; diff --git a/src/templates/base.html b/src/templates/base.html index c4ad31e9..6dd9532a 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -229,6 +229,7 @@ + {% block javascript %}{% end block %}