Skip to content

Commit

Permalink
追加:改进 [暗色模式] 中自定义主色调对 变量标签<var> 的字体颜色,并增加 文本阴影[text-shadow]
Browse files Browse the repository at this point in the history
-修复 [暗色模式] 下 变量标签<var> 的字体颜色 无法跟随自定义主色调
-清理重复的代码
  • Loading branch information
SpeedPartner committed May 18, 2023
1 parent 2f80831 commit 04bac79
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
8 changes: 2 additions & 6 deletions htdocs/luci-static/argon/css/cascade.css
Expand Up @@ -1239,7 +1239,8 @@ div.cbi-value var,
td.cbi-value-field var,
.td.cbi-value-field var {
font-style: italic;
color: #0069D6;
color: var(--primary);
text-shadow: 1px 1px 2px #ccc;
}
small {
font-size: 90%;
Expand Down Expand Up @@ -2716,11 +2717,6 @@ td > .ifacebadge,
.cbi-section-remove {
padding: 0.5rem;
}
div.cbi-value var,
td.cbi-value-field var {
font-style: italic;
color: #0069D6;
}
.cbi-optionals {
padding: 1rem 1rem 0 1rem;
border-top: 1px solid #CCC;
Expand Down
6 changes: 4 additions & 2 deletions htdocs/luci-static/argon/css/dark.css
Expand Up @@ -516,9 +516,11 @@ img[src="/luci-static/resources/icons/loading.gif"] {
}

div.cbi-value var,
td.cbi-value-field var {
td.cbi-value-field var,
.td.cbi-value-field var {
color: #483d8b;
color: var(--dark-primary);
color: var(--dark_webkit-any-link);
text-shadow: 1px 1px 2px #000;
}

#diag-rc-output>pre {
Expand Down
9 changes: 2 additions & 7 deletions htdocs/luci-static/argon/less/cascade.less
Expand Up @@ -1473,7 +1473,8 @@ div.cbi-value var,
td.cbi-value-field var,
.td.cbi-value-field var {
font-style: italic;
color: #0069D6;
color: var(--primary);
text-shadow: 1px 1px 2px #ccc;
}

small {
Expand Down Expand Up @@ -3306,12 +3307,6 @@ td>.ifacebadge,
padding: 0.5rem;
}

div.cbi-value var,
td.cbi-value-field var {
font-style: italic;
color: #0069D6;
}


.cbi-optionals {
padding: 1rem 1rem 0 1rem;
Expand Down
6 changes: 4 additions & 2 deletions htdocs/luci-static/argon/less/dark.less
Expand Up @@ -585,9 +585,11 @@ img[src="/luci-static/resources/icons/loading.gif"] {
}

div.cbi-value var,
td.cbi-value-field var {
td.cbi-value-field var,
.td.cbi-value-field var {
color: #483d8b;
color: var(--dark-primary);
color: var(--dark_webkit-any-link);
text-shadow: 1px 1px 2px #000;
}

#diag-rc-output>pre {
Expand Down

0 comments on commit 04bac79

Please sign in to comment.