From d3de78720719cb4e704380ca1c893a3ec3ff8d71 Mon Sep 17 00:00:00 2001 From: Coding Zhang <2291200076@qq.com> Date: Sun, 26 Dec 2021 20:25:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=8F=98=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +++- docs/.vuepress/config.js | 5 +++-- docs/.vuepress/public/css/search.css | 11 +++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 61133e6..173b536 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ node_modules .temp .cache -*.lnk \ No newline at end of file +*.lnk + +docs/.vuepress/dist \ No newline at end of file diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 7d60bc5..4f59df5 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -19,10 +19,11 @@ module.exports = { // https://v2.vuepress.vuejs.org/zh/reference/plugin-api.html#extendsmarkdown extendsMarkdown: (md) => { // https://github.com/MakerGYT/markdown-it-latex2img - // md.use(require("markdown-it-latex2img")); + md.use(require("markdown-it-latex2img")); + // 这个会让内部超链接失效(应该是vue没有渲染完导致的?) // https://github.com/MakerGYT/markdown-it-latex2img - md.use(require("markdown-it-mathjax3")); + // md.use(require("markdown-it-mathjax3")); md.linkify.set({ fuzzyEmail: false }); diff --git a/docs/.vuepress/public/css/search.css b/docs/.vuepress/public/css/search.css index ea5891c..6c3c32e 100644 --- a/docs/.vuepress/public/css/search.css +++ b/docs/.vuepress/public/css/search.css @@ -4,6 +4,17 @@ --search-result-width: 25rem; } +/* 暗黑模式下,透明图内容看不清,设置为白色背景 */ +/* 文章的图片 */ +html.dark .page img, + +/* 点击放大的大图 */ +html.dark .medium-zoom-image { + background-color: white; + background-color: yellow; +filter:alpha(style=0, opacity=40, finishopacity=40); +} + /* :root {