Skip to content

Commit f63692d

Browse files
committed
优化 [暗黑模式] 样式一
1 parent 09e44e6 commit f63692d

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Zhihu-Beautification.user.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ header.is-hidden {display: none;}
154154
`,
155155
style_darkMode_1 = `/* 暗黑模式(方案 1) */
156156
/* 文字颜色 */
157-
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, html[data-theme=dark] .Search-container, html[data-theme=dark] .HotItem-excerpt, html[data-theme=dark] .PushNotifications-item, html[data-theme=dark] .Notifications-Main>header h1, html[data-theme=dark] .Notifications-Section-header h2, html[data-theme=dark] .NotificationList-Item-content, html[data-theme=dark] .Reward, html[data-theme=dark] .ChatSideBar-Search-Input input, html[data-theme=dark] input.Input {color: #adbac7 !important;}
157+
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, html[data-theme=dark] .Search-container, html[data-theme=dark] .HotItem-excerpt, html[data-theme=dark] .PushNotifications-item, html[data-theme=dark] .Notifications-Main>header h1, html[data-theme=dark] .Notifications-Section-header h2, html[data-theme=dark] .NotificationList-Item-content, html[data-theme=dark] .Reward, html[data-theme=dark] .ChatSideBar-Search-Input input, html[data-theme=dark] input.Input, html[data-theme=dark] .LinkCard-title, html[data-theme=dark] .MCNLinkCard-title, html[data-theme=dark] .ZVideoLinkCard-title {color: #adbac7 !important;}
158+
html[data-theme=dark] .LinkCard-meta, html[data-theme=dark] .MCNLinkCard-source {color: #5a6f83 !important;}
158159
/* 热榜标题 */
159160
html[data-theme=dark] .HotItem-title {color: #c4cfda !important;}
160161
/* 首页信息流标题 */
@@ -172,6 +173,12 @@ html[data-theme=dark] .CornerButton:hover {background: #3f4752 !important;} /*
172173
/* 背景颜色 - 引用 */
173174
html[data-theme=dark] .ztext blockquote {color: #768390 !important;border-left: 3px solid #3b3b3b !important;}
174175
176+
/* 背景颜色 - 卡片 */
177+
html[data-theme=dark] .MCNLinkCard, html[data-theme=dark] .LinkCard-content, html[data-theme=dark] .ZVideoLinkCard-info {background-color: #22272e !important;}
178+
html[data-theme=dark] .Post-content .MCNLinkCard, html[data-theme=dark] .Post-content .LinkCard-content, html[data-theme=dark] .Post-content .ZVideoLinkCard-info {background-color: #2D333B !important;}
179+
html[data-theme=dark] .LinkCard-backdrop {background-image: url() !important;}
180+
181+
175182
/* 搜索框 */
176183
html[data-theme=dark] .Input-wrapper.Input-wrapper--grey, html[data-theme=dark] .ChatSideBar-Search-Input input {background: #333a44 !important;}
177184
@@ -223,7 +230,7 @@ html {scrollbar-width: thin; scrollbar-color: #3f4752 #22272e;}
223230
224231
/* 背景颜色 - 专栏/文章 */
225232
html[data-theme=dark] .WhiteBg-body, html[data-theme=dark] .Post-content {background: #22272E !important;}
226-
html[data-theme=dark] .ColumnPageHeader {background: #1c2129 !important;}
233+
html[data-theme=dark] .ColumnPageHeader, html[data-theme=dark] .BottomInfo {background: #1c2129 !important;}
227234
228235
/* 按钮颜色 */
229236
.TopstoryTabs-link.is-active, html[data-theme=dark] .TopstoryTabs-link.is-active, html[data-theme=dark] .VoteButton, .Tag, html[data-theme=dark] .Tag, html[data-theme=dark] .HotListNav-item.is-active, html[data-theme=dark] .RichText a.UserLink-link {color: #3faaff !important;}

0 commit comments

Comments
 (0)