Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame^] | 1 | * { |
| 2 | margin: 0px; |
| 3 | padding: 0px; |
| 4 | } |
| 5 | |
| 6 | html { font-size: 62.5%; } |
| 7 | |
| 8 | body { |
| 9 | font-family: {{ theme_bodyfont }}; |
| 10 | background-color: {{ theme_bgcolor }}; |
| 11 | color: #777; |
| 12 | border-top: 4px solid #fd7800; |
| 13 | } |
| 14 | |
| 15 | body { background: white; font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1; color: #222222; position: relative; -webkit-font-smoothing: antialiased; } |
| 16 | |
| 17 | /* Page layout */ |
| 18 | |
| 19 | div.header, div.content, div.footer { |
| 20 | width: 90%; |
| 21 | margin-left: auto; |
| 22 | margin-right: auto; |
| 23 | } |
| 24 | |
| 25 | div.header-wrapper { |
| 26 | background: {{ theme_headerbg }}; |
| 27 | border-bottom: 3px solid #2e3436; |
| 28 | } |
| 29 | |
| 30 | |
| 31 | /* Default body styles */ |
| 32 | a { |
| 33 | color: {{ theme_linkcolor }}; |
| 34 | } |
| 35 | |
| 36 | div.bodywrapper a, div.footer a { |
| 37 | text-decoration: none; |
| 38 | } |
| 39 | |
| 40 | .clearer { |
| 41 | clear: both; |
| 42 | } |
| 43 | |
| 44 | .left { |
| 45 | float: left; |
| 46 | } |
| 47 | |
| 48 | .right { |
| 49 | float: right; |
| 50 | } |
| 51 | |
| 52 | .line-block { |
| 53 | display: block; |
| 54 | margin-top: 1em; |
| 55 | margin-bottom: 1em; |
| 56 | } |
| 57 | |
| 58 | .line-block .line-block { |
| 59 | margin-top: 0; |
| 60 | margin-bottom: 0; |
| 61 | margin-left: 1.5em; |
| 62 | } |
| 63 | |
| 64 | h1, h2, h3, h4 { |
| 65 | font-family: {{ theme_headerfont }}; |
| 66 | font-weight: normal; |
| 67 | color: {{ theme_headercolor2 }}; |
| 68 | margin-bottom: .8em; |
| 69 | } |
| 70 | |
| 71 | h1 { |
| 72 | color: {{ theme_headercolor1 }}; |
| 73 | } |
| 74 | |
| 75 | h2 { |
| 76 | padding-bottom: .5em; |
| 77 | border-bottom: 1px solid {{ theme_headercolor2 }}; |
| 78 | } |
| 79 | |
| 80 | a.headerlink { |
| 81 | visibility: hidden; |
| 82 | color: #dddddd; |
| 83 | padding-left: .3em; |
| 84 | } |
| 85 | |
| 86 | h1:hover > a.headerlink, |
| 87 | h2:hover > a.headerlink, |
| 88 | h3:hover > a.headerlink, |
| 89 | h4:hover > a.headerlink, |
| 90 | h5:hover > a.headerlink, |
| 91 | h6:hover > a.headerlink, |
| 92 | dt:hover > a.headerlink { |
| 93 | visibility: visible; |
| 94 | } |
| 95 | |
| 96 | img { |
| 97 | border: 0; |
| 98 | } |
| 99 | |
| 100 | div.admonition { |
| 101 | margin-top: 10px; |
| 102 | margin-bottom: 10px; |
| 103 | padding: 2px 7px 1px 7px; |
| 104 | border-left: 0.2em solid black; |
| 105 | } |
| 106 | |
| 107 | p.admonition-title { |
| 108 | margin: 0px 10px 5px 0px; |
| 109 | font-weight: bold; |
| 110 | } |
| 111 | |
| 112 | dt:target, .highlighted { |
| 113 | background-color: #fbe54e; |
| 114 | } |
| 115 | |
| 116 | /* Header */ |
| 117 | |
| 118 | div.header { |
| 119 | padding-top: 10px; |
| 120 | padding-bottom: 10px; |
| 121 | } |
| 122 | |
| 123 | div.header .headertitle { |
| 124 | font-family: {{ theme_headerfont }}; |
| 125 | font-weight: normal; |
| 126 | font-size: 180%; |
| 127 | letter-spacing: .08em; |
| 128 | margin-bottom: .8em; |
| 129 | } |
| 130 | |
| 131 | div.header .headertitle a { |
| 132 | color: white; |
| 133 | } |
| 134 | |
| 135 | div.header div.rel { |
| 136 | margin-top: 1em; |
| 137 | } |
| 138 | |
| 139 | div.header div.rel a { |
| 140 | color: {{ theme_headerlinkcolor }}; |
| 141 | letter-spacing: .1em; |
| 142 | text-transform: uppercase; |
| 143 | } |
| 144 | |
| 145 | p.logo { |
| 146 | float: right; |
| 147 | } |
| 148 | |
| 149 | img.logo { |
| 150 | border: 0; |
| 151 | } |
| 152 | |
| 153 | |
| 154 | /* Content */ |
| 155 | div.content-wrapper { |
| 156 | background-color: white; |
| 157 | padding-top: 20px; |
| 158 | padding-bottom: 20px; |
| 159 | } |
| 160 | |
| 161 | div.document { |
| 162 | width: 70%; |
| 163 | float: left; |
| 164 | } |
| 165 | |
| 166 | div.body { |
| 167 | padding-right: 2em; |
| 168 | text-align: left; |
| 169 | } |
| 170 | |
| 171 | div.document h1 { |
| 172 | line-height: 120%; |
| 173 | } |
| 174 | |
| 175 | div.document ul { |
| 176 | margin-left: 1.5em; |
| 177 | list-style-type: square; |
| 178 | } |
| 179 | |
| 180 | div.document dd { |
| 181 | margin-left: 1.2em; |
| 182 | margin-top: .4em; |
| 183 | margin-bottom: 1em; |
| 184 | } |
| 185 | |
| 186 | div.document .section { |
| 187 | margin-top: 1.7em; |
| 188 | } |
| 189 | div.document .section:first-child { |
| 190 | margin-top: 0px; |
| 191 | } |
| 192 | |
| 193 | div.document div.highlight { |
| 194 | padding: 3px; |
| 195 | background-color: #eeeeec; |
| 196 | border-top: 2px solid #dddddd; |
| 197 | border-bottom: 2px solid #dddddd; |
| 198 | margin-bottom: .8em; |
| 199 | } |
| 200 | |
| 201 | div.document h2 { |
| 202 | margin-top: .7em; |
| 203 | } |
| 204 | |
| 205 | div.document p { |
| 206 | margin-bottom: .5em; |
| 207 | } |
| 208 | |
| 209 | div.document li.toctree-l1 { |
| 210 | margin-bottom: 1em; |
| 211 | } |
| 212 | |
| 213 | div.document .descname { |
| 214 | font-weight: bold; |
| 215 | } |
| 216 | |
| 217 | div.document .docutils.literal { |
| 218 | background-color: #eeeeec; |
| 219 | padding: 1px; |
| 220 | } |
| 221 | |
| 222 | div.document .docutils.xref.literal { |
| 223 | background-color: transparent; |
| 224 | padding: 0px; |
| 225 | } |
| 226 | |
| 227 | div.document ol { |
| 228 | margin: 1.5em; |
| 229 | } |
| 230 | |
| 231 | |
| 232 | /* Sidebar */ |
| 233 | |
| 234 | div.sidebar { |
| 235 | width: 20%; |
| 236 | float: right; |
| 237 | font-size: .9em; |
| 238 | } |
| 239 | |
| 240 | div.sidebar a, div.header a { |
| 241 | text-decoration: none; |
| 242 | } |
| 243 | |
| 244 | div.sidebar a:hover, div.header a:hover { |
| 245 | text-decoration: none; |
| 246 | } |
| 247 | |
| 248 | div.sidebar h3 { |
| 249 | color: #2e3436; |
| 250 | text-transform: uppercase; |
| 251 | font-size: 130%; |
| 252 | letter-spacing: .1em; |
| 253 | } |
| 254 | |
| 255 | div.sidebar ul { |
| 256 | list-style-type: none; |
| 257 | } |
| 258 | |
| 259 | div.sidebar li.toctree-l1 a { |
| 260 | display: block; |
| 261 | padding: 1px; |
| 262 | border: 1px solid #dddddd; |
| 263 | background-color: #eeeeec; |
| 264 | margin-bottom: .4em; |
| 265 | padding-left: 3px; |
| 266 | color: #2e3436; |
| 267 | } |
| 268 | |
| 269 | div.sidebar li.toctree-l2 a { |
| 270 | background-color: transparent; |
| 271 | border: none; |
| 272 | margin-left: 1em; |
| 273 | border-bottom: 1px solid #dddddd; |
| 274 | } |
| 275 | |
| 276 | div.sidebar li.toctree-l3 a { |
| 277 | background-color: transparent; |
| 278 | border: none; |
| 279 | margin-left: 2em; |
| 280 | border-bottom: 1px solid #dddddd; |
| 281 | } |
| 282 | |
| 283 | div.sidebar li.toctree-l2:last-child a { |
| 284 | border-bottom: none; |
| 285 | } |
| 286 | |
| 287 | div.sidebar li.toctree-l1.current a { |
| 288 | border-right: 5px solid {{ theme_headerlinkcolor }}; |
| 289 | } |
| 290 | |
| 291 | div.sidebar li.toctree-l1.current li.toctree-l2 a { |
| 292 | border-right: none; |
| 293 | } |
| 294 | |
| 295 | div.sidebar input[type="text"] { |
| 296 | width: 170px; |
| 297 | } |
| 298 | |
| 299 | div.sidebar input[type="submit"] { |
| 300 | width: 30px; |
| 301 | } |
| 302 | |
| 303 | |
| 304 | /* Footer */ |
| 305 | |
| 306 | div.footer-wrapper { |
| 307 | background: {{ theme_footerbg }}; |
| 308 | border-top: 4px solid #babdb6; |
| 309 | padding-top: 10px; |
| 310 | padding-bottom: 10px; |
| 311 | min-height: 80px; |
| 312 | } |
| 313 | |
| 314 | div.footer, div.footer a { |
| 315 | color: #888a85; |
| 316 | } |
| 317 | |
| 318 | div.footer .right { |
| 319 | text-align: right; |
| 320 | } |
| 321 | |
| 322 | div.footer .left { |
| 323 | text-transform: uppercase; |
| 324 | } |
| 325 | |
| 326 | |
| 327 | /* Styles copied from basic theme */ |
| 328 | |
| 329 | img.align-left, .figure.align-left, object.align-left { |
| 330 | clear: left; |
| 331 | float: left; |
| 332 | margin-right: 1em; |
| 333 | } |
| 334 | |
| 335 | img.align-right, .figure.align-right, object.align-right { |
| 336 | clear: right; |
| 337 | float: right; |
| 338 | margin-left: 1em; |
| 339 | } |
| 340 | |
| 341 | img.align-center, .figure.align-center, object.align-center { |
| 342 | display: block; |
| 343 | margin-left: auto; |
| 344 | margin-right: auto; |
| 345 | } |
| 346 | |
| 347 | .align-left { |
| 348 | text-align: left; |
| 349 | } |
| 350 | |
| 351 | .align-center { |
| 352 | text-align: center; |
| 353 | } |
| 354 | |
| 355 | .align-right { |
| 356 | text-align: right; |
| 357 | } |
| 358 | |
| 359 | /* -- search page ----------------------------------------------------------- */ |
| 360 | |
| 361 | ul.search { |
| 362 | margin: 10px 0 0 20px; |
| 363 | padding: 0; |
| 364 | } |
| 365 | |
| 366 | ul.search li { |
| 367 | padding: 5px 0 5px 20px; |
| 368 | background-image: url(file.png); |
| 369 | background-repeat: no-repeat; |
| 370 | background-position: 0 7px; |
| 371 | } |
| 372 | |
| 373 | ul.search li a { |
| 374 | font-weight: bold; |
| 375 | } |
| 376 | |
| 377 | ul.search li div.context { |
| 378 | color: #888; |
| 379 | margin: 2px 0 0 30px; |
| 380 | text-align: left; |
| 381 | } |
| 382 | |
| 383 | ul.keywordmatches li.goodmatch a { |
| 384 | font-weight: bold; |
| 385 | } |
| 386 | |
| 387 | /* -- index page ------------------------------------------------------------ */ |
| 388 | |
| 389 | table.contentstable { |
| 390 | width: 90%; |
| 391 | } |
| 392 | |
| 393 | table.contentstable p.biglink { |
| 394 | line-height: 150%; |
| 395 | } |
| 396 | |
| 397 | a.biglink { |
| 398 | font-size: 1.3em; |
| 399 | } |
| 400 | |
| 401 | span.linkdescr { |
| 402 | font-style: italic; |
| 403 | padding-top: 5px; |
| 404 | font-size: 90%; |
| 405 | } |
| 406 | |
| 407 | /* -- general index --------------------------------------------------------- */ |
| 408 | |
| 409 | table.indextable td { |
| 410 | text-align: left; |
| 411 | vertical-align: top; |
| 412 | } |
| 413 | |
| 414 | table.indextable dl, table.indextable dd { |
| 415 | margin-top: 0; |
| 416 | margin-bottom: 0; |
| 417 | } |
| 418 | |
| 419 | table.indextable tr.pcap { |
| 420 | height: 10px; |
| 421 | } |
| 422 | |
| 423 | table.indextable tr.cap { |
| 424 | margin-top: 10px; |
| 425 | background-color: #f2f2f2; |
| 426 | } |
| 427 | |
| 428 | img.toggler { |
| 429 | margin-right: 3px; |
| 430 | margin-top: 3px; |
| 431 | cursor: pointer; |
| 432 | } |
| 433 | |
| 434 | /* -- viewcode extension ---------------------------------------------------- */ |
| 435 | |
| 436 | .viewcode-link { |
| 437 | float: right; |
| 438 | } |
| 439 | |
| 440 | .viewcode-back { |
| 441 | float: right; |
| 442 | font-family:: {{ theme_bodyfont }}; |
| 443 | } |
| 444 | |
| 445 | div.viewcode-block:target { |
| 446 | margin: -1px -3px; |
| 447 | padding: 0 3px; |
| 448 | background-color: #f4debf; |
| 449 | border-top: 1px solid #ac9; |
| 450 | border-bottom: 1px solid #ac9; |
| 451 | } |
| 452 | |
| 453 | td.linenos pre { |
| 454 | padding: 5px 0px; |
| 455 | border: 0; |
| 456 | background-color: transparent; |
| 457 | color: #aaa; |
| 458 | margin-top: -10pt; |
| 459 | } |