359 lines
7.3 KiB
CSS
359 lines
7.3 KiB
CSS
|
@font-face {
|
||
|
font-family: "Fira Code VF";
|
||
|
src: url("/assets/fonts/FiraCode-VF/FiraCode-VF.woff2") format("woff2-variations"), url("/assets/fonts/FiraCode-VF/FiraCode-VF.woff") format("woff-variations");
|
||
|
font-weight: 200 700;
|
||
|
font-style: normal;
|
||
|
}
|
||
|
|
||
|
/* This is going to be quite long */
|
||
|
@font-face {
|
||
|
font-family: "FiraGO";
|
||
|
src: url("/assets/fonts/FiraGO/FiraGO-ExtraLight.woff2") format("woff2"), url("/assets/fonts/FiraGO/FiraGO-ExtraLight.woff") format("woff");
|
||
|
font-weight: 200;
|
||
|
font-style: normal;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: "FiraGO";
|
||
|
src: url("/assets/fonts/FiraGO/FiraGO-ExtraLightItalic.woff2") format("woff2"), url("/assets/fonts/FiraGO/FiraGO-ExtraLightItalic.woff") format("woff");
|
||
|
font-weight: 200;
|
||
|
font-style: italic;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: "FiraGO";
|
||
|
src: url("/assets/fonts/FiraGO/FiraGO-Light.woff2") format("woff2"), url("/assets/fonts/FiraGO/FiraGO-Light.woff") format("woff");
|
||
|
font-weight: 300;
|
||
|
font-style: normal;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: "FiraGO";
|
||
|
src: url("/assets/fonts/FiraGO/FiraGO-LightItalic.woff2") format("woff2"), url("/assets/fonts/FiraGO/FiraGO-LightItalic.woff") format("woff");
|
||
|
font-weight: 300;
|
||
|
font-style: italic;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: "FiraGO";
|
||
|
src: url("/assets/fonts/FiraGO/FiraGO-Regular.woff2") format("woff2"), url("/assets/fonts/FiraGO/FiraGO-Regular.woff") format("woff");
|
||
|
font-weight: 400;
|
||
|
font-style: normal;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: "FiraGO";
|
||
|
src: url("/assets/fonts/FiraGO/FiraGO-Italic.woff2") format("woff2"), url("/assets/fonts/FiraGO/FiraGO-Italic.woff") format("woff");
|
||
|
font-weight: 400;
|
||
|
font-style: italic;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: "FiraGO";
|
||
|
src: url("/assets/fonts/FiraGO/FiraGO-Medium.woff2") format("woff2"), url("/assets/fonts/FiraGO/FiraGO-Medium.woff") format("woff");
|
||
|
font-weight: 500;
|
||
|
font-style: normal;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: "FiraGO";
|
||
|
src: url("/assets/fonts/FiraGO/FiraGO-MediumItalic.woff2") format("woff2"), url("/assets/fonts/FiraGO/FiraGO-MediumItalic.woff") format("woff");
|
||
|
font-weight: 500;
|
||
|
font-style: italic;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: "FiraGO";
|
||
|
src: url("/assets/fonts/FiraGO/FiraGO-SemiBold.woff2") format("woff2"), url("/assets/fonts/FiraGO/FiraGO-SemiBold.woff") format("woff");
|
||
|
font-weight: 600;
|
||
|
font-style: normal;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: "FiraGO";
|
||
|
src: url("/assets/fonts/FiraGO/FiraGO-SemiBoldItalic.woff2") format("woff2"), url("/assets/fonts/FiraGO/FiraGO-SemiBoldItalic.woff") format("woff");
|
||
|
font-weight: 600;
|
||
|
font-style: italic;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: "FiraGO";
|
||
|
src: url("/assets/fonts/FiraGO/FiraGO-Bold.woff2") format("woff2"), url("/assets/fonts/FiraGO/FiraGO-Bold.woff") format("woff");
|
||
|
font-weight: 700;
|
||
|
font-style: normal;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: "FiraGO";
|
||
|
src: url("/assets/fonts/FiraGO/FiraGO-BoldItalic.woff2") format("woff2"), url("/assets/fonts/FiraGO/FiraGO-BoldItalic.woff") format("woff");
|
||
|
font-weight: 700;
|
||
|
font-style: italic;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: "FiraGO";
|
||
|
src: url("/assets/fonts/FiraGO/FiraGO-ExtraBold.woff2") format("woff2"), url("/assets/fonts/FiraGO/FiraGO-ExtraBold.woff") format("woff");
|
||
|
font-weight: 800;
|
||
|
font-style: normal;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: "FiraGO";
|
||
|
src: url("/assets/fonts/FiraGO/FiraGO-ExtraBoldItalic.woff2") format("woff2"), url("/assets/fonts/FiraGO/FiraGO-ExtraBoldItalic.woff") format("woff");
|
||
|
font-weight: 800;
|
||
|
font-style: italic;
|
||
|
}
|
||
|
|
||
|
:root {
|
||
|
--accent: hsl(287, 50%, 59%);
|
||
|
--accent-2: hsl(287, 50%, 39%);
|
||
|
--background: hsl(302, 69%, 95%);
|
||
|
--background-2: hsl(302, 69%, 90%);
|
||
|
--foreground: hsl(302, 69%, 10%);
|
||
|
--success: hsl(110, 50%, 59%);
|
||
|
--warn: hsl(30, 50%, 59%);
|
||
|
--error: hsl(0, 50%, 59%);
|
||
|
|
||
|
--radius: 12px;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
/* Display */
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
|
||
|
/* Colors */
|
||
|
background-color: var(--background);
|
||
|
color: var(--foreground);
|
||
|
|
||
|
font-family: "FiraGO", sans-serif;
|
||
|
}
|
||
|
|
||
|
article:first-of-type,
|
||
|
main:first-of-type {
|
||
|
margin-left: auto;
|
||
|
margin-right: auto;
|
||
|
padding: 1rem;
|
||
|
max-width: 768px;
|
||
|
}
|
||
|
|
||
|
h1 {
|
||
|
border-bottom: 2px solid var(--accent-2);
|
||
|
font-size: xx-large;
|
||
|
}
|
||
|
|
||
|
h2 {
|
||
|
border-bottom: 1px solid var(--accent-2);
|
||
|
font-size: x-large;
|
||
|
}
|
||
|
|
||
|
h3 {
|
||
|
font-size: large;
|
||
|
}
|
||
|
|
||
|
h4 {
|
||
|
font-size: medium;
|
||
|
}
|
||
|
|
||
|
h5 {
|
||
|
font-size: small;
|
||
|
}
|
||
|
|
||
|
h6 {
|
||
|
font-size: x-small;
|
||
|
}
|
||
|
|
||
|
a {
|
||
|
padding-left: 0.15em;
|
||
|
padding-right: 0.15em;
|
||
|
color: var(--accent);
|
||
|
text-underline-offset: 0.15rem;
|
||
|
}
|
||
|
|
||
|
a[target="_blank"]:not(:has(>img))::after {
|
||
|
content: "↗";
|
||
|
display: inline-block;
|
||
|
}
|
||
|
|
||
|
a:visited {
|
||
|
color: var(--accent-2);
|
||
|
}
|
||
|
|
||
|
a:not(:has(>img)):hover {
|
||
|
background-color: var(--accent);
|
||
|
color: var(--background);
|
||
|
text-decoration: none;
|
||
|
}
|
||
|
|
||
|
a:not(:has(>img)):visited:hover {
|
||
|
background-color: var(--accent-2);
|
||
|
}
|
||
|
|
||
|
dt::after {
|
||
|
content: ": ";
|
||
|
}
|
||
|
|
||
|
img,
|
||
|
video {
|
||
|
max-width: 100%;
|
||
|
height: auto;
|
||
|
}
|
||
|
|
||
|
blockquote>:not(footer):first-of-type::before {
|
||
|
content: open-quote;
|
||
|
color: var(--accent);
|
||
|
font-weight: 800;
|
||
|
}
|
||
|
|
||
|
blockquote>:not(footer):last-of-type::after {
|
||
|
content: close-quote;
|
||
|
color: var(--accent);
|
||
|
font-weight: 800;
|
||
|
}
|
||
|
|
||
|
blockquote footer::before {
|
||
|
content: "— ";
|
||
|
}
|
||
|
|
||
|
code {
|
||
|
padding-left: 0.15em;
|
||
|
padding-right: 0.15em;
|
||
|
background-color: var(--background-2);
|
||
|
font-family: "Fira Code VF", monospace;
|
||
|
}
|
||
|
|
||
|
pre code {
|
||
|
display: block;
|
||
|
width: 100%;
|
||
|
padding: 0.5rem;
|
||
|
overflow-x: scroll;
|
||
|
|
||
|
border: 1px solid var(--accent);
|
||
|
}
|
||
|
|
||
|
details {
|
||
|
border-left: 2px solid var(--accent-2);
|
||
|
}
|
||
|
|
||
|
details[open] {
|
||
|
padding-bottom: 1px;
|
||
|
}
|
||
|
|
||
|
details+details {
|
||
|
margin-top: 0.5em;
|
||
|
}
|
||
|
|
||
|
details>* {
|
||
|
margin-left: 2em;
|
||
|
}
|
||
|
|
||
|
details>summary {
|
||
|
margin-left: 0;
|
||
|
padding: 0.5em;
|
||
|
width: fit-content;
|
||
|
cursor: pointer;
|
||
|
|
||
|
background-color: var(--accent-2);
|
||
|
color: var(--background);
|
||
|
}
|
||
|
|
||
|
kbd {
|
||
|
padding-left: 0.5em;
|
||
|
padding-right: 0.5em;
|
||
|
|
||
|
background-color: var(--background-2);
|
||
|
border-radius: var(--radius);
|
||
|
}
|
||
|
|
||
|
mark {
|
||
|
padding-left: 0.25em;
|
||
|
padding-right: 0.25em;
|
||
|
|
||
|
background-color: var(--accent);
|
||
|
color: var(--background);
|
||
|
}
|
||
|
|
||
|
td,
|
||
|
th {
|
||
|
padding: 0.25em;
|
||
|
}
|
||
|
|
||
|
table {
|
||
|
display: block;
|
||
|
max-width: 100%;
|
||
|
overflow-x: scroll;
|
||
|
}
|
||
|
|
||
|
table.rows tbody tr {
|
||
|
background-color: var(--background-2);
|
||
|
}
|
||
|
|
||
|
table.rows tbody tr:nth-child(2n) {
|
||
|
background-color: transparent;
|
||
|
}
|
||
|
|
||
|
.table-y {
|
||
|
background-color: var(--success);
|
||
|
color: black;
|
||
|
}
|
||
|
|
||
|
.table-p {
|
||
|
background-color: var(--warn);
|
||
|
color: black;
|
||
|
}
|
||
|
|
||
|
.table-n {
|
||
|
background-color: var(--error);
|
||
|
color: black;
|
||
|
}
|
||
|
|
||
|
.icon-link>a {
|
||
|
line-height: 2em;
|
||
|
}
|
||
|
|
||
|
.icon-link>img {
|
||
|
display: inline-block;
|
||
|
width: 2em;
|
||
|
max-height: 2em;
|
||
|
vertical-align: middle;
|
||
|
}
|
||
|
|
||
|
.notice {
|
||
|
display: block;
|
||
|
padding: 0.5rem;
|
||
|
|
||
|
border: 2px dashed var(--warn);
|
||
|
}
|
||
|
|
||
|
.notice::before {
|
||
|
content: "🛈 Notice";
|
||
|
color: var(--warn);
|
||
|
font-size: larger;
|
||
|
font-weight: bolder;
|
||
|
}
|
||
|
|
||
|
.notice>p:first-child {
|
||
|
margin-top: 0;
|
||
|
}
|
||
|
|
||
|
.notice>p:last-child {
|
||
|
margin-bottom: 0;
|
||
|
}
|
||
|
|
||
|
.upper {
|
||
|
text-transform: uppercase;
|
||
|
}
|
||
|
|
||
|
::selection {
|
||
|
background-color: var(--accent);
|
||
|
color: var(--background);
|
||
|
}
|
||
|
|
||
|
@media (prefers-color-scheme: dark) {
|
||
|
:root {
|
||
|
--accent-2: hsl(287, 50%, 79%);
|
||
|
--background: hsl(302, 69%, 10%);
|
||
|
--background-2: hsl(302, 69%, 5%);
|
||
|
--foreground: hsl(302, 69%, 95%);
|
||
|
}
|
||
|
}
|