217 lines
3.4 KiB
CSS
217 lines
3.4 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
font: inherit;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--bg-primary: #1a1923;
|
|
--bg-secondary: #14131d;
|
|
--bg-tertiary: #100e18;
|
|
--bg-quartiary: #0a0e11;
|
|
--bg-light: #201e2a;
|
|
--never-see-this-color: #00ff1f;
|
|
--fg-text: #c7c6ca;
|
|
--fg-link: #b18cf3;
|
|
--fg-dimmed: #7f879b;
|
|
--color-accent: #b18cf3;
|
|
--borders: #222a30;
|
|
}
|
|
|
|
body {
|
|
color: var(--fg-text);
|
|
background: var(--bg-primary);
|
|
font: 16px/1.3 sans-serif;
|
|
}
|
|
|
|
main {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1em;
|
|
white-space: pre-wrap;
|
|
max-width: 700px;
|
|
margin: 2em auto;
|
|
padding-bottom: 50vh;
|
|
}
|
|
|
|
h1 { font-size: 2em }
|
|
h2 { font-size: 1.5em }
|
|
h3 { font-size: 1.3em }
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: var(--fg-link);
|
|
cursor: pointer;
|
|
}
|
|
|
|
a:hover, a:focus-visible {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
b, strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
i, em {
|
|
font-style: italic;
|
|
}
|
|
|
|
ol, ul {
|
|
margin-left: 1em;
|
|
}
|
|
|
|
pre, code {
|
|
font-family: monospace;
|
|
}
|
|
|
|
pre:not(.lang-mono), code:not(.lang-mono) {
|
|
background: var(--bg-secondary);
|
|
padding: 0 2px;
|
|
border-radius: 2px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
pre:not(.lang-mono) {
|
|
padding: 8px;
|
|
}
|
|
|
|
table {
|
|
border: solid var(--borders) 1px;
|
|
border-radius: 4px;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
thead {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
tbody > tr:nth-child(even) {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
td, th {
|
|
padding: 8px;
|
|
}
|
|
|
|
.embed {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 300px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.embed.empty {
|
|
background: linear-gradient(120deg, var(--bg-tertiary), var(--bg-secondary), var(--bg-tertiary));
|
|
height: 300px;
|
|
border: solid var(--borders) 1px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.callout {
|
|
padding: 8px;
|
|
border-radius: 4px;
|
|
border: solid var(--borders) 1px;
|
|
}
|
|
|
|
.callout.notice {
|
|
background: #201f29;
|
|
}
|
|
|
|
.callout.info {
|
|
background: #1f2e37;
|
|
border: solid #254961 1px;
|
|
}
|
|
|
|
.callout.warning {
|
|
background: #262316;
|
|
border: solid #605825 1px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.callout.danger {
|
|
background: #21151a;
|
|
border: solid #96242c 1px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.noted.aside {
|
|
counter-increment: sidenotes;
|
|
}
|
|
|
|
.noted.aside::after {
|
|
content: counter(sidenotes);
|
|
color: var(--color-accent);
|
|
vertical-align: super;
|
|
font-size: .8rem;
|
|
}
|
|
|
|
.noted.aside:hover > .note {
|
|
background: var(--bg-light);
|
|
}
|
|
|
|
.noted.aside > .note {
|
|
position: absolute;
|
|
display: block;
|
|
left: 100%;
|
|
margin-left: 8px;
|
|
margin-top: calc(-1rem - 8px);
|
|
padding: 4px;
|
|
padding-left: 32px;
|
|
border-top: solid var(--borders) 1px;
|
|
border-radius: 4px;
|
|
border-top-left-radius: 0;
|
|
width: 200px;
|
|
}
|
|
|
|
.noted.aside > .note::before {
|
|
content: counter(sidenotes);
|
|
margin-right: 8px;
|
|
padding: 0 4px;
|
|
background: var(--bg-tertiary);
|
|
color: var(--color-accent);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.noted.inline {
|
|
position: relative;
|
|
display: inline-block;
|
|
padding-bottom: 1rem;
|
|
}
|
|
|
|
.noted.inline > .note {
|
|
position: absolute;
|
|
display: flex;
|
|
gap: 4px;
|
|
left: 0;
|
|
top: calc(1em + 8px);
|
|
text-align: center;
|
|
width: 100%;
|
|
font-family: sans-serif;
|
|
font-size: .9rem;
|
|
color: var(--fg-dimmed);
|
|
}
|
|
|
|
.noted.inline > .note::before, .noted.inline > .note::after {
|
|
content: "";
|
|
border-bottom: solid #44535f 1px;
|
|
flex: 1;
|
|
height: calc(.5em + 4px);
|
|
}
|
|
|
|
.noted.inline > .note::before {
|
|
border-left: solid #44535f 1px;
|
|
}
|
|
|
|
.noted.inline > .note::after {
|
|
border-right: solid #44535f 1px;
|
|
}
|
|
|
|
img, video {
|
|
display: block;
|
|
max-height: 300px;
|
|
border-radius: 4px;
|
|
margin: 0 auto;
|
|
}
|