Skip to content

Commit

Permalink
Dark mode link hover: increase brightness instead lower opacity. (#8494)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Jan 29, 2025
1 parent abc47eb commit 7fc9704
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions pkg/web_css/lib/src/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ a {
text-decoration: none;
color: var(--pub-link-text-color);
cursor: pointer;
opacity: 1;

&:hover {
opacity: 0.8;
}

// TODO: fix style to not use bgColor as text and text color as background
&.link-button {
Expand All @@ -106,6 +101,20 @@ a {
display: inline-block;
padding: 4px 12px;
}

.light-theme & {
opacity: 1;

&:hover {
opacity: 0.8;
}
}

.dark-theme & {
&:hover {
filter: brightness(120%);
}
}
}

main {
Expand Down

0 comments on commit 7fc9704

Please sign in to comment.