refactor(css): 移除冗余的样式定义
- 删除了 :root 中关于 .i-text 的重复样式 - 简化了夜间模式下 strong 元素的背景色设置 - 统一了文本颜色的处理方式 - 提高了 CSS 文件的可维护性 - 减少了不必要的 !important 使用 - 优化了主题切换相关的样式逻辑
This commit is contained in:
@@ -3003,21 +3003,6 @@ body {
|
|||||||
-webkit-text-fill-color: initial !important;
|
-webkit-text-fill-color: initial !important;
|
||||||
color: #374151 !important;
|
color: #374151 !important;
|
||||||
}
|
}
|
||||||
:root {
|
|
||||||
:not([data-theme="night"]) .i-text strong {
|
|
||||||
background: none !important;
|
|
||||||
-webkit-background-clip: initial !important;
|
|
||||||
background-clip: initial !important;
|
|
||||||
-webkit-text-fill-color: initial !important;
|
|
||||||
color: #111827 !important;
|
|
||||||
}
|
|
||||||
:not([data-theme="night"]) .i-text span:not(.i-emoji) {
|
|
||||||
background: none !important;
|
|
||||||
-webkit-background-clip: initial !important;
|
|
||||||
background-clip: initial !important;
|
|
||||||
-webkit-text-fill-color: initial !important;
|
|
||||||
color: #374151 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
[data-theme="night"] .i-text strong {
|
[data-theme="night"] .i-text strong {
|
||||||
background: var(--gradient-1) !important;
|
background: var(--gradient-1) !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user