Skip to content

Commit

Permalink
Merge pull request #3 from gracegrimwood/issue-31-scroll-margin-fix
Browse files Browse the repository at this point in the history
fix sticky header collapse, add scroll margin to content
  • Loading branch information
k-wall authored Feb 7, 2024
2 parents cecae3d + cab7ed9 commit abc70d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/js/bootstrap.bundle.min.js" integrity="sha512-X/YkDZyjTf4wyc2Vy16YGCPHwAY8rZJY+POgokZjQB2mhIRFJCckEGc6YyX9eNsPfn0PzThEuNs+uaomE5CO6A==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
{% seo %}
</head>
<body class="d-flex flex-column vh-100" data-bs-theme="light">
<body class="d-flex flex-column" data-bs-theme="light">
{% include nav.html %}
<div class="container-fluid px-0" data-bs-theme="light">
<div class="container-fluid px-0 krx-content" data-bs-theme="light">
{{ content }}
</div>
{% include footer.html %}
Expand Down
8 changes: 8 additions & 0 deletions _sass/kroxylicious.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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%);
}
Expand Down

0 comments on commit abc70d2

Please sign in to comment.