Fix class name conflict with pandoc

* See: https://github.com/next-theme/hexo-theme-next/issues/521
This commit is contained in:
Mimi 2022-05-14 12:12:47 +08:00
parent 431540f4a0
commit f31c10d329
4 changed files with 6 additions and 5 deletions

View File

@ -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;
}
}

View File

@ -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; }

View File

@ -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');

View File

@ -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);
}