376 lines
5.4 KiB
CSS
376 lines
5.4 KiB
CSS
body {
|
|
font: 100%/1.6 sans-serif;
|
|
max-width: 43em;
|
|
margin: auto;
|
|
padding: 1em;
|
|
background: white;
|
|
}
|
|
|
|
/* {{{ General element tweaks */
|
|
blockquote {
|
|
padding-left: 1.25rem;
|
|
border-left: 3px solid;
|
|
margin-left: 0;
|
|
}
|
|
|
|
ul,
|
|
ol {
|
|
padding-left: 1.5rem;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
.heading-anchor {
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
/* Note: I need to check whether this only aligns things better with the font I use */
|
|
transform: translateY(-2px);
|
|
}
|
|
}
|
|
|
|
math[display="block"] {
|
|
margin: 1.5em 0;
|
|
}
|
|
|
|
pre > code {
|
|
display: block;
|
|
padding: 1rem;
|
|
}
|
|
/* }}} */
|
|
/* {{{ General article styling */
|
|
.article-content {
|
|
max-width: 40em;
|
|
margin: auto;
|
|
}
|
|
|
|
.article-list {
|
|
max-width: 36em;
|
|
margin: auto;
|
|
list-style-type: none;
|
|
|
|
ul {
|
|
list-style-type: disc;
|
|
}
|
|
}
|
|
/* }}} */
|
|
/* {{{ Asides */
|
|
/* TODO: remove aside-header altogether */
|
|
.aside-header {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
|
|
img {
|
|
height: 1.75em;
|
|
margin-right: 0.75em;
|
|
}
|
|
}
|
|
|
|
.aside {
|
|
background: #faebff;
|
|
border-radius: 3px;
|
|
|
|
box-sizing: border-box;
|
|
padding-left: 1rem;
|
|
padding-right: 1rem;
|
|
margin: 1.5rem 0;
|
|
|
|
/* Prevents margin-collapsing of the children. */
|
|
border: 1px solid black;
|
|
|
|
/* Slightly move things to the left to more nicely align with the marker */
|
|
&.aside-long > :not(summary) {
|
|
margin-left: 1rem;
|
|
}
|
|
|
|
/* Remove the top margin of the first paragraph under the header */
|
|
&:has(> .aside-header) > :nth-child(2) {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
/* {{{ Override marker */
|
|
.aside > summary {
|
|
&::marker {
|
|
display: none;
|
|
}
|
|
|
|
&::before {
|
|
content: "▶";
|
|
font-size: 0.75rem;
|
|
padding: 0 0.75rem 0 0.25rem;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
|
|
.aside[open] > summary::before {
|
|
content: "▼";
|
|
}
|
|
/* }}} */
|
|
/* }}} */
|
|
/* {{{ Tier lists */
|
|
.tier-list {
|
|
background: #444;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
padding: calc(3 * var(--spacing));
|
|
box-sizing: border-box;
|
|
|
|
--spacing: 0.75px;
|
|
|
|
.tier:not(:last-child) {
|
|
border-bottom: 1px solid #000;
|
|
}
|
|
|
|
.tier {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-items: center;
|
|
|
|
.tier-elements {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
|
|
a > img,
|
|
a {
|
|
height: 3rem;
|
|
}
|
|
}
|
|
|
|
.tier-heading,
|
|
a {
|
|
margin: var(--spacing);
|
|
}
|
|
|
|
.tier-heading {
|
|
width: 6rem;
|
|
min-width: 6rem;
|
|
min-height: 3rem;
|
|
margin: var(--spacing);
|
|
color: unset;
|
|
text-decoration: none;
|
|
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
.tier-heading-text {
|
|
padding: 0 0.5rem;
|
|
font-size: 1em;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* {{{ Tier colors */
|
|
.tier:nth-child(1) > .tier-heading {
|
|
background: #b39ddb;
|
|
}
|
|
|
|
.tier:nth-child(2) > .tier-heading {
|
|
background: #d7bde2;
|
|
}
|
|
|
|
.tier:nth-child(3) > .tier-heading {
|
|
background: #e6b0b8;
|
|
}
|
|
|
|
.tier:nth-child(4) > .tier-heading {
|
|
background: #f4c2c2;
|
|
}
|
|
|
|
.tier:nth-child(5) > .tier-heading {
|
|
background: #dce8a7;
|
|
}
|
|
|
|
.tier:nth-child(6) > .tier-heading {
|
|
background: #b5ead7;
|
|
}
|
|
|
|
.tier:nth-child(7) > .tier-heading {
|
|
background: #a2d5ab;
|
|
}
|
|
|
|
.tier:nth-child(8) > .tier-heading {
|
|
background: linear-gradient(
|
|
45deg,
|
|
#ffb3ba,
|
|
#ffdfba,
|
|
#ffffba,
|
|
#baffc9,
|
|
#bae1ff,
|
|
#b3baff,
|
|
#e2baff
|
|
);
|
|
}
|
|
/* }}} */
|
|
}
|
|
/* }}} */
|
|
/* {{{ Tables of contents */
|
|
.toc {
|
|
border-radius: 3px;
|
|
border: 1px solid;
|
|
background: #eff1f5;
|
|
|
|
box-sizing: border-box;
|
|
padding: 1rem;
|
|
margin: 1.5rem 0;
|
|
|
|
summary span {
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
nav {
|
|
margin-left: 1rem;
|
|
}
|
|
|
|
li {
|
|
padding: 0.25rem;
|
|
}
|
|
|
|
ol {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
ol ol {
|
|
position: relative;
|
|
|
|
&::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0.5rem;
|
|
bottom: 0.5rem;
|
|
left: -1.25rem;
|
|
border-left: 1px solid white;
|
|
width: 2px;
|
|
background: #003f5233;
|
|
}
|
|
}
|
|
}
|
|
/* }}} */
|
|
/* {{{ Figure */
|
|
figure {
|
|
margin: 2rem;
|
|
}
|
|
|
|
figure img {
|
|
max-width: 100%;
|
|
margin: auto;
|
|
height: auto;
|
|
}
|
|
|
|
figure > figcaption {
|
|
text-align: center;
|
|
}
|
|
|
|
figure > figcaption > p {
|
|
margin-top: 0.25rem;
|
|
}
|
|
/* }}} */
|
|
/* {{{ Light theme */
|
|
@media (prefers-color-scheme: light) {
|
|
code {
|
|
background: #eff1f5;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.aside code {
|
|
background: #e4e9f5;
|
|
}
|
|
|
|
/* {{{ Syntax highlighting */
|
|
span.attribute,
|
|
span.constant {
|
|
color: #fe640b;
|
|
}
|
|
|
|
span.comment,
|
|
span.comment-documentation {
|
|
color: #9ca0b0;
|
|
font-style: italic;
|
|
}
|
|
|
|
span.constant-builtin {
|
|
color: #fe640b;
|
|
}
|
|
|
|
span.constructor {
|
|
color: #209fb5;
|
|
}
|
|
|
|
span.function,
|
|
span.function-method {
|
|
color: #1e66f5;
|
|
}
|
|
|
|
span.function-builtin {
|
|
color: #fe640b;
|
|
}
|
|
|
|
span.function-macro {
|
|
color: #179299;
|
|
}
|
|
|
|
span.keyword {
|
|
color: #8839ef;
|
|
}
|
|
|
|
span.label {
|
|
color: #209fb5;
|
|
}
|
|
|
|
span.operator {
|
|
color: #04a5e5;
|
|
}
|
|
|
|
span.property {
|
|
color: #7287fd;
|
|
}
|
|
|
|
span.punctuation,
|
|
span.punctuation-delimiter {
|
|
color: #7c7f93;
|
|
}
|
|
|
|
span.punctuation-bracket {
|
|
color: #7c7f93;
|
|
}
|
|
|
|
span.string {
|
|
color: #40a02b;
|
|
}
|
|
|
|
span.string-special {
|
|
color: #ea76cb;
|
|
}
|
|
|
|
span.tag {
|
|
color: #8839ef;
|
|
}
|
|
|
|
span.type,
|
|
span.type-builtin {
|
|
color: #df8e1d;
|
|
}
|
|
|
|
span.variable {
|
|
color: #4c4f69;
|
|
}
|
|
|
|
span.variable-builtin {
|
|
color: #d20f39;
|
|
}
|
|
|
|
span.variable-parameter {
|
|
color: #e64553;
|
|
}
|
|
/* }}} */
|
|
}
|
|
/* }}} */
|