Skip to content

Commit 2216001

Browse files
committed
rustdoc: fixes
1 parent 6648651 commit 2216001

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/doc/favicon.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<link rel="shortcut icon" href="http://www.rust-lang.org/favicon.ico" />
1+
<link rel="shortcut icon" href="http://www.rust-lang.org/favicon.ico">

src/librustdoc/html/layout.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ r##"<!DOCTYPE html>
3838
3939
<title>{title}</title>
4040
41-
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600'
41+
<link href='http://fonts.googleapis.com/css?family=Source+Code+Pro:400,600'
4242
rel='stylesheet' type='text/css'>
4343
<link rel="stylesheet" type="text/css" href="{root_path}main.css">
4444
45-
{favicon, select, none{} other{<link rel="shortcut icon" href="#" />}}
45+
{favicon, select, none{} other{<link rel="shortcut icon" href="#">}}
4646
</head>
4747
<body>
4848
<!--[if lte IE 8]>

src/librustdoc/html/static/main.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ body {
6363
h1, h2, h3:not(.impl), h4:not(.method) {
6464
color: black;
6565
font-weight: 500;
66-
margin: 30px 0 20px 0;
66+
margin: 30px 0 15px 0;
6767
padding-bottom: 6px;
6868
}
6969
h1.fqn {
@@ -81,7 +81,7 @@ h3.impl, h4.method {
8181
h3.impl {
8282
margin-top: 15px;
8383
}
84-
h1, h2, h3, h4, section.sidebar, a.source, .content a.mod, .search-input {
84+
h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table a {
8585
font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
8686
}
8787

@@ -164,7 +164,7 @@ nav.sub {
164164
padding: 20px 0;
165165
}
166166

167-
.content pre { padding: 20px; }
167+
.content pre { padding: 14px; }
168168
.content.source pre.rust {
169169
white-space: pre;
170170
overflow: auto;
@@ -201,8 +201,7 @@ nav.sub {
201201
}
202202

203203
.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
204-
margin: 40px 0 10px 0;
205-
padding: 10px 0;
204+
margin: 30px 0 15px 0;
206205
border-bottom: 1px solid #DDD;
207206
}
208207

0 commit comments

Comments
 (0)