Skip to content

Commit 98bd683

Browse files
committed
auto merge of #7184 : smvv/rust/doc_css, r=brson
After reading issue #7077, all header elements had a border. In my opinion those borders are a bit too much distraction. I tried a different approach with increasing the padding and font size, and omitting the borders. Comparison: http://smvv.io/rust-doc/std/hashmap.html http://static.rust-lang.org/doc/std/hashmap.html Note: the highlighted code blocks are not caused by this commit. I left the border of the code block / function signature as is. The reason behind that is that code blocks are really block elements, while headers are not. What do you guys think?
2 parents 3495737 + 64ccc60 commit 98bd683

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

doc/rust.css

+9-12
Original file line numberDiff line numberDiff line change
@@ -12,41 +12,38 @@ body {
1212
}
1313

1414
h1 {
15-
font-size: 20pt;
16-
margin-top: 2em;
15+
font-size: 24pt;
16+
margin-top: 1.6em;
1717
padding-left: 0.4em;
1818
line-height: 1.6em;
1919
background-color:#FFF2CE;
2020
border-radius: 0.2em;
21-
border: 1px solid rgba(0, 0, 0, 0.15);
2221
}
2322

2423
h2 {
25-
font-size: 15pt;
26-
margin-top: 2em;
27-
padding-left: 0.4em;
24+
font-size: 16pt;
25+
margin-top: 1.6em;
26+
padding: 0.2em 0.5em;
2827
background-color:#FFF2CE;
2928
border-radius: 0.4em;
30-
border: 1px solid rgba(0, 0, 0, 0.15);
3129
}
3230

3331
h2 code {
3432
color: #097334;
35-
font-size: 15pt;
33+
font-size: 16pt;
3634
}
3735

3836
h3 {
39-
font-size: 13pt;
37+
font-size: 14pt;
4038
color: black;
4139
background-color:#D9E7FF;
4240
border-radius: 0.4em;
43-
border: 1px solid rgba(0, 0, 0, 0.15);
44-
padding: 0 0.4em 0 0.4em;
41+
padding: 0.2em 0.5em;
4542
}
4643

4744
h3 code {
4845
color: #541800;
49-
font-size: 13pt;
46+
font-size: 14pt;
5047
font-style: italic;
5148
}
5249

0 commit comments

Comments
 (0)