2024-06-14 11:33:01 +01:00
|
|
|
<script>
|
|
|
|
import "@fontsource/ibm-plex-mono/400.css";
|
|
|
|
import "@fontsource/ibm-plex-mono/500.css";
|
|
|
|
import Sidebar from "../components/sidebar/Sidebar.svelte";
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div id="cobalt">
|
|
|
|
<Sidebar />
|
|
|
|
<div id="content">
|
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
:global(:root) {
|
|
|
|
--accent: #ffffff;
|
|
|
|
--background: #000000;
|
|
|
|
--sidebar-width: 80px;
|
|
|
|
--sidebar-font-size: 11px;
|
|
|
|
--sidebar-padding: 12px;
|
|
|
|
}
|
2024-06-14 11:38:10 +01:00
|
|
|
|
2024-06-14 11:33:01 +01:00
|
|
|
:global(html),
|
|
|
|
:global(body) {
|
|
|
|
font-family: "IBM Plex Mono", "Noto Sans Mono", monospace;
|
|
|
|
margin: 0;
|
2024-06-14 12:34:14 +01:00
|
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
|
|
user-select: none;
|
|
|
|
-webkit-user-select: none;
|
2024-06-14 11:33:01 +01:00
|
|
|
}
|
2024-06-14 11:38:10 +01:00
|
|
|
|
2024-06-14 11:33:01 +01:00
|
|
|
:global(a) {
|
|
|
|
text-decoration: none;
|
|
|
|
text-decoration-line: none;
|
|
|
|
}
|
2024-06-14 11:38:10 +01:00
|
|
|
|
2024-06-14 11:33:01 +01:00
|
|
|
#cobalt {
|
|
|
|
height: 100vh;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: var(--sidebar-width) 1fr;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2024-06-14 11:38:10 +01:00
|
|
|
|
2024-06-14 11:33:01 +01:00
|
|
|
#content {
|
|
|
|
display: flex;
|
|
|
|
overflow: scroll;
|
|
|
|
}
|
2024-06-14 12:33:33 +01:00
|
|
|
@media screen and (max-width: 535px) {
|
|
|
|
#cobalt {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: unset;
|
|
|
|
grid-template-rows: 1fr var(--sidebar-width);
|
|
|
|
}
|
|
|
|
#content {
|
|
|
|
order: -1;
|
|
|
|
}
|
|
|
|
}
|
2024-06-14 11:33:01 +01:00
|
|
|
</style>
|