Skip to content

Commit

Permalink
rustdoc: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adrientetar committed Apr 25, 2014
1 parent 6648651 commit 2216001
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/doc/favicon.inc
@@ -1 +1 @@
<link rel="shortcut icon" href="http://www.rust-lang.org/favicon.ico" />
<link rel="shortcut icon" href="http://www.rust-lang.org/favicon.ico">
4 changes: 2 additions & 2 deletions src/librustdoc/html/layout.rs
Expand Up @@ -38,11 +38,11 @@ r##"<!DOCTYPE html>
<title>{title}</title>
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600'
<link href='http://fonts.googleapis.com/css?family=Source+Code+Pro:400,600'
rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="{root_path}main.css">
{favicon, select, none{} other{<link rel="shortcut icon" href="#" />}}
{favicon, select, none{} other{<link rel="shortcut icon" href="#">}}
</head>
<body>
<!--[if lte IE 8]>
Expand Down
9 changes: 4 additions & 5 deletions src/librustdoc/html/static/main.css
Expand Up @@ -63,7 +63,7 @@ body {
h1, h2, h3:not(.impl), h4:not(.method) {
color: black;
font-weight: 500;
margin: 30px 0 20px 0;
margin: 30px 0 15px 0;
padding-bottom: 6px;
}
h1.fqn {
Expand All @@ -81,7 +81,7 @@ h3.impl, h4.method {
h3.impl {
margin-top: 15px;
}
h1, h2, h3, h4, section.sidebar, a.source, .content a.mod, .search-input {
h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table a {
font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

Expand Down Expand Up @@ -164,7 +164,7 @@ nav.sub {
padding: 20px 0;
}

.content pre { padding: 20px; }
.content pre { padding: 14px; }
.content.source pre.rust {
white-space: pre;
overflow: auto;
Expand Down Expand Up @@ -201,8 +201,7 @@ nav.sub {
}

.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
margin: 40px 0 10px 0;
padding: 10px 0;
margin: 30px 0 15px 0;
border-bottom: 1px solid #DDD;
}

Expand Down

0 comments on commit 2216001

Please sign in to comment.