juicewrld-desktopuibar.css
1.4.2Released Nov 21, 2026
bar.css
682 lines13.4 KBCSS/* The desktop app's title bar, in the site's Calm Liquid look (docs/CALM.md, src/app/globals.css): the top bar's dark glass settled on the page colour, one hairline under it, Geist, radii 4/8/12, no glow. The window controls follow Windows 11 (46px wide, the system's own glyphs, red under the pointer on Close). While the site lies under it (the end of this file) it's see-through to the page's own colour instead. */@font-face { font-family: "Geist"; src: url("fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: block;} { --bg: #0b0b0e; /* The site's --glass-bar (rgb(16 16 20 / 0.44)) over the page colour. */ --bar: rgb(13 13 17); --ink: #f4f4f6; --ink-2: rgb(244 244 246 / 0.72); --ink-3: rgb(244 244 246 / 0.55); --rule: rgb(255 255 255 / 0.07); --veil: rgb(255 255 255 / 0.06); --veil-press: rgb(255 255 255 / 0.1); --accent: #b7a3ff; --close: #c42b1c; --ease: cubic-bezier(0.2, 0, 0, 1); --fast: 120ms; --press: 100ms; --dur: 180ms; color-scheme: dark;}* { box-sizing: border-box;}html,body { margin: 0; height: 100%; overflow: hidden; background: var(--bar); color: var(--ink); font: 500 12.5px/1 "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; user-select: none; cursor: default; transition: background-color var(--dur) var(--ease);}.bar { position: relative; display: flex; align-items: center; height: 36px; padding-left: 6px; /* One hairline under the bar, drawn inside so the site starts right below it. */ box-shadow: inset 0 -1px 0 var(--rule);}button { all: unset; position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--ink-2); transition: color var(--fast) var(--ease);}button { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px;}/* Every quiet control draws its veil on a 28px plate inside its 32px hit area. */.brand,.icon,.now { content: ""; position: absolute; inset: 2px; border-radius: 8px; background: var(--veil); opacity: 0; transition: opacity var(--fast) var(--ease);}.brand,.icon,.now { opacity: 1;}.brand,.icon,.now { background: var(--veil-press);}/* The 999 mark and the wordmark: the site's home. */.brand { gap: 8px; height: 32px; padding: 0 10px 0 8px;}.brand img { position: relative; display: block; transition: scale var(--press) var(--ease);}.brand img { border-radius: 4px;}.wordmark { width: auto; opacity: 0.92; transition: opacity var(--fast) var(--ease);}.brand .wordmark { opacity: 1;}.brand img { scale: 0.97;}/* Back, forward and reload for the page below. */.nav { display: flex; align-items: center; margin-left: 4px;}.icon { width: 32px; height: 32px;}.icon svg { position: relative; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: scale var(--press) var(--ease);}.icon,.now .now-title { color: var(--ink);}.icon svg { scale: 0.88;}.icon { color: var(--ink); opacity: 0.22; transition: opacity var(--dur) var(--ease);}.icon { display: none;}/* A turn of the arrows when the page reloads. */.reload.spin svg { animation: spin 560ms var(--ease);}@keyframes spin { from { rotate: 0deg; } to { rotate: 360deg; }}/* What's playing: an equalizer (still while paused), the title, the artist. Goes to the song's page. The one part of the bar that gives way in a narrow window (the artist first, then the title), so the caption buttons never leave it. */.now { flex: 0 1 auto; gap: 8px; min-width: 0; max-width: min(520px, 46vw); height: 32px; margin-left: 6px; padding: 0 10px; opacity: 0; translate: 0 3px; pointer-events: none; transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease);}.now { content: ""; position: absolute; left: -3px; top: 10px; bottom: 10px; width: 1px; background: var(--rule);}.now[data-state] { opacity: 1; translate: 0 0; pointer-events: auto;}.now-title,.now-artist { position: relative; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.now-title { flex: 0 1 auto; color: var(--ink-2); transition: color var(--fast) var(--ease);}.now-artist { flex: 0 10 auto; font-weight: 400; color: var(--ink-3);}.eq { position: relative; display: flex; align-items: flex-end; gap: 2px; width: 10px; height: 10px; flex: none;}.eq i { width: 2px; height: 100%; border-radius: 1px; background: var(--accent); transform-origin: bottom; scale: 1 0.3; transition: scale var(--dur) var(--ease);}.now[data-state="playing"] .eq i { animation: eq 900ms ease-in-out infinite alternate;}.now[data-state="playing"] .eq i(2) { animation-duration: 640ms; animation-delay: -320ms;}.now[data-state="playing"] .eq i(3) { animation-duration: 780ms; animation-delay: -520ms;}.now[data-state="paused"] .eq i { background: var(--ink-3);}@keyframes eq { from { scale: 1 0.25; } to { scale: 1 1; }}/* A passing word from the app (a sign-in moved to the browser), centred like a window title. */.notice { position: absolute; left: 50%; top: 50%; translate: -50% calc(-50% + 3px); max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease);}.notice[data-on] { opacity: 1; translate: -50% -50%;}/* An update has downloaded: a quiet control beside the caption buttons that restarts into it. Out of the layout until then, so it never takes room from what's playing; it rises into place like the line about the song. */.update { display: none; gap: 6px; height: 32px; margin-left: auto; padding: 0 10px 0 8px; font-size: 12.5px; color: var(--ink-2); opacity: 0; translate: 0 3px; transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease), color var(--fast) var(--ease), display var(--dur) allow-discrete;}.update[data-on] { display: inline-flex; opacity: 1; translate: 0 0;}@starting-style { .update[data-on] { opacity: 0; translate: 0 3px; }}.update { content: ""; position: absolute; inset: 2px 0; border-radius: 8px; background: var(--veil); opacity: 0; transition: opacity var(--fast) var(--ease);}.update { color: var(--ink);}.update { opacity: 1;}.update { background: var(--veil-press);}.update svg { position: relative; width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: scale var(--press) var(--ease);}.update svg { scale: 0.88;}.update-label { position: relative; white-space: nowrap;}/* A narrow window keeps the arrow alone; its tooltip still says what it does. */@media (max-width: 600px) { .update { width: 32px; padding: 0; justify-content: center; } .update { inset: 2px; } .update-label { display: none; }}/* Pressed: the app is closing to install it. */.update[data-busy] { pointer-events: none; color: var(--ink-3);}.update[data-busy] svg { stroke: var(--ink-3);}/* The app's menu (the user's plugins and their folders), just left of the caption buttons. */.menu { margin-left: auto;}.update[data-on] + .menu { margin-left: 2px;}/* The site asking to use this PC's plugins: a question centred like the notice, answered here, out of the page's reach. */.ask { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 4px; max-width: min(600px, 58vw); height: 28px; padding: 0 3px 0 12px; border-radius: 8px; background: var(--veil); box-shadow: inset 0 0 0 1px var(--rule); translate: -50% calc(-50% + 3px); opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease);}.ask[data-on] { opacity: 1; translate: -50% -50%; pointer-events: auto;}.ask-text { min-width: 0; margin-right: 6px; overflow: hidden; text-overflow: ellipsis; color: var(--ink);}.ask button { height: 22px; padding: 0 10px; border-radius: 6px; font-size: 12px; transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease), scale var(--press) var(--ease);}.ask button { scale: 0.97;}.ask-yes { color: #15121f; background: var(--accent);}.ask-yes { background: #c6b6ff;}.ask-no { color: var(--ink); background: var(--veil-press);}/* Windows' own caption buttons: the system glyphs, 46 by 36. */.caption { display: flex; margin-left: 2px; align-self: stretch;}.cap { width: 46px; height: 36px; font-family: "Segoe Fluent Icons", "Segoe MDL2 Assets"; font-size: 10px; font-weight: 400; color: var(--ink-2); transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);}.cap { color: var(--ink); background-color: var(--veil);}.cap { background-color: rgb(255 255 255 / 0.04); color: var(--ink-2);}.cap.close { color: #fff; background-color: var(--close);}.cap.close { color: rgb(255 255 255 / 0.8); background-color: rgb(196 43 28 / 0.9);}.cap { border-radius: 0;}/* An inactive window's bar steps back, like the system's. */.blur .brand,.blur .nav,.blur .now,.blur .update[data-on],.blur .menu,.blur .cap() { opacity: 0.55;}.blur .now([data-state]) { opacity: 0;}.brand,.nav { transition: opacity var(--dur) var(--ease);}/* A full page load in progress: a slim accent line runs along the hairline. */.loading { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; overflow: hidden; opacity: 0; transition: opacity var(--dur) var(--ease); pointer-events: none;}.loading { content: ""; position: absolute; inset: 0; width: 32%; background: linear-gradient(90deg, transparent, var(--accent), transparent); translate: -100% 0;}.bar[data-loading] .loading { opacity: 1;}.bar[data-loading] .loading { animation: sweep 1100ms var(--ease) infinite;}@keyframes sweep { from { translate: -100% 0; } to { translate: 320% 0; }}/* The site under the bar (main.rs site_under_bar, bar.js jw.overlay): the bar is see-through, so the page's colour (the moving cover, the mesh) runs up behind it to the window's top edge, as it does behind the site's own top bar. A soft scrim fading to nothing at the bar's foot keeps the words readable on any colour without drawing a seam, and the hairline goes; words and glyphs carry a faint shadow, and the veils under the pointer are stronger, since 6% white vanishes over a light cover. Nothing here can blur the page (it's another webview), so the plates stay flat. Close still turns red. */[data-overlay] { --veil: rgb(255 255 255 / 0.12); --veil-press: rgb(255 255 255 / 0.18);}[data-overlay],[data-overlay] body { background: transparent;}/* Over the site the bar is nothing of its own (1.4.1, the owner: "blend better in with the actual site so its unnoticable"): no band, no hairline, no shadows, and no logo (the site's bar right under it has one). Its controls float over the page's own colour, and the page's own glass comes in behind them as rows scroll up (globals.css [data-status-glass]). */[data-overlay] .bar { background: none; box-shadow: none;}[data-overlay] .brand { display: none;}[data-overlay] .nav { margin-left: 2px;}/* Below the bar, the bar takes the page's top colour (bar.js tint) and drops its hairline: the page's own top bar has its edge, so the two read as one. */[data-tinted]([data-overlay]) .bar { box-shadow: none;}[data-overlay] .cap { background-color: rgb(255 255 255 / 0.08);}/* The plugins question stands on a plate of the site's strong glass colour, so it reads over any page. */[data-overlay] .ask { background: rgb(16 16 20 / 0.86);}/* Reduced transparency or High Contrast: the bar stays solid over the site too. */@media (prefers-reduced-transparency: reduce) { [data-overlay], [data-overlay] body { background: var(--bar); } [data-overlay] .bar { background: none; }}@media (forced-colors: active) { [data-overlay], [data-overlay] body { background: Canvas; }}@media (prefers-reduced-motion: reduce) { /* The question stays centred; it just doesn't rise into place. */ .ask, .ask[data-on] { translate: -50% -50%; } .now, .now[data-state], .update, .update[data-on] { translate: none; } .now[data-state="playing"] .eq i { animation: none; scale: 1 0.7; } .reload.spin svg, .bar[data-loading] .loading { animation: none; } .bar[data-loading] .loading { width: 100%; translate: none; opacity: 0.5; }}