From 2df17f5447461f9a5d14f0e42b37c81d9b1d2f7b Mon Sep 17 00:00:00 2001 From: fly316 Date: Tue, 10 Jun 2025 13:23:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E4=BA=86=E6=94=BE=E5=A4=A7=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E9=83=A8=E5=88=86=E4=B8=8E=E9=BB=91=E7=99=BD=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E5=88=87=E6=8D=A2=E5=9C=A8=E5=B0=8F=E5=B1=8F=E5=B9=95?= =?UTF-8?q?=E4=BC=9A=E5=92=8C=E6=A0=87=E9=A2=98=E9=87=8D=E5=90=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/darkmode.css | 2 +- static/fontsize.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/static/darkmode.css b/static/darkmode.css index a2b83d9..c930968 100644 --- a/static/darkmode.css +++ b/static/darkmode.css @@ -17,7 +17,7 @@ /*更改切换按钮的位置跟紫薯统计错开*/ button[onclick="docsifyDarkSwitcher()"] { position: fixed; - left: 10px; + right: 10px; } /*更改左下角菜单按钮防止跟深色模式冲突*/ diff --git a/static/fontsize.js b/static/fontsize.js index e3a680f..9f2a76e 100644 --- a/static/fontsize.js +++ b/static/fontsize.js @@ -66,7 +66,7 @@ function styleInject(css, ref) { var css = ` .markdown-section { - --font-size: 15px; + --font-size: 17px; font-size: var(--font-size); } @@ -105,7 +105,7 @@ var css = ` button.font-size-button { position: absolute; top: 15px; - left: 55px; + right: 55px; padding: 6px; background: transparent; cursor: pointer; @@ -116,7 +116,7 @@ button.font-size-button { } button.font-size-button[onclick="adjustFontSize('decrease')"] { - left: 100px; + right: 100px; } .docsify-dark-mode button.font-size-button { @@ -126,7 +126,7 @@ button.font-size-button[onclick="adjustFontSize('decrease')"] { .font-size-display { position: absolute; top: 17px; - left: 139px; + right: 139px; background: transparent; font-size: 16px !important; z-index: 1000; @@ -136,7 +136,7 @@ button.font-size-button[onclick="adjustFontSize('decrease')"] { @media (max-width: 768px) { .font-size-display { top: 40px; - left:10px; + right:10px; } }