2020-11-02 08:53:37 +00:00
|
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
|
|
|
2021-01-20 19:16:26 +00:00
|
|
|
*:target {
|
|
|
|
animation: target-fade 3s 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes target-fade {
|
2022-05-01 12:38:07 +00:00
|
|
|
0% { background: var(--accent-color); }
|
2021-01-20 19:16:26 +00:00
|
|
|
100% { background: unset; }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-11-02 08:53:37 +00:00
|
|
|
::selection {
|
2022-05-01 12:38:07 +00:00
|
|
|
background: var(--foreground);
|
|
|
|
color: var(--background);
|
2020-11-02 08:53:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
margin: 0 auto;
|
|
|
|
max-width: var(--content-width);
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
nav {
|
|
|
|
margin: 1rem auto;
|
|
|
|
}
|
|
|
|
|
2021-01-21 01:08:29 +00:00
|
|
|
h1 { margin: 1rem auto; }
|
|
|
|
|
2020-11-02 08:53:37 +00:00
|
|
|
article {
|
2021-01-20 19:16:26 +00:00
|
|
|
h1 { margin: 1rem auto; }
|
2020-11-02 08:53:37 +00:00
|
|
|
h2 { margin-top: 3rem; }
|
|
|
|
h3 { margin-top: 2rem; }
|
2021-01-20 19:16:26 +00:00
|
|
|
h1, h2, h3 {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
2020-11-02 08:53:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Text formatting */
|
|
|
|
h1, h2, h3,
|
|
|
|
h4, h5, h6 {
|
|
|
|
font-family: var(--header-family);
|
|
|
|
line-height: 1.25;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2022-05-01 12:38:07 +00:00
|
|
|
color: var(--accent-color);
|
2020-11-02 08:53:37 +00:00
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover {
|
2020-11-06 10:20:16 +00:00
|
|
|
color: var(--base0B);
|
2020-11-02 08:53:37 +00:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::selection {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dd, li, p, td {
|
2020-11-05 05:54:38 +00:00
|
|
|
line-height: 1.45;
|
2020-11-02 08:53:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin-top: 1rem;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
dd {
|
|
|
|
margin-top: 0.5rem;
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
kbd {
|
|
|
|
border: var(--border-style);
|
|
|
|
font-size: 0.8em;
|
|
|
|
font-weight: bold;
|
|
|
|
padding: 0 0.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
code, pre {
|
|
|
|
font-family: var(--mono-family);
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
2022-04-30 07:47:35 +00:00
|
|
|
background: var(--base01);
|
2020-11-02 08:53:37 +00:00
|
|
|
font-family: var(--mono-family);
|
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
background: var(--base01);
|
2022-05-09 12:08:12 +00:00
|
|
|
color: var(--base05);
|
2020-11-02 08:53:37 +00:00
|
|
|
border: var(--border-style);
|
|
|
|
font-family: var(--mono-family);
|
|
|
|
font-size: 1rem;
|
|
|
|
line-height: 1.5;
|
|
|
|
margin-top: 1rem;
|
|
|
|
margin-bottom: 1rem;
|
2022-05-09 12:08:48 +00:00
|
|
|
max-height: var(--code-block-size);
|
2020-11-02 08:53:37 +00:00
|
|
|
padding: 0.5rem;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
code[class*=language-]::selection,
|
|
|
|
code[class*=language-] ::selection,
|
|
|
|
pre[class*=language-]::selection,
|
|
|
|
pre[class*=language-] ::selection {
|
2022-04-30 07:47:35 +00:00
|
|
|
background: var(--base02);
|
2020-11-02 08:53:37 +00:00
|
|
|
font-size: var(--mono-font-size);
|
2022-04-30 07:47:35 +00:00
|
|
|
color: unset;
|
2020-11-02 08:53:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
mark {
|
2022-05-01 12:38:07 +00:00
|
|
|
background: var(--foreground);
|
|
|
|
color: var(--background);
|
2020-11-02 08:53:37 +00:00
|
|
|
|
|
|
|
&::selection {
|
2022-05-09 12:08:12 +00:00
|
|
|
color: var(--base05);
|
2020-11-02 08:53:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-23 10:20:16 +00:00
|
|
|
hr {
|
2022-05-01 12:38:07 +00:00
|
|
|
border-color: var(--accent-color);
|
2022-04-30 07:47:35 +00:00
|
|
|
margin: 1em 0;
|
2020-12-23 10:20:16 +00:00
|
|
|
}
|
|
|
|
|
2020-11-02 08:53:37 +00:00
|
|
|
|
|
|
|
/* Multimedia blocks */
|
|
|
|
img, video, audio, iframe {
|
|
|
|
display: block;
|
|
|
|
height: auto;
|
|
|
|
max-width: 100%;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
2022-06-13 12:33:16 +00:00
|
|
|
border-spacing: 0.5em;
|
2020-11-02 08:53:37 +00:00
|
|
|
margin: auto;
|
2022-06-13 12:33:16 +00:00
|
|
|
overflow: auto;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
caption {
|
|
|
|
margin: 1em;
|
|
|
|
}
|
2020-11-02 08:53:37 +00:00
|
|
|
}
|
|
|
|
|
2022-06-13 12:33:16 +00:00
|
|
|
@mixin table-item-align {
|
|
|
|
text-align: left;
|
2020-11-02 08:53:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
thead {
|
2022-06-13 12:33:16 +00:00
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
& tr th {
|
|
|
|
@include table-item-align;
|
|
|
|
}
|
2020-11-02 08:53:37 +00:00
|
|
|
}
|
|
|
|
|
2022-06-13 12:33:16 +00:00
|
|
|
tbody {
|
|
|
|
& tr td {
|
|
|
|
@include table-item-align;
|
|
|
|
}
|
2020-11-02 08:53:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ol, ul {
|
|
|
|
line-height: 1.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
figure {
|
|
|
|
margin: 2rem auto;
|
|
|
|
& > * {
|
|
|
|
margin: 1rem auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
figcaption {
|
|
|
|
text-align: center;
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
|
|
|
margin: 2rem 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote footer {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Form controls */
|
|
|
|
button {
|
|
|
|
background: unset;
|
2022-05-09 12:08:12 +00:00
|
|
|
border: var(--base05) solid 1px;
|
|
|
|
color: var(--base05);
|
2020-11-02 08:53:37 +00:00
|
|
|
cursor: pointer;
|
|
|
|
font-size: 1rem;
|
|
|
|
padding: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Semantic blocks */
|
|
|
|
aside {
|
|
|
|
--vertical-rhythm-reduction: 0.2;
|
|
|
|
color: var(--base03);
|
|
|
|
border: 1px solid var(--base03);
|
|
|
|
border-left: 3px solid var(--base03);
|
|
|
|
font-size: calc(1rem * (1 - var(--vertical-rhythm-reduction)));
|
|
|
|
font-family: var(--header-family);
|
|
|
|
line-height: calc(1rem * (1 + var(--vertical-rhythm-reduction)));
|
|
|
|
margin: 1rem 0;
|
|
|
|
padding: 0.5rem;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
footer {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column wrap;
|
|
|
|
justify-content: space-evenly;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Mobile styles */
|
2021-01-20 19:16:26 +00:00
|
|
|
@media all and (max-width: $tablet-breakpoint) {
|
2020-11-02 08:53:37 +00:00
|
|
|
html:root {
|
|
|
|
--font-size: 17px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
html {
|
|
|
|
overflow: auto;
|
|
|
|
}
|
2022-05-09 12:08:48 +00:00
|
|
|
|
2022-05-09 12:11:02 +00:00
|
|
|
p {
|
|
|
|
orphans: 3;
|
|
|
|
}
|
|
|
|
|
2022-05-09 12:08:48 +00:00
|
|
|
pre {
|
|
|
|
max-height: unset;
|
|
|
|
}
|
2020-11-02 08:53:37 +00:00
|
|
|
}
|
2021-01-27 16:21:42 +00:00
|
|
|
|