rust.css 5.6 KB
Newer Older
A
Adrien Tétar 已提交
1 2 3 4
/**
 * Copyright 2013 The Rust Project Developers. See the COPYRIGHT
 * file at the top-level directory of this distribution and at
 * http://rust-lang.org/COPYRIGHT.
5
 * With elements taken from Bootstrap v3.0.2 (MIT licensed).
A
Adrien Tétar 已提交
6 7 8 9 10 11 12 13 14
 *
 * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
 * http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
 * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
 * option. This file may not be copied, modified, or distributed
 * except according to those terms.
 */
/* Global page semantics
   ========================================================================== */
15
body {
16 17 18 19 20 21
    margin: 0 auto;
    padding: 0 15px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.428571429;
22
}
A
Adrien Tétar 已提交
23
@media (min-width: 768px) {
24 25 26
    body {
        max-width: 750px;
    }
27 28
}

A
Adrien Tétar 已提交
29
h1, h2, h3, h4, h5, h6 {
30 31 32
    color: black;
    font-weight: 500;
    line-height: 1.1;
33
}
A
Adrien Tétar 已提交
34
h1, h2, h3 {
35 36
    margin-top: 20px;
    margin-bottom: 10px;
A
Adrien Tétar 已提交
37 38
}
h4, h5, h6 {
39 40 41 42
    margin-top: 12px;
    margin-bottom: 10px;
    padding: .2em .8em;
    text-decoration: underline;
43 44
}

A
Adrien Tétar 已提交
45
h1 {
46 47 48 49
    font-size: 36px;
    padding: .1em .4em;
    margin: 0.67em 0;
    border-bottom: 2px solid #ddd;
A
Adrien Tétar 已提交
50 51
}
h1.title {
52
    line-height: 1.5em;
A
Adrien Tétar 已提交
53 54
}
h2 {
55 56 57
    font-size: 30px;
    padding: .2em .5em;
    border-bottom: 1px solid #ddd;
A
Adrien Tétar 已提交
58 59
}
h3 {
60 61 62
    font-size: 24px;
    padding: .2em .7em;
    border-bottom: 1px solid #DDE8FC;
A
Adrien Tétar 已提交
63
}
64
h4 {
65
    font-size: 18px;
66
}
A
Adrien Tétar 已提交
67
h5 {
68
    font-size: 16px;
B
Brian Anderson 已提交
69
}
A
Adrien Tétar 已提交
70
h6 {
71
    font-size: 14px;
72 73
}

A
Adrien Tétar 已提交
74
p {
75
    margin: 0 0 10px;
76 77
}

78 79 80 81 82 83 84 85 86
footer {
    border-top: 1px solid #ddd;
    font-size: 12px;
    font-style: italic;
    padding-top: 4px;
    margin-top: 4em;
    margin-bottom: 1em;
}

A
Adrien Tétar 已提交
87 88 89
/* Links layout
   ========================================================================== */
a {
90 91 92
    text-decoration: none;
    color: #428BCA;
    background: transparent;
A
Adrien Tétar 已提交
93 94
}
a:hover, a:focus {
95 96
    color: #2A6496;
    text-decoration: underline;
A
Adrien Tétar 已提交
97 98
}
a:focus {
99 100 101
    outline: thin dotted #333;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
A
Adrien Tétar 已提交
102 103
}
a:hover, a:active {
104
    outline: 0;
105
}
106 107

h1 a:link, h1 a:visited, h2 a:link, h2 a:visited,
A
Adrien Tétar 已提交
108 109 110 111 112 113
h3 a:link, h3 a:visited, h4 a:link, h4 a:visited,
h5 a:link, h5 a:visited {color: black;}

/* Code
   ========================================================================== */
pre, code {
A
Adrien Tétar 已提交
114
    font-family: Menlo, Monaco, Consolas, "DejaVu Sans Mono", monospace;
115
    border-radius: 4px;
A
Adrien Tétar 已提交
116 117
}
pre {
A
Adrien Tétar 已提交
118
    background-color: #FDFDFD;
119 120 121 122 123 124 125 126
    border: 1px solid #CCC;
    border-radius: 0.5em;
    white-space: pre-wrap;
    padding: 9.5px;
    margin: 10px 0;
    font-size: 13px;
    word-break: break-all;
    word-wrap: break-word;
A
Adrien Tétar 已提交
127 128
}
code {
129 130 131 132 133
    padding: 2px 4px;
    font-size: 90%;
    color: #C7254E;
    background-color: #F9F2F4;
    white-space: nowrap;
A
Adrien Tétar 已提交
134 135
}
pre code {
136 137 138 139 140 141
    padding: 0;
    font-size: inherit;
    color: inherit;
    white-space: pre-wrap;
    background-color: transparent;
    border-radius: 0;
A
Adrien Tétar 已提交
142
}
143 144

/* Code highlighting */
145 146 147 148 149 150 151 152 153 154 155 156
pre.rust .kw { color: #8959A8; }
pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
pre.rust .number { color: #718C00; }
pre.rust .self { color: #C13928; }
pre.rust .boolval { color: #C13928; }
pre.rust .prelude-val { color: #C13928; }
pre.rust .comment { color: #8E908C; }
pre.rust .doccomment { color: #4D4D4C; }
pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999f; }
pre.rust .string { color: #718C00; }
pre.rust .lifetime { color: #C13928; }
pre.rust .attribute, pre.rust .attribute .ident { color: #C82829; }
K
Kevin Cantu 已提交
157

A
Adrien Tétar 已提交
158 159
/* The rest
   ========================================================================== */
160
#versioninfo {
161 162 163
    text-align: center;
    margin: 0.5em;
    font-size: 1.1em;
A
Adrien Tétar 已提交
164
}
A
Adrien Tétar 已提交
165
@media (min-width: 768px) {
166 167 168 169 170 171 172 173 174 175 176
    #versioninfo {
        position: fixed;
        bottom: 0px;
        right: 0px;
    }
    .white-sticker {
        background-color: #fff;
        margin: 2px;
        padding: 0 2px;
        border-radius: .3em;
    }
A
Adrien Tétar 已提交
177
}
A
Adrien Tétar 已提交
178
#versioninfo a.hash {
179 180
    color: gray;
    font-size: 70%;
181 182
}

183
blockquote {
184 185 186 187
    color: black;
    border-left: 5px solid #eee;
    margin: 0 0 20px;
    padding: 10px 20px;
A
Adrien Tétar 已提交
188 189
}
blockquote p {
190 191 192
    font-size: 17px;
    font-weight: 300;
    line-height: 1.25;
A
Adrien Tétar 已提交
193 194
}
blockquote p:last-child {
195
    margin-bottom: 0;
196
}
197

A
Adrien Tétar 已提交
198 199
ul,
ol {
200 201
    margin-top: 0;
    margin-bottom: 10px;
A
Adrien Tétar 已提交
202 203 204 205 206
}
ul ul,
ol ul,
ul ol,
ol ol {
207
    margin-bottom: 0;
A
Adrien Tétar 已提交
208 209
}
dl {
210
    margin-bottom: 20px;
A
Adrien Tétar 已提交
211 212
}
dd {
213
    margin-left: 0;
214
}
B
Brian Anderson 已提交
215 216

#TOC ul {
217 218
    list-style-type: none;
    padding-left: 0px;
219
}
220

221 222 223 224
/* Only display one level of hierarchy in the TOC */
#TOC ul ul {
    display: none;
}
225

A
Adrien Tétar 已提交
226 227
sub,
sup {
228 229 230
    font-size: 75%;
    line-height: 0;
    position: relative;
231
}
A
Adrien Tétar 已提交
232 233

hr {
234 235 236 237
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eeeeee;
A
Adrien Tétar 已提交
238 239
}

240 241 242 243 244 245 246 247 248 249 250 251 252 253 254
table {
    border-collapse: collapse;
    border-spacing: 0;
}

table tr.odd {
    background: #eee;
}

table td,
table th {
    border: 1px solid #ddd;
    padding: 5px;
}

A
Adrien Tétar 已提交
255
@media print {
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290
    * {
        text-shadow: none !important;
        color: #000 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    a, a:visited {
        text-decoration: underline;
    }
    a[href]:after {
        content: " (" attr(href) ")";
    }
    a[href^="javascript:"]:after, a[href^="#"]:after {
        content: "";
    }
    pre, blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
    @page {
        margin: 2cm .5cm;
    }
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    h2, h3 {
        page-break-after: avoid;
    }
    table {
        border-collapse: collapse !important;
    }
    table td, table th {
        background-color: #fff !important;
    }
291
}