theme: rename sidebar overlay #210

because we will introduce a second toc overlay soon
This commit is contained in:
Sören Weber 2022-02-27 09:59:38 +01:00
parent 7eee4a86d8
commit a980b77491
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
4 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@
</head>
<body class="default-animation" data-url="/">
<div id="body default-animation" style="margin-left:0px;">
<div id="overlay"></div>
<div id="sidebar-overlay"></div>
<main id="body-inner" class="chapter">
<h1>{{ T "title-404" }}</h1>
<p></p>

View file

@ -27,7 +27,7 @@
<body class="default-animation" data-url="{{ .RelPermalink }}">
{{- partial "menu.html" . }}
<div id="body" class="default-animation">
<div id="overlay"></div>
<div id="sidebar-overlay"></div>
<div class="padding highlightable">
<div id="top-bar"><div>
{{- $showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev)) }}

View file

@ -1066,7 +1066,7 @@ a[aria-disabled="true"] {
margin-left: 230px;
overflow: hidden;
}
.sidebar-hidden #overlay {
.sidebar-hidden #sidebar-overlay {
background-color: rgba(134, 134, 134, 0.5);
bottom: 0;
cursor: pointer;

View file

@ -435,7 +435,7 @@ jQuery(function() {
scrollToActiveMenu();
var sidebarStatus = 'open';
jQuery('#overlay').on('click', function() {
jQuery('#sidebar-overlay').on('click', function() {
jQuery(document.body).toggleClass('sidebar-hidden');
sidebarStatus = (jQuery(document.body).hasClass('sidebar-hidden') ? 'closed' : 'open');
return false;