Kaleido-Desktop/src/styles/base.css
Elijah 43c168da95 Address the first beta's bugs and requested changes
Startup now uses the Android iris animation, and playback can continue
in a corner miniplayer while browsing (the video is drawn into a corner
rectangle beneath a matching hole in the page). The player keeps the
window controls, hides its chrome when the pointer leaves, and gains
audio/subtitle tracks, audio sync, source bitrate and playback details
in its options. Subtitles can be styled in Settings with a live preview.
Categories replace Collections, the A–Z rail magnifies, descriptions
expand in place, downloads can be removed in bulk, and search keeps its
results while typing.

Fixes scroll jank from per-card and scrolling backdrop blurs, the hidden
colour wash, the cubic volume curve, loud theme music, the search focus
ring, a stray nav indicator, Continue Watching previews and the TV Shows
header overlap. Removes the star rating, the duplicate Settings menu
entry and the server settings' Show advanced switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 18:06:54 -07:00

249 lines
4.3 KiB
CSS

:root {
--bg: #090a0c;
--bg-raised: #0d0f11;
--panel: #17191c;
--panel-2: #202328;
--panel-3: #2a2e33;
--line: rgba(255, 255, 255, 0.105);
--line-soft: rgba(255, 255, 255, 0.06);
--muted: #9da3aa;
--dim: #777d83;
--white: #f5f6f7;
--text: #e6e8e9;
--accent: #a9c7c0;
--accent-strong: #c1ded7;
--accent-ink: #12201c;
--danger: #e59a9a;
--success: #8fc7a8;
--warning: #e3c27c;
--gutter: clamp(22px, 3.4vw, 64px);
--nav-h: 64px;
--r-sm: 5px;
--r: 8px;
--r-lg: 12px;
--ease: cubic-bezier(0.2, 0.7, 0.1, 1);
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
--t-fast: 140ms;
--t: 220ms;
--t-slow: 420ms;
--shadow-pop: 0 24px 80px rgba(0, 0, 0, 0.62), 0 2px 10px rgba(0, 0, 0, 0.35);
font-family: 'Inter Variable', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
font-feature-settings: 'cv11', 'ss01';
color: var(--white);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
html.reduced-motion {
--t-fast: 0ms;
--t: 0ms;
--t-slow: 0ms;
}
html.reduced-motion *,
html.reduced-motion *::before,
html.reduced-motion *::after {
animation-duration: 0ms !important;
transition-duration: 0ms !important;
}
* {
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
width: 100%;
margin: 0;
overflow: hidden;
}
html {
background: transparent;
}
body {
background: var(--bg);
color: var(--white);
font-size: 13px;
line-height: 1.45;
user-select: none;
-webkit-user-select: none;
cursor: default;
}
/* While video plays, the page is transparent so the native surface shows through. */
html.video-active body {
background: transparent;
}
html.video-active .app-shell {
visibility: hidden;
}
/* Miniplayer: the interface stays, with a rounded hole where the video is
drawn beneath it (sized like .mini-player). */
html.player-mini.video-active .app-shell {
visibility: visible;
-webkit-mask-image: linear-gradient(#000 0 0), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90'%3E%3Crect width='160' height='90' rx='3.6'/%3E%3C/svg%3E");
-webkit-mask-size: 100% 100%, var(--mini-w) var(--mini-h);
-webkit-mask-position: 0 0, right var(--mini-gap) bottom var(--mini-gap);
-webkit-mask-repeat: no-repeat;
-webkit-mask-composite: xor;
mask-composite: exclude;
}
button,
input,
textarea,
select {
font: inherit;
color: inherit;
}
button {
border: 0;
background: none;
padding: 0;
cursor: pointer;
}
button:disabled {
opacity: 0.45;
cursor: default;
}
input,
textarea {
user-select: text;
-webkit-user-select: text;
}
a {
color: inherit;
}
img {
display: block;
max-width: 100%;
}
svg {
flex: none;
}
:focus {
outline: none;
}
:focus-visible {
outline: 2px solid var(--accent-strong);
outline-offset: 3px;
border-radius: 4px;
}
/* Text fields draw their own focus state (or their container does). */
input:not([type='range'], [type='checkbox'], [type='radio']):focus-visible,
textarea:focus-visible {
outline: none;
}
::selection {
background: rgba(169, 199, 192, 0.35);
}
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.16);
border-radius: 10px;
border: 3px solid transparent;
background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(255, 255, 255, 0.28);
}
::-webkit-scrollbar-corner {
background: transparent;
}
.micro {
color: #b2c8c2;
text-transform: uppercase;
font-weight: 700;
letter-spacing: 0.18em;
font-size: 11px;
}
.muted {
color: var(--muted);
}
.dim {
color: var(--dim);
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
.selectable {
user-select: text;
-webkit-user-select: text;
cursor: text;
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes rise-in {
from {
opacity: 0;
transform: translateY(14px);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes pop-in {
from {
opacity: 0;
transform: translateY(-4px) scale(0.98);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@keyframes shimmer {
0% {
background-position: -400px 0;
}
100% {
background-position: 400px 0;
}
}