mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02:33 +00:00
Optimize darkmode medium-zoom style
This commit is contained in:
parent
1ce92c1e64
commit
e57bf4558c
2
layout/_third-party/comments/valine.njk
vendored
2
layout/_third-party/comments/valine.njk
vendored
@ -5,7 +5,7 @@ NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
|
|||||||
NexT.utils.getScript('{{ valine_uri }}', () => {
|
NexT.utils.getScript('{{ valine_uri }}', () => {
|
||||||
new Valine(Object.assign({
|
new Valine(Object.assign({
|
||||||
el : '#valine-comments',
|
el : '#valine-comments',
|
||||||
path : location.pathname,
|
path: location.pathname,
|
||||||
}, {{ theme.valine | json }}
|
}, {{ theme.valine | json }}
|
||||||
));
|
));
|
||||||
}, window.Valine);
|
}, window.Valine);
|
||||||
|
|||||||
@ -80,7 +80,9 @@ NexT.boot.refresh = function() {
|
|||||||
* Need to add config option in Front-End at 'layout/_partials/head.njk' file.
|
* Need to add config option in Front-End at 'layout/_partials/head.njk' file.
|
||||||
*/
|
*/
|
||||||
CONFIG.fancybox && NexT.utils.wrapImageWithFancyBox();
|
CONFIG.fancybox && NexT.utils.wrapImageWithFancyBox();
|
||||||
CONFIG.mediumzoom && window.mediumZoom('.post-body :not(a) > img, .post-body > img');
|
CONFIG.mediumzoom && window.mediumZoom('.post-body :not(a) > img, .post-body > img', {
|
||||||
|
background: 'var(--content-bg-color)'
|
||||||
|
});
|
||||||
CONFIG.lazyload && window.lozad('.post-body img').observe();
|
CONFIG.lazyload && window.lozad('.post-body img').observe();
|
||||||
CONFIG.pangu && window.pangu.spacingPage();
|
CONFIG.pangu && window.pangu.spacingPage();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user