mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02:33 +00:00
Update dependency eslint-config-theme-next to v1.2.0 (#32)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
This commit is contained in:
parent
b8e2ce84cb
commit
8fd0c5a0fd
@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "theme-next",
|
"extends": "theme-next",
|
||||||
"parserOptions": {
|
|
||||||
"ecmaVersion": 2018
|
|
||||||
},
|
|
||||||
"root": true
|
"root": true
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
"homepage": "https://theme-next.js.org",
|
"homepage": "https://theme-next.js.org",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "7.1.0",
|
"eslint": "7.1.0",
|
||||||
"eslint-config-theme-next": "1.1.4",
|
"eslint-config-theme-next": "1.2.0",
|
||||||
"gulp": "4.0.2",
|
"gulp": "4.0.2",
|
||||||
"gulp-shell": "0.8.0",
|
"gulp-shell": "0.8.0",
|
||||||
"js-yaml": "3.14.0",
|
"js-yaml": "3.14.0",
|
||||||
|
|||||||
@ -320,7 +320,7 @@ NexT.utils = {
|
|||||||
const sidebarb2t = document.querySelector('.sidebar-inner .back-to-top');
|
const sidebarb2t = document.querySelector('.sidebar-inner .back-to-top');
|
||||||
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) + sidebarNav.offsetHeight + 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