2024-08-26 23:25:36 +02:00
|
|
|
/* Variables */
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--color-text: #111;
|
|
|
|
--color-error: #db344b;
|
|
|
|
|
|
|
|
--color-brand-blue: #40b1f4;
|
|
|
|
|
|
|
|
--color-panel-border: rgba(0, 0, 0, 20%);
|
|
|
|
--color-panel-background: #fff;
|
|
|
|
--color-shaded-background: rgba(0, 0, 0, 5%);
|
|
|
|
|
|
|
|
--dialog-backdrop: rgba(255, 255, 255, 0.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Reset */
|
|
|
|
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
color: var(--color-text);
|
2024-08-27 20:43:14 +02:00
|
|
|
line-height: 1.5;
|
2024-08-26 23:25:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Fonts */
|
|
|
|
|
|
|
|
@font-face {
|
2024-08-27 20:43:14 +02:00
|
|
|
font-family: "Atkinson Hyperlegible";
|
2024-08-26 23:25:36 +02:00
|
|
|
src:
|
2024-08-27 20:43:14 +02:00
|
|
|
local("Atkinson Hyperlegible Regular"),
|
|
|
|
url("font/AtkinsonHyperlegible-Regular.ttf");
|
2024-08-26 23:25:36 +02:00
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
2024-08-27 20:43:14 +02:00
|
|
|
font-family: "Atkinson Hyperlegible";
|
2024-08-26 23:25:36 +02:00
|
|
|
src:
|
2024-08-27 20:43:14 +02:00
|
|
|
local("Atkinson Hyperlegible Italic"),
|
|
|
|
url("font/AtkinsonHyperlegible-Italic.ttf");
|
2024-08-26 23:25:36 +02:00
|
|
|
font-weight: 400;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
2024-08-27 20:43:14 +02:00
|
|
|
font-family: "Atkinson Hyperlegible";
|
2024-08-26 23:25:36 +02:00
|
|
|
src:
|
2024-08-27 20:43:14 +02:00
|
|
|
local("Atkinson Hyperlegible Bold"),
|
|
|
|
url("font/AtkinsonHyperlegible-Bold.ttf");
|
2024-08-26 23:25:36 +02:00
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
2024-08-27 20:43:14 +02:00
|
|
|
font-family: "Atkinson Hyperlegible";
|
2024-08-26 23:25:36 +02:00
|
|
|
src:
|
2024-08-27 20:43:14 +02:00
|
|
|
local("Atkinson Hyperlegible Bold Italic"),
|
|
|
|
url("font/AtkinsonHyperlegible-BoldItalic.ttf");
|
2024-08-26 23:25:36 +02:00
|
|
|
font-weight: 700;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
2024-08-27 20:43:14 +02:00
|
|
|
/* NOTE: This is my own variant of Iosevka that more or less follows the stylistic choices
|
|
|
|
of Atkinson Hyperlegible. */
|
|
|
|
font-family: "Iosevka Hyperlegible";
|
2024-08-26 23:25:36 +02:00
|
|
|
src:
|
2024-08-27 20:43:14 +02:00
|
|
|
local("Iosevka Hyperlegible"),
|
|
|
|
url("font/IosevkaHyperlegible-Regular.woff2");
|
2024-08-26 23:25:36 +02:00
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
|
|
|
|
:root {
|
2024-08-27 20:43:14 +02:00
|
|
|
font-family: "Atkinson Hyperlegible", sans-serif;
|
2024-08-26 23:25:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
button, textarea, input {
|
|
|
|
font-size: inherit;
|
|
|
|
font-family: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre, code, textarea {
|
2024-08-27 20:43:14 +02:00
|
|
|
font-family: "Iosevka Hyperlegible", monospace;
|
|
|
|
line-height: 1.5;
|
2024-08-26 23:25:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Buttons */
|
|
|
|
|
|
|
|
button {
|
|
|
|
border: 1px solid var(--color-panel-border);
|
|
|
|
border-radius: 9999px;
|
|
|
|
padding: 0.5rem 1.5rem;
|
|
|
|
background-color: var(--color-panel-background);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Text areas */
|
|
|
|
|
|
|
|
input {
|
|
|
|
border: none;
|
|
|
|
border-bottom: 1px solid var(--color-panel-border);
|
|
|
|
}
|
|
|
|
|
|
|
|
*:focus {
|
2024-08-27 14:13:03 +02:00
|
|
|
outline: 1px solid var(--color-brand-blue);
|
2024-08-26 23:25:36 +02:00
|
|
|
outline-offset: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Modal dialogs */
|
|
|
|
|
|
|
|
dialog:not([open]) {
|
|
|
|
/* Weird this doesn't seem to work by default. */
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
dialog::backdrop {
|
|
|
|
background-color: var(--dialog-backdrop);
|
|
|
|
backdrop-filter: blur(8px);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Details */
|
|
|
|
|
|
|
|
details>summary {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Throbbers */
|
|
|
|
|
|
|
|
@keyframes rkgk-throbber-loading {
|
|
|
|
0% {
|
|
|
|
clip-path: inset(0% 100% 0% 0%);
|
|
|
|
animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
50% {
|
|
|
|
clip-path: inset(0% 0% 0% 0%);
|
|
|
|
animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
clip-path: inset(0% 0% 0% 100%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
rkgk-throbber {
|
|
|
|
display: inline;
|
|
|
|
|
|
|
|
&.loading {
|
|
|
|
display: block;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
background-color: var(--color-brand-blue);
|
|
|
|
animation: infinite alternate rkgk-throbber-loading;
|
|
|
|
/* I wonder how many people will get _that_ reference. */
|
|
|
|
animation-duration: calc(60s / 141.98);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.error {
|
|
|
|
/* This could use an icon. */
|
|
|
|
color: var(--color-error);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Panels */
|
|
|
|
|
|
|
|
.rkgk-panel {
|
2024-08-27 14:13:03 +02:00
|
|
|
--panel-border-radius: 8px;
|
|
|
|
|
2024-08-26 23:25:36 +02:00
|
|
|
display: block;
|
|
|
|
background: var(--color-panel-background);
|
|
|
|
border: none;
|
2024-08-27 14:13:03 +02:00
|
|
|
border-radius: var(--panel-border-radius);
|
|
|
|
box-shadow:
|
|
|
|
0 0 0 1px var(--color-panel-border);
|
|
|
|
/* 4px 4px 0 0 var(--color-panel-border); */
|
2024-08-26 23:25:36 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Horizontal separators */
|
|
|
|
|
|
|
|
hr {
|
|
|
|
border: none;
|
|
|
|
border-bottom: 1px solid var(--color-panel-border);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Lists */
|
|
|
|
|
|
|
|
ul, ol {
|
|
|
|
padding-left: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Code examples */
|
|
|
|
|
|
|
|
pre:has(code) {
|
|
|
|
background-color: var(--color-shaded-background);
|
|
|
|
border-radius: 8px;
|
|
|
|
padding: 1em 1em;
|
|
|
|
}
|
|
|
|
|
2024-08-27 14:13:03 +02:00
|
|
|
/* Icons */
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--icon-rkgk-grayscale: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBkPSJtMCAwaDE2djE2aC0xNnoiLz48L2NsaXBQYXRoPjxnIGNsaXAtcGF0aD0idXJsKCNhKSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIGQ9Im0xMiAxNy00LjU1Mjc5LTkuMTA1NTdjLS42NjQ5LTEuMzI5ODEuMzAyMDktMi44OTQ0MyAxLjc4ODg2LTIuODk0NDNoOC43NjM5MyIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxnIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0ibTUuNSAxMi0yLjUgNSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW9wYWNpdHk9Ii41Ii8+PHBhdGggZD0ibTMgNWgxIi8+PC9nPjwvZz48L3N2Zz4=');
|
|
|
|
--icon-external-link: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBzdHJva2U9IiMwMDAiPjxwYXRoIGQ9Im0xMC41IDl2Mi41aC02di02aDIuNSIvPjxwYXRoIGQ9Im03IDkgNC41LTQuNW0wIDBoLTMuNW0zLjUgMHYzLjUiLz48L2c+PC9zdmc+');
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 50% 50%;
|
|
|
|
|
|
|
|
&.icon-rkgk-grayscale { background-image: var(--icon-rkgk-grayscale); }
|
|
|
|
&.icon-external-link { background-image: var(--icon-external-link); }
|
|
|
|
}
|
|
|
|
|