@a83/orbiter-admin 0.3.26 → 0.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/style.css +18 -5
- package/public/xfce.js +13 -3
package/package.json
CHANGED
package/public/style.css
CHANGED
|
@@ -2043,11 +2043,17 @@ a.xfce-sb-logo:hover { opacity: .8; }
|
|
|
2043
2043
|
/* ── Command Palette ─────────────────────────────────────── */
|
|
2044
2044
|
.xfce-palette {
|
|
2045
2045
|
display: none; position: fixed; inset: 0; z-index: 10000;
|
|
2046
|
-
background: rgba(0,0,0
|
|
2047
|
-
align-items: flex-
|
|
2048
|
-
padding-
|
|
2046
|
+
background: rgba(0,0,0,0);
|
|
2047
|
+
align-items: flex-end; justify-content: center;
|
|
2048
|
+
padding-bottom: calc(var(--dock-h, 76px) + 28px);
|
|
2049
|
+
transition: background .2s;
|
|
2050
|
+
}
|
|
2051
|
+
.xfce-palette.open {
|
|
2052
|
+
display: flex;
|
|
2053
|
+
background: rgba(0,0,0,.55);
|
|
2054
|
+
backdrop-filter: blur(3px);
|
|
2055
|
+
-webkit-backdrop-filter: blur(3px);
|
|
2049
2056
|
}
|
|
2050
|
-
.xfce-palette.open { display: flex; }
|
|
2051
2057
|
|
|
2052
2058
|
.xfce-palette-inner {
|
|
2053
2059
|
width: min(560px, 92vw);
|
|
@@ -2056,8 +2062,15 @@ a.xfce-sb-logo:hover { opacity: .8; }
|
|
|
2056
2062
|
-webkit-backdrop-filter: blur(8px) saturate(160%);
|
|
2057
2063
|
border: 1px solid var(--line);
|
|
2058
2064
|
border-radius: 12px;
|
|
2059
|
-
box-shadow: 0
|
|
2065
|
+
box-shadow: 0 -4px 40px rgba(0,0,0,.35), 0 0 0 1px color-mix(in srgb,var(--accent) 20%,transparent);
|
|
2060
2066
|
overflow: hidden;
|
|
2067
|
+
transform: translateY(16px);
|
|
2068
|
+
opacity: 0;
|
|
2069
|
+
transition: transform .22s cubic-bezier(.34,1.15,.64,1), opacity .16s;
|
|
2070
|
+
}
|
|
2071
|
+
.xfce-palette.open .xfce-palette-inner {
|
|
2072
|
+
transform: translateY(0);
|
|
2073
|
+
opacity: 1;
|
|
2061
2074
|
}
|
|
2062
2075
|
|
|
2063
2076
|
.xfce-palette-bar {
|
package/public/xfce.js
CHANGED
|
@@ -302,15 +302,25 @@
|
|
|
302
302
|
|
|
303
303
|
function openPalette() {
|
|
304
304
|
if (!palette) buildPalette();
|
|
305
|
-
palette.
|
|
305
|
+
palette.style.display = 'flex';
|
|
306
306
|
paletteInp.value = '';
|
|
307
307
|
palActive = -1;
|
|
308
308
|
renderPalette('');
|
|
309
|
-
|
|
309
|
+
// double rAF so display:flex has rendered before the transition fires
|
|
310
|
+
requestAnimationFrame(function () {
|
|
311
|
+
requestAnimationFrame(function () {
|
|
312
|
+
palette.classList.add('open');
|
|
313
|
+
setTimeout(function () { paletteInp.focus(); }, 40);
|
|
314
|
+
});
|
|
315
|
+
});
|
|
310
316
|
}
|
|
311
317
|
|
|
312
318
|
function closePalette() {
|
|
313
|
-
if (palette)
|
|
319
|
+
if (!palette) return;
|
|
320
|
+
palette.classList.remove('open');
|
|
321
|
+
setTimeout(function () {
|
|
322
|
+
if (!palette.classList.contains('open')) palette.style.display = 'none';
|
|
323
|
+
}, 220);
|
|
314
324
|
}
|
|
315
325
|
|
|
316
326
|
// ── Toast system ──────────────────────────────────────────────────────
|