98 lines
1.8 KiB
CSS
98 lines
1.8 KiB
CSS
|
:root {
|
||
|
--font-size: 12pt;
|
||
|
--line-height: 1.625;
|
||
|
--height-unit: calc(var(--font-size) * var(--line-height));
|
||
|
--width-unit: 1ch;
|
||
|
--padding-left: calc(1 * var(--width-unit));
|
||
|
--padding-right: calc(1 * var(--width-unit));
|
||
|
--padding-top: calc(1 * var(--height-unit));
|
||
|
--padding-bottom: calc(1 * var(--height-unit));
|
||
|
--gap-vertical: calc(1 * var(--height-unit));
|
||
|
--gap-horizontal: calc(2 * var(--width-unit));
|
||
|
--column-width: clamp(32ch, 72ch, calc(100vw - var(--gap-horizontal) - var(--padding-left) - var(--padding-right) - var(--width-unit)));
|
||
|
font: var(--font-size)/var(--line-height) monospace;
|
||
|
color-scheme: light dark;
|
||
|
}
|
||
|
|
||
|
/* reset */
|
||
|
* {
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
body {
|
||
|
color: light-dark(#000000, #ffffff);
|
||
|
background-color: light-dark(#ffffff, #000000);
|
||
|
margin: 0;
|
||
|
}
|
||
|
h1, h2, h3, h4, h5, h6 {
|
||
|
font: inherit;
|
||
|
}
|
||
|
h1 {
|
||
|
font-weight: bold;
|
||
|
margin: var(--height-unit) 0 var(--height-unit) 0;
|
||
|
}
|
||
|
h2, h3, h4, h5, h6 {
|
||
|
font-style: italic;
|
||
|
margin: var(--height-unit) 0 var(--height-unit) 0;
|
||
|
}
|
||
|
p {
|
||
|
margin: var(--height-unit) 0 0 0;
|
||
|
hyphens: auto;
|
||
|
}
|
||
|
blockquote {
|
||
|
margin: var(--height-unit) calc(2 * var(--width-unit));
|
||
|
}
|
||
|
ul, ol {
|
||
|
margin: var(--height-unit) 0;
|
||
|
padding: 0 0 0 calc(4 * var(--width-unit));
|
||
|
}
|
||
|
ul>li::marker {
|
||
|
content: "- ";
|
||
|
}
|
||
|
ul ul {
|
||
|
margin: 0;
|
||
|
}
|
||
|
hr {
|
||
|
color: inherit;
|
||
|
border: none;
|
||
|
margin: var(--height-unit) 0;
|
||
|
}
|
||
|
hr:after {
|
||
|
content: "---";
|
||
|
}
|
||
|
|
||
|
/* layout */
|
||
|
body {
|
||
|
padding: var(--height-unit) var(--width-unit);
|
||
|
width: 100vw;
|
||
|
height: 100vh;
|
||
|
display: grid;
|
||
|
grid-template-rows: auto 1fr auto;
|
||
|
}
|
||
|
|
||
|
/* header */
|
||
|
body>header>h1 {
|
||
|
margin: unset;
|
||
|
display: inline-block;
|
||
|
}
|
||
|
|
||
|
/* main */
|
||
|
body>main {
|
||
|
height: 100%;
|
||
|
overflow-y: scroll;
|
||
|
}
|
||
|
|
||
|
body>main>article {
|
||
|
width: var(--column-width);
|
||
|
}
|
||
|
|
||
|
/* .actions */
|
||
|
.actions>ul {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
list-style: none;
|
||
|
}
|
||
|
.actions>ul>li {
|
||
|
display: inline;
|
||
|
}
|
||
|
|