2022-10-16 22:15:34 +00:00
|
|
|
.content {
|
2022-10-13 10:49:41 +00:00
|
|
|
/* text */
|
|
|
|
h1 {font-size: 1.8em}
|
|
|
|
h2 {font-size: 1.6em}
|
|
|
|
h3 {font-size: 1.423em}
|
|
|
|
h4 {font-size: 1.265em}
|
|
|
|
h5 {font-size: 1.125em}
|
|
|
|
h6 {font-size: 1em}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
line-height: 1.2;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
margin-top: 2rem;
|
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
line-height: 2;
|
|
|
|
margin-bottom: 1em;
|
2022-10-16 22:15:34 +00:00
|
|
|
max-width: 80ch;
|
2022-10-13 10:49:41 +00:00
|
|
|
}
|
|
|
|
a {
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
/* semantics */
|
|
|
|
em {font-style: italic}
|
|
|
|
strong {font-weight: 700}
|
|
|
|
/* text formatting */
|
|
|
|
--script-size: 0.65em;
|
|
|
|
sup {
|
|
|
|
position: relative;
|
|
|
|
font-size: var(--script-size);
|
|
|
|
top: -1em;
|
|
|
|
}
|
|
|
|
sub {
|
|
|
|
position: relative;
|
|
|
|
font-size: var(--script-size);
|
|
|
|
}
|
|
|
|
@supports #{'selector\(:has(kbd))'} {
|
|
|
|
/* style individual keys only (for the innermost <kbd> element) */
|
|
|
|
kbd kbd,
|
|
|
|
kbd:not(:has(kbd)) {
|
|
|
|
font-family: monospace;
|
|
|
|
padding: 0.25em;
|
|
|
|
background: var(--ui-overlay);
|
|
|
|
color: var(--ui-overlay-text);
|
2022-12-18 14:10:54 +00:00
|
|
|
transition:
|
|
|
|
background var(--color-crossfade-duration) var(--color-crossfade-ease),
|
|
|
|
color var(--color-crossfade-duration) var(--color-crossfade-ease);
|
2022-10-13 10:49:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@supports not #{'selector\(:has(kbd))'} {
|
|
|
|
/* style the entire key sequence */
|
|
|
|
kbd {
|
|
|
|
font-family: monospace;
|
|
|
|
padding: 0.25em;
|
|
|
|
background: var(--ui-overlay);
|
|
|
|
color: var(--ui-overlay-text);
|
2022-12-18 14:10:54 +00:00
|
|
|
transition:
|
|
|
|
background var(--color-crossfade-duration) var(--color-crossfade-ease),
|
|
|
|
color var(--color-crossfade-duration) var(--color-crossfade-ease);
|
2022-10-13 10:49:41 +00:00
|
|
|
}
|
|
|
|
/* and prevent double-styling for nested keys */
|
|
|
|
kbd kbd {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
mark {
|
|
|
|
background: var(--primary-accent-transparent);
|
|
|
|
color: var(--ui-text);
|
|
|
|
--pad-x-highlight: 0.125em;
|
|
|
|
padding-left: var(--pad-x-highlight);
|
|
|
|
padding-right: var(--pad-x-highlight);
|
2022-12-18 14:10:54 +00:00
|
|
|
transition:
|
|
|
|
background var(--color-crossfade-duration) var(--color-crossfade-ease),
|
|
|
|
color var(--color-crossfade-duration) var(--color-crossfade-ease);
|
2022-10-13 10:49:41 +00:00
|
|
|
}
|
|
|
|
abbr[title]:after {
|
|
|
|
content: '?';
|
|
|
|
font-size: var(--script-size);
|
|
|
|
color: var(--ui-text-muted);
|
2022-12-18 14:10:54 +00:00
|
|
|
transition:
|
|
|
|
color var(--color-crossfade-duration) var(--color-crossfade-ease);
|
2022-10-13 10:49:41 +00:00
|
|
|
}
|
|
|
|
/* lists */
|
|
|
|
ul {list-style: disc; margin: 1em 0;}
|
|
|
|
li {margin-bottom: 1em; line-height: 1.4; margin-left: 1em;}
|
|
|
|
ol {list-style: decimal; margin: 1em 0;}
|
|
|
|
dl {margin: 1em 0; line-height: 1.4;}
|
|
|
|
dt {font-weight: 700;}
|
2022-12-19 15:10:26 +00:00
|
|
|
dd {margin-left: 1em; margin-bottom: 1em;}
|
2022-10-13 10:49:41 +00:00
|
|
|
/* block elements */
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
blockquote {
|
|
|
|
font-style: italic;
|
2022-12-19 15:42:46 +00:00
|
|
|
font-size: 1.3rem;
|
2022-10-13 10:49:41 +00:00
|
|
|
margin: 1em 0;
|
2022-12-19 15:42:46 +00:00
|
|
|
padding: 0.5rem 1rem;
|
2022-10-13 10:49:41 +00:00
|
|
|
line-height: 1.4;
|
2022-12-19 15:42:46 +00:00
|
|
|
cite {
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
2022-10-13 10:49:41 +00:00
|
|
|
}
|
|
|
|
pre {
|
|
|
|
font-family: monospace;
|
2022-10-16 22:15:34 +00:00
|
|
|
background: var(--ui-overlay);
|
|
|
|
color: var(--ui-overlay-text);
|
2022-12-18 14:10:54 +00:00
|
|
|
transition:
|
|
|
|
background var(--color-crossfade-duration) var(--color-crossfade-ease),
|
|
|
|
color var(--color-crossfade-duration) var(--color-crossfade-ease);
|
2022-10-13 10:49:41 +00:00
|
|
|
padding: 1em;
|
2022-10-17 14:46:58 +00:00
|
|
|
line-height: 2;
|
2022-10-16 22:15:34 +00:00
|
|
|
overflow-x: auto;
|
|
|
|
white-space: pre;
|
|
|
|
display: grid;
|
|
|
|
tab-size: 3;
|
2022-10-13 10:49:41 +00:00
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
code {
|
|
|
|
font-family: monospace;
|
2022-10-16 22:15:34 +00:00
|
|
|
background: var(--ui-overlay);
|
|
|
|
color: var(--ui-overlay-text);
|
2022-12-18 14:10:54 +00:00
|
|
|
transition:
|
|
|
|
background var(--color-crossfade-duration) var(--color-crossfade-ease),
|
|
|
|
color var(--color-crossfade-duration) var(--color-crossfade-ease);
|
2022-10-16 22:15:34 +00:00
|
|
|
padding: 0.25rem;
|
|
|
|
}
|
|
|
|
:not(.highlight) > pre {
|
|
|
|
line-height: 1.5;
|
|
|
|
background: var(--ui-overlay);
|
2022-12-18 14:10:54 +00:00
|
|
|
transition:
|
|
|
|
background var(--color-crossfade-duration) var(--color-crossfade-ease);
|
2022-10-16 22:15:34 +00:00
|
|
|
padding: 1em;
|
|
|
|
}
|
|
|
|
pre code {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
pre code > span {
|
|
|
|
padding: 0 1em;
|
|
|
|
}
|
|
|
|
.highlight pre {
|
|
|
|
padding: 1em 0;
|
2022-10-13 10:49:41 +00:00
|
|
|
}
|
|
|
|
/* figures */
|
|
|
|
figure {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
figure img {
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: -0.125em;
|
|
|
|
}
|
|
|
|
figcaption {
|
|
|
|
background: #212121;
|
|
|
|
color: white;
|
2022-12-18 14:10:54 +00:00
|
|
|
transition:
|
|
|
|
background var(--color-crossfade-duration) var(--color-crossfade-ease),
|
|
|
|
color var(--color-crossfade-duration) var(--color-crossfade-ease);
|
2022-10-13 10:49:41 +00:00
|
|
|
font-style: italic;
|
|
|
|
padding: 1em;
|
|
|
|
font-size: 0.8em;
|
|
|
|
line-height: 1.2;
|
|
|
|
}
|
|
|
|
/* tables */
|
|
|
|
table {text-align: center;}
|
2022-10-14 08:36:35 +00:00
|
|
|
thead {
|
|
|
|
font-weight: 700;
|
|
|
|
background: var(--ui-overlay);
|
|
|
|
color: var(--ui-overlay-text);
|
2022-12-18 14:10:54 +00:00
|
|
|
transition:
|
|
|
|
background var(--color-crossfade-duration) var(--color-crossfade-ease),
|
|
|
|
color var(--color-crossfade-duration) var(--color-crossfade-ease);
|
2022-10-14 08:36:35 +00:00
|
|
|
}
|
2022-10-13 10:49:41 +00:00
|
|
|
th, td {
|
2022-12-18 14:10:54 +00:00
|
|
|
border: 1px solid;
|
|
|
|
border-color: var(--ui-text);
|
2022-10-13 10:49:41 +00:00
|
|
|
padding: 0.5em;
|
2022-12-18 14:10:54 +00:00
|
|
|
transition:
|
|
|
|
border-color var(--color-crossfade-duration) var(--color-crossfade-ease);
|
2022-10-13 10:49:41 +00:00
|
|
|
}
|
|
|
|
/* hugo-specific citation footnote */
|
|
|
|
cite sup {
|
|
|
|
position: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
a {
|
|
|
|
padding: 0.25em;
|
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
content: ' [';
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
content: ']';
|
|
|
|
}
|
|
|
|
}
|
2022-10-16 22:15:34 +00:00
|
|
|
/* the actual footnotes section */
|
|
|
|
.footnotes {
|
|
|
|
hr {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
border: 0;
|
|
|
|
&:before {
|
|
|
|
content: 'Footnotes';
|
|
|
|
color: var(--ui-text);
|
2022-12-18 14:10:54 +00:00
|
|
|
transition:
|
|
|
|
color var(--color-crossfade-duration) var(--color-crossfade-ease);
|
2022-10-16 22:15:34 +00:00
|
|
|
text-transform: uppercase;
|
|
|
|
font-weight: 900;
|
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
width: 100%;
|
|
|
|
margin-left: 1rem;
|
2022-12-18 14:10:54 +00:00
|
|
|
border-bottom: 1px solid;
|
|
|
|
border-color: var(--ui-text-muted);
|
|
|
|
transition:
|
|
|
|
border-color var(--color-crossfade-duration) var(--color-crossfade-ease);
|
|
|
|
|
2022-10-16 22:15:34 +00:00
|
|
|
}
|
2022-10-13 10:49:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|