mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
sticky header
This commit is contained in:
parent
d40ab28ea2
commit
768ea4b65b
3 changed files with 3 additions and 1 deletions
|
@ -420,6 +420,7 @@ a {
|
||||||
div.navbar {
|
div.navbar {
|
||||||
border-bottom: 1px solid rgba(0, 40, 100, 0.12);
|
border-bottom: 1px solid rgba(0, 40, 100, 0.12);
|
||||||
min-height: 60px;
|
min-height: 60px;
|
||||||
|
background-color: var(--bs-body-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-brand {
|
.navbar-brand {
|
||||||
|
|
|
@ -29,6 +29,7 @@ a {
|
||||||
div.navbar {
|
div.navbar {
|
||||||
border-bottom: 1px solid rgba(0, 40, 100, 0.12);
|
border-bottom: 1px solid rgba(0, 40, 100, 0.12);
|
||||||
min-height: 60px;
|
min-height: 60px;
|
||||||
|
background-color: var(--bs-body-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-brand {
|
.navbar-brand {
|
||||||
|
|
|
@ -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>
|
<a href="#side_pane" class="skip-link" role="navigation" aria-label="Go to side pane" tabindex="">Go to side pane</a>
|
||||||
<!-- Page content -->
|
<!-- Page content -->
|
||||||
{% block navbar %}
|
{% 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">
|
<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>
|
<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 %}
|
{% if current_user.is_authenticated %}
|
||||||
|
|
Loading…
Reference in a new issue