Skip to content

Commit

Permalink
🐛 修复黑幕在 dark 模式下不起作用的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
KomoriDev committed Feb 15, 2024
1 parent b98b530 commit 40c3ac6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docs/src/css/heimu.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ span.heimu a.mw-redirect {
span.heimu:hover,
span.heimu:active {
color: white;

html[data-theme="dark"] & {
color: white;
}
}

span.heimu:hover a,
Expand Down Expand Up @@ -74,7 +78,7 @@ a.extiw:visited:hover span.heimu {
background-color: var(--ifm-color-secondary-dark);
color: var(--ifm-color-secondary-dark);

html.dark & {
html[data-theme="dark"] & {
background-color: var(--ifm-color-secondary-light);
color: var(--ifm-color-secondary-light);
}
Expand All @@ -84,7 +88,7 @@ a.extiw:visited:hover span.heimu {
background-color: var(--ifm-color-success-light);
color: var(--ifm-color-success-light);

html.dark & {
html[data-theme="dark"] & {
background-color: var(--ifm-color-success-dark);
color: var(--ifm-color-success-dark);
}
Expand All @@ -94,7 +98,7 @@ a.extiw:visited:hover span.heimu {
background-color: var(--ifm-color-info-light);
color: var(--ifm-color-info-light);

html.dark & {
html[data-theme="dark"] & {
background-color: var(--ifm-color-info-dark);
color: var(--ifm-color-info-dark);
}
Expand All @@ -104,7 +108,7 @@ a.extiw:visited:hover span.heimu {
background-color: var(--ifm-color-warning-light);
color: var(--ifm-color-warning-light);

html.dark & {
html[data-theme="dark"] & {
background-color: var(--ifm-color-warning-dark);
color: var(--ifm-color-warning-dark);
}
Expand All @@ -114,7 +118,7 @@ a.extiw:visited:hover span.heimu {
background-color: var(--ifm-color-danger-light);
color: var(--ifm-color-danger-light);

html.dark & {
html[data-theme="dark"] & {
background-color: var(--ifm-color-danger-dark);
color: var(--ifm-color-danger-dark);
}
Expand Down

0 comments on commit 40c3ac6

Please sign in to comment.