mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Fix class name conflict with pandoc
* See: https://github.com/next-theme/hexo-theme-next/issues/521
This commit is contained in:
parent
431540f4a0
commit
f31c10d329
@ -9,7 +9,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
.header {
|
||||
// Fix issue #521
|
||||
header.header {
|
||||
background: $head-bg;
|
||||
}
|
||||
|
||||
@ -24,7 +25,7 @@
|
||||
}
|
||||
|
||||
.use-motion {
|
||||
.header, .site-brand-container .toggle {
|
||||
header.header, .site-brand-container .toggle {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ body { margin-top: 2rem; }
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.use-motion .header,
|
||||
.use-motion header.header,
|
||||
.use-motion .site-brand-container .toggle,
|
||||
.use-motion .footer { opacity: initial; }
|
||||
|
||||
|
||||
@ -51,7 +51,7 @@ NexT.motion.middleWares = {
|
||||
});
|
||||
}
|
||||
|
||||
pushToSequence('.header');
|
||||
pushToSequence('header.header');
|
||||
CONFIG.scheme === 'Mist' && getMistLineSettings('.logo-line');
|
||||
CONFIG.scheme === 'Muse' && pushToSequence('.custom-logo-image');
|
||||
pushToSequence('.site-title');
|
||||
|
||||
@ -50,7 +50,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
function updateFooterPosition() {
|
||||
const footer = document.querySelector('.footer');
|
||||
const containerHeight = document.querySelector('.header').offsetHeight + document.querySelector('.main').offsetHeight + footer.offsetHeight;
|
||||
const containerHeight = document.querySelector('header.header').offsetHeight + document.querySelector('.main').offsetHeight + footer.offsetHeight;
|
||||
footer.classList.toggle('footer-fixed', containerHeight <= window.innerHeight);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user