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) {
|
2024-06-14 16:48:57 +01:00
|
|
|
--primary: #ffffff;
|
|
|
|
--secondary: #000000;
|
|
|
|
--gray: #8d8d95;
|
|
|
|
|
|
|
|
--button: #eeeeee;
|
2024-06-15 15:39:34 +01:00
|
|
|
--button-hover: #e8e8e8;
|
|
|
|
--button-hover-transparent: rgba(0, 0, 0, 0.03);
|
|
|
|
--button-stroke: rgba(0, 0, 0, 0.08);
|
2024-06-14 16:48:57 +01:00
|
|
|
|
|
|
|
--padding: 12px;
|
2024-06-16 14:51:02 +01:00
|
|
|
--border-radius: 11px;
|
2024-06-14 16:48:57 +01:00
|
|
|
|
2024-06-14 11:33:01 +01:00
|
|
|
--sidebar-width: 80px;
|
|
|
|
--sidebar-font-size: 11px;
|
|
|
|
}
|
2024-06-14 11:38:10 +01:00
|
|
|
|
2024-06-14 11:33:01 +01:00
|
|
|
:global(html),
|
|
|
|
:global(body) {
|
|
|
|
margin: 0;
|
2024-06-14 16:48:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
:global(*) {
|
|
|
|
font-family: "IBM Plex Mono", "Noto Sans Mono Variable", "Noto Sans Mono", monospace;
|
2024-06-14 12:34:14 +01:00
|
|
|
user-select: none;
|
2024-06-16 14:25:30 +01:00
|
|
|
scrollbar-width: none;
|
2024-06-14 12:34:14 +01:00
|
|
|
-webkit-user-select: none;
|
2024-06-14 16:48:57 +01:00
|
|
|
-webkit-user-drag: none;
|
2024-06-16 14:25:30 +01:00
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(::-webkit-scrollbar) {
|
|
|
|
display: 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 16:48:57 +01:00
|
|
|
:global(svg),
|
|
|
|
:global(img) {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(button) {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2024-06-15 15:39:34 +01:00
|
|
|
padding: 8px 15px;
|
|
|
|
gap: 8px;
|
2024-06-14 16:48:57 +01:00
|
|
|
border: none;
|
2024-06-16 14:51:02 +01:00
|
|
|
border-radius: var(--border-radius);
|
2024-06-15 15:39:34 +01:00
|
|
|
font-size: 16px;
|
2024-06-14 16:48:57 +01:00
|
|
|
cursor: pointer;
|
|
|
|
background-color: var(--button);
|
|
|
|
color: var(--secondary);
|
2024-06-15 15:39:34 +01:00
|
|
|
box-shadow: 0 0 0 1.5px var(--button-stroke) inset;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(button:active) {
|
|
|
|
transform: scale(0.95);
|
2024-06-14 16:48:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
:global(button:hover) {
|
|
|
|
background-color: var(--button-hover);
|
|
|
|
}
|
|
|
|
|
2024-06-16 15:32:09 +01:00
|
|
|
:global(.center-column-container) {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
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-16 15:15:17 +01:00
|
|
|
padding: var(--padding);
|
2024-06-14 11:33:01 +01:00
|
|
|
}
|
2024-06-16 14:25:30 +01:00
|
|
|
|
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>
|