From cab7ed9602233c4578efd5b494344611498cc577 Mon Sep 17 00:00:00 2001 From: Grace Grimwood Date: Wed, 7 Feb 2024 13:57:59 +1300 Subject: [PATCH] fix sticky header collapse, add scroll margin to content --- _layouts/default.html | 4 ++-- _sass/kroxylicious.scss | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 76f37dd..6feaade 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -10,9 +10,9 @@ {% seo %} - + {% include nav.html %} -
+
{{ content }}
{% include footer.html %} diff --git a/_sass/kroxylicious.scss b/_sass/kroxylicious.scss index b068346..c700d58 100644 --- a/_sass/kroxylicious.scss +++ b/_sass/kroxylicious.scss @@ -33,6 +33,14 @@ $navbar-dark-disabled-color: rgba($white, 0.45); // Custom bootstrap variables must be set or imported *before* bootstrap. @import "./bootstrap/scss/bootstrap"; +body { + height: fit-content!important; +} + +.krx-content * { + scroll-margin-top: 5rem!important; +} + .list-group-item:hover { background-color: tint-color($primary, 50%); }