/* CSS3_ style sheet for the output of Docutils HTML writers. */ /* Generic responsive design for all screen sizes. */ /* */ /* :Author: Günter Milde */ /* */ /* :Id: $Id: responsive.css 8642 2021-03-26 13:51:14Z milde $ */ /* :Copyright: © 2021 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: http://www.w3.org/TR/CSS3 */ /* General Settings */ /* ================ */ * { box-sizing: border-box; } body { background-color: #fafaf6; margin: auto; --field-indent: 6.6em; /* indent of fields in field lists */ --sidebar-margin-right: 0; /* adapted in media queries below */ } main { counter-reset: figure table; } body > * { background-color: white; line-height: 1.6; padding: 0.5rem calc(29% - 7.2rem); /* go from 5% to 15% (8.15em/54em) */ margin: auto; max-width: 100rem; } /* Vertical Space (Parskip) */ p, ol, ul, dl, li, div.line-block, div.topic, table { margin-top: 0.5em; margin-bottom: 0.5em; } h1, h2, h3, h4, h5, h6, dl > dd { margin-bottom: 0.5em; } blockquote > table, div.topic > table { margin-top: 0; margin-bottom: 0; } /* Indented Blocks */ blockquote, figure, div.topic { margin: 1em 2%; padding-left: 1em; } div.line-block div.line-block, pre, dd, dl.option-list { margin-left: calc(2% + 1em); } /* Object styling */ /* ============== */ footer, header, .sidebar, .marginal { font-size: small; } /* Frontmatter */ div.topic.dedication { padding: 0; margin: 1.4em 0; font-style: italic; font-size: large; } .dedication p.topic-title { display: none; } blockquote p.attribution, div.topic p.attribution { text-align: right; } /* Table of Contents */ nav.contents, div.topic.contents { padding: 0; } ul.auto-toc > li > p { padding-left: 1em; text-indent: -1em; } nav.contents ul, div.topic.contents ul { padding-left: 1em; } main > div.topic.contents ul:not(.auto-toc) { list-style-type: square; } main > div.topic.contents ul ul:not(.auto-toc) { list-style-type: disc; } main > div.topic.contents ul ul ul:not(.auto-toc) { list-style-type: '\2023\ '; } main > div.topic.contents ul ul ul ul:not(.auto-toc) { list-style-type: '\2B29\ '; } main > div.topic.contents ul ul ul ul ul:not(.auto-toc) { list-style-type: '\00B7\ '; } div.topic.contents ul > li::marker { color: grey; } /* Transitions */ hr { margin: 1em 10%; } /* Lists */ ul, ol { padding-left: 1.1em; /* indent by bullet width (Firefox, DejaVu fonts) */ } dl.field-list > dd, dl.docinfo > dd { margin-left: var(--field-indent); /* adapted in media queries or HTML */ } dl.option-list > dd { margin-left: 20%; } /* run-in: start field-body on same line after long field names */ dl.field-list.run-in > dd p { display: block; } /* "description style" like in most dictionaries, encyclopedias etc. */ dl.description > dt { clear: left; float: left; margin: 0; padding: 0; padding-right: 0.5em; font-weight: bold; } dl.description > dd:after { display: block; content: ""; clear: both; } /* start lists nested in description/field lists on new line */ dd > dl:first-child, dd > ul:first-child, dd > ol:first-child { clear: left; } /* Footnotes and Citations */ /* TODO: use