修了放大字体部分与黑白主题切换在小屏幕会和标题重合的问题

This commit is contained in:
fly316 2025-06-10 13:23:03 +08:00
parent 784fc26311
commit 2df17f5447
2 changed files with 6 additions and 6 deletions

View File

@ -17,7 +17,7 @@
/*更改切换按钮的位置跟紫薯统计错开*/
button[onclick="docsifyDarkSwitcher()"] {
position: fixed;
left: 10px;
right: 10px;
}
/*更改左下角菜单按钮防止跟深色模式冲突*/

View File

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