Files
pages/src/routes/+layout.svelte

74 lines
1.9 KiB
Svelte
Raw Normal View History

<script>
let { children } = $props();
</script>
2025-04-01 21:30:20 +02:00
<div class="waters"></div>
{@render children()}
<style>
:global {
2025-04-01 21:30:20 +02:00
@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-highlight: #72b175;
--color-background: #1b1b1b;
--color-waters: #2b2b2b;
}
body {
margin: 0 auto 228px;
max-width: 1200px;
2025-04-01 21:30:20 +02:00
font-family: 'Reddit Sans', 'Lato', sans-serif;
font-size: 1.1rem;
color: var(--color-text); /* text colour */
background-color: var(--color-background);
}
2025-04-01 21:30:20 +02:00
.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;
}
}
</style>