You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

188 lines
2.4 KiB
CSS

* {
box-sizing: border-box;
}
html,
body {
margin: 0;
font-size: 24px;
font-family: serif;
}
header {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 64px;
}
.last-update {
text-transform: lowercase;
font-family: sans-serif;
font-size: 0.75rem;
margin: 1em;
color: #aaa;
}
.chapter {
max-width: 80ch;
margin-inline: auto;
padding-inline: 32px;
}
.chapter img {
max-width: 100%;
object-fit: contain;
}
.chapter + .chapter {
margin-top: 256px;
}
h1,
h2,
h3 {
font-family: sans-serif;
margin: 2em auto;
}
h2 {
color: white;
background-color: black;
width: fit-content;
margin: 128px auto;
text-align: center;
}
a {
color: tomato;
text-decoration: none;
}
pre,
code {
white-space: pre-wrap;
}
pre {
font-size: 0.85rem;
border-left: 10px solid #eee;
padding-left: 10px;
}
.note,
.todo {
border-left: none;
padding-left: auto;
font-size: 1rem;
margin: 32px auto;
font-family: sans-serif;
display: inline-block;
width: auto;
padding: 1ch;
color: #aaa;
border-left: none;
border: 1px solid #aaa;
position: relative;
}
.note:before,
.todo:before {
line-height: 1;
padding: 0.1ch;
position: absolute;
top: 0;
translate: calc(-1ch + -1px) -100%;
display: inline-block;
background-color: #aaa;
color: white;
}
.note:before {
content: "Note";
}
.todo:before {
content: "TO DO";
}
.placeholder {
font-size: 1rem;
position: relative;
margin: 48px auto;
display: flex;
flex-direction: column;
border: 1px dashed currentColor;
justify-content: center;
align-items: center;
padding: 32px 32px;
border-radius: 50%;
font-family: sans-serif;
text-align: center;
color: currentColor;
}
.placeholder:before {
content: "placeholder";
text-transform: uppercase;
font-size: 0.8rem;
color: #aaa;
}
.admonition-title {
margin: 0;
text-transform: uppercase;
}
.admonition * {
margin: 0;
}
.admonition ul {
list-style: none;
padding: 0;
}
figure {
width: 100%;
margin-inline: 0;
margin-block: 64px;
}
figure img {
width: 100%;
}
figcaption {
font-style: italic;
opacity: 0.75;
}
@media print {
body {
font-size: 14px;
}
img {
max-width: 10cm;
max-height: 10cm;
object-fit: contain;
}
h1,
h2,
h3 {
margin-top: 0;
margin: 0;
}
.chapter {
max-width: 100%;
}
.chapter + .chapter {
margin-top: 32px;
}
}