mobile button prep
This commit is contained in:
parent
33d156e516
commit
69368db44f
@ -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' #}
|
||||
|
@ -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.
|
||||
*/
|
||||
|
||||
})();
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user