Skip to content

Commit 8941e76

Browse files
committed
优化 [暗黑模式] 样式
1 parent 8b8dede commit 8941e76

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Zhihu-Beautification.user.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ header.is-hidden {
142142
`,
143143
style_6 = `/* 暗黑模式(方案 1) */
144144
/* 文字颜色 */
145-
html[data-theme=dark] body, html[data-theme=dark] .ContentItem-title, html[data-theme=dark] .QuestionHeader-title, html[data-theme=dark] .Tabs-link, html[data-theme=dark] .CreatorEntrance-title {color: #d1d5d9 !important;}
145+
html[data-theme=dark] body, html[data-theme=dark] .ContentItem-title, html[data-theme=dark] .QuestionHeader-title, html[data-theme=dark] .Tabs-link, html[data-theme=dark] .CreatorEntrance-title {color: #adbac7 !important;}
146146
147147
/* 背景颜色 - 网页 */
148148
html[data-theme=dark] body {background: #22272E !important;}
@@ -152,8 +152,11 @@ html[data-theme=dark] .CommentListV2-header-divider, html[data-theme=dark] .Comm
152152
/* 背景颜色 - 用户页面 */
153153
html[data-theme=dark] .ProfileHeader-wrapper, html[data-theme=dark] .UserCover {background: #1c2129 !important;}
154154
155+
/* 背景颜色 - 引用 */
156+
html[data-theme=dark] .ztext blockquote {color: #768390 !important;border-left: 3px solid #3b3b3b !important;}
157+
155158
/* 封面大图/文章头部大图 */
156-
html[data-theme=dark] img.UserCover-image, html[data-theme=dark] img.TitleImage {opacity: 0.8 !important;}
159+
html[data-theme=dark] img.UserCover-image, html[data-theme=dark] img.TitleImage {opacity: 0.7 !important;}
157160
/* 其他图片 */
158161
html[data-theme=dark] img {opacity: 0.9 !important;}
159162
@@ -174,10 +177,10 @@ html {filter: invert(80%) !important;}
174177
img, .ZVideoItem-video, .ZVideo-video {filter: invert(1) !important;}
175178
`,
176179
style_8 = `/* 暗黑模式(方案 3) */
177-
html {filter: brightness(80%) !important;}
180+
html {filter: brightness(75%) !important;}
178181
`,
179182
style_9 = `/* 暗黑模式(方案 4) */
180-
html {filter: brightness(80%) sepia(30%) !important;}
183+
html {filter: brightness(75%) sepia(30%) !important;}
181184
`
182185
let style_Add = document.createElement('style');
183186

0 commit comments

Comments
 (0)