Optimize darkmode medium-zoom style

This commit is contained in:
Mimi 2020-06-10 12:21:29 +08:00
parent 1ce92c1e64
commit e57bf4558c
2 changed files with 5 additions and 3 deletions

View File

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

View File

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