@nevescloud/pip 3.2.1 → 3.3.0
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/pip-core.esm.js +16 -1
package/package.json
CHANGED
package/pip-core.esm.js
CHANGED
|
@@ -258,6 +258,19 @@ const CSS = `
|
|
|
258
258
|
.pip-scroll::-webkit-scrollbar { width: 6px; }
|
|
259
259
|
.pip-scroll::-webkit-scrollbar-track { background: transparent; }
|
|
260
260
|
.pip-scroll::-webkit-scrollbar-thumb { background: var(--pip-border, light-dark(rgba(0,0,0,0.10), rgba(255,255,255,0.12))); border-radius: 3px; }
|
|
261
|
+
/* Backdrop dim while the slash autocomplete is open — Apple-style focus
|
|
262
|
+
shift (Spotlight, Quick Look). History stays glanceable but visually
|
|
263
|
+
recedes so the menu is the active surface. */
|
|
264
|
+
.pip-scroll {
|
|
265
|
+
transition: opacity 140ms ease-out;
|
|
266
|
+
}
|
|
267
|
+
.pip-scroll.is-backdrop {
|
|
268
|
+
opacity: 0.28;
|
|
269
|
+
pointer-events: none;
|
|
270
|
+
}
|
|
271
|
+
@media (prefers-reduced-motion: reduce) {
|
|
272
|
+
.pip-scroll { transition: none; }
|
|
273
|
+
}
|
|
261
274
|
|
|
262
275
|
.pip-notify {
|
|
263
276
|
font-size: var(--pip-t-caption, 12px);
|
|
@@ -2024,7 +2037,8 @@ export function createPip(opts = {}) {
|
|
|
2024
2037
|
|
|
2025
2038
|
function renderSlashList() {
|
|
2026
2039
|
slashList.innerHTML = "";
|
|
2027
|
-
if (!slashCurrent.length) { slashList.hidden = true; return; }
|
|
2040
|
+
if (!slashCurrent.length) { slashList.hidden = true; scroll.classList.remove("is-backdrop"); return; }
|
|
2041
|
+
scroll.classList.add("is-backdrop");
|
|
2028
2042
|
slashCurrent.forEach((item, i) => {
|
|
2029
2043
|
const li = document.createElement("li");
|
|
2030
2044
|
li.setAttribute("role", "option");
|
|
@@ -2065,6 +2079,7 @@ export function createPip(opts = {}) {
|
|
|
2065
2079
|
slashCmdContext = null;
|
|
2066
2080
|
slashList.hidden = true;
|
|
2067
2081
|
slashList.innerHTML = "";
|
|
2082
|
+
scroll.classList.remove("is-backdrop");
|
|
2068
2083
|
}
|
|
2069
2084
|
|
|
2070
2085
|
function updateSlashSuggest() {
|