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

@ -4,8 +4,8 @@
NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
NexT.utils.getScript('{{ valine_uri }}', () => {
new Valine(Object.assign({
el : '#valine-comments',
path : location.pathname,
el : '#valine-comments',
path: location.pathname,
}, {{ theme.valine | json }}
));
}, 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.
*/
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.pangu && window.pangu.spacingPage();