Skip to content

Commit 2bf25a7

Browse files
committed
rustdoc: fix a few inconsistencies
1 parent 076bbb3 commit 2bf25a7

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/librustdoc/html/static/main.css

+9-8
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
body {
5454
color: #333;
5555
min-width: 500px;
56-
font: 15px/1.4 "Heuristica", "Helvetica Neue", Helvetica, Arial, sans-serif;
56+
font: 15.5px/1.4 "Heuristica", "Helvetica Neue", Helvetica, Arial, sans-serif;
5757
margin: 0;
5858
position: relative;
5959
padding: 10px 15px 20px 15px;
@@ -68,7 +68,7 @@ h2 {
6868
h3 {
6969
font-size: 1.3em;
7070
}
71-
h1, h2, h3:not(.impl), h4:not(.method) {
71+
h1, h2, h3:not(.impl):not(.method), h4:not(.method) {
7272
color: black;
7373
font-weight: 500;
7474
margin: 20px 0 15px 0;
@@ -78,15 +78,15 @@ h1.fqn {
7878
border-bottom: 1px dashed #D5D5D5;
7979
margin-top: 0;
8080
}
81-
h2, h3:not(.impl), h4:not(.method) {
81+
h2, h3:not(.impl):not(.method), h4:not(.method) {
8282
border-bottom: 1px solid #DDDDDD;
8383
}
84-
h3.impl, h4.method {
84+
h3.impl, h3.method, h4.method {
8585
font-weight: 600;
8686
margin-top: 10px;
8787
margin-bottom: 10px;
8888
}
89-
h3.impl {
89+
h3.impl, h3.method {
9090
margin-top: 15px;
9191
}
9292
h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table a {
@@ -211,6 +211,7 @@ nav.sub {
211211
text-overflow: ellipsis;
212212
margin: 0;
213213
}
214+
.docblock.short code { white-space: nowrap; }
214215

215216
.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
216217
border-bottom: 1px solid #DDD;
@@ -366,9 +367,10 @@ a {
366367
.stability {
367368
border-left: 6px solid #000;
368369
border-radius: 3px;
369-
padding: 2px 10px;
370+
font-weight: 400;
371+
padding: 4px 10px;
370372
text-transform: lowercase;
371-
margin-left: 10px;
373+
margin-left: 14px;
372374
}
373375

374376
.stability.Deprecated { border-color: #D60027; color: #880017; }
@@ -395,7 +397,6 @@ pre.rust .lifetime { color: #B76514; }
395397
/* Override parent class attributes. */
396398
border-bottom: none !important;
397399
font-size: 1.1em !important;
398-
font-weight: 400;
399400
margin: 0 0 -5px;
400401
padding: 0;
401402
}

0 commit comments

Comments
 (0)