mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 02:48:26 +00:00
Make menus sticky when scrolling content
This commit is contained in:
@ -27,7 +27,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<nav class="breadcrumb has-succeeds-separator" aria-label="breadcrumbs">
|
||||
<nav class="breadcrumb has-succeeds-separator" aria-label="breadcrumbs"
|
||||
style="position:sticky; top: 0; z-index:10;">
|
||||
<ul>
|
||||
{% for parent in page.ancestors %}
|
||||
{% set s = get_section(path = parent, metadata_only = true) %}
|
||||
@ -44,7 +45,8 @@
|
||||
<section class="section pt-2">
|
||||
<div class="columns is-desktop">
|
||||
<div class="column is-3">
|
||||
<div class="menu">
|
||||
<div class="menu"
|
||||
style="position:sticky; top:2rem; z-index:10;">
|
||||
<ul class="menu-list">
|
||||
{% set last = page.ancestors | last %}
|
||||
{% set s = get_section(path=last) %}
|
||||
|
Reference in New Issue
Block a user