Skip to content

Commit 4de77cb

Browse files
Add comments
1 parent bc04245 commit 4de77cb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

assets/sass/protocol/base/elements/_links.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,33 @@ a {
2020
}
2121
}
2222

23+
// check support and fallback of :where
2324
a:where(:visited) {
2425
--link-color: var(--link-color-visited);
2526
--link-color-hover: var(--link-color-visited-hover);
2627
}
2728

29+
// any descendant link will inherit dark theming (replace light-links mixin)
30+
// this might belong in root file? site-wide dark theme class
2831
.mzp-t-dark {
2932
--link-color: var(--link-color-inverse);
3033
--link-color-hover: var(--link-color-hover-inverse);
3134
--link-color-visited: var(--link-color-visited-inverse);
3235
--link-color-visited-hover:var(--link-color-visited-hover-inverse);
3336
}
3437

38+
// any descendant link will inherit white theming (replace white-links mixin)
39+
// link-specific theme class
3540
.mzp-t-white-links {
3641
--link-color: $color-white;
3742
--link-color-hover: $color-white;
3843
--link-color-visited: $color-white;
3944
--link-color-visited-hover: $color-white;
4045
}
4146

47+
// this might belong in a different CTA file?
48+
// it's not meant to apply to `a` elements unless they have the class added directly
49+
// the other classes in this file are theme containers that select `a` elements inside them
4250
.mzp-c-cta-link {
4351
font-family: var(--button-font-family);
4452
font-weight: bold;

0 commit comments

Comments
 (0)