mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 10:50:24 +00:00
theme: rename sidebar overlay #210
because we will introduce a second toc overlay soon
This commit is contained in:
parent
7eee4a86d8
commit
a980b77491
4 changed files with 4 additions and 4 deletions
|
@ -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>
|
||||
|
|
|
@ -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)) }}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue