Files
mal/static/assets/style.css

162 lines
4.0 KiB
CSS

@import 'tailwindcss';
@import '@toolwind/anchors';
@source "../../templates/**/*.gohtml";
@source "../**/*.ts";
@theme {
--color-background: light-dark(#f7f6f3, #0b0c10);
--color-background-sidebar: light-dark(#fbfbfa, #0f1115);
--color-background-header: light-dark(#fbfbfa, #0f1115);
--color-background-surface: light-dark(#ffffff, #17181c);
--color-background-button: light-dark(#ffffff, #131417);
--color-background-button-hover: light-dark(#f7f6f3, #1c1d22);
--color-foreground-muted: light-dark(#787774, #a1a1aa);
--color-foreground: light-dark(#111111, #f3f4f6);
--color-accent: #1f6c9f;
--color-border: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.1));
--color-surface-hover: light-dark(rgba(0, 0, 0, 0.03), rgba(255, 255, 255, 0.05));
}
:root {
color-scheme: light dark;
--bg: var(--color-background);
--panel: light-dark(#f5f5f4, #181818);
--panel-soft: light-dark(#e7e5e4, #202020);
--header: light-dark(#ffffff, #101010);
--text: light-dark(#1c1917, #e7e5e4);
--text-muted: light-dark(#57534e, #a8a29e);
--text-faint: light-dark(#a8a29e, #78716c);
--accent: var(--color-accent);
--danger: #dc2626;
--surface-thumb: light-dark(#e7e5e4, #44403c);
--surface-tab-hover: light-dark(#e7e5e4, #202020);
--surface-tab-active: light-dark(#1c1917, #fafaf9);
--text-tab-active: light-dark(#fafaf9, #0c0a09);
--surface-select: light-dark(#ffffff, #181818);
--text-on-accent: light-dark(#fafaf9, #0c0a09);
--overlay-subtle: light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.04));
--shadow-subtle: light-dark(0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.18));
--shadow-card: light-dark(0 2px 8px rgba(0, 0, 0, 0.04), 0 2px 10px rgba(0, 0, 0, 0.28));
--shadow-card-hover: light-dark(0 6px 18px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.34));
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--poster-max-height: 360px;
--font: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
--font-serif: 'Newsreader', ui-serif, Georgia, serif;
--font-mono: ui-monospace, 'SF Mono', 'Geist Mono', 'JetBrains Mono', monospace;
--radius: 0px;
}
[data-theme='light'] {
color-scheme: light;
}
[data-theme='dark'] {
color-scheme: dark;
}
html,
body {
background-color: var(--color-background);
color: var(--text);
}
@layer utilities {
.shadow-soft {
box-shadow: var(--shadow-card);
}
.shadow-soft-hover:hover {
box-shadow: var(--shadow-card-hover);
}
.border-hairline {
border: 1px solid var(--color-border);
}
.heading-serif {
font-family: var(--font-serif);
letter-spacing: -0.03em;
line-height: 1.15;
}
.mono {
font-family: var(--font-mono);
}
}
/* Default to square corners; opt back in selectively (e.g. inputs). */
:where(input, textarea, select) {
border-radius: 6px !important;
}
:where(.rounded-keep) {
border-radius: 6px !important;
}
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
.scrollbar-hide {
-ms-overflow-style: none;
scrollbar-width: none;
}
@media (min-width: 1024px) {
.scrollbar-hide::-webkit-scrollbar {
display: block;
height: 8px;
}
.scrollbar-hide::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 0;
}
.scrollbar-hide::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 0;
}
.scrollbar-hide::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3);
}
button.in-watchlist .watchlist-icon {
fill: currentColor !important;
}
.scrollbar-hide {
-ms-overflow-style: auto;
scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}
}
.show-controls [data-video-overlay] {
opacity: 1;
}
[data-video-player].fullscreen:not(.show-controls) [data-video-overlay] {
opacity: 0 !important;
pointer-events: none;
}
[data-video-player].fullscreen:not(.show-controls) {
cursor: none;
}
[data-video-player].fullscreen:not(.show-controls) video {
cursor: none;
}