2021-06-30 15:19:44 -04:00
|
|
|
@charset "UTF-8";
|
2022-01-16 17:33:05 -05:00
|
|
|
/* Styles for PEPs */
|
2021-06-30 15:19:44 -04:00
|
|
|
|
2022-01-16 17:33:05 -05:00
|
|
|
/* Set master 'light-mode' colours (default) */
|
|
|
|
:root {
|
|
|
|
--colour-background: white;
|
|
|
|
--colour-background-accent: #eee;
|
|
|
|
--colour-text: #333;
|
|
|
|
--colour-links: #0072aa;
|
|
|
|
--colour-scrollbar: #ccc;
|
|
|
|
--colour-rule-strong: #888;
|
|
|
|
--colour-rule-light: #ddd;
|
|
|
|
--colour-inline-code: #f8f8f8;
|
|
|
|
--colour-warning: #fee;
|
|
|
|
}
|
2021-06-30 15:19:44 -04:00
|
|
|
|
|
|
|
/* Set master rules */
|
|
|
|
* {box-sizing: border-box}
|
2022-01-16 17:33:05 -05:00
|
|
|
:root {color-scheme: light dark}
|
2021-06-30 15:19:44 -04:00
|
|
|
html {
|
|
|
|
overflow-y: scroll;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
margin: 0;
|
2022-03-16 21:06:15 -04:00
|
|
|
line-height: 1.4;
|
2021-06-30 15:19:44 -04:00
|
|
|
font-weight: normal;
|
|
|
|
font-size: 1rem;
|
|
|
|
font-family: "Source Sans Pro", Arial, sans-serif;
|
|
|
|
}
|
|
|
|
body {
|
|
|
|
margin: 0;
|
2022-01-16 17:33:05 -05:00
|
|
|
color: var(--colour-text);
|
|
|
|
background-color: var(--colour-background);
|
2021-06-30 15:19:44 -04:00
|
|
|
}
|
|
|
|
section#pep-page-section {
|
|
|
|
padding: 0.25rem 0.25rem 0;
|
|
|
|
display: table;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Reduce margin sizes for body text */
|
|
|
|
p {margin: .5rem 0}
|
|
|
|
|
|
|
|
/* Header rules */
|
2022-01-16 17:33:05 -05:00
|
|
|
h1 {
|
2022-03-16 21:06:15 -04:00
|
|
|
line-height: 2.3;
|
2021-06-30 15:19:44 -04:00
|
|
|
font-size: 2rem;
|
|
|
|
font-weight: bold;
|
|
|
|
margin-top: 2rem;
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
font-size: 1.6rem;
|
|
|
|
font-weight: bold;
|
|
|
|
margin-top: 1rem;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
}
|
|
|
|
h3 {
|
|
|
|
font-size: 1.4rem;
|
|
|
|
font-weight: normal;
|
|
|
|
margin-top: 1rem;
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
}
|
|
|
|
h4 {
|
|
|
|
font-size: 1.2rem;
|
|
|
|
font-weight: normal;
|
|
|
|
margin-top: .5rem;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
font-size: 1rem;
|
|
|
|
font-weight: bold;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Anchor link rules */
|
|
|
|
a,
|
|
|
|
a:active,
|
|
|
|
a:visited {
|
2022-01-16 17:33:05 -05:00
|
|
|
color: var(--colour-links);
|
|
|
|
text-decoration-color: var(--colour-background-accent);
|
2021-06-30 15:19:44 -04:00
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
a:hover,
|
|
|
|
a:focus {
|
2022-01-16 17:33:05 -05:00
|
|
|
text-decoration-color: var(--colour-rule-strong);
|
2021-06-30 15:19:44 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Blockquote rules */
|
|
|
|
blockquote {
|
|
|
|
font-style: italic;
|
2022-01-16 17:33:05 -05:00
|
|
|
border-left: 1px solid var(--colour-rule-strong);
|
2021-06-30 15:19:44 -04:00
|
|
|
margin: .5rem;
|
|
|
|
padding: .5rem 1rem;
|
|
|
|
}
|
|
|
|
blockquote em {
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
cite {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Code rules (code literals and Pygments highlighting blocks) */
|
|
|
|
pre,
|
|
|
|
code {
|
|
|
|
font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "DejaVu Sans Mono", Consolas, monospace;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
word-wrap: break-word;
|
|
|
|
-webkit-hyphens: none;
|
|
|
|
hyphens: none;
|
|
|
|
}
|
|
|
|
code.literal {
|
|
|
|
font-size: .8em;
|
2022-01-16 17:33:05 -05:00
|
|
|
background-color: var(--colour-inline-code);
|
2021-06-30 15:19:44 -04:00
|
|
|
}
|
|
|
|
pre {
|
|
|
|
padding: .5rem .75rem;
|
|
|
|
}
|
|
|
|
|
2022-03-13 21:49:03 -04:00
|
|
|
/* Contents rules */
|
|
|
|
details > summary {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2021-06-30 15:19:44 -04:00
|
|
|
/* Definition list rules */
|
|
|
|
dl dt {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2022-03-16 21:06:15 -04:00
|
|
|
dl dd {
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
}
|
2021-06-30 15:19:44 -04:00
|
|
|
|
|
|
|
/* Horizontal rule rule */
|
|
|
|
hr {
|
|
|
|
border: 0;
|
2022-01-16 17:33:05 -05:00
|
|
|
border-top: 1px solid var(--colour-rule-light);
|
2021-06-30 15:19:44 -04:00
|
|
|
margin: 1.75rem 0;
|
|
|
|
}
|
|
|
|
/*Image rules */
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
a img {
|
|
|
|
display: block;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* List rules */
|
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0 0 0 1.5rem;
|
|
|
|
}
|
|
|
|
ul {list-style: square}
|
|
|
|
ol.arabic {list-style: decimal}
|
|
|
|
ol.loweralpha {list-style: lower-alpha}
|
|
|
|
ol.upperalpha {list-style: upper-alpha}
|
|
|
|
ol.lowerroman {list-style: lower-roman}
|
|
|
|
ol.upperroman {list-style: upper-roman}
|
|
|
|
|
|
|
|
/* Maths rules */
|
|
|
|
sub,
|
|
|
|
sup {
|
|
|
|
font-size: .75em;
|
|
|
|
line-height: 0;
|
|
|
|
position: relative;
|
|
|
|
vertical-align: baseline;
|
|
|
|
}
|
|
|
|
sup {top: -0.5em}
|
|
|
|
sub {bottom: -0.25em}
|
|
|
|
|
|
|
|
/* Table rules */
|
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
border-collapse: collapse;
|
2022-01-16 17:33:05 -05:00
|
|
|
border-top: 1px solid var(--colour-background-accent);
|
|
|
|
border-bottom: 1px solid var(--colour-background-accent);
|
2021-06-30 15:19:44 -04:00
|
|
|
}
|
|
|
|
table caption {
|
|
|
|
margin: 1rem 0 .75rem;
|
|
|
|
}
|
|
|
|
table tbody tr:nth-of-type(odd) {
|
2022-01-16 17:33:05 -05:00
|
|
|
background-color: var(--colour-background-accent);
|
2021-06-30 15:19:44 -04:00
|
|
|
}
|
|
|
|
table th,
|
|
|
|
table td {
|
|
|
|
text-align: left;
|
|
|
|
padding: 0.25rem 0.5rem 0.2rem;
|
|
|
|
}
|
|
|
|
table td + td {
|
2022-01-16 17:33:05 -05:00
|
|
|
border-left: 1px solid var(--colour-rule-light);
|
2021-06-30 15:19:44 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Breadcrumbs rules */
|
|
|
|
section#pep-page-section > header {
|
2022-01-16 17:33:05 -05:00
|
|
|
border-bottom: 1px solid var(--colour-rule-light);
|
2021-06-30 15:19:44 -04:00
|
|
|
}
|
|
|
|
section#pep-page-section > header > h1 {
|
|
|
|
font-size: 1.1rem;
|
2022-03-16 21:06:15 -04:00
|
|
|
line-height: 1.4;
|
2021-06-30 15:19:44 -04:00
|
|
|
margin: 0;
|
|
|
|
display: inline-block;
|
|
|
|
padding-right: .6rem;
|
2022-01-16 17:33:05 -05:00
|
|
|
border-right: 1px solid var(--colour-rule-strong);
|
2021-06-30 15:19:44 -04:00
|
|
|
}
|
|
|
|
ul.breadcrumbs {
|
|
|
|
margin: 0;
|
|
|
|
padding: .5rem 0 .5rem .4rem;
|
|
|
|
list-style: none;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
ul.breadcrumbs li {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
ul.breadcrumbs a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2022-01-16 17:33:05 -05:00
|
|
|
/* Dark mode toggle rules */
|
|
|
|
section#pep-page-section > header > button {
|
|
|
|
background: transparent url(colour_scheme.svg) 0/contain;
|
|
|
|
border: none;
|
|
|
|
cursor: pointer;
|
|
|
|
width: 1.2rem;
|
|
|
|
height: 1.2rem;
|
|
|
|
float: right;
|
|
|
|
translate: 0 50%;
|
|
|
|
}
|
|
|
|
|
2021-06-30 15:19:44 -04:00
|
|
|
/* Admonitions rules */
|
|
|
|
div.note,
|
|
|
|
div.warning {
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
margin-top: 1rem;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
div.note {
|
2022-01-16 17:33:05 -05:00
|
|
|
background-color: var(--colour-background-accent);
|
2021-06-30 15:19:44 -04:00
|
|
|
}
|
|
|
|
div.warning {
|
2022-01-16 17:33:05 -05:00
|
|
|
background-color: var(--colour-warning);
|
2021-06-30 15:19:44 -04:00
|
|
|
}
|
|
|
|
p.admonition-title {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* PEP Header / references rules */
|
|
|
|
dl.rfc2822,
|
|
|
|
dl.footnote {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: fit-content(30%) auto;
|
|
|
|
line-height: 1.875;
|
|
|
|
width: 100%;
|
2022-03-13 21:46:48 -04:00
|
|
|
border-top: 1px solid var(--colour-rule-strong);
|
2021-06-30 15:19:44 -04:00
|
|
|
}
|
|
|
|
dl.rfc2822 > dt, dl.rfc2822 > dd,
|
|
|
|
dl.footnote > dt, dl.footnote > dd {
|
|
|
|
padding: .25rem .5rem .2rem;
|
2022-03-13 21:46:48 -04:00
|
|
|
border-bottom: 1px solid var(--colour-rule-strong);
|
2021-06-30 15:19:44 -04:00
|
|
|
}
|
|
|
|
dl.footnote > dt {
|
|
|
|
font-weight: normal;
|
2022-01-16 17:33:05 -05:00
|
|
|
border-right: 1px solid var(--colour-background);
|
2021-06-30 15:19:44 -04:00
|
|
|
}
|
2022-03-13 21:46:48 -04:00
|
|
|
dl.rfc2822 dd,
|
|
|
|
dl.footnote dd {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2021-06-30 15:19:44 -04:00
|
|
|
|
|
|
|
/* Sidebar formatting */
|
2022-01-16 17:33:05 -05:00
|
|
|
#pep-sidebar {
|
2021-06-30 15:19:44 -04:00
|
|
|
overflow-y: scroll;
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
height: 100vh;
|
|
|
|
scrollbar-width: thin; /* CSS Standards, not *yet* widely supported */
|
2022-01-16 17:33:05 -05:00
|
|
|
scrollbar-color: var(--colour-scrollbar) transparent;
|
2021-06-30 15:19:44 -04:00
|
|
|
}
|
2022-01-16 17:33:05 -05:00
|
|
|
#pep-sidebar::-webkit-scrollbar {width: 6px}
|
|
|
|
#pep-sidebar::-webkit-scrollbar-track {background: transparent}
|
|
|
|
#pep-sidebar::-webkit-scrollbar-thumb {background: var(--colour-scrollbar)}
|
|
|
|
#pep-sidebar > h2 {
|
2021-06-30 15:19:44 -04:00
|
|
|
font-size: 1.4rem;
|
|
|
|
}
|
2022-01-16 17:33:05 -05:00
|
|
|
#pep-sidebar ul {
|
2021-06-30 15:19:44 -04:00
|
|
|
margin-left: 1rem;
|
|
|
|
}
|
2022-01-16 17:33:05 -05:00
|
|
|
#pep-sidebar ul a {
|
2021-06-30 15:19:44 -04:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2022-01-16 17:33:05 -05:00
|
|
|
#toc-title {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2022-01-09 13:07:03 -05:00
|
|
|
#source {
|
|
|
|
padding-bottom: 2rem;
|
2022-01-16 17:33:05 -05:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.reference.external > strong {
|
|
|
|
font-weight: normal; /* Fix strong links for :pep: and :rfc: roles */
|
2022-01-09 13:07:03 -05:00
|
|
|
}
|