Skip to content

Commit 239189b

Browse files
seabass-labraxgoneall
authored andcommitted
Improve contrast of the specification website
This commit improves the styling of the specification website in order to meet Level AAA of the Web Content Accessibility Guidelines (WCAG) for contrast. To this end, this commit modifies the custom CSS file that overrides some properties of the readthedocs theme for MkDocs: - Change light blue, orange (monospace) and grey text to the dark blue of the SPDX logo, and darken the purple text of visited links - Increase the font size of the footer text - Change the 'previous' and 'next' links in the section sidebar from white on light blue to dark blue on white Signed-off-by: Sebastian Crane <[email protected]>
1 parent 3d15691 commit 239189b

File tree

1 file changed

+15
-27
lines changed

1 file changed

+15
-27
lines changed

chapters/css/style.css

+15-27
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
color: #58595b;
2222
}
2323

24-
.wy-nav-side {
24+
.wy-nav-side, .rst-versions .rst-current-version {
2525
background-color: rgb(250, 250, 250);
2626
}
2727

@@ -30,16 +30,20 @@
3030
}
3131

3232
.wy-breadcrumbs li, .wy-breadcrumbs li a {
33-
color: #4597cb !important;
33+
color: #00416b !important;
34+
}
35+
36+
.wy-menu-vertical>ul>li>a {
37+
color: #515151;
3438
}
3539

3640
.wy-menu-vertical li.on a:hover,.wy-menu-vertical li.current>a {
37-
background: #4597cb;
41+
background: #00416b;
3842
color: white !important;
3943
}
4044

4145
.wy-menu-vertical li.on a:hover,.wy-menu-vertical li>a:hover {
42-
background: #4597cb !important;
46+
background: #00416b !important;
4347
color: white !important;
4448
}
4549

@@ -51,24 +55,16 @@
5155
color: #58595b;
5256
}
5357

54-
.rst-versions {
55-
background: #f7f7f7;
58+
.rst-versions a {
59+
color: #00416b !important;
5660
}
5761

58-
.rst-versions .rst-current-version {
59-
background: #4597cb;
60-
}
61-
62-
div.section a, div.section a:visited {
63-
color: #4597cb !important;
64-
}
65-
66-
h1, h2, h3 {
67-
color: #4597cb;
62+
h1, h2, h3, a {
63+
color: #00416b;
6864
}
6965

7066
code {
71-
color: rgb(51, 51, 51);
67+
color: #00416b !important;
7268
}
7369

7470
code, .rst-content tt {
@@ -100,23 +96,15 @@ pre code {
10096
}
10197

10298
footer {
103-
font-size: .6em;
104-
color: #d3d3d3;
99+
font-size: 1em;
100+
color: #515151;
105101
}
106102

107103
footer a.btn {
108104
box-shadow: none;
109105
}
110106

111-
footer div[role=contentinfo] p {
112-
font-size: 1.2em;
113-
}
114-
115107
footer .rst-footer-buttons {
116108
font-size: 16px;
117109
color: rgb(64, 64, 64);
118110
}
119-
120-
footer>a, footer>a:visited {
121-
color: #d3d3d3 !important;
122-
}

0 commit comments

Comments
 (0)