mobile button prep

This commit is contained in:
Elisabeth Dickinson 2021-03-08 18:21:03 +01:00
parent 33d156e516
commit 69368db44f
3 changed files with 19 additions and 1 deletions

View File

@ -61,7 +61,11 @@
{% block content %}
<div id="wrap">
<nav class="navbar navbar-expand-lg navbar-light d-lg-none" aria-label="Toggle OffCanvas">
<button class="navbar-toggler p-0 border-0" type="button" data-bs-toggle="offcanvas" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</nav>
{% set main_classes = [] %}
{% if pagename == master_doc %} {# The current page is the homepage #}
{% set main_classes = main_classes + ['index'] %} {# TODO ANVFE should be 'o_index' #}

View File

@ -43,4 +43,14 @@
}
};
/**
* Mobile: Toggle open/close sidebar on click of nav button (&& on swipe left to right?).
*
*
* `o_active_toc_entry` class, and their related (parent) TOC entry list (<ul> elements) receive
* the `show` (Bootstrap) class.
* Also, the deepest TOC entry receives the `o_deepest_active_toc_entry` class, and its child
* Sidebar receives the `o-mobile-show` class.
*/
})();

View File

@ -98,6 +98,10 @@ header.o_main_header{
position: fixed;
top:$o-header-height;
left:-100%;
&.o-mobile-show {
left:0;
width: 100%;
}
@include media-breakpoint-up(lg) {
left:0;
}