mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00: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>
|
</head>
|
||||||
<body class="default-animation" data-url="/">
|
<body class="default-animation" data-url="/">
|
||||||
<div id="body default-animation" style="margin-left:0px;">
|
<div id="body default-animation" style="margin-left:0px;">
|
||||||
<div id="overlay"></div>
|
<div id="sidebar-overlay"></div>
|
||||||
<main id="body-inner" class="chapter">
|
<main id="body-inner" class="chapter">
|
||||||
<h1>{{ T "title-404" }}</h1>
|
<h1>{{ T "title-404" }}</h1>
|
||||||
<p></p>
|
<p></p>
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<body class="default-animation" data-url="{{ .RelPermalink }}">
|
<body class="default-animation" data-url="{{ .RelPermalink }}">
|
||||||
{{- partial "menu.html" . }}
|
{{- partial "menu.html" . }}
|
||||||
<div id="body" class="default-animation">
|
<div id="body" class="default-animation">
|
||||||
<div id="overlay"></div>
|
<div id="sidebar-overlay"></div>
|
||||||
<div class="padding highlightable">
|
<div class="padding highlightable">
|
||||||
<div id="top-bar"><div>
|
<div id="top-bar"><div>
|
||||||
{{- $showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev)) }}
|
{{- $showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev)) }}
|
||||||
|
|
|
@ -1066,7 +1066,7 @@ a[aria-disabled="true"] {
|
||||||
margin-left: 230px;
|
margin-left: 230px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.sidebar-hidden #overlay {
|
.sidebar-hidden #sidebar-overlay {
|
||||||
background-color: rgba(134, 134, 134, 0.5);
|
background-color: rgba(134, 134, 134, 0.5);
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
@ -435,7 +435,7 @@ jQuery(function() {
|
||||||
scrollToActiveMenu();
|
scrollToActiveMenu();
|
||||||
|
|
||||||
var sidebarStatus = 'open';
|
var sidebarStatus = 'open';
|
||||||
jQuery('#overlay').on('click', function() {
|
jQuery('#sidebar-overlay').on('click', function() {
|
||||||
jQuery(document.body).toggleClass('sidebar-hidden');
|
jQuery(document.body).toggleClass('sidebar-hidden');
|
||||||
sidebarStatus = (jQuery(document.body).hasClass('sidebar-hidden') ? 'closed' : 'open');
|
sidebarStatus = (jQuery(document.body).hasClass('sidebar-hidden') ? 'closed' : 'open');
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue