diff options
| author | Adrien Tétar <adri-from-59@hotmail.fr> | 2014-04-25 16:56:39 +0900 |
|---|---|---|
| committer | Adrien Tétar <adri-from-59@hotmail.fr> | 2014-04-25 16:56:39 +0900 |
| commit | 22160014a4195f12dcef70e800de2ffc2cc7a981 (patch) | |
| tree | 2195cae468b7fc1b889428fd0fe1ffdb6e4773bd /src | |
| parent | 66486518d5e1e4f0850024386b66a7aa790fc32f (diff) | |
| download | rust-22160014a4195f12dcef70e800de2ffc2cc7a981.tar.gz rust-22160014a4195f12dcef70e800de2ffc2cc7a981.zip | |
rustdoc: fixes
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/favicon.inc | 2 | ||||
| -rw-r--r-- | src/librustdoc/html/layout.rs | 4 | ||||
| -rw-r--r-- | src/librustdoc/html/static/main.css | 9 |
3 files changed, 7 insertions, 8 deletions
diff --git a/src/doc/favicon.inc b/src/doc/favicon.inc index b68c58c9b61..51609a660d3 100644 --- a/src/doc/favicon.inc +++ b/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"> diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs index d0cfabc8c11..7cfc307debe 100644 --- a/src/librustdoc/html/layout.rs +++ b/src/librustdoc/html/layout.rs @@ -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]> diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css index 9a0b9912373..5799871bd10 100644 --- a/src/librustdoc/html/static/main.css +++ b/src/librustdoc/html/static/main.css @@ -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 { @@ -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; } @@ -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; @@ -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; } |
