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.
70 lines
986 B
CSS
70 lines
986 B
CSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body {
|
|
margin: 0;
|
|
font-size: 24px;
|
|
font-family: serif;
|
|
}
|
|
|
|
.chapter {
|
|
max-width: 80ch;
|
|
margin-inline: auto;
|
|
}
|
|
|
|
.chapter + .chapter {
|
|
margin-top: 64px;
|
|
}
|
|
|
|
h1, h2, h3 {
|
|
font-family: sans-serif;
|
|
margin: 2em auto;
|
|
}
|
|
|
|
h2 {
|
|
text-align: center;
|
|
color: tomato;
|
|
}
|
|
|
|
a {
|
|
color: tomato;
|
|
text-decoration: none;
|
|
}
|
|
|
|
pre, code {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.language-note,
|
|
.language-todo {
|
|
margin: 32px auto;
|
|
font-family: sans-serif;
|
|
display: inline-block;
|
|
width: auto;
|
|
padding: 1ch;
|
|
color: #aaa;
|
|
border: 1px solid #aaa;
|
|
position: relative;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.language-note:before,
|
|
.language-todo:before {
|
|
padding: 0.1ch;
|
|
position: absolute;
|
|
top: 0;
|
|
translate: calc(-1ch + -1px) -100%;
|
|
display: inline-block;
|
|
background-color: #aaa;
|
|
color: white;
|
|
}
|
|
|
|
.language-note:before {
|
|
content: 'Note'
|
|
}
|
|
|
|
.language-todo:before {
|
|
content: 'TO DO'
|
|
}
|