mirror of
https://github.com/pvrzz/atmosphere.git
synced 2026-11-29 05:22:26 +00:00
Logo in the sidebar and a collapsible sidebar
- Title bar now spans only the content area, so it can never misalign with the sidebar - Sidebar collapses to icons (Ctrl+B or the toggle), remembered between launches - Hover labels for every icon in the collapsed sidebar
This commit is contained in:
@@ -115,8 +115,86 @@ function syncFrame() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* window chrome */
|
/* window chrome */
|
||||||
|
const SIDE_KEY = "atmo.sidebar";
|
||||||
|
|
||||||
|
function setSidebar(collapsed, save = true) {
|
||||||
|
document.documentElement.classList.toggle("side-collapsed", collapsed);
|
||||||
|
const b = $("#sideToggle");
|
||||||
|
if (b) {
|
||||||
|
b.setAttribute("aria-expanded", String(!collapsed));
|
||||||
|
b.setAttribute("aria-label", collapsed ? "Expand sidebar" : "Collapse sidebar");
|
||||||
|
b.dataset.tip = collapsed ? "Expand sidebar (Ctrl+B)" : "Collapse sidebar (Ctrl+B)";
|
||||||
|
b.replaceChildren(icon(collapsed ? "layout-sidebar-left-expand" : "layout-sidebar-left-collapse"));
|
||||||
|
}
|
||||||
|
hideSideTip();
|
||||||
|
if (save) {
|
||||||
|
try {
|
||||||
|
localStorage.setItem(SIDE_KEY, collapsed ? "collapsed" : "open");
|
||||||
|
} catch {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function sideTipText(el) {
|
||||||
|
if (el.dataset.tip) return el.dataset.tip;
|
||||||
|
const label = el.querySelector(".nav-label") || [...el.children].find((c) => c.tagName === "SPAN" && !c.classList.contains("i") && !c.classList.contains("nav-ring") && !c.classList.contains("count") && c.textContent.trim());
|
||||||
|
const meta = el.querySelector(".nav-meta")?.textContent.trim();
|
||||||
|
const count = el.querySelector(".count:not([hidden])")?.textContent.trim();
|
||||||
|
const base = (label?.textContent || el.getAttribute("aria-label") || "").trim();
|
||||||
|
return [base, meta === "Missing" ? "folder missing" : meta && el.closest("#playlistNav") ? `${meta} songs` : "", count ? `${count} active` : ""].filter(Boolean).join(" · ");
|
||||||
|
}
|
||||||
|
|
||||||
|
function showSideTip(el) {
|
||||||
|
const text = sideTipText(el);
|
||||||
|
if (!text) return hideSideTip();
|
||||||
|
let tip = $("#sideTip");
|
||||||
|
if (!tip) {
|
||||||
|
tip = h("div", { class: "side-tip", id: "sideTip", role: "tooltip" });
|
||||||
|
document.body.append(tip);
|
||||||
|
}
|
||||||
|
tip.textContent = text;
|
||||||
|
const r = el.getBoundingClientRect();
|
||||||
|
tip.style.top = `${Math.round(r.top + r.height / 2)}px`;
|
||||||
|
tip.style.left = `${Math.round(r.right + 10)}px`;
|
||||||
|
tip.classList.add("on");
|
||||||
|
}
|
||||||
|
|
||||||
|
function hideSideTip() {
|
||||||
|
$("#sideTip")?.classList.remove("on");
|
||||||
|
}
|
||||||
|
|
||||||
|
function bindSidebar() {
|
||||||
|
let collapsed = false;
|
||||||
|
try {
|
||||||
|
collapsed = localStorage.getItem(SIDE_KEY) === "collapsed";
|
||||||
|
} catch {}
|
||||||
|
setSidebar(collapsed, false);
|
||||||
|
const side = $("#sidebar");
|
||||||
|
$("#sideToggle").addEventListener("click", () => setSidebar(!document.documentElement.classList.contains("side-collapsed")));
|
||||||
|
const target = (e) => e.target.closest?.(".nav-item, .update-chip, .engine-state, .side-toggle, #newPlaylistBtn");
|
||||||
|
side.addEventListener("mouseover", (e) => {
|
||||||
|
const el = target(e);
|
||||||
|
if (el && document.documentElement.classList.contains("side-collapsed")) showSideTip(el);
|
||||||
|
else hideSideTip();
|
||||||
|
});
|
||||||
|
side.addEventListener("mouseleave", hideSideTip);
|
||||||
|
side.addEventListener("focusin", (e) => {
|
||||||
|
const el = target(e);
|
||||||
|
if (el && el.matches(":focus-visible") && document.documentElement.classList.contains("side-collapsed")) showSideTip(el);
|
||||||
|
});
|
||||||
|
side.addEventListener("focusout", hideSideTip);
|
||||||
|
side.addEventListener("click", hideSideTip);
|
||||||
|
$("#playlistNav")?.addEventListener("scroll", hideSideTip, { passive: true });
|
||||||
|
document.addEventListener("keydown", (e) => {
|
||||||
|
if ((e.ctrlKey || e.metaKey) && !e.shiftKey && !e.altKey && e.key.toLowerCase() === "b" && !e.target.closest("input, textarea, [contenteditable]")) {
|
||||||
|
e.preventDefault();
|
||||||
|
setSidebar(!document.documentElement.classList.contains("side-collapsed"));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function bindWindow() {
|
function bindWindow() {
|
||||||
const bar = $("#titlebar");
|
const bar = $("#titlebar");
|
||||||
|
document.documentElement.classList.toggle("mac", isMac);
|
||||||
if (isMac) bar.classList.add("mac");
|
if (isMac) bar.classList.add("mac");
|
||||||
const api = window.__TAURI__.window;
|
const api = window.__TAURI__.window;
|
||||||
if (!api?.getCurrentWindow) return;
|
if (!api?.getCurrentWindow) return;
|
||||||
@@ -145,6 +223,7 @@ async function init() {
|
|||||||
hydrate();
|
hydrate();
|
||||||
platformKeys();
|
platformKeys();
|
||||||
bindWindow();
|
bindWindow();
|
||||||
|
bindSidebar();
|
||||||
state.settings = await invoke("get_settings");
|
state.settings = await invoke("get_settings");
|
||||||
applyTheme();
|
applyTheme();
|
||||||
bindShell();
|
bindShell();
|
||||||
@@ -272,7 +351,9 @@ function renderEngine() {
|
|||||||
const t = state.tools;
|
const t = state.tools;
|
||||||
const foot = $("#engineState");
|
const foot = $("#engineState");
|
||||||
const ready = !!t?.ytdlp.path;
|
const ready = !!t?.ytdlp.path;
|
||||||
foot.replaceChildren(h("span", { class: `dot ${ready ? (t.ffmpeg.path ? "ok" : "warn") : "warn"}` }), h("span", {}, ready ? (t.ffmpeg.path ? "Engine ready" : "ffmpeg missing: limited formats") : "Engine not set up"));
|
const engineText = ready ? (t.ffmpeg.path ? "Engine ready" : "ffmpeg missing: limited formats") : "Engine not set up";
|
||||||
|
foot.dataset.tip = engineText;
|
||||||
|
foot.replaceChildren(h("span", { class: `dot ${ready ? (t.ffmpeg.path ? "ok" : "warn") : "warn"}` }), h("span", {}, engineText));
|
||||||
$("#engineBanner").hidden = ready || !state.settings?.rightsAccepted;
|
$("#engineBanner").hidden = ready || !state.settings?.rightsAccepted;
|
||||||
if (!$("#onboarding").hidden) renderObTools();
|
if (!$("#onboarding").hidden) renderObTools();
|
||||||
renderToolSettings();
|
renderToolSettings();
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
+9
-5
@@ -9,10 +9,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header class="titlebar" id="titlebar" data-tauri-drag-region>
|
<header class="titlebar" id="titlebar" data-tauri-drag-region>
|
||||||
<div class="tb-brand" data-tauri-drag-region>
|
|
||||||
<img class="lockup lockup-light" src="assets/lockup-light.svg" alt="Atmosphere" width="132" height="30" draggable="false" />
|
|
||||||
<img class="lockup lockup-dark" src="assets/lockup-dark.svg" alt="Atmosphere" width="132" height="30" draggable="false" />
|
|
||||||
</div>
|
|
||||||
<div class="tb-drag" data-tauri-drag-region></div>
|
<div class="tb-drag" data-tauri-drag-region></div>
|
||||||
<div class="tb-controls" id="winControls">
|
<div class="tb-controls" id="winControls">
|
||||||
<button class="tb-btn" id="winMin" aria-label="Minimize" title="Minimize"><svg viewBox="0 0 10 10" aria-hidden="true"><path d="M0 5.5h10" /></svg></button>
|
<button class="tb-btn" id="winMin" aria-label="Minimize" title="Minimize"><svg viewBox="0 0 10 10" aria-hidden="true"><path d="M0 5.5h10" /></svg></button>
|
||||||
@@ -21,7 +17,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div class="shell" id="shell" inert>
|
<div class="shell" id="shell" inert>
|
||||||
<aside class="sidebar">
|
<aside class="sidebar" id="sidebar">
|
||||||
|
<div class="side-brand" data-tauri-drag-region>
|
||||||
|
<span class="brand-full" data-tauri-drag-region>
|
||||||
|
<img class="lockup lockup-light" src="assets/lockup-light.svg" alt="Atmosphere" width="132" height="30" draggable="false" data-tauri-drag-region />
|
||||||
|
<img class="lockup lockup-dark" src="assets/lockup-dark.svg" alt="Atmosphere" width="132" height="30" draggable="false" data-tauri-drag-region />
|
||||||
|
</span>
|
||||||
|
<img class="brand-mark" src="assets/mark.svg" alt="Atmosphere" width="30" height="25" draggable="false" data-tauri-drag-region />
|
||||||
|
<button class="icon-btn side-toggle" id="sideToggle" type="button" aria-label="Collapse sidebar" aria-expanded="true" data-tip="Collapse sidebar (Ctrl+B)"><span class="i" data-icon="layout-sidebar-left-collapse"></span></button>
|
||||||
|
</div>
|
||||||
<nav class="nav" aria-label="Main">
|
<nav class="nav" aria-label="Main">
|
||||||
<button class="nav-item" data-nav="get" aria-current="page"><span class="i" data-icon="cloud-download"></span><span>Get</span><kbd>Ctrl K</kbd></button>
|
<button class="nav-item" data-nav="get" aria-current="page"><span class="i" data-icon="cloud-download"></span><span>Get</span><kbd>Ctrl K</kbd></button>
|
||||||
<button class="nav-item" data-nav="downloads" id="navDownloads">
|
<button class="nav-item" data-nav="downloads" id="navDownloads">
|
||||||
|
|||||||
+1
-1
@@ -335,7 +335,7 @@ function renderPlaylistNav() {
|
|||||||
const lists = Lib.data?.playlists || [];
|
const lists = Lib.data?.playlists || [];
|
||||||
nav.replaceChildren(
|
nav.replaceChildren(
|
||||||
...lists.map((p) => {
|
...lists.map((p) => {
|
||||||
const b = h("button", { class: `nav-item small ${p.missing ? "missing" : ""}`, "data-playlist": p.name, title: p.missing ? `Folder not found: ${p.path}` : p.linked ? p.path : null, onclick: () => openLib("playlist", p.name) }, icon(p.missing ? "alert-circle" : p.linked ? "folder" : "playlist"), h("span", { class: "nav-label" }, p.name), h("span", { class: "nav-meta" }, p.missing ? "Missing" : String(p.order.length)));
|
const b = h("button", { class: `nav-item small ${p.missing ? "missing" : ""}`, "data-playlist": p.name, onclick: () => openLib("playlist", p.name) }, icon(p.missing ? "alert-circle" : p.linked ? "folder" : "playlist"), h("span", { class: "nav-label" }, p.name), h("span", { class: "nav-meta" }, p.missing ? "Missing" : String(p.order.length)));
|
||||||
b.addEventListener("dragover", (e) => { if (e.dataTransfer.types.includes("application/x-atmo-tracks")) { e.preventDefault(); b.classList.add("drop"); } });
|
b.addEventListener("dragover", (e) => { if (e.dataTransfer.types.includes("application/x-atmo-tracks")) { e.preventDefault(); b.classList.add("drop"); } });
|
||||||
b.addEventListener("dragleave", () => b.classList.remove("drop"));
|
b.addEventListener("dragleave", () => b.classList.remove("drop"));
|
||||||
b.addEventListener("drop", (e) => {
|
b.addEventListener("drop", (e) => {
|
||||||
|
|||||||
+49
-12
@@ -85,7 +85,8 @@ kbd { padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); col
|
|||||||
|
|
||||||
html, body { height: 100%; }
|
html, body { height: 100%; }
|
||||||
body { display: flex; flex-direction: column; }
|
body { display: flex; flex-direction: column; }
|
||||||
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); flex: 1; min-height: 0; }
|
:root { --side-w: 236px; }
|
||||||
|
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); flex: 1; min-height: 0; transition: grid-template-columns 200ms var(--ease); }
|
||||||
|
|
||||||
/* sidebar */
|
/* sidebar */
|
||||||
.sidebar { background: var(--sidebar); border-right: 1px solid var(--hairline); display: flex; flex-direction: column; min-height: 0; padding: var(--s4) var(--s3) var(--s3); gap: var(--s4); }
|
.sidebar { background: var(--sidebar); border-right: 1px solid var(--hairline); display: flex; flex-direction: column; min-height: 0; padding: var(--s4) var(--s3) var(--s3); gap: var(--s4); }
|
||||||
@@ -447,7 +448,7 @@ label.setting { cursor: pointer; }
|
|||||||
|
|
||||||
/* cover flight + toasts */
|
/* cover flight + toasts */
|
||||||
.flyer { position: fixed; z-index: 80; border-radius: 8px; object-fit: cover; pointer-events: none; box-shadow: var(--shadow); }
|
.flyer { position: fixed; z-index: 80; border-radius: 8px; object-fit: cover; pointer-events: none; box-shadow: var(--shadow); }
|
||||||
.toasts { position: fixed; bottom: 100px; left: calc(50% + 118px); transform: translateX(-50%); z-index: 90; display: grid; gap: var(--s2); justify-items: center; pointer-events: none; }
|
.toasts { position: fixed; bottom: 100px; left: calc(50% + var(--side-w) / 2); transform: translateX(-50%); z-index: 90; display: grid; gap: var(--s2); justify-items: center; pointer-events: none; }
|
||||||
.toast { pointer-events: auto; display: flex; align-items: center; gap: var(--s3); max-width: 560px; padding: 10px var(--s4); border-radius: 10px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); animation: menuIn 180ms var(--ease); }
|
.toast { pointer-events: auto; display: flex; align-items: center; gap: var(--s3); max-width: 560px; padding: 10px var(--s4); border-radius: 10px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); animation: menuIn 180ms var(--ease); }
|
||||||
.toast .i { width: 16px; height: 16px; }
|
.toast .i { width: 16px; height: 16px; }
|
||||||
.toast.err .i { color: var(--err); }
|
.toast.err .i { color: var(--err); }
|
||||||
@@ -459,7 +460,7 @@ label.setting { cursor: pointer; }
|
|||||||
::-webkit-scrollbar-track { background: transparent; }
|
::-webkit-scrollbar-track { background: transparent; }
|
||||||
|
|
||||||
@media (max-width: 980px) {
|
@media (max-width: 980px) {
|
||||||
.shell { grid-template-columns: 200px minmax(0, 1fr); }
|
:root { --side-w: 200px; }
|
||||||
.sheet-head { grid-template-columns: 128px minmax(0, 1fr); gap: var(--s5); }
|
.sheet-head { grid-template-columns: 128px minmax(0, 1fr); gap: var(--s5); }
|
||||||
.cover { width: 128px; height: 128px; }
|
.cover { width: 128px; height: 128px; }
|
||||||
.sheet-body.inspecting { padding-right: var(--s8); }
|
.sheet-body.inspecting { padding-right: var(--s8); }
|
||||||
@@ -725,9 +726,7 @@ label.setting { cursor: pointer; }
|
|||||||
|
|
||||||
/* custom title bar */
|
/* custom title bar */
|
||||||
:root { --titlebar: 40px; }
|
:root { --titlebar: 40px; }
|
||||||
.titlebar { flex: none; height: var(--titlebar); display: grid; grid-template-columns: 236px minmax(0, 1fr) auto; align-items: stretch; background: var(--bg); position: relative; z-index: 80; user-select: none; }
|
.titlebar { position: fixed; top: 0; right: 0; left: var(--side-w); height: var(--titlebar); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; background: var(--bg); z-index: 80; user-select: none; transition: left 200ms var(--ease); }
|
||||||
.tb-brand { display: flex; align-items: center; padding: 0 var(--s5); background: var(--sidebar); border-right: 1px solid var(--hairline); }
|
|
||||||
.tb-brand .lockup { height: 26px; width: auto; pointer-events: none; }
|
|
||||||
.tb-drag { min-width: 0; }
|
.tb-drag { min-width: 0; }
|
||||||
.tb-controls { display: flex; }
|
.tb-controls { display: flex; }
|
||||||
.tb-btn { width: 46px; height: var(--titlebar); display: grid; place-items: center; color: var(--text-2); transition: background-color 100ms var(--ease), color 100ms var(--ease); }
|
.tb-btn { width: 46px; height: var(--titlebar); display: grid; place-items: center; color: var(--text-2); transition: background-color 100ms var(--ease), color 100ms var(--ease); }
|
||||||
@@ -736,13 +735,12 @@ label.setting { cursor: pointer; }
|
|||||||
.tb-btn:active { background: var(--press); }
|
.tb-btn:active { background: var(--press); }
|
||||||
.tb-btn.close:hover { background: #c42b1c; color: #fff; }
|
.tb-btn.close:hover { background: #c42b1c; color: #fff; }
|
||||||
.tb-btn.close:active { background: #b3271a; color: #fff; }
|
.tb-btn.close:active { background: #b3271a; color: #fff; }
|
||||||
.titlebar.mac { grid-template-columns: 236px minmax(0, 1fr); }
|
.titlebar.mac { grid-template-columns: minmax(0, 1fr); }
|
||||||
.titlebar.mac .tb-controls { display: none; }
|
.titlebar.mac .tb-controls { display: none; }
|
||||||
.titlebar.mac .tb-brand { padding-left: 84px; }
|
.titlebar.blur .tb-btn, .titlebar.blur ~ .shell .side-brand img { opacity: 0.6; }
|
||||||
.titlebar.mac .tb-brand .lockup { height: 22px; }
|
.sidebar { padding-top: 0; }
|
||||||
.titlebar.blur .tb-btn, .titlebar.blur .tb-brand .lockup { opacity: 0.6; }
|
.main { padding-top: var(--titlebar); }
|
||||||
.sidebar { padding-top: var(--s2); }
|
.onboarding { top: 0; }
|
||||||
.onboarding { top: var(--titlebar); }
|
|
||||||
.drawer-panel { top: calc(var(--titlebar) + 12px); }
|
.drawer-panel { top: calc(var(--titlebar) + 12px); }
|
||||||
.fx { max-height: calc(100vh - 140px); }
|
.fx { max-height: calc(100vh - 140px); }
|
||||||
|
|
||||||
@@ -977,3 +975,42 @@ body.mini-mode > *:not(#mini):not(.toasts):not(.modal-wrap):not(script) { displa
|
|||||||
.update-notes { max-height: 220px; overflow: auto; white-space: pre-wrap; font-size: 13px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, var(--surface)); border: 1px solid var(--hairline); color: var(--text-2); }
|
.update-notes { max-height: 220px; overflow: auto; white-space: pre-wrap; font-size: 13px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, var(--surface)); border: 1px solid var(--hairline); color: var(--text-2); }
|
||||||
.update-bar { height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; margin: var(--s3) 0 var(--s2); }
|
.update-bar { height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; margin: var(--s3) 0 var(--s2); }
|
||||||
.update-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width 160ms linear; }
|
.update-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width 160ms linear; }
|
||||||
|
|
||||||
|
/* sidebar brand and collapsing */
|
||||||
|
.side-brand { flex: none; height: var(--titlebar); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin: 0 calc(-1 * var(--s3)) calc(-1 * var(--s2)); padding: 0 var(--s2) 0 var(--s5); }
|
||||||
|
.side-brand .lockup { height: 26px; width: auto; }
|
||||||
|
.brand-full { display: flex; align-items: center; min-width: 0; }
|
||||||
|
.brand-mark { display: none; height: 24px; width: auto; }
|
||||||
|
.side-toggle { flex: none; opacity: 0; transition: opacity 120ms var(--ease), background-color 120ms var(--ease), color 120ms var(--ease); }
|
||||||
|
.sidebar:hover .side-toggle, .side-toggle:focus-visible { opacity: 1; }
|
||||||
|
.mac .side-brand { padding-left: 80px; }
|
||||||
|
.mac .side-brand .lockup { height: 22px; }
|
||||||
|
|
||||||
|
:root.side-collapsed { --side-w: 64px; }
|
||||||
|
.side-collapsed .sidebar { padding-left: 10px; padding-right: 10px; }
|
||||||
|
.side-collapsed .side-brand { justify-content: center; padding: 0; margin: 0 -10px calc(-1 * var(--s2)); position: relative; }
|
||||||
|
.side-collapsed .brand-full { display: none; }
|
||||||
|
.side-collapsed .brand-mark { display: block; transition: opacity 120ms var(--ease); }
|
||||||
|
.side-collapsed .side-toggle { position: absolute; inset: 0; margin: auto; width: 36px; height: 36px; opacity: 0; }
|
||||||
|
.side-collapsed .side-brand:hover .side-toggle, .side-collapsed .side-toggle:focus-visible { opacity: 1; background: var(--hover); color: var(--text); }
|
||||||
|
.side-collapsed .side-brand:hover .brand-mark, .side-collapsed .side-brand:focus-within .brand-mark { opacity: 0; }
|
||||||
|
.mac.side-collapsed .side-brand { height: auto; padding-top: calc(var(--titlebar) - 4px); flex-direction: column; }
|
||||||
|
.mac.side-collapsed .brand-mark { display: none; }
|
||||||
|
.mac.side-collapsed .side-toggle { position: static; opacity: 1; }
|
||||||
|
.side-collapsed .nav-item { justify-content: center; padding: 0; gap: 0; }
|
||||||
|
.side-collapsed .nav-item > span:not(.i):not(.nav-ring):not(.count), .side-collapsed .nav-item kbd { display: none; }
|
||||||
|
.side-collapsed .nav-item[aria-current="page"]::before { left: -10px; }
|
||||||
|
.side-collapsed .nav-item .count { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
|
||||||
|
.side-collapsed .nav-heading { display: none; }
|
||||||
|
.side-collapsed .nav-heading-row { justify-content: center; padding: 0; }
|
||||||
|
.side-collapsed .nav-group { border-top: 1px solid var(--hairline); padding-top: var(--s2); }
|
||||||
|
.side-collapsed #playlistEmpty { display: none; }
|
||||||
|
.side-collapsed .update-chip { justify-content: center; padding: 8px 0; }
|
||||||
|
.side-collapsed .update-chip > span:not(.i) { display: none; }
|
||||||
|
.side-collapsed .engine-state { justify-content: center; padding: 10px 0; }
|
||||||
|
.side-collapsed .engine-state > span:not(.dot) { display: none; }
|
||||||
|
.sidebar, .side-brand { overflow: hidden; }
|
||||||
|
.nav-item > .nav-label { overflow: hidden; }
|
||||||
|
.side-tip { position: fixed; z-index: 120; transform: translate(-4px, -50%); opacity: 0; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 550; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; transition: opacity 100ms var(--ease), transform 100ms var(--ease); }
|
||||||
|
.side-tip.on { opacity: 1; transform: translate(0, -50%); }
|
||||||
|
@media (prefers-reduced-motion: reduce) { .shell, .titlebar, .side-tip { transition: none; } }
|
||||||
|
|||||||
Reference in New Issue
Block a user