mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02:33 +00:00
Some minor fixes
This commit is contained in:
parent
b8b3f17aef
commit
9781cf0181
@ -13,6 +13,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="search-result">
|
<div id="search-result">
|
||||||
<div id="no-result">
|
<div id="no-result">
|
||||||
<i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
|
<i class="fa fa-spinner fa-pulse fa-5x"></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -39,8 +39,7 @@ code {
|
|||||||
|
|
||||||
kbd {
|
kbd {
|
||||||
@extend $code-inline;
|
@extend $code-inline;
|
||||||
background-image: linear-gradient(var(--highlight-gutter-background), var(--highlight-background), var(--highlight-gutter-background));
|
border: 2px solid $grey-light;
|
||||||
border: 1px solid $grey-light;
|
|
||||||
border-radius: .2em;
|
border-radius: .2em;
|
||||||
box-shadow: .1em .1em .2em rgba(0, 0, 0, .1);
|
box-shadow: .1em .1em .2em rgba(0, 0, 0, .1);
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
|
|||||||
@ -288,9 +288,10 @@ NexT.utils = {
|
|||||||
initSidebarDimension: function() {
|
initSidebarDimension: function() {
|
||||||
const sidebarNav = document.querySelector('.sidebar-nav');
|
const sidebarNav = document.querySelector('.sidebar-nav');
|
||||||
const sidebarb2t = document.querySelector('.sidebar-inner .back-to-top');
|
const sidebarb2t = document.querySelector('.sidebar-inner .back-to-top');
|
||||||
|
const sidebarNavHeight = sidebarNav ? sidebarNav.offsetHeight : 0;
|
||||||
const sidebarb2tHeight = sidebarb2t ? sidebarb2t.offsetHeight : 0;
|
const sidebarb2tHeight = sidebarb2t ? sidebarb2t.offsetHeight : 0;
|
||||||
const sidebarOffset = CONFIG.sidebar.offset || 12;
|
const sidebarOffset = CONFIG.sidebar.offset || 12;
|
||||||
let sidebarSchemePadding = (CONFIG.sidebar.padding * 2) + sidebarNav.offsetHeight + sidebarb2tHeight;
|
let sidebarSchemePadding = (CONFIG.sidebar.padding * 2) + sidebarNavHeight + sidebarb2tHeight;
|
||||||
if (CONFIG.scheme === 'Pisces' || CONFIG.scheme === 'Gemini') sidebarSchemePadding += sidebarOffset * 2;
|
if (CONFIG.scheme === 'Pisces' || CONFIG.scheme === 'Gemini') sidebarSchemePadding += sidebarOffset * 2;
|
||||||
// Initialize Sidebar & TOC Height.
|
// Initialize Sidebar & TOC Height.
|
||||||
const sidebarWrapperHeight = document.body.offsetHeight - sidebarSchemePadding + 'px';
|
const sidebarWrapperHeight = document.body.offsetHeight - sidebarSchemePadding + 'px';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user