Skip to content

Commit 615c0bc

Browse files
authored
Adjust style for page source and bug report icons (#5014)
- (from site-shared) Switches to Material Icons to work towards removing Font Awesome which slows down site loading (#3790) - Adds hover and active styles - Replaces focus style which comes from the underlying bootstrap button but doesn't match the rest of the site. <img width="84" alt="Example with page source focused" src="https://github.com/dart-lang/site-www/assets/18372958/9b2a7265-b92e-4dc3-a0f2-1884a7c2772a">
1 parent ffaf6df commit 615c0bc

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/_sass/site.scss

+12-2
Original file line numberDiff line numberDiff line change
@@ -662,10 +662,20 @@ ul.nav-list {
662662
$padding-x: bootstrap.$btn-padding-x * 0.5;
663663
padding-left: $padding-x;
664664
padding-right: $padding-x;
665+
border: none;
666+
box-shadow: none;
667+
668+
&:hover, &:focus-visible {
669+
color: $brand-primary;
670+
}
671+
672+
&:active {
673+
color: lighten($brand-primary, 25%);
674+
}
665675
}
666676

667-
.fa-sm {
668-
font-size: 14px;
677+
.material-icons {
678+
font-size: 18px;
669679
}
670680
}
671681

0 commit comments

Comments
 (0)