You've already forked AstralRinth
forked from didirus/AstralRinth
61 lines
1.5 KiB
Svelte
61 lines
1.5 KiB
Svelte
<script lang="ts">
|
|
import "$lib/styles/variables.postcss"
|
|
import "$lib/styles/themes.postcss"
|
|
import "./_internal/styles/prism-one-dark.css"
|
|
import "./_internal/styles/gh-markdown.css"
|
|
import Sidebar from "./_internal/components/Sidebar.svelte"
|
|
import Header from './_internal/components/Header.svelte'
|
|
</script>
|
|
|
|
<div class="app">
|
|
<Header />
|
|
<Sidebar />
|
|
<main class="app__content">
|
|
<slot />
|
|
</main>
|
|
</div>
|
|
|
|
<style lang="postcss">
|
|
:global(body) {
|
|
margin: 0;
|
|
font-size: var(--body-font-size);
|
|
font-family: var(--body-font);
|
|
overflow-y: scroll;
|
|
--accent-color: hsl(331, 60%, 45%);
|
|
--accent-color-transparent: hsla(331, 60%, 45%, 0.15);
|
|
}
|
|
|
|
.app {
|
|
display: grid;
|
|
min-height: 100vh;
|
|
overflow: hidden;
|
|
--sidebar-width: 250px;
|
|
--header-height: 56px;
|
|
@media (width <= 500px) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
:global(a) {
|
|
color: var(--accent-color);
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
&__content {
|
|
padding: var(--header-height) 0 0 var(--sidebar-width);
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
background-color: hsl(220, 13%, 91%);
|
|
|
|
:global(h1) {
|
|
font-size: 54px;
|
|
}
|
|
|
|
:global(p) {
|
|
line-height: 1.5;
|
|
}
|
|
}
|
|
}
|
|
</style> |