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; } }