From 57aee324e8f91e6a150dbb707e189a40ef6cdb3d Mon Sep 17 00:00:00 2001 From: W1ndys Date: Fri, 12 Apr 2024 02:17:36 +0800 Subject: [PATCH 1/5] Update mkdocs.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 这个插件配置不用改,就按我写的就行,有个指定路径的配置必须有不能删 --- mkdocs.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index 9dd8660..cbc8cc2 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -149,7 +149,6 @@ extra: plugins: - search #搜索配置 - - markdownextradata: {} - git-committers: enabled: !ENV [CI, false] repository: Wcowin/Mkdocs-Wcowin @@ -261,4 +260,3 @@ extra_css: # - https://cdn.jsdelivr.net/npm/lxgw-wenkai-lite-webfont@1.1.0/style.css #字体 # - https://cdn.jsdelivr.net/npm/lxgw-wenkai-tc-webfont@1.0.0/style.css #字体 # - https://cdn.jsdelivr.net/npm/lxgw-wenkai-screen-webfont@1.1.0/style.css #字体 - From 50f5bcdc8ddd33b34469aa1d1a9dcdbd627a4910 Mon Sep 17 00:00:00 2001 From: W1ndys Date: Fri, 12 Apr 2024 02:19:10 +0800 Subject: [PATCH 2/5] Update mkdocs.yml From ac085e343ceb498434469599f3c337515d407897 Mon Sep 17 00:00:00 2001 From: W1ndys Date: Fri, 12 Apr 2024 02:24:12 +0800 Subject: [PATCH 3/5] Update mkdocs.yml From 48c46f0eb442bb9d2ce63e83bb8a714ff8ebd952 Mon Sep 17 00:00:00 2001 From: W1ndys Date: Fri, 12 Apr 2024 20:13:09 +0800 Subject: [PATCH 4/5] Update extra.css MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加昼夜切换的颜色过渡效果,更加平滑 --- docs/stylesheets/extra.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index ba1f0b0..4b2a12c 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -459,6 +459,25 @@ padding: 20px 0; font-size: 30px; } +/* 添加过渡效果 */ +* { + transition-property: color, background-color; + /* 设置过渡的属性 */ + transition-duration: 0.5s; + /* 设置过渡的时间 */ + transition-timing-function: cubic-bezier(0.01, 0.34, 0.9, 1.14); + /* 设置过渡的缓动函数 */ +} + +/* 屏蔽过渡效果 */ +p, +h1, +h2, +hr { + transition: none !important; +} + +/*上面是过渡效果*/ From 932b1fa4a9ed03a15bccb308c9171914910f6f06 Mon Sep 17 00:00:00 2001 From: W1ndys Date: Mon, 15 Apr 2024 00:06:00 +0800 Subject: [PATCH 5/5] Update extra.css --- docs/stylesheets/extra.css | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 4b2a12c..60f9cb1 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -460,21 +460,25 @@ font-size: 30px; } /* 添加过渡效果 */ + * { transition-property: color, background-color; /* 设置过渡的属性 */ - transition-duration: 0.5s; + transition-duration: 0.3s; /* 设置过渡的时间 */ transition-timing-function: cubic-bezier(0.01, 0.34, 0.9, 1.14); /* 设置过渡的缓动函数 */ } -/* 屏蔽过渡效果 */ -p, -h1, -h2, -hr { - transition: none !important; +/*取消导航栏的背景色和阴影*/ +/*因为左右侧导航栏(目录)的开头背景色是独立的,这里特殊处理一下*/ +@media screen and (min-width: 76.25em) { + + .md-nav--lifted>.md-nav__list>.md-nav__item--active>.md-nav__link, + .md-nav--secondary .md-nav__title { + background: none; + box-shadow: none; + } } /*上面是过渡效果*/