Skip to content

Commit 268b614

Browse files
committed
WCAG AA improvements
1 parent f6db26f commit 268b614

File tree

1 file changed

+35
-10
lines changed

1 file changed

+35
-10
lines changed

website/resources/css/custom.css

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
1+
.main-section a,
2+
.footer a {
3+
text-decoration: underline;
4+
text-underline-offset: 0.15em;
5+
text-decoration-color: #d9230f20;
6+
}
7+
8+
.main-section a:hover,
9+
.main-section a:focus,
10+
.footer a:hover,
11+
.footer a:focus {
12+
text-decoration-color: #91170A;
13+
}
14+
115
.importantNotification {
216
background-color: #FFEBCD;
317
border-radius: 20px;
418
padding: 10px;
519
margin: 10px;
620
}
721

8-
.tidelift-link-inline {
22+
.main-section .tidelift-link-inline {
923
border-radius: 18px;
1024
background-color: #626980;
1125
background-color: #626980;
@@ -15,9 +29,10 @@
1529
background-size: 12px;
1630
padding: 2px 8px 2px 26px;
1731
color: white;
32+
text-decoration-color: #ffffff20;
1833
}
1934

20-
.tidelift-link {
35+
.main-section .tidelift-link {
2136
border-bottom-left-radius: 18px;
2237
border-top-left-radius: 18px;
2338
background-color: #626980;
@@ -32,13 +47,15 @@
3247
background-position: 10px;
3348
background-size: 12px;
3449
padding: 6px 12px 6px 28px;
50+
text-decoration-color: #ffffff20;
3551
}
3652

37-
.tidelift-link:focus,
38-
.tidelift-link-inline:focus,
39-
.tidelift-link:hover,
40-
.tidelift-link-inline:hover {
53+
.main-section .tidelift-link:focus,
54+
.main-section .tidelift-link-inline:focus,
55+
.main-section .tidelift-link:hover,
56+
.main-section .tidelift-link-inline:hover {
4157
color: white;
58+
text-decoration-color: white;
4259
}
4360

4461
#tideliftlink {
@@ -70,6 +87,10 @@ pre {
7087
text-align: center;
7188
}
7289

90+
.main-section a.tideliftb {
91+
text-decoration: none;
92+
}
93+
7394
.tideliftb1 {
7495
background-color: white;
7596
float: left;
@@ -532,8 +553,12 @@ a:not([role=button]):focus {
532553
padding: 0 1em;
533554
}
534555

535-
.sponsored a {
536-
color: #1DA32B;
537-
text-decoration: underline;
538-
text-underline-offset: 0.15em;
556+
.main-section .sponsored a {
557+
color: #008800;
558+
text-decoration-color: currentcolor;
559+
}
560+
561+
.main-section .sponsored a:hover {
562+
color: #008800;
563+
text-decoration-color: currentcolor;
539564
}

0 commit comments

Comments
 (0)