167 lines
4.7 KiB
Svelte
167 lines
4.7 KiB
Svelte
<script>
|
|
import Header from "$lib/header.svelte";
|
|
import Footer from "$lib/footer.svelte";
|
|
|
|
export const prerender = true;
|
|
|
|
let { children } = $props();
|
|
</script>
|
|
|
|
<Header />
|
|
|
|
<div class="waters"></div>
|
|
{@render children()}
|
|
|
|
<Footer />
|
|
|
|
<style>
|
|
:global {
|
|
@import url('https://fonts.upset.dev/css2?family=Reddit+Mono:wght@200..900&family=Reddit+Sans+Condensed:wght@200..900&family=Reddit+Sans:ital,wght@0,200..900;1,200..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
|
|
|
|
:root {
|
|
--color-text: #e0e0e0;
|
|
--color-text-img: invert(98%) sepia(1%) saturate(4643%) hue-rotate(297deg) brightness(115%) contrast(76%);
|
|
--color-text-dark: #1e1e1e;
|
|
--color-highlight: #72b175;
|
|
|
|
--color-background: #1b1b1b;
|
|
--color-background-highlight: color-mix(in srgb, var(--color-highlight) 10%, transparent);
|
|
--color-background-highlight-hover: color-mix(in srgb, var(--color-highlight) 60%, transparent);
|
|
|
|
--color-waters: #2b2b2b;
|
|
|
|
--notch-size: 32px;
|
|
--notch-size-small: 16px;
|
|
--notch-size-link: 10px;
|
|
|
|
--color-link-unvisited: #c2e8ff;
|
|
--color-link-visited: #ffd7f0;
|
|
--color-link-hovered: #ffdad5;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
position: relative;
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
margin: 0 auto 228px;
|
|
max-width: 1200px;
|
|
|
|
font-family: 'Reddit Sans', 'Lato', sans-serif;
|
|
font-size: 1.1rem;
|
|
color: var(--color-text); /* text colour */
|
|
|
|
background-color: var(--color-background);
|
|
}
|
|
|
|
.waters {
|
|
position: fixed;
|
|
z-index: -99;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
background-color: var(--color-waters);
|
|
mask-image: url('/bremen-waters-white.svg');
|
|
mask-position: center;
|
|
background-position: center;
|
|
background-attachment: fixed;
|
|
}
|
|
|
|
p, span, li, pre, a {
|
|
color: var(--color-text);
|
|
line-height: 1.6rem;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 3rem;
|
|
line-height: 3.5rem;
|
|
}
|
|
h2 {
|
|
font-size: 2rem;
|
|
line-height: 2.2rem;
|
|
}
|
|
h3 {
|
|
font-size: 1.4rem;
|
|
line-height: 1.5rem;
|
|
}
|
|
h4, h5, h6 {
|
|
font-size: 1.2rem;
|
|
line-height: 1.3rem;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-weight: 900;
|
|
color: var(--color-highlight);
|
|
margin-top: 12px;
|
|
margin-bottom: 8px;
|
|
width: fit-content;
|
|
}
|
|
|
|
code, .code-block {
|
|
font-family: 'Reddit Mono', monospace;
|
|
font-size: 0.9em;
|
|
background-color: var(--color-background-highlight);
|
|
/* color: var(--color-background); */
|
|
border-radius: 8px;
|
|
padding-left: 6px;
|
|
padding-right: 6px;
|
|
}
|
|
|
|
img, video {
|
|
width: 80%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
display: flex;
|
|
}
|
|
|
|
.horizontally-centre-aligned {
|
|
width: 80%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
a:link {
|
|
color: var(--color-link-unvisited);
|
|
}
|
|
/* visited link */
|
|
a:visited {
|
|
color: var(--color-link-visited);
|
|
}
|
|
/* mouse over link */
|
|
a:hover {
|
|
color: var(--color-link-hovered);
|
|
}
|
|
|
|
.notched {
|
|
clip-path: polygon(
|
|
0% var(--notch-size),
|
|
var(--notch-size) 0%,
|
|
calc(100% - var(--notch-size)) 0%,
|
|
100% var(--notch-size),
|
|
100% calc(100% - var(--notch-size)),
|
|
calc(100% - var(--notch-size)) 100%,
|
|
var(--notch-size) 100%,
|
|
0% calc(100% - var(--notch-size))
|
|
);
|
|
}
|
|
|
|
.notched-small {
|
|
clip-path: polygon(
|
|
0% var(--notch-size-small),
|
|
var(--notch-size-small) 0%,
|
|
calc(100% - var(--notch-size-small)) 0%,
|
|
100% var(--notch-size-small),
|
|
100% calc(100% - var(--notch-size-small)),
|
|
calc(100% - var(--notch-size-small)) 100%,
|
|
var(--notch-size-small) 100%,
|
|
0% calc(100% - var(--notch-size-small))
|
|
);
|
|
}
|
|
}
|
|
</style> |