File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 174174header .md-header {
175175 z-index : 900 !important ;
176176}
177+ .md-sidebar {
178+ z-index : 1000 !important ;
179+ }
177180.md-overlay {
178181 z-index : 950 !important ;
179182}
Original file line number Diff line number Diff line change 55< a href ="{{ '../' ~ base_url }} ">
66 < strong > Click here to go to latest.</ strong >
77</ a >
8- {% endblock %}
8+ < script >
9+ // A hacky way to recalculate positions of elements when the outdated banner is shown/hidden
10+ new MutationObserver ( function ( mutations ) {
11+ mutations . forEach ( function ( mutation ) {
12+ if ( mutation . attributeName === "hidden" ) {
13+ document . body . style . border = '1px solid transparent' ;
14+ setTimeout ( function ( ) { document . body . style . border = undefined ; } , 1 ) ;
15+ }
16+ } ) ;
17+ } ) . observe ( document . querySelector ( "[data-md-component=outdated]" ) , { attributes : true } ) ;
18+ </ script >
19+ {% endblock %}
You can’t perform that action at this time.
0 commit comments