sticky header

This commit is contained in:
rimu 2024-02-23 18:41:15 +13:00
parent d40ab28ea2
commit 768ea4b65b
3 changed files with 3 additions and 1 deletions

View file

@ -420,6 +420,7 @@ a {
div.navbar {
border-bottom: 1px solid rgba(0, 40, 100, 0.12);
min-height: 60px;
background-color: var(--bs-body-bg);
}
.navbar-brand {

View file

@ -29,6 +29,7 @@ a {
div.navbar {
border-bottom: 1px solid rgba(0, 40, 100, 0.12);
min-height: 60px;
background-color: var(--bs-body-bg);
}
.navbar-brand {

View file

@ -99,7 +99,7 @@
<a href="#side_pane" class="skip-link" role="navigation" aria-label="Go to side pane" tabindex="">Go to side pane</a>
<!-- Page content -->
{% block navbar %}
<div class="navbar navbar-expand-lg">
<div class="navbar navbar-expand-lg sticky-md-top">
<div class="{{ 'container-lg' if post_layout != 'masonry_wide' else 'container-fluid' }}" role="banner">
<a class="navbar-brand" href="/">{% if not low_bandwidth %}<img src="/static/images/logo2.png" alt="Logo" width="50" height="50" />{% endif %}{{ g.site.name }}</a>
{% if current_user.is_authenticated %}