mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
theme: rename topbar div for consistency #210
This commit is contained in:
parent
bf44b52dd1
commit
9bc7fe86c2
4 changed files with 8 additions and 8 deletions
|
@ -28,7 +28,7 @@
|
||||||
{{- partial "menu.html" . }}
|
{{- partial "menu.html" . }}
|
||||||
<div id="body" class="default-animation">
|
<div id="body" class="default-animation">
|
||||||
<div id="sidebar-overlay"></div>
|
<div id="sidebar-overlay"></div>
|
||||||
<div id="top-bar" class="highlightable">
|
<div id="topbar" class="highlightable">
|
||||||
<div>
|
<div>
|
||||||
{{- $showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev)) }}
|
{{- $showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev)) }}
|
||||||
{{- if $showPrevNext }}
|
{{- if $showPrevNext }}
|
||||||
|
|
|
@ -25,7 +25,7 @@ code.copy-to-clipboard-code {
|
||||||
pre {
|
pre {
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
}
|
}
|
||||||
#body #top-bar{
|
#body #topbar{
|
||||||
background-color: #fff; /* avoid background bleeding*/
|
background-color: #fff; /* avoid background bleeding*/
|
||||||
border-bottom: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
@ -97,7 +97,7 @@ hr{
|
||||||
#breadcrumbs .links {
|
#breadcrumbs .links {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
#top-bar{
|
#topbar{
|
||||||
/* the header is sticky which is not suitable for print; */
|
/* the header is sticky which is not suitable for print; */
|
||||||
position: inherit; /* IE11 doesn't know "initial" here */
|
position: inherit; /* IE11 doesn't know "initial" here */
|
||||||
}
|
}
|
||||||
|
|
|
@ -919,7 +919,7 @@ td {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#top-bar {
|
#topbar {
|
||||||
background-color: #ffffff; /* var(--MAIN-BG-color) */
|
background-color: #ffffff; /* var(--MAIN-BG-color) */
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
height: 0;
|
height: 0;
|
||||||
|
@ -929,7 +929,7 @@ td {
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
}
|
}
|
||||||
|
|
||||||
#top-bar > div {
|
#topbar > div {
|
||||||
background-color: rgba( 134, 134, 134, .066 );
|
background-color: rgba( 134, 134, 134, .066 );
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,10 +54,10 @@ function initStickyHeader(){
|
||||||
// add marker when not in top position; allows users
|
// add marker when not in top position; allows users
|
||||||
// to change styles (eg. add a dropshadow)
|
// to change styles (eg. add a dropshadow)
|
||||||
if ($(this).scrollTop() == 0) {
|
if ($(this).scrollTop() == 0) {
|
||||||
$('#top-bar').removeClass("is-sticky");
|
$('#topbar').removeClass("is-sticky");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$('#top-bar').addClass("is-sticky");
|
$('#topbar').addClass("is-sticky");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
markSticky();
|
markSticky();
|
||||||
|
@ -504,7 +504,7 @@ jQuery(function() {
|
||||||
$(".highlightable").highlight(sessionStorage.getItem('search-value'), { element: 'mark' });
|
$(".highlightable").highlight(sessionStorage.getItem('search-value'), { element: 'mark' });
|
||||||
$("mark").parents(".expand").addClass("expand-marked");
|
$("mark").parents(".expand").addClass("expand-marked");
|
||||||
|
|
||||||
$('#top-bar a:not(:has(img)):not(.btn)').addClass('highlight');
|
$('#topbar a:not(:has(img)):not(.btn)').addClass('highlight');
|
||||||
$('#body-inner a:not(:has(img)):not(.btn):not(a[rel="footnote"])').addClass('highlight');
|
$('#body-inner a:not(:has(img)):not(.btn):not(a[rel="footnote"])').addClass('highlight');
|
||||||
|
|
||||||
sessionStorage.setItem(jQuery('body').data('url'), 1);
|
sessionStorage.setItem(jQuery('body').data('url'), 1);
|
||||||
|
|
Loading…
Reference in a new issue