2023-08-27 15:27:42 +02:00
|
|
|
/* Color scheme. */
|
|
|
|
|
|
|
|
:root {
|
2023-08-27 19:40:47 +02:00
|
|
|
/* naturally */
|
|
|
|
--liquidex-brand-blue: #058ef0;
|
|
|
|
|
|
|
|
--text-color-light: #55423e;
|
|
|
|
--link-color-light: #004ec8;
|
|
|
|
--link-color-visited-light: #6c2380;
|
|
|
|
|
2023-08-27 15:27:42 +02:00
|
|
|
--background-color: rgb(255, 253, 246);
|
2023-08-28 22:11:18 +02:00
|
|
|
--background-color-tooltip: rgb(226, 223, 214);
|
2023-08-27 15:27:42 +02:00
|
|
|
--text-color: #55423e;
|
2023-08-27 17:01:27 +02:00
|
|
|
--link-color: #004ec8;
|
|
|
|
--link-color-visited: #6c2380;
|
2023-08-27 15:27:42 +02:00
|
|
|
|
|
|
|
--shaded-background: rgba(0, 0, 0, 5%);
|
|
|
|
--border-1: rgba(0, 0, 0, 15%);
|
|
|
|
--border-2: rgba(0, 0, 0, 30%);
|
2023-08-27 17:01:27 +02:00
|
|
|
--hover: rgba(0, 0, 0, 15%);
|
2024-02-08 13:49:22 +01:00
|
|
|
|
|
|
|
/* Hack to enable theme-matching scrollbars in <pre> */
|
|
|
|
--shaded-against-background: #f2f0ea;
|
|
|
|
--shaded-against-background-twice: #e6e4de;
|
2023-08-27 17:01:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:root {
|
|
|
|
--background-color: rgb(30, 40, 53);
|
2023-08-28 22:11:18 +02:00
|
|
|
--background-color-tooltip: rgb(23, 31, 41);
|
2023-08-27 17:01:27 +02:00
|
|
|
--text-color: #d7cdbf;
|
|
|
|
--link-color: #93cce8;
|
|
|
|
--link-color-visited: #f7afde;
|
|
|
|
|
|
|
|
--shaded-background: #f7e5df0c;
|
2024-02-07 15:33:46 +01:00
|
|
|
--border-0: #f7e5df1a;
|
2023-08-27 17:01:27 +02:00
|
|
|
--border-1: #f7e5df26;
|
2024-02-07 15:33:46 +01:00
|
|
|
--border-1-and-a-half: #f7e5df3a;
|
2023-08-27 17:01:27 +02:00
|
|
|
--border-2: #f7e5df4d;
|
2024-02-08 13:49:22 +01:00
|
|
|
|
|
|
|
--shaded-against-background: #29313e;
|
|
|
|
--shaded-against-background-twice: #333a46;
|
2023-08-27 17:01:27 +02:00
|
|
|
}
|
2023-08-27 15:27:42 +02:00
|
|
|
}
|
|
|
|
|
2023-08-18 18:26:41 +02:00
|
|
|
/* Article-style layout. Center everything and give it a maximum width */
|
|
|
|
|
|
|
|
body {
|
|
|
|
max-width: 1200px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2023-08-27 15:27:42 +02:00
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-08-18 18:26:41 +02:00
|
|
|
}
|
|
|
|
|
2023-08-20 15:54:06 +02:00
|
|
|
main {
|
|
|
|
padding: 0 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 480px) {
|
|
|
|
main {
|
|
|
|
padding: 0 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-18 17:04:12 +02:00
|
|
|
/* Choose more pretty colors than vanilla HTML */
|
|
|
|
|
|
|
|
body {
|
2023-08-27 15:27:42 +02:00
|
|
|
background-color: var(--background-color);
|
|
|
|
color: var(--text-color);
|
2023-08-27 19:40:47 +02:00
|
|
|
|
|
|
|
scrollbar-color: var(--background-color);
|
|
|
|
scrollbar-width: auto;
|
|
|
|
scrollbar-gutter: stable;
|
|
|
|
}
|
|
|
|
|
|
|
|
body::selection {
|
|
|
|
/* Even though this color doesn't yield the most readable text, browsers */
|
|
|
|
background-color: var(--liquidex-brand-blue);
|
2023-08-18 17:04:12 +02:00
|
|
|
}
|
|
|
|
|
2023-08-18 18:26:41 +02:00
|
|
|
/* Set up typography */
|
2023-08-18 17:04:12 +02:00
|
|
|
|
2024-01-10 21:25:19 +01:00
|
|
|
@font-face {
|
|
|
|
font-family: 'RecVar';
|
|
|
|
src: url('../font/Recursive_VF_1.085.woff2');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-08-18 17:04:12 +02:00
|
|
|
body,
|
|
|
|
pre,
|
2023-09-07 16:44:52 +02:00
|
|
|
code,
|
|
|
|
kbd {
|
2023-08-18 17:04:12 +02:00
|
|
|
font-family: 'RecVar', sans-serif;
|
|
|
|
font-size: 14px;
|
2023-08-18 18:26:41 +02:00
|
|
|
line-height: 1.5;
|
2023-08-18 17:04:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--recursive-mono: 0.0;
|
|
|
|
--recursive-casl: 1.0;
|
|
|
|
--recursive-wght: 400;
|
|
|
|
--recursive-slnt: -2.0;
|
|
|
|
--recursive-crsv: 0.5;
|
2024-01-10 21:25:19 +01:00
|
|
|
|
|
|
|
--recursive-simplified-f: "ss03";
|
|
|
|
--recursive-simplified-g: "ss04";
|
|
|
|
--recursive-simplified-l: "ss05";
|
|
|
|
--recursive-simplified-r: "ss06";
|
|
|
|
--recursive-no-serif-L-Z: "ss08";
|
2023-08-18 17:04:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
*,
|
|
|
|
*:before,
|
|
|
|
*:after {
|
|
|
|
font-variation-settings:
|
|
|
|
"MONO" var(--recursive-mono),
|
|
|
|
"CASL" var(--recursive-casl),
|
|
|
|
"wght" var(--recursive-wght),
|
|
|
|
"slnt" var(--recursive-slnt),
|
|
|
|
"CRSV" var(--recursive-crsv);
|
2024-01-10 21:25:19 +01:00
|
|
|
|
|
|
|
font-feature-settings:
|
|
|
|
var(--recursive-simplified-f),
|
|
|
|
var(--recursive-simplified-g),
|
|
|
|
var(--recursive-simplified-l),
|
|
|
|
var(--recursive-simplified-r),
|
|
|
|
var(--recursive-no-serif-L-Z);
|
2023-08-18 17:04:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
--recursive-slnt: 0.0;
|
|
|
|
--recursive-casl: 0.0;
|
|
|
|
--recursive-wght: 900;
|
2023-08-18 18:26:41 +02:00
|
|
|
|
2023-08-27 17:01:27 +02:00
|
|
|
font-size: 3.5rem;
|
2024-01-10 21:25:19 +01:00
|
|
|
font-feature-settings: var(--recursive-simplified-r) 0;
|
2023-08-18 18:26:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
--recursive-slnt: 0.0;
|
|
|
|
--recursive-casl: 0.5;
|
|
|
|
--recursive-wght: 800;
|
|
|
|
|
|
|
|
font-size: 2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
--recursive-slnt: 0.0;
|
|
|
|
--recursive-casl: 0.5;
|
|
|
|
--recursive-wght: 700;
|
|
|
|
|
|
|
|
font-size: 1.5rem;
|
2023-08-18 17:04:12 +02:00
|
|
|
}
|
|
|
|
|
2023-08-31 19:25:19 +02:00
|
|
|
h4 {
|
|
|
|
--recursive-slnt: 0.0;
|
|
|
|
--recursive-casl: 0.5;
|
|
|
|
--recursive-wght: 700;
|
|
|
|
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
|
2023-08-18 17:04:12 +02:00
|
|
|
pre,
|
2023-09-07 16:44:52 +02:00
|
|
|
code,
|
|
|
|
kbd {
|
2023-08-18 17:04:12 +02:00
|
|
|
--recursive-mono: 1.0;
|
2023-08-18 18:26:41 +02:00
|
|
|
--recursive-casl: 0.0;
|
|
|
|
--recursive-slnt: 0.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
b,
|
|
|
|
strong {
|
|
|
|
--recursive-wght: 700;
|
|
|
|
}
|
|
|
|
|
|
|
|
i,
|
|
|
|
em {
|
|
|
|
--recursive-slnt: -16.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Lay out elements a bit more compactly */
|
|
|
|
|
|
|
|
p,
|
|
|
|
pre {
|
2023-08-27 19:40:47 +02:00
|
|
|
margin: 0 0;
|
2023-08-18 18:26:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2,
|
2023-08-31 19:25:19 +02:00
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2023-08-27 19:40:47 +02:00
|
|
|
margin: 4px 0;
|
2023-08-18 18:26:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Lay out elements a little less compactly (actually just have some blank space past the end) */
|
|
|
|
|
|
|
|
body {
|
|
|
|
padding-bottom: 10rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Make code examples a little prettier by giving them visual separation from the rest of the page */
|
|
|
|
|
2023-09-03 12:09:37 +02:00
|
|
|
code {
|
|
|
|
padding: 3px 4px;
|
|
|
|
background-color: var(--shaded-background);
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2023-09-07 16:44:52 +02:00
|
|
|
kbd {
|
|
|
|
padding: 3px 6px;
|
|
|
|
border: 1px solid var(--border-1);
|
|
|
|
border-radius: 6px;
|
|
|
|
}
|
|
|
|
|
2023-08-18 18:26:41 +02:00
|
|
|
pre {
|
|
|
|
padding: 8px 12px;
|
2023-08-18 19:25:38 +02:00
|
|
|
margin: 12px 0;
|
2024-02-08 13:49:22 +01:00
|
|
|
background-color: var(--shaded-against-background);
|
2023-08-18 19:25:38 +02:00
|
|
|
border-radius: 8px;
|
2024-02-08 13:49:22 +01:00
|
|
|
|
|
|
|
transition: background-color var(--transition-duration);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tree summary:hover pre {
|
|
|
|
background-color: var(--shaded-against-background-twice);
|
2023-08-18 18:26:41 +02:00
|
|
|
}
|
|
|
|
|
2023-09-03 12:09:37 +02:00
|
|
|
pre>code {
|
2023-09-07 16:44:52 +02:00
|
|
|
padding: 0;
|
2023-09-03 12:09:37 +02:00
|
|
|
background: none;
|
2023-09-07 16:44:52 +02:00
|
|
|
border-radius: 0px;
|
2023-09-03 12:09:37 +02:00
|
|
|
}
|
|
|
|
|
2023-08-20 15:54:06 +02:00
|
|
|
/* And don't let code examples fly off and overflow the window */
|
|
|
|
|
|
|
|
pre {
|
2024-02-08 13:49:22 +01:00
|
|
|
min-width: 0;
|
|
|
|
width: auto;
|
|
|
|
overflow: auto;
|
2023-08-20 15:54:06 +02:00
|
|
|
}
|
|
|
|
|
2023-08-18 18:26:41 +02:00
|
|
|
/* Also don't let images get out of hand */
|
|
|
|
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2024-02-07 11:35:08 +01:00
|
|
|
/* Also regarding images - make them look a bit more pretty by default */
|
|
|
|
|
|
|
|
img.pic {
|
|
|
|
border-radius: 6px;
|
|
|
|
margin: 8px 0;
|
|
|
|
}
|
|
|
|
|
2023-08-18 18:26:41 +02:00
|
|
|
/* Fix the default blue and ugly purple links normally have */
|
|
|
|
|
|
|
|
a {
|
2023-08-27 17:01:27 +02:00
|
|
|
color: var(--link-color);
|
2023-08-18 18:26:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
a:visited {
|
2023-08-27 17:01:27 +02:00
|
|
|
color: var(--link-color-visited);
|
2023-08-18 18:26:41 +02:00
|
|
|
}
|
|
|
|
|
2023-08-18 19:25:38 +02:00
|
|
|
/* Make blockquotes a bit prettier */
|
2023-08-18 18:26:41 +02:00
|
|
|
|
2023-08-18 19:25:38 +02:00
|
|
|
blockquote {
|
|
|
|
margin: 0;
|
2024-02-12 11:13:57 +01:00
|
|
|
padding: 4px 12px;
|
|
|
|
margin: 4px 0;
|
|
|
|
border-left: 4px solid var(--border-1);
|
2023-08-18 17:04:12 +02:00
|
|
|
}
|
|
|
|
|
2023-08-18 19:25:38 +02:00
|
|
|
/* And tables. */
|
2023-08-18 17:04:12 +02:00
|
|
|
|
2023-08-18 20:58:07 +02:00
|
|
|
table {
|
|
|
|
margin: 8px 0;
|
|
|
|
}
|
2023-08-18 17:04:12 +02:00
|
|
|
|
2023-08-18 19:25:38 +02:00
|
|
|
table,
|
|
|
|
th,
|
|
|
|
td {
|
2023-08-27 15:27:42 +02:00
|
|
|
border: 1px solid var(--border-2);
|
2023-08-18 19:25:38 +02:00
|
|
|
border-collapse: collapse;
|
|
|
|
padding: 4px 10px;
|
2023-08-18 17:04:12 +02:00
|
|
|
}
|
|
|
|
|
2023-08-18 19:25:38 +02:00
|
|
|
th {
|
2023-08-27 15:27:42 +02:00
|
|
|
background-color: var(--shaded-background);
|
2023-08-18 17:04:12 +02:00
|
|
|
|
2023-08-18 19:25:38 +02:00
|
|
|
--recursive-wght: 700;
|
|
|
|
--recursive-casl: 0.5;
|
2023-08-18 17:04:12 +02:00
|
|
|
}
|
2023-08-22 18:23:18 +02:00
|
|
|
|
2023-08-27 15:27:42 +02:00
|
|
|
/* Style the noscript box a little more prettily. */
|
|
|
|
|
2023-08-22 18:23:18 +02:00
|
|
|
.noscript {
|
|
|
|
padding: 16px;
|
|
|
|
background-color: #fde748;
|
2023-08-27 19:40:47 +02:00
|
|
|
color: var(--text-color-light);
|
2023-08-22 18:23:18 +02:00
|
|
|
border: 1px solid #6c581c;
|
|
|
|
border-radius: 8px;
|
|
|
|
width: fit-content;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.noscript p {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.noscript p:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2023-08-27 15:27:42 +02:00
|
|
|
|
2023-08-27 19:40:47 +02:00
|
|
|
.noscript a {
|
|
|
|
color: var(--link-color-light);
|
|
|
|
}
|
|
|
|
|
|
|
|
.noscript a:visited {
|
|
|
|
color: var(--link-color-visited-light);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* also, webkit. */
|
|
|
|
#webkit-makes-me-go-insane {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2024-02-07 13:32:47 +01:00
|
|
|
/* Style the navigation bar. */
|
2023-08-27 15:27:42 +02:00
|
|
|
|
|
|
|
nav {
|
|
|
|
display: flex;
|
2023-08-28 21:14:51 +02:00
|
|
|
align-items: center;
|
2023-08-27 15:27:42 +02:00
|
|
|
}
|
|
|
|
|
2024-02-07 13:32:47 +01:00
|
|
|
nav .nav-page {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Give the logo on the top some nicer looks */
|
2023-08-27 15:27:42 +02:00
|
|
|
nav .logo {
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
|
|
|
padding: 16px;
|
|
|
|
display: block;
|
|
|
|
opacity: 100%;
|
|
|
|
color: var(--text-color);
|
|
|
|
}
|
2023-08-27 18:25:21 +02:00
|
|
|
|
2024-02-07 13:32:47 +01:00
|
|
|
/* Style page titles */
|
|
|
|
h1.page-title {
|
|
|
|
--recursive-wght: 800;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
margin-left: 32px;
|
|
|
|
font-size: 1.25rem;
|
|
|
|
}
|
|
|
|
|
2024-02-08 22:41:01 +01:00
|
|
|
/* Style the footer */
|
|
|
|
|
|
|
|
footer {
|
|
|
|
margin-top: 4rem;
|
|
|
|
text-align: right;
|
|
|
|
opacity: 40%;
|
|
|
|
|
|
|
|
& #footer-icon {
|
|
|
|
color: var(--text-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-27 18:25:21 +02:00
|
|
|
/* Style emojis to be readable */
|
|
|
|
|
2023-08-28 22:11:18 +02:00
|
|
|
img[is="th-emoji"] {
|
2023-08-27 20:54:59 +02:00
|
|
|
max-width: 1.5em;
|
|
|
|
max-height: 1.5em;
|
2023-08-27 18:25:21 +02:00
|
|
|
vertical-align: bottom;
|
2023-08-27 20:54:59 +02:00
|
|
|
object-fit: contain;
|
2023-08-27 18:25:21 +02:00
|
|
|
}
|
2023-08-27 18:47:57 +02:00
|
|
|
|
2023-08-28 22:11:18 +02:00
|
|
|
/* And also style emoji tooltips. */
|
|
|
|
|
|
|
|
.emoji-wrapper {
|
2024-02-08 11:49:17 +01:00
|
|
|
--transition-duration: 0.2s;
|
|
|
|
|
2023-08-28 22:11:18 +02:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.emoji-tooltip {
|
2024-02-08 11:49:17 +01:00
|
|
|
display: flex;
|
2023-08-28 22:11:18 +02:00
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
2024-02-08 11:49:17 +01:00
|
|
|
transform: translateX(-50%) translateY(-10%) scale(0.8);
|
2023-08-28 22:11:18 +02:00
|
|
|
width: max-content;
|
|
|
|
z-index: 100;
|
|
|
|
|
|
|
|
background-color: var(--background-color-tooltip);
|
|
|
|
padding: 8px;
|
|
|
|
margin-top: 8px;
|
|
|
|
border-radius: 6px;
|
2024-02-08 11:49:17 +01:00
|
|
|
|
|
|
|
transition:
|
|
|
|
opacity var(--transition-duration) cubic-bezier(0.22, 1, 0.36, 1),
|
|
|
|
filter var(--transition-duration) cubic-bezier(0.22, 1, 0.36, 1),
|
|
|
|
transform var(--transition-duration) cubic-bezier(0.22, 1, 0.36, 1);
|
|
|
|
opacity: 0%;
|
|
|
|
filter: blur(3px);
|
|
|
|
pointer-events: none;
|
2023-08-28 22:11:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.emoji-wrapper:hover .emoji-tooltip {
|
2024-02-08 11:49:17 +01:00
|
|
|
opacity: 100%;
|
|
|
|
filter: blur(0px);
|
|
|
|
transform: translateX(-50%) scale(1.0);
|
2023-08-28 22:11:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.emoji-tooltip img {
|
|
|
|
display: block;
|
|
|
|
max-width: 64px;
|
|
|
|
max-height: 64px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.emoji-tooltip p {
|
|
|
|
--recursive-wght: 550;
|
|
|
|
color: var(--text-color);
|
|
|
|
font-size: 0.75em;
|
|
|
|
margin: 0;
|
|
|
|
padding-top: 4px;
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
2023-08-27 18:47:57 +02:00
|
|
|
/* Funny joke */
|
|
|
|
|
|
|
|
@keyframes hello-there {
|
|
|
|
0% {
|
|
|
|
opacity: 0%;
|
|
|
|
}
|
|
|
|
|
|
|
|
70% {
|
|
|
|
opacity: 0%;
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 70%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.oops-you-seem-to-have-gotten-stuck {
|
|
|
|
margin-top: 16px;
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
opacity: 0%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#index\:treehouse>details:not([open])>summary .oops-you-seem-to-have-gotten-stuck {
|
|
|
|
display: inline;
|
|
|
|
animation: 4s hello-there forwards;
|
2024-02-08 22:41:01 +01:00
|
|
|
}
|