1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 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 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568
|
/* CSS3_ style sheet for the output of Docutils HTML writers. */
/* Rules inspired by Edward Tufte's layout design. */
/* */
/* :Author: Günter Milde */
/* based on tufte.css_ by Dave Liepmann */
/* and the tufte-latex_ package. */
/* */
/* :Id: $Id: tuftig.css 9081 2022-06-19 20:23:12Z milde $ */
/* :Copyright: © 2020 Günter Milde. */
/* :License: Released under the terms of the `2-Clause BSD license`_, */
/* in short: */
/* */
/* Copying and distribution of this file, with or without modification, */
/* are permitted in any medium without royalty provided the copyright */
/* notice and this notice are preserved. */
/* */
/* This file is offered as-is, without any warranty. */
/* */
/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */
/* .. _CSS3: https://www.w3.org/Style/CSS/ */
/* .. _tufte.css: https://edwardtufte.github.io/tufte-css/ */
/* .. _tufte-latex_: https://www.ctan.org/pkg/tufte-latex */
/* General Settings */
/* ================ */
body {
font-family: et-book, Palatino, Georgia, serif;
background-color: #fafaf6;
font-size: 1.2em;
line-height: 1.4;
margin: auto;
}
main {
counter-reset: figure table;
}
main, header, footer {
padding: 0.5em 5%;
background-color: #fefef8;
max-width: 100rem;
}
/* Spacing */
/* vertical space (parskip) */
p, ol, ul, dl, li,
h1, h2, h3, h4, h5, h6,
div.line-block,
.topic,
.footnote, .citation,
table {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
dl > dd {
margin-bottom: 0.5em;
}
/* exceptions */
p:first-child {
margin-top: 0;
}
p:last-child {
margin-bottom: 0;
}
/* Indented Blocks */
blockquote,
.topic {
/* background-color: Honeydew; */
margin: 0.5em 2%;
padding-left: 1em;
}
div.line-block div.line-block,
dl.option-list,
figure > img,
pre.literal-block, pre.math,
pre.doctest-block, pre.code {
/* background-color: LightCyan; */
margin-left: calc(2% + 1em);
}
/* Object styling */
/* ============== */
footer, header {
font-size: smaller;
}
/* Titles and Headings */
h2, h3, h4, p.subtitle, p.section-subtitle,
p.topic-title, p.sidebar-title, p.sidebar-subtitle {
font-weight: normal;
font-style: italic;
text-align: left;
}
.sectnum {
font-style: normal;
}
h1.title {
text-align: left;
margin-top: 2.4em;
margin-bottom: 2em;
font-size: 2.4em;
}
h1 + p.subtitle {
margin-top: -2em;
margin-bottom: 2em;
font-size: 2.0em;
}
section {
margin-top: 2em;
}
h2, .contents > p.topic-title {
font-size: 2.2em;
}
h2 + p.section-subtitle {
font-size: 1.6em;
}
h3 {
font-size: 1.2em;
}
h3 + p.section-subtitle {
font-size: 1.1em;
}
h4 {
font-size: 1em;
}
p.section-subtitle {
font-size: 1em;
}
/* Dedication and Abstract */
div.dedication {
padding: 0;
margin-left: 0;
font-style: italic;
font-size: 1.2em;
}
/* div.abstract p.topic-title, */
div.dedication p.topic-title {
display: none;
}
/* Attribution */
blockquote p.attribution,
.topic p.attribution {
text-align: right;
}
/* Table of Contents */
nav.contents {
padding: 0;
font-style: italic;
}
ul.auto-toc > li > p {
padding-left: 1em;
text-indent: -1em;
}
nav.contents ul {
padding-left: 1em;
}
/* Transitions */
hr {
border: 0;
border-top: 1px solid #ccc;
margin: 1em 10%;
}
/* Lists */
/* Less indent per level */
ul, ol {
padding-left: 1.1em;
}
dd {
margin-left: 1.5em;
}
dd > dl:first-child,
dd > ul:first-child,
dd > ol:first-child {
/* lists nested in definition/description/field lists */
clear: left;
}
dl.field-list > dd,
dl.docinfo > dd,
dl.option-list > dd {
margin-left: 4em;
}
/* example for custom field-name width */
dl.field-list.narrow > dd {
margin-left: 3em;
}
/* run-in: start field-body on same line after long field names */
dl.field-list.run-in > dd p {
display: block;
}
/* italic field name */
dl.description > dt,
dl.field-list > dt,
dl.docinfo > dt {
font-weight: normal;
font-style: italic;
}
/* "description style" like in most dictionaries, encyclopedias etc. */
dl.description > dt {
clear: left;
float: left;
margin: 0;
padding: 0;
padding-right: 0.5em;
}
dl.description > dd:after {
display: block;
content: "";
clear: both;
}
/* Citation list (style as description list) */
.citation-list,
.footnote-list {
display: contents;
}
.citation {
padding-left: 1.5em;
}
.citation .label {
margin-left: -1.5em;
}
/* Images and Figures */
img {
display: block;
}
p > img, p > a > img,
figure > img, figure > a > img {
display: inline;
}
/* Caption to the left (if there is space) or below: */
figure {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
margin: 0.5em 2%;
padding-left: 1em;
}
figure > img,
figure.fullwidth > img {
margin: 0 0.5em 0.5em 0;
padding: 0;
}
figcaption {
font-size: 0.8em;
}
.fullwidth > figcaption {
font-size: inherit;
}
figure.numbered > figcaption > p:before {
counter-increment: figure;
content: "Figure " counter(figure) ": ";
}
/* Tables */
table tr {
text-align: left;
}
/* th { vertical-align: bottom; } */
/* "booktabs" style (no vertical lines) */
table.booktabs {
border-top: 2px solid;
border-bottom: 2px solid;
}
table.booktabs * {
border: 0;
}
table.booktabs th {
border-bottom: thin solid;
}
table.numbered > caption:before {
counter-increment: table;
content: "Table " counter(table) ": ";
}
/* Admonitions and System Messages */
.admonition, .system-message {
border-style: solid;
border-color: silver;
border-width: thin;
margin: 1em 0;
padding: 0.5em;
}
.caution p.admonition-title,
.attention p.admonition-title,
.danger p.admonition-title,
.warning p.admonition-title,
div.error {
color: maroon;
}
/* Literal and Code */
pre.literal-block, pre.doctest-block,
pre.math, pre.code {
/* font-family: Consolas, "Liberation Mono", Menlo, monospace; */
/* font-size: 0.9em; */
overflow: auto;
}
/* basic highlighting: for a complete scheme, see */
/* https://docutils.sourceforge.io/sandbox/stylesheets/ */
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}
.sans {
font-family: "Gill Sans", "Gill Sans MT", Calibri, "Lucida Sans", "Noto Sans", sans-serif;
letter-spacing: .02em;
}
/* Hyperlink References */
/* underline that clears descenders */
a {
color: inherit;
}
a:link {
text-decoration: underline;
/* text-decoration-skip-ink: auto; nonstandard selector */
}
/* undecorated links */
.contents a:link, a.toc-backref:link, a.image-reference:link,
a[role="doc-noteref"]:link, a[role="doc-backlink"]:link, .backrefs a:link,
a.citation-reference:link,
a[href^="#system-message"] {
text-decoration: none;
}
a:link:hover {
text-decoration: underline;
}
/* Block Alignment */
/* Let content flow to the side of aligned images and figures */
/* (does not work if the image/figure is a grid element). */
/* no floats around this elements */
footer, header,
hr.docutils,
h1, h2, h3, .contents > p.topic-title,
.fullwidth {
clear: both;
}
img.align-left,
figure.align-left,
table.align-left {
margin-left: 0;
padding-left: 0;
padding-right: 0.5em;
clear: left;
float: left;
}
figure.align-left > img {
margin-left: 0;
padding-left: 0;
}
img.align-right {
padding-left: 0.5em;
clear: right;
float: right;
}
figure.align-right {
clear: right;
float: right;
}
figure.align-right > img {
justify-self: right;
padding: 0;
}
table.align-right {
margin-right: 2.5%;
}
figure.align-center {
align-content: center;
justify-content: center;
}
figure.align-center > img {
padding-left: 0;
justify-self: center;
}
/* Margin Elements */
/* see below for screen size dependent rules */
aside.sidebar,
.marginal,
.admonition.marginal,
.topic.marginal {
background-color: #efefea;
box-sizing: border-box;
margin-left: 2%;
margin-right: 0;
padding: 0.5em;
font-size: 0.8em;
}
aside.sidebar {
background-color: inherit;
}
figure.marginal > figcaption {
font-size: 1em;
}
.footnote {
font-size: smaller;
overflow: auto;
}
/* Adaptive page layout */
/* no floating for very small Screens */
/* (main text up to ca. 40 characters/line) */
@media (min-width: 35em) {
main, header, footer {
padding: 0.5em calc(15% - 3rem);
line-height: 1.6
}
aside.sidebar,
.marginal,
.admonition.marginal,
.topic.marginal {
max-width: 45%;
float: right;
clear: right;
}
dl.field-list > dd,
dl.docinfo > dd {
margin-left: 6em;
}
dl.option-list > dd {
margin-left: 6em;
}
}
/* 2 column layout with wide margin */
@media (min-width: 65em) {
/* use the same grid for main, all sections, and figures */
main, section {
display: grid;
grid-template-columns: [content] minmax(0, 6fr)
[margin] 3fr [end];
grid-column-gap: calc(3em + 1%);
}
main > section, section > section {
grid-column: 1 / end;
}
main, header, footer {
padding-right: 5%; /* less padding right of margin-column */
}
section > figure {
display: contents; /* to place caption in the margin */
}
/* Main text elements */
main > *, section > *,
figure > img,
.footnote.align-left, /* override the placement in the margin */
.citation.align-left {
grid-column: content;
}
.citation.align-left {
font-size: 1em;
padding-left: 1.5em;
}
.citation.align-left .label {
margin-left: -1.5em;
}
figure > img { /* indent */
margin: 0.5em 2%;
padding-left: 1em;
}
/* Margin Elements */
/* Sidebar, Footnotes, Citations, Captions */
aside.sidebar,
.citation,
.footnote,
figcaption,
/* table > caption, does not work :(*/
.marginal,
.admonition.marginal,
.topic.marginal {
/* color: red; */
grid-column: margin;
width: auto;
max-width: 55em;
margin: 0.5em 0;
border: none;
padding: 0;
font-size: 0.8em;
text-align: initial; /* overwrite align-* */
background-color: inherit;
}
.admonition.marginal {
padding: 0.5em;
}
figure.marginal {
display: block;
margin: 0.5em 0;
}
.citation,
.footnote {
padding-left: 0;
}
.citation .label,
.footnote .label {
margin-left: 0;
}
/* Fullwidth Elements */
h1.title, p.subtitle,
dl.docinfo,
div.abstract,
div.dedication,
nav.contents,
aside.system-message,
pre,
.fullwidth,
.fullwidth img,
.fullwidth figcaption {
/* background-color: Linen; */
grid-column: content / end;
margin-right: calc(10% - 3rem);
max-width: 55em;
}
}
/* 3 column layout */
@media (min-width: 100em) {
main, header, footer {
padding-left: 30%;
}
main > nav.contents {
position: fixed;
top: 0;
left: 0;
box-sizing: border-box;
width: 25%;
height: 100vh;
margin: 0;
background-color: #fafaf6;
padding: 5.5em 2%;
overflow: auto;
}
main > nav.contents > * {
padding-left: 0;
}
}
/* wrap URLs */
/* a:link { */
/* white-space: normal; */
/* hyphens: none; */
/* } */
|