Skip to content

Commit 890f06f

Browse files
pickfireJoshua Nelson
authored andcommitted
Fix contrast on pure-css menu link when hover
Superseeds #1162
1 parent ad59ebb commit 890f06f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates/style/_navbar.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ div.nav-container {
4444
background-color: inherit;
4545
}
4646

47+
// Improves menu link readability when inverting the colors on focus.
48+
// Vendor do background-color #eee, looks weird on different theme.
49+
&:focus {
50+
color: var(--color-background);
51+
background-color: var(--color-doc-link-background);
52+
}
53+
4754
&.crate-name {
4855
text-overflow: ellipsis;
4956
overflow: hidden;

0 commit comments

Comments
 (0)