main
km0 1 year ago
parent 2be51ff47d
commit d73a23830f

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

Loading…
Cancel
Save