Skip to content

Commit 7fc9704

Browse files
authored
Dark mode link hover: increase brightness instead lower opacity. (#8494)
1 parent abc47eb commit 7fc9704

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

pkg/web_css/lib/src/_base.scss

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,6 @@ a {
9393
text-decoration: none;
9494
color: var(--pub-link-text-color);
9595
cursor: pointer;
96-
opacity: 1;
97-
98-
&:hover {
99-
opacity: 0.8;
100-
}
10196

10297
// TODO: fix style to not use bgColor as text and text color as background
10398
&.link-button {
@@ -106,6 +101,20 @@ a {
106101
display: inline-block;
107102
padding: 4px 12px;
108103
}
104+
105+
.light-theme & {
106+
opacity: 1;
107+
108+
&:hover {
109+
opacity: 0.8;
110+
}
111+
}
112+
113+
.dark-theme & {
114+
&:hover {
115+
filter: brightness(120%);
116+
}
117+
}
109118
}
110119

111120
main {

0 commit comments

Comments
 (0)