2024-07-12 14:49:29 +02:00
|
|
|
<script lang="ts">
|
2024-09-04 20:04:41 +02:00
|
|
|
import "@fontsource/ibm-plex-mono/400.css";
|
|
|
|
import "@fontsource/ibm-plex-mono/400-italic.css";
|
|
|
|
import "@fontsource/ibm-plex-mono/500.css";
|
|
|
|
|
|
|
|
import { page } from "$app/stores";
|
2024-07-23 12:04:43 +02:00
|
|
|
import { updated } from "$app/stores";
|
2024-09-02 16:16:21 +02:00
|
|
|
import { browser } from "$app/environment";
|
2024-09-04 20:04:41 +02:00
|
|
|
import { afterNavigate } from "$app/navigation";
|
2024-11-23 14:13:23 +01:00
|
|
|
import { getServerInfo } from "$lib/api/server-info";
|
2024-06-29 16:09:17 +02:00
|
|
|
|
2024-09-11 11:34:49 +02:00
|
|
|
import "$lib/polyfills";
|
2024-07-14 18:50:18 +02:00
|
|
|
import env from "$lib/env";
|
2024-07-20 16:37:52 +02:00
|
|
|
import locale from "$lib/i18n/locale";
|
2024-11-23 14:13:23 +01:00
|
|
|
import settings from "$lib/state/settings";
|
2024-06-29 16:09:17 +02:00
|
|
|
|
2024-09-07 18:14:55 +02:00
|
|
|
import { t } from "$lib/i18n/translations";
|
|
|
|
|
2024-09-04 20:04:41 +02:00
|
|
|
import { device, app } from "$lib/device";
|
|
|
|
import currentTheme, { statusBarColors } from "$lib/state/theme";
|
2024-11-23 14:13:23 +01:00
|
|
|
import { turnstileCreated, turnstileEnabled } from "$lib/state/turnstile";
|
2024-07-23 09:53:43 +02:00
|
|
|
|
2024-06-24 16:23:55 +02:00
|
|
|
import Sidebar from "$components/sidebar/Sidebar.svelte";
|
2024-08-15 20:08:57 +02:00
|
|
|
import Turnstile from "$components/misc/Turnstile.svelte";
|
2024-07-03 15:05:14 +02:00
|
|
|
import NotchSticker from "$components/misc/NotchSticker.svelte";
|
2024-07-13 15:15:43 +02:00
|
|
|
import DialogHolder from "$components/dialog/DialogHolder.svelte";
|
2024-12-17 11:50:13 +01:00
|
|
|
import ProcessingQueue from "$components/queue/ProcessingQueue.svelte";
|
2024-07-23 12:04:43 +02:00
|
|
|
import UpdateNotification from "$components/misc/UpdateNotification.svelte";
|
2024-07-12 14:49:29 +02:00
|
|
|
|
|
|
|
$: reduceMotion =
|
2024-07-23 09:53:43 +02:00
|
|
|
$settings.appearance.reduceMotion || device.prefers.reducedMotion;
|
2024-11-23 14:13:23 +01:00
|
|
|
|
2024-07-12 14:49:29 +02:00
|
|
|
$: reduceTransparency =
|
2024-07-23 09:53:43 +02:00
|
|
|
$settings.appearance.reduceTransparency ||
|
|
|
|
device.prefers.reducedTransparency;
|
|
|
|
|
2024-11-23 14:13:23 +01:00
|
|
|
afterNavigate(async () => {
|
2024-07-23 09:53:43 +02:00
|
|
|
const to_focus: HTMLElement | null =
|
|
|
|
document.querySelector("[data-first-focus]");
|
|
|
|
to_focus?.focus();
|
2024-09-17 20:24:54 +02:00
|
|
|
|
|
|
|
if ($page.url.pathname === "/") {
|
|
|
|
await getServerInfo();
|
|
|
|
}
|
2024-07-23 09:53:43 +02:00
|
|
|
});
|
2024-06-14 12:33:01 +02:00
|
|
|
</script>
|
|
|
|
|
2024-06-29 16:24:51 +02:00
|
|
|
<svelte:head>
|
2024-11-23 14:13:23 +01:00
|
|
|
<meta name="description" content={$t("general.embed.description")} />
|
|
|
|
<meta property="og:description" content={$t("general.embed.description")} />
|
2024-09-07 18:14:55 +02:00
|
|
|
|
2024-09-07 19:15:20 +02:00
|
|
|
{#if env.HOST}
|
2024-11-23 14:13:23 +01:00
|
|
|
<meta
|
|
|
|
property="og:url"
|
|
|
|
content="https://{env.HOST}{$page.url.pathname}"
|
|
|
|
/>
|
2024-09-07 19:15:20 +02:00
|
|
|
{/if}
|
|
|
|
|
2024-07-03 15:05:14 +02:00
|
|
|
{#if device.is.mobile}
|
2024-07-23 09:53:43 +02:00
|
|
|
<meta name="theme-color" content={statusBarColors[$currentTheme]} />
|
2024-06-29 16:24:51 +02:00
|
|
|
{/if}
|
2024-07-14 18:50:18 +02:00
|
|
|
|
|
|
|
{#if env.PLAUSIBLE_ENABLED}
|
|
|
|
<script
|
|
|
|
defer
|
2024-07-23 09:53:43 +02:00
|
|
|
data-domain={env.HOST}
|
2024-07-14 18:50:18 +02:00
|
|
|
src="https://{env.PLAUSIBLE_HOST}/js/script.js"
|
|
|
|
>
|
|
|
|
</script>
|
|
|
|
{/if}
|
2024-06-29 16:24:51 +02:00
|
|
|
</svelte:head>
|
|
|
|
|
2024-11-23 14:13:23 +01:00
|
|
|
<div
|
|
|
|
style="display: contents"
|
|
|
|
data-theme={browser ? $currentTheme : undefined}
|
|
|
|
lang={$locale}
|
|
|
|
>
|
2024-07-12 14:49:29 +02:00
|
|
|
<div
|
|
|
|
id="cobalt"
|
2024-09-02 16:16:21 +02:00
|
|
|
class:loaded={browser}
|
2024-07-12 15:15:55 +02:00
|
|
|
data-iphone={device.is.iPhone}
|
|
|
|
data-reduce-motion={reduceMotion}
|
|
|
|
data-reduce-transparency={reduceTransparency}
|
2024-07-12 14:49:29 +02:00
|
|
|
>
|
2024-07-03 15:05:14 +02:00
|
|
|
{#if device.is.iPhone && app.is.installed}
|
|
|
|
<NotchSticker />
|
|
|
|
{/if}
|
2024-07-13 15:15:43 +02:00
|
|
|
<DialogHolder />
|
2024-06-29 16:09:17 +02:00
|
|
|
<Sidebar />
|
2024-12-16 13:03:55 +01:00
|
|
|
{#if $updated}
|
|
|
|
<UpdateNotification />
|
|
|
|
{/if}
|
2024-06-29 16:09:17 +02:00
|
|
|
<div id="content">
|
2024-12-22 18:04:37 +01:00
|
|
|
{#if $settings.advanced.duck}
|
|
|
|
<ProcessingQueue />
|
|
|
|
{/if}
|
2024-11-23 14:13:23 +01:00
|
|
|
{#if ($turnstileEnabled && $page.url.pathname === "/") || $turnstileCreated}
|
2024-08-15 20:08:57 +02:00
|
|
|
<Turnstile />
|
|
|
|
{/if}
|
2024-06-29 16:09:17 +02:00
|
|
|
<slot></slot>
|
|
|
|
</div>
|
2024-06-14 12:33:01 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
:global(:root) {
|
2024-06-14 17:48:57 +02:00
|
|
|
--primary: #ffffff;
|
|
|
|
--secondary: #000000;
|
2024-06-24 15:42:31 +02:00
|
|
|
|
2024-06-24 19:05:51 +02:00
|
|
|
--white: #ffffff;
|
2024-07-13 14:51:31 +02:00
|
|
|
--gray: #75757e;
|
2024-07-20 17:48:17 +02:00
|
|
|
|
|
|
|
--red: #ed2236;
|
|
|
|
--dark-red: #d61c2e;
|
2024-06-24 15:42:31 +02:00
|
|
|
--green: #51cf5e;
|
2024-07-20 16:01:13 +02:00
|
|
|
--blue: #2f8af9;
|
2024-06-14 17:48:57 +02:00
|
|
|
|
2024-06-24 15:42:31 +02:00
|
|
|
--button: #f4f4f4;
|
2024-06-15 16:39:34 +02:00
|
|
|
--button-hover: #e8e8e8;
|
2024-07-20 14:54:12 +02:00
|
|
|
--button-active-hover: #2a2a2a;
|
2024-06-24 15:42:31 +02:00
|
|
|
--button-hover-transparent: rgba(0, 0, 0, 0.06);
|
2024-07-16 10:00:56 +02:00
|
|
|
--button-stroke: rgba(0, 0, 0, 0.06);
|
2024-06-17 14:46:52 +02:00
|
|
|
--button-text: #282828;
|
2024-06-25 16:59:25 +02:00
|
|
|
--button-box-shadow: 0 0 0 1.5px var(--button-stroke) inset;
|
2024-06-14 17:48:57 +02:00
|
|
|
|
2024-07-20 16:34:19 +02:00
|
|
|
--button-elevated: #e3e3e3;
|
|
|
|
--button-elevated-hover: #dadada;
|
2024-07-23 05:55:55 +02:00
|
|
|
--button-elevated-shimmer: #ededed;
|
2024-07-20 16:34:19 +02:00
|
|
|
|
2024-12-14 07:42:38 +01:00
|
|
|
--popover-glow: var(--button-stroke);
|
|
|
|
|
2024-07-16 10:00:56 +02:00
|
|
|
--popup-bg: #f1f1f1;
|
|
|
|
--popup-stroke: rgba(0, 0, 0, 0.08);
|
|
|
|
|
2024-07-21 09:41:14 +02:00
|
|
|
--dialog-backdrop: rgba(255, 255, 255, 0.3);
|
|
|
|
|
2024-06-16 17:45:24 +02:00
|
|
|
--sidebar-bg: #000000;
|
|
|
|
--sidebar-highlight: #ffffff;
|
2024-06-25 16:59:25 +02:00
|
|
|
--sidebar-hover: rgba(255, 255, 255, 0.1);
|
2024-06-16 17:45:24 +02:00
|
|
|
|
2024-07-02 15:25:37 +02:00
|
|
|
--input-border: #adadb7;
|
2024-06-29 18:51:24 +02:00
|
|
|
|
|
|
|
--toggle-bg: var(--input-border);
|
|
|
|
--toggle-bg-enabled: var(--secondary);
|
2024-06-16 17:45:24 +02:00
|
|
|
|
2024-06-14 17:48:57 +02:00
|
|
|
--padding: 12px;
|
2024-06-16 15:51:02 +02:00
|
|
|
--border-radius: 11px;
|
2024-06-14 17:48:57 +02:00
|
|
|
|
2024-06-14 12:33:01 +02:00
|
|
|
--sidebar-width: 80px;
|
|
|
|
--sidebar-font-size: 11px;
|
2024-06-16 18:59:16 +02:00
|
|
|
--sidebar-inner-padding: 4px;
|
2024-07-12 16:22:12 +02:00
|
|
|
--sidebar-height-mobile: calc(
|
2024-07-23 09:53:43 +02:00
|
|
|
50px + calc(var(--sidebar-inner-padding) * 2) +
|
|
|
|
env(safe-area-inset-bottom)
|
2024-07-12 16:22:12 +02:00
|
|
|
);
|
2024-06-16 17:45:24 +02:00
|
|
|
|
2024-07-03 15:05:14 +02:00
|
|
|
--safe-area-inset-top: env(safe-area-inset-top);
|
2024-09-11 12:41:04 +02:00
|
|
|
--safe-area-inset-bottom: env(safe-area-inset-bottom);
|
2024-07-03 15:05:14 +02:00
|
|
|
|
2024-06-29 19:31:40 +02:00
|
|
|
--switcher-padding: var(--sidebar-inner-padding);
|
|
|
|
|
2024-07-21 13:06:47 +02:00
|
|
|
/* used for fading the tab bar on scroll */
|
2024-06-16 17:45:24 +02:00
|
|
|
--sidebar-mobile-gradient: linear-gradient(
|
|
|
|
90deg,
|
|
|
|
rgba(0, 0, 0, 0.9) 0%,
|
|
|
|
rgba(0, 0, 0, 0) 4%,
|
|
|
|
rgba(0, 0, 0, 0) 50%,
|
|
|
|
rgba(0, 0, 0, 0) 96%,
|
|
|
|
rgba(0, 0, 0, 0.9) 100%
|
|
|
|
);
|
2024-07-20 16:01:13 +02:00
|
|
|
|
|
|
|
--skeleton-gradient: linear-gradient(
|
|
|
|
90deg,
|
|
|
|
var(--button-hover),
|
2024-07-21 12:49:38 +02:00
|
|
|
var(--button),
|
|
|
|
var(--button-hover)
|
2024-07-20 16:01:13 +02:00
|
|
|
);
|
2024-07-23 05:55:55 +02:00
|
|
|
|
|
|
|
--skeleton-gradient-elevated: linear-gradient(
|
|
|
|
90deg,
|
|
|
|
var(--button-elevated),
|
|
|
|
var(--button-elevated-shimmer),
|
|
|
|
var(--button-elevated)
|
|
|
|
);
|
2024-06-16 17:45:24 +02:00
|
|
|
}
|
|
|
|
|
2024-07-12 14:49:29 +02:00
|
|
|
:global([data-theme="dark"]) {
|
2024-06-29 16:09:17 +02:00
|
|
|
--primary: #000000;
|
|
|
|
--secondary: #e1e1e1;
|
|
|
|
|
2024-07-13 14:51:31 +02:00
|
|
|
--gray: #818181;
|
2024-07-20 17:48:17 +02:00
|
|
|
|
2024-06-29 16:09:17 +02:00
|
|
|
--blue: #2a7ce1;
|
|
|
|
--green: #37aa42;
|
|
|
|
|
|
|
|
--button: #191919;
|
|
|
|
--button-hover: #2a2a2a;
|
2024-07-20 14:54:12 +02:00
|
|
|
--button-active-hover: #f9f9f9;
|
2024-06-29 16:09:17 +02:00
|
|
|
--button-hover-transparent: rgba(225, 225, 225, 0.1);
|
|
|
|
--button-stroke: rgba(255, 255, 255, 0.05);
|
|
|
|
--button-text: #e1e1e1;
|
|
|
|
--button-box-shadow: 0 0 0 1.5px var(--button-stroke) inset;
|
|
|
|
|
2024-07-20 16:34:19 +02:00
|
|
|
--button-elevated: #282828;
|
2024-07-23 05:55:55 +02:00
|
|
|
--button-elevated-hover: #323232;
|
2024-07-20 16:34:19 +02:00
|
|
|
|
2024-12-14 19:24:54 +01:00
|
|
|
--popover-glow: rgba(135, 135, 135, 0.12);
|
2024-12-14 07:42:38 +01:00
|
|
|
|
2024-07-16 10:00:56 +02:00
|
|
|
--popup-bg: #191919;
|
|
|
|
--popup-stroke: rgba(255, 255, 255, 0.08);
|
|
|
|
|
2024-07-21 09:41:14 +02:00
|
|
|
--dialog-backdrop: rgba(0, 0, 0, 0.3);
|
|
|
|
|
2025-01-12 17:49:03 +01:00
|
|
|
--sidebar-bg: #131313;
|
2024-06-29 16:09:17 +02:00
|
|
|
--sidebar-highlight: #f2f2f2;
|
|
|
|
|
|
|
|
--input-border: #383838;
|
|
|
|
|
2024-06-29 18:51:24 +02:00
|
|
|
--toggle-bg: var(--input-border);
|
2024-10-04 13:43:31 +02:00
|
|
|
--toggle-bg-enabled: #8a8a8a;
|
2024-06-29 18:51:24 +02:00
|
|
|
|
2024-06-29 16:09:17 +02:00
|
|
|
--sidebar-mobile-gradient: linear-gradient(
|
|
|
|
90deg,
|
|
|
|
rgba(16, 16, 16, 0.9) 0%,
|
|
|
|
rgba(16, 16, 16, 0) 4%,
|
|
|
|
rgba(16, 16, 16, 0) 50%,
|
|
|
|
rgba(16, 16, 16, 0) 96%,
|
|
|
|
rgba(16, 16, 16, 0.9) 100%
|
|
|
|
);
|
2024-07-21 13:06:47 +02:00
|
|
|
|
|
|
|
--skeleton-gradient: linear-gradient(
|
|
|
|
90deg,
|
|
|
|
var(--button),
|
|
|
|
var(--button-hover),
|
|
|
|
var(--button)
|
|
|
|
);
|
2024-07-23 05:55:55 +02:00
|
|
|
|
|
|
|
--skeleton-gradient-elevated: linear-gradient(
|
|
|
|
90deg,
|
|
|
|
var(--button-elevated),
|
|
|
|
var(--button-elevated-hover),
|
|
|
|
var(--button-elevated)
|
|
|
|
);
|
2024-06-14 12:33:01 +02:00
|
|
|
}
|
2024-06-14 12:38:10 +02:00
|
|
|
|
2024-07-21 09:41:14 +02:00
|
|
|
:global([data-theme="light"] [data-reduce-transparency="true"]) {
|
|
|
|
--dialog-backdrop: rgba(255, 255, 255, 0.6);
|
|
|
|
}
|
|
|
|
|
|
|
|
:global([data-theme="dark"] [data-reduce-transparency="true"]) {
|
|
|
|
--dialog-backdrop: rgba(0, 0, 0, 0.5);
|
|
|
|
}
|
|
|
|
|
2024-06-14 12:33:01 +02:00
|
|
|
:global(html),
|
|
|
|
:global(body) {
|
|
|
|
margin: 0;
|
2024-06-25 12:14:54 +02:00
|
|
|
height: 100vh;
|
|
|
|
overflow: hidden;
|
|
|
|
overscroll-behavior-y: none;
|
2024-06-14 17:48:57 +02:00
|
|
|
}
|
|
|
|
|
2024-06-29 19:46:28 +02:00
|
|
|
#cobalt {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
display: grid;
|
2024-07-23 09:53:43 +02:00
|
|
|
grid-template-columns:
|
|
|
|
calc(var(--sidebar-width) + var(--sidebar-inner-padding) * 2)
|
|
|
|
1fr;
|
2024-06-29 19:46:28 +02:00
|
|
|
overflow: hidden;
|
|
|
|
background-color: var(--sidebar-bg);
|
|
|
|
color: var(--secondary);
|
2024-09-08 20:26:20 +02:00
|
|
|
position: fixed;
|
2024-06-29 19:46:28 +02:00
|
|
|
}
|
|
|
|
|
2024-07-03 15:05:14 +02:00
|
|
|
/* add padding for notch / dynamic island in landscape */
|
2024-10-05 20:20:14 +02:00
|
|
|
@media screen and (orientation: landscape) and (min-width: 535px) {
|
2024-07-12 15:15:55 +02:00
|
|
|
#cobalt[data-iphone="true"] {
|
2024-07-03 15:05:14 +02:00
|
|
|
grid-template-columns:
|
2024-07-12 16:22:12 +02:00
|
|
|
calc(
|
2024-07-23 09:53:43 +02:00
|
|
|
var(--sidebar-width) + var(--sidebar-inner-padding) * 2 +
|
|
|
|
env(safe-area-inset-left)
|
2024-07-12 16:22:12 +02:00
|
|
|
)
|
2024-07-12 14:49:29 +02:00
|
|
|
1fr;
|
2024-07-03 15:05:14 +02:00
|
|
|
}
|
|
|
|
|
2024-07-12 15:15:55 +02:00
|
|
|
#cobalt[data-iphone="true"] #content {
|
2024-07-03 15:05:14 +02:00
|
|
|
padding-right: env(safe-area-inset-right);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-29 19:46:28 +02:00
|
|
|
#content {
|
|
|
|
display: flex;
|
|
|
|
overflow: scroll;
|
|
|
|
background-color: var(--primary);
|
|
|
|
border-top-left-radius: var(--border-radius);
|
|
|
|
border-bottom-left-radius: var(--border-radius);
|
|
|
|
}
|
|
|
|
|
2024-11-20 10:34:59 +01:00
|
|
|
#content:dir(rtl) {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-top-right-radius: var(--border-radius);
|
|
|
|
border-bottom-right-radius: var(--border-radius);
|
|
|
|
}
|
|
|
|
|
2024-06-29 19:46:28 +02:00
|
|
|
@media screen and (max-width: 535px) {
|
|
|
|
#cobalt {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: unset;
|
2024-07-12 16:22:12 +02:00
|
|
|
grid-template-rows: 1fr var(--sidebar-height-mobile);
|
2024-06-29 19:46:28 +02:00
|
|
|
}
|
2024-11-20 10:34:59 +01:00
|
|
|
|
|
|
|
#content,
|
|
|
|
#content:dir(rtl) {
|
2024-06-29 19:46:28 +02:00
|
|
|
padding-top: env(safe-area-inset-top);
|
|
|
|
order: -1;
|
|
|
|
border-top-left-radius: 0;
|
2024-11-20 10:34:59 +01:00
|
|
|
border-top-right-radius: 0;
|
2024-06-29 19:46:28 +02:00
|
|
|
border-bottom-left-radius: calc(var(--border-radius) * 2);
|
|
|
|
border-bottom-right-radius: calc(var(--border-radius) * 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-14 17:48:57 +02:00
|
|
|
:global(*) {
|
2024-07-12 14:49:29 +02:00
|
|
|
font-family: "IBM Plex Mono", "Noto Sans Mono Variable",
|
|
|
|
"Noto Sans Mono", monospace;
|
2024-06-14 13:34:14 +02:00
|
|
|
user-select: none;
|
2024-06-16 15:25:30 +02:00
|
|
|
scrollbar-width: none;
|
2024-06-14 13:34:14 +02:00
|
|
|
-webkit-user-select: none;
|
2024-06-14 17:48:57 +02:00
|
|
|
-webkit-user-drag: none;
|
2024-06-16 15:25:30 +02:00
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(::-webkit-scrollbar) {
|
|
|
|
display: none;
|
2024-06-14 12:33:01 +02:00
|
|
|
}
|
2024-06-14 12:38:10 +02:00
|
|
|
|
2024-06-14 12:33:01 +02:00
|
|
|
:global(a) {
|
2024-07-13 09:45:53 +02:00
|
|
|
color: inherit;
|
|
|
|
text-underline-offset: 3px;
|
2024-06-24 15:42:31 +02:00
|
|
|
-webkit-touch-callout: none;
|
2024-06-14 12:33:01 +02:00
|
|
|
}
|
2024-06-14 12:38:10 +02:00
|
|
|
|
2024-07-13 09:45:53 +02:00
|
|
|
:global(a:visited) {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
2024-06-14 17:48:57 +02:00
|
|
|
:global(svg),
|
|
|
|
:global(img) {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2024-07-07 20:18:25 +02:00
|
|
|
:global(button, .button) {
|
2024-06-14 17:48:57 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2024-06-17 14:46:21 +02:00
|
|
|
padding: 6px 13px;
|
|
|
|
gap: 6px;
|
2024-06-14 17:48:57 +02:00
|
|
|
border: none;
|
2024-06-16 15:51:02 +02:00
|
|
|
border-radius: var(--border-radius);
|
2024-06-17 14:46:21 +02:00
|
|
|
font-size: 14.5px;
|
2024-06-14 17:48:57 +02:00
|
|
|
cursor: pointer;
|
|
|
|
background-color: var(--button);
|
2024-06-17 14:46:52 +02:00
|
|
|
color: var(--button-text);
|
2024-06-25 16:59:25 +02:00
|
|
|
box-shadow: var(--button-box-shadow);
|
2024-06-15 16:39:34 +02:00
|
|
|
}
|
|
|
|
|
2024-06-24 19:22:19 +02:00
|
|
|
:global(:focus-visible) {
|
2024-07-14 19:21:04 +02:00
|
|
|
box-shadow: 0 0 0 2px var(--blue) inset !important;
|
2024-06-16 17:45:24 +02:00
|
|
|
outline: none;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2024-07-23 10:41:55 +02:00
|
|
|
:global([data-focus-ring-hidden]:focus-visible) {
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
|
2024-07-07 20:18:25 +02:00
|
|
|
:global(button:active, .button:active) {
|
2024-06-25 16:59:25 +02:00
|
|
|
background-color: var(--button-hover);
|
2024-06-14 17:48:57 +02:00
|
|
|
}
|
|
|
|
|
2024-07-27 11:03:37 +02:00
|
|
|
:global(.button.elevated) {
|
|
|
|
background-color: var(--button-elevated);
|
|
|
|
}
|
|
|
|
|
2024-07-28 09:14:55 +02:00
|
|
|
:global(.button.elevated:not(.color):active) {
|
2024-07-27 11:03:37 +02:00
|
|
|
background-color: var(--button-elevated-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(.button.elevated:not(:focus-visible)) {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2024-06-24 15:42:31 +02:00
|
|
|
:global(.button.active) {
|
2024-06-19 19:04:09 +02:00
|
|
|
color: var(--primary);
|
2024-07-20 14:54:12 +02:00
|
|
|
background-color: var(--secondary);
|
2024-06-19 19:04:09 +02:00
|
|
|
}
|
|
|
|
|
2024-07-23 09:22:05 +02:00
|
|
|
:global(.button.active:not(.color):active) {
|
2024-07-20 17:48:17 +02:00
|
|
|
background-color: var(--button-active-hover);
|
|
|
|
}
|
|
|
|
|
2024-07-30 18:37:44 +02:00
|
|
|
:global(button[disabled]) {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
2024-06-24 19:22:19 +02:00
|
|
|
/* important is used because active class is toggled by state */
|
|
|
|
/* and added to the end of the list, taking priority */
|
|
|
|
:global(.active:focus-visible) {
|
|
|
|
color: var(--sidebar-highlight) !important;
|
2024-07-20 14:54:12 +02:00
|
|
|
background-color: var(--blue) !important;
|
2024-06-24 19:22:19 +02:00
|
|
|
}
|
|
|
|
|
2024-08-06 16:19:01 +02:00
|
|
|
/* workaround for typing into inputs being ignored on iPadOS 15 */
|
|
|
|
:global(input) {
|
|
|
|
user-select: text;
|
|
|
|
-webkit-user-select: text;
|
|
|
|
}
|
|
|
|
|
2024-06-16 21:12:59 +02:00
|
|
|
@media (hover: hover) {
|
|
|
|
:global(button:hover) {
|
|
|
|
background-color: var(--button-hover);
|
|
|
|
}
|
2024-07-28 09:14:55 +02:00
|
|
|
|
|
|
|
:global(.button.elevated:not(.color):hover) {
|
2024-07-27 11:03:37 +02:00
|
|
|
background-color: var(--button-elevated-hover);
|
|
|
|
}
|
2024-07-20 14:54:12 +02:00
|
|
|
|
2024-07-23 09:22:05 +02:00
|
|
|
:global(.button.active:not(.color):hover) {
|
2024-07-20 14:54:12 +02:00
|
|
|
background-color: var(--button-active-hover);
|
|
|
|
}
|
2024-06-14 17:48:57 +02:00
|
|
|
}
|
|
|
|
|
2024-06-16 16:32:09 +02:00
|
|
|
:global(.center-column-container) {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2024-06-24 19:05:51 +02:00
|
|
|
:global(button) {
|
2024-06-24 16:26:45 +02:00
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(h1, h2, h3, h4, h5, h6) {
|
|
|
|
font-weight: 500;
|
|
|
|
margin-block: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(h1) {
|
|
|
|
font-size: 24px;
|
|
|
|
letter-spacing: -1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(h2) {
|
|
|
|
font-size: 20px;
|
|
|
|
letter-spacing: -1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(h3) {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
2024-06-24 19:05:51 +02:00
|
|
|
:global(h4) {
|
|
|
|
font-size: 14.5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(h5) {
|
2024-06-24 16:26:45 +02:00
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
|
2024-06-24 19:05:51 +02:00
|
|
|
:global(h6) {
|
|
|
|
font-size: 11px;
|
|
|
|
}
|
|
|
|
|
2024-06-24 16:26:45 +02:00
|
|
|
:global(.subtext) {
|
2024-07-10 16:19:05 +02:00
|
|
|
font-size: 12.5px;
|
|
|
|
font-weight: 500;
|
2024-06-24 16:26:45 +02:00
|
|
|
color: var(--gray);
|
|
|
|
line-height: 1.4;
|
2024-06-29 18:51:24 +02:00
|
|
|
padding: 0 var(--padding);
|
2024-07-03 19:54:44 +02:00
|
|
|
white-space: pre-line;
|
2024-07-17 10:50:09 +02:00
|
|
|
user-select: text;
|
|
|
|
-webkit-user-select: text;
|
2024-06-24 16:26:45 +02:00
|
|
|
}
|
2024-07-12 14:49:29 +02:00
|
|
|
|
2024-08-06 10:29:15 +02:00
|
|
|
:global(.long-text-noto),
|
2024-09-05 05:58:25 +02:00
|
|
|
:global(.long-text-noto *:not(h1, h2, h3, h4, h5, h6)) {
|
2024-11-04 19:43:03 +01:00
|
|
|
line-height: 1.8;
|
2024-08-06 10:29:15 +02:00
|
|
|
font-size: 14.5px;
|
|
|
|
font-family: "Noto Sans Mono Variable", "Noto Sans Mono", monospace;
|
|
|
|
user-select: text;
|
|
|
|
-webkit-user-select: text;
|
|
|
|
}
|
|
|
|
|
2024-09-09 13:05:37 +02:00
|
|
|
:global(.long-text-noto),
|
|
|
|
:global(.long-text-noto *:not(h1, h2, h3, h4, h5, h6, strong, em, del)) {
|
|
|
|
font-weight: 410;
|
|
|
|
}
|
|
|
|
|
2024-08-06 10:50:12 +02:00
|
|
|
:global(.long-text-noto ul) {
|
|
|
|
padding-inline-start: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(.long-text-noto li) {
|
|
|
|
padding-left: 3px;
|
|
|
|
}
|
|
|
|
|
2024-11-05 07:46:18 +01:00
|
|
|
:global(.long-text-noto:not(.about) h1),
|
|
|
|
:global(.long-text-noto:not(.about) h2),
|
|
|
|
:global(.long-text-noto:not(.about) h3) {
|
2024-11-04 19:43:03 +01:00
|
|
|
user-select: text;
|
|
|
|
-webkit-user-select: text;
|
|
|
|
letter-spacing: 0;
|
|
|
|
margin-block-start: 1rem;
|
|
|
|
}
|
|
|
|
|
2024-09-05 06:21:30 +02:00
|
|
|
:global(.long-text-noto h3) {
|
|
|
|
font-size: 17px;
|
2024-11-04 19:43:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
:global(.long-text-noto h2) {
|
|
|
|
font-size: 19px;
|
2024-11-05 07:46:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
:global(.long-text-noto:not(.about) h3) {
|
|
|
|
margin-block-end: -0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(.long-text-noto:not(.about) h2) {
|
|
|
|
font-size: 19px;
|
2024-11-04 19:43:03 +01:00
|
|
|
line-height: 1.3;
|
|
|
|
margin-block-end: -0.3rem;
|
2024-12-23 18:03:35 +01:00
|
|
|
padding: 6px 0;
|
|
|
|
border-bottom: 1.5px solid var(--button-elevated-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(.long-text-noto img) {
|
|
|
|
border-radius: 6px;
|
2024-11-04 19:43:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
:global(table),
|
|
|
|
:global(td),
|
|
|
|
:global(th) {
|
|
|
|
border-spacing: 0;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 1px;
|
|
|
|
border-collapse: collapse;
|
|
|
|
text-align: center;
|
|
|
|
padding: 3px 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(tr td:first-child),
|
|
|
|
:global(tr th:first-child) {
|
|
|
|
text-align: right;
|
2024-09-05 06:21:30 +02:00
|
|
|
}
|
|
|
|
|
2024-09-07 16:29:13 +02:00
|
|
|
:global(.long-text-noto.about section p:first-of-type) {
|
|
|
|
margin-block-start: 0.3em;
|
|
|
|
}
|
|
|
|
|
2024-09-22 17:03:50 +02:00
|
|
|
:global(.long-text-noto.about .heading-container) {
|
|
|
|
padding-top: calc(var(--padding) / 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(.long-text-noto.about section:first-of-type .heading-container) {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
2024-10-03 07:57:18 +02:00
|
|
|
:global(::selection) {
|
|
|
|
color: var(--primary);
|
|
|
|
background: var(--secondary);
|
|
|
|
}
|
|
|
|
|
2024-08-06 10:50:12 +02:00
|
|
|
@media screen and (max-width: 535px) {
|
|
|
|
:global(.long-text-noto),
|
2024-09-05 06:21:30 +02:00
|
|
|
:global(.long-text-noto *:not(h1, h2, h3, h4, h5, h6)) {
|
2024-08-06 10:50:12 +02:00
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-12 15:15:55 +02:00
|
|
|
[data-reduce-motion="true"] :global(*) {
|
2024-07-12 14:49:29 +02:00
|
|
|
animation: none !important;
|
|
|
|
transition: none !important;
|
|
|
|
}
|
2024-06-14 12:33:01 +02:00
|
|
|
</style>
|