rustdoc: style tweaks

This commit is contained in:
Adrien Tétar 2014-04-27 09:07:12 +03:00
parent b7dba3300e
commit 076bbb38c7

View File

@ -53,17 +53,25 @@
body { body {
color: #333; color: #333;
min-width: 500px; min-width: 500px;
font: 18px "Heuristica", "Helvetica Neue", Helvetica, Arial, sans-serif; font: 15px/1.4 "Heuristica", "Helvetica Neue", Helvetica, Arial, sans-serif;
line-height: 1.4;
margin: 0; margin: 0;
position: relative; position: relative;
padding: 10px 15px 20px 15px; padding: 10px 15px 20px 15px;
} }
h1 {
font-size: 1.5em;
}
h2 {
font-size: 1.4em;
}
h3 {
font-size: 1.3em;
}
h1, h2, h3:not(.impl), h4:not(.method) { h1, h2, h3:not(.impl), h4:not(.method) {
color: black; color: black;
font-weight: 500; font-weight: 500;
margin: 30px 0 15px 0; margin: 20px 0 15px 0;
padding-bottom: 6px; padding-bottom: 6px;
} }
h1.fqn { h1.fqn {
@ -93,7 +101,7 @@ ul ul, ol ul, ul ol, ol ol {
} }
p { p {
margin: 0 0 1em 0; margin: 0 0 .6em 0;
} }
code, pre { code, pre {
@ -101,19 +109,15 @@ code, pre {
white-space: pre-wrap; white-space: pre-wrap;
} }
pre { pre {
font-size: 15px; background-color: #F5F5F5;
padding: 14px; padding: 14px;
padding-right: 0;
border-left: 2px solid #eee;
} }
.source pre { .source pre {
border-left: none;
padding: 20px; padding: 20px;
} }
nav.sub { nav.sub {
padding-top: 10px;
font-size: 16px; font-size: 16px;
text-transform: uppercase; text-transform: uppercase;
} }
@ -149,7 +153,7 @@ nav.sub {
} }
.block { .block {
padding: 10px; padding: 0 10px;
margin-bottom: 10px; margin-bottom: 10px;
} }
.block h2 { .block h2 {
@ -170,7 +174,7 @@ nav.sub {
} }
.content { .content {
padding: 20px 0; padding: 15px 0;
} }
.content.source pre.rust { .content.source pre.rust {
@ -209,7 +213,6 @@ nav.sub {
} }
.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 { .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
margin: 30px 0 15px 0;
border-bottom: 1px solid #DDD; border-bottom: 1px solid #DDD;
} }
@ -389,10 +392,12 @@ pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
pre.rust .lifetime { color: #B76514; } pre.rust .lifetime { color: #B76514; }
.section-header { .section-header {
/* Override parent class attributes. */
border-bottom: none !important; border-bottom: none !important;
font-size: 1.1em !important; font-size: 1.1em !important;
margin: 0 !important; font-weight: 400;
padding: 0 !important; margin: 0 0 -5px;
padding: 0;
} }
.section-header:hover a:after { .section-header:hover a:after {
content: '\2002\00a7\2002'; content: '\2002\00a7\2002';