Skip to content

Commit b621863

Browse files
committed
---
yaml --- r: 151189 b: refs/heads/try2 c: 076bbb3 h: refs/heads/master i: 151187: 43254e8 v: v3
1 parent 097f8dd commit b621863

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: b7dba3300e48e87e321dcfcc8db09dd3e69e48ba
8+
refs/heads/try2: 076bbb38c7ee20373ad9e7fcac1068f8736b651c
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustdoc/html/static/main.css

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,25 @@
5353
body {
5454
color: #333;
5555
min-width: 500px;
56-
font: 18px "Heuristica", "Helvetica Neue", Helvetica, Arial, sans-serif;
57-
line-height: 1.4;
56+
font: 15px/1.4 "Heuristica", "Helvetica Neue", Helvetica, Arial, sans-serif;
5857
margin: 0;
5958
position: relative;
6059
padding: 10px 15px 20px 15px;
6160
}
6261

62+
h1 {
63+
font-size: 1.5em;
64+
}
65+
h2 {
66+
font-size: 1.4em;
67+
}
68+
h3 {
69+
font-size: 1.3em;
70+
}
6371
h1, h2, h3:not(.impl), h4:not(.method) {
6472
color: black;
6573
font-weight: 500;
66-
margin: 30px 0 15px 0;
74+
margin: 20px 0 15px 0;
6775
padding-bottom: 6px;
6876
}
6977
h1.fqn {
@@ -93,27 +101,23 @@ ul ul, ol ul, ul ol, ol ol {
93101
}
94102

95103
p {
96-
margin: 0 0 1em 0;
104+
margin: 0 0 .6em 0;
97105
}
98106

99107
code, pre {
100108
font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
101109
white-space: pre-wrap;
102110
}
103111
pre {
104-
font-size: 15px;
112+
background-color: #F5F5F5;
105113
padding: 14px;
106-
padding-right: 0;
107-
border-left: 2px solid #eee;
108114
}
109115

110116
.source pre {
111-
border-left: none;
112117
padding: 20px;
113118
}
114119

115120
nav.sub {
116-
padding-top: 10px;
117121
font-size: 16px;
118122
text-transform: uppercase;
119123
}
@@ -149,7 +153,7 @@ nav.sub {
149153
}
150154

151155
.block {
152-
padding: 10px;
156+
padding: 0 10px;
153157
margin-bottom: 10px;
154158
}
155159
.block h2 {
@@ -170,7 +174,7 @@ nav.sub {
170174
}
171175

172176
.content {
173-
padding: 20px 0;
177+
padding: 15px 0;
174178
}
175179

176180
.content.source pre.rust {
@@ -209,7 +213,6 @@ nav.sub {
209213
}
210214

211215
.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
212-
margin: 30px 0 15px 0;
213216
border-bottom: 1px solid #DDD;
214217
}
215218

@@ -389,10 +392,12 @@ pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
389392
pre.rust .lifetime { color: #B76514; }
390393

391394
.section-header {
395+
/* Override parent class attributes. */
392396
border-bottom: none !important;
393397
font-size: 1.1em !important;
394-
margin: 0 !important;
395-
padding: 0 !important;
398+
font-weight: 400;
399+
margin: 0 0 -5px;
400+
padding: 0;
396401
}
397402
.section-header:hover a:after {
398403
content: '\2002\00a7\2002';

0 commit comments

Comments
 (0)