estreui 1.4.0 → 1.5.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/README.md +8 -8
- package/index.html +9 -0
- package/package.json +2 -2
- package/scripts/estreUi-core.js +2 -0
- package/scripts/estreUi-main.js +1036 -76
- package/scripts/estreUi-pageModel.js +90 -0
- package/serviceWorker.js +6 -3
- package/styles/estreUiCore.css +355 -4
- package/vectors/cover-icon-default-instant.svg +3 -0
- package/vectors/cover-icon-default-overlay.svg +3 -0
- package/vectors/cover-icon-default-static.svg +5 -0
|
@@ -45,6 +45,80 @@ class EstrePageHandle {
|
|
|
45
45
|
|
|
46
46
|
get title() { return this.$host?.attr(eds.title); }
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Cover-bar entry label override. Falls back to `title` (= `data-title`) when unset.
|
|
50
|
+
* Set via `setCoverTitle(value)`; pass `undefined` to clear the override.
|
|
51
|
+
* @type {string|undefined}
|
|
52
|
+
*/
|
|
53
|
+
#coverTitle = undefined;
|
|
54
|
+
get coverTitle() { return this.#coverTitle ?? this.title; }
|
|
55
|
+
setCoverTitle(value) {
|
|
56
|
+
this.#coverTitle = value;
|
|
57
|
+
if (this.#coverEntryToken != null) {
|
|
58
|
+
estreUi.coverBarHandle?.updateEntry(this.#coverEntryToken, { title: this.coverTitle });
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Cover-bar entry icon override. Distinguishes "unset" (falls back to
|
|
64
|
+
* `data-icon`) from explicit set values via #isCoverIconSet — `undefined`,
|
|
65
|
+
* `null`, `""`, `"none"`, and an arbitrary URL are all distinct outcomes
|
|
66
|
+
* the bar's fallback branch interprets in Phase 1C.
|
|
67
|
+
* @type {string|null|undefined}
|
|
68
|
+
*/
|
|
69
|
+
#coverIcon = undefined;
|
|
70
|
+
#isCoverIconSet = false;
|
|
71
|
+
get coverIcon() {
|
|
72
|
+
if (this.#isCoverIconSet) return this.#coverIcon;
|
|
73
|
+
return this.$host?.attr(eds.icon);
|
|
74
|
+
}
|
|
75
|
+
setCoverIcon(value) {
|
|
76
|
+
this.#coverIcon = value;
|
|
77
|
+
this.#isCoverIconSet = true;
|
|
78
|
+
if (this.#coverEntryToken != null) {
|
|
79
|
+
estreUi.coverBarHandle?.updateEntry(this.#coverEntryToken, { icon: this.coverIcon });
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Opt-in flag for cover-bar mounting. `data-cover-mount="1"` on the page
|
|
85
|
+
* section enables this; sub-class handlers can override the getter for
|
|
86
|
+
* programmatic opt-in (Phase 1C will also expose a constructor option).
|
|
87
|
+
*/
|
|
88
|
+
get coverMount() { return this.$host?.attr(eds.coverMount) == t1; }
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Token returned by `estreUi.coverBarHandle.pushEntry()` when this handle's
|
|
92
|
+
* page was registered in the cover bar. `null` whenever no entry is live
|
|
93
|
+
* (page closed / cover bar not ready / coverMount opt-out).
|
|
94
|
+
*/
|
|
95
|
+
#coverEntryToken = null;
|
|
96
|
+
get coverEntryToken() { return this.#coverEntryToken; }
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Internal — push an entry for this handle into the cover bar when opt-in
|
|
100
|
+
* is set and the bar is ready. Re-entry-safe: noop if already registered.
|
|
101
|
+
*/
|
|
102
|
+
#registerCoverEntry() {
|
|
103
|
+
if (this.#coverEntryToken != null) return;
|
|
104
|
+
if (!this.coverMount) return;
|
|
105
|
+
const handle = estreUi.coverBarHandle;
|
|
106
|
+
if (handle == null) return;
|
|
107
|
+
this.#coverEntryToken = handle.pushEntry({
|
|
108
|
+
pageHandle: this,
|
|
109
|
+
sectionBound: this.sectionBound,
|
|
110
|
+
title: this.coverTitle,
|
|
111
|
+
icon: this.coverIcon,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** Internal — remove this handle's cover-bar entry, if any. */
|
|
116
|
+
#releaseCoverEntry() {
|
|
117
|
+
if (this.#coverEntryToken == null) return;
|
|
118
|
+
estreUi.coverBarHandle?.removeEntry(this.#coverEntryToken);
|
|
119
|
+
this.#coverEntryToken = null;
|
|
120
|
+
}
|
|
121
|
+
|
|
48
122
|
#appbarLeft = null;
|
|
49
123
|
#appbarRight = null;
|
|
50
124
|
#appbarCenter = null;
|
|
@@ -403,6 +477,7 @@ class EstrePageHandle {
|
|
|
403
477
|
if (!this.isOpened) {
|
|
404
478
|
if (window.isDebug) console.log("[onOpen] " + this.sectionBound + " " + this.hostType + " " + this.pid);//, this.host);
|
|
405
479
|
this.#isOpened = true;
|
|
480
|
+
this.#registerCoverEntry();
|
|
406
481
|
if (this.handler?.onOpen != null) this.handler.onOpen(this);
|
|
407
482
|
if (this.intent?.onOpen != null) for (var item of this.intent.onOpen) if (item.from == this.hostType && !item.disabled) this.processAction(item);
|
|
408
483
|
return true;
|
|
@@ -414,6 +489,7 @@ class EstrePageHandle {
|
|
|
414
489
|
if (window.isVerbosely) console.log("[onShow] " + this.sectionBound + " " + this.hostType + " " + this.pid, this.host);
|
|
415
490
|
else if (window.isDebug) console.log("[onShow] " + this.sectionBound + " " + this.hostType + " " + this.pid);
|
|
416
491
|
this.#isShowing = true;
|
|
492
|
+
if (this.#coverEntryToken != null) estreUi.coverBarHandle?.setMinimizedByToken(this.#coverEntryToken, false);
|
|
417
493
|
if (this.handler?.onShow != null) this.handler.onShow(this);
|
|
418
494
|
if (this.intent?.onShow != null) for (var item of this.intent.onShow) if (item.from == this.hostType && !item.disabled) this.processAction(item);
|
|
419
495
|
return true;
|
|
@@ -426,6 +502,7 @@ class EstrePageHandle {
|
|
|
426
502
|
if (window.isDebug) console.log("[onFocus] " + this.sectionBound + " " + this.hostType + " " + this.pid);//, this.host);
|
|
427
503
|
this.#isFocused = true;
|
|
428
504
|
this.#everFocused = true;
|
|
505
|
+
if (this.#coverEntryToken != null) estreUi.coverBarHandle?.setActiveByToken(this.#coverEntryToken);
|
|
429
506
|
const handled = this.handler?.onFocus?.(this, isFirstFocus);
|
|
430
507
|
if (this.intent?.onFocus != null) for (var item of this.intent.onFocus) if (item.from == this.hostType && !item.disabled) this.processAction(item);
|
|
431
508
|
if (handled === true) {
|
|
@@ -475,6 +552,7 @@ class EstrePageHandle {
|
|
|
475
552
|
this.#isShowing = false;
|
|
476
553
|
if (window.isVerbosely) console.log("[onHide] " + this.sectionBound + " " + this.hostType + " " + this.pid, this.host);
|
|
477
554
|
else if (window.isDebug) console.log("[onHide] " + this.sectionBound + " " + this.hostType + " " + this.pid);
|
|
555
|
+
if (this.#coverEntryToken != null) estreUi.coverBarHandle?.setMinimizedByToken(this.#coverEntryToken, true);
|
|
478
556
|
if (this.intent?.onHide != null) for (var item of this.intent.onHide) if (item.from == this.hostType && !item.disabled) await this.processAction(item);
|
|
479
557
|
if (this.handler?.onHide != null) await this.handler.onHide(this, fullyHide);
|
|
480
558
|
if (this.intent?.bringOnBack != null && this.intent.bringOnBack.pid != n) {
|
|
@@ -499,6 +577,7 @@ class EstrePageHandle {
|
|
|
499
577
|
this.#everFocused = false;
|
|
500
578
|
this.lastFocusedElement = null;
|
|
501
579
|
if (window.isDebug) console.log("[onClose] " + this.sectionBound + " " + this.hostType + " " + this.pid);//, this.host);
|
|
580
|
+
this.#releaseCoverEntry();
|
|
502
581
|
if (this.intent?.onClose != null) for (var item of this.intent.onClose) if (item.from == this.hostType && !item.disabled) await this.processAction(item);
|
|
503
582
|
if (this.handler?.onClose != null) await this.handler.onClose(this);
|
|
504
583
|
if (this.intent?.bringOnBack != null && this.intent.bringOnBack.pid != n) {
|
|
@@ -2774,6 +2853,17 @@ class EstrePageHandler {
|
|
|
2774
2853
|
/** @type {*} The data field of the intent. */
|
|
2775
2854
|
get intentData() { return this.intent?.data; }
|
|
2776
2855
|
|
|
2856
|
+
/** Cover-bar entry label — see EstrePageHandle.coverTitle. */
|
|
2857
|
+
get coverTitle() { return this.handle?.coverTitle; }
|
|
2858
|
+
/** Cover-bar entry icon — see EstrePageHandle.coverIcon. */
|
|
2859
|
+
get coverIcon() { return this.handle?.coverIcon; }
|
|
2860
|
+
/** Cover-bar opt-in flag — see EstrePageHandle.coverMount. */
|
|
2861
|
+
get coverMount() { return this.handle?.coverMount ?? false; }
|
|
2862
|
+
/** Updates the cover-bar entry label for this handler's page. */
|
|
2863
|
+
setCoverTitle(value) { return this.handle?.setCoverTitle(value); }
|
|
2864
|
+
/** Updates the cover-bar entry icon for this handler's page. See EstrePageHandle.coverIcon for unset/empty/"none"/URL semantics. */
|
|
2865
|
+
setCoverIcon(value) { return this.handle?.setCoverIcon(value); }
|
|
2866
|
+
|
|
2777
2867
|
/**
|
|
2778
2868
|
* @param {EstrePageHandle} handle - The page handle to bind.
|
|
2779
2869
|
* @param {*} [provider] - The provider that registered this handler.
|
package/serviceWorker.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const INSTALLATION_VERSION_NAME = "1.
|
|
1
|
+
const INSTALLATION_VERSION_NAME = "1.5.0-r20260524";
|
|
2
2
|
// ^^ Use for check new update "Native application(webview) version(or Android/iOS version combo) - PWA release version"
|
|
3
3
|
// ex) "1.0.1/1.0.0-r20251101k"
|
|
4
4
|
|
|
@@ -22,7 +22,7 @@ const INSTALLATION_FILE_LIST = [
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
// Common files cache - Be changes some time but, well not changed very often
|
|
25
|
-
const CACHE_NAME_COMMON_FILES = "common-files-cache-v1-
|
|
25
|
+
const CACHE_NAME_COMMON_FILES = "common-files-cache-v1-20260524";
|
|
26
26
|
|
|
27
27
|
const COMMON_FILES_TO_CACHE = [
|
|
28
28
|
"./",
|
|
@@ -61,7 +61,7 @@ const COMMON_FILES_TO_CACHE = [
|
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
// Static files cache - Rarely changes after release
|
|
64
|
-
const CACHE_NAME_STATIC_FILES = "static-files-cache-v1-
|
|
64
|
+
const CACHE_NAME_STATIC_FILES = "static-files-cache-v1-20260524";
|
|
65
65
|
|
|
66
66
|
const STATIC_FILES_TO_CACHE = [
|
|
67
67
|
"./favicon.ico",
|
|
@@ -97,6 +97,9 @@ const STATIC_FILES_TO_CACHE = [
|
|
|
97
97
|
|
|
98
98
|
"./vectors/more_vertical_slim_icon.svg",
|
|
99
99
|
"./vectors/app_icon.svg",
|
|
100
|
+
"./vectors/cover-icon-default-static.svg",
|
|
101
|
+
"./vectors/cover-icon-default-instant.svg",
|
|
102
|
+
"./vectors/cover-icon-default-overlay.svg",
|
|
100
103
|
];
|
|
101
104
|
|
|
102
105
|
|
package/styles/estreUiCore.css
CHANGED
|
@@ -142,14 +142,14 @@ nav#overwatchPanel > .dynamic_section_host > .host_item { flex-grow: 1; padding:
|
|
|
142
142
|
nav#overwatchPanel > .dynamic_section_host > .host_item[data-showing="1"] { padding-bottom: 6px; border-bottom: solid 2px var(--color-indicator-bold); color: var(--color-text-darker); }
|
|
143
143
|
nav#overwatchPanel > .dynamic_section_block { display: flex; flex-flow: row nowrap; flex-shrink: 1; height: var(--panel-block-height); max-height: calc(100vh - var(--top-pad) - 42px - var(--bottom-safe-pad)); overflow-x: overlay; scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: x mandatory; background-color: rgba(var(--cabr) / 40%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transform: translateY(calc(-100vh - var(--panel-block-height))); transition-duration: 0.3s; }
|
|
144
144
|
nav#overwatchPanel > .dynamic_section_block > .block_item { width: 100%; flex-shrink: 0; overflow-y: auto; scroll-snap-align: start; }
|
|
145
|
-
nav#overwatchPanel > section#panelGrabArea { flex-grow: 0; flex-shrink: 0; height: 42px; background-color: transparent; opacity: 0; transition-duration: 0.3s; }
|
|
145
|
+
nav#overwatchPanel > section#panelGrabArea { flex-grow: 0; flex-shrink: 0; height: 42px; background-color: transparent; opacity: 0; pointer-events: none; transition-duration: 0.3s; }
|
|
146
146
|
nav#overwatchPanel > section#panelGrabArea > div.handle { --width: 64px; --height: 4px; display: block; width: var(--width); height: var(--height); margin: 10px auto 0; border-radius: calc(var(--height) / 2); background-color: var(--color-boundary-lightside); }
|
|
147
147
|
nav#overwatchPanel > section#panelGrabArea > div.pad { flex-grow: 1; }
|
|
148
148
|
|
|
149
149
|
nav#overwatchPanel[data-opened="1"] > header#panelHeader,
|
|
150
150
|
nav#overwatchPanel[data-opened="1"] > .dynamic_section_host,
|
|
151
151
|
nav#overwatchPanel[data-opened="1"] > .dynamic_section_block { transform: translateY(0); }
|
|
152
|
-
nav#overwatchPanel[data-opened="1"] > section#panelGrabArea { opacity: 1; background-color: rgb(var(--cadm) / 20%); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
|
|
152
|
+
nav#overwatchPanel[data-opened="1"] > section#panelGrabArea { opacity: 1; pointer-events: auto; background-color: rgb(var(--cadm) / 20%); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
|
|
153
153
|
|
|
154
154
|
nav#overwatchPanel[data-on-grab="1"] > header#panelHeader,
|
|
155
155
|
nav#overwatchPanel[data-on-grab="1"] > .dynamic_section_host,
|
|
@@ -244,8 +244,359 @@ footer#fixedBottom nav:not(#rootbar) { width: -moz-available; width: -webkit-fil
|
|
|
244
244
|
footer#fixedBottom nav:not(#rootbar):first-child { padding-left: var(--left-pad); }
|
|
245
245
|
footer#fixedBottom nav:not(#rootbar):last-child { padding-right: var(--right-pad); }
|
|
246
246
|
}
|
|
247
|
-
footer#fixedBottom nav#customFixedSections { }
|
|
248
|
-
footer#fixedBottom nav#instantSections { }
|
|
247
|
+
footer#fixedBottom nav#customFixedSections { position: relative; display: flex; flex-flow: row nowrap; align-items: stretch; gap: 4px; overflow: hidden; }
|
|
248
|
+
footer#fixedBottom nav#instantSections { position: relative; display: flex; flex-flow: row nowrap; align-items: stretch; justify-content: flex-start; gap: 4px; overflow: hidden; }
|
|
249
|
+
|
|
250
|
+
/* Hairline separators between the rootbar tabs and the cover-bar areas — only on
|
|
251
|
+
* wide viewports where the three areas actually sit side-by-side. 1px wide,
|
|
252
|
+
* 66% tall and centered vertically; a soft vertical gradient fades to
|
|
253
|
+
* transparent at the top and bottom 20% so the bar doesn't get a hard edge.
|
|
254
|
+
* Rendered as a relative-positioned flex item so margin-left/right (the inset
|
|
255
|
+
* away from the rootbar edge) actually pushes the line — absolute positioning
|
|
256
|
+
* would ignore those margins for layout. */
|
|
257
|
+
@media all and (min-height: 700px) and (min-width: 740px) {
|
|
258
|
+
footer#fixedBottom nav#customFixedSections::after,
|
|
259
|
+
footer#fixedBottom nav#instantSections::before {
|
|
260
|
+
content: "";
|
|
261
|
+
position: relative;
|
|
262
|
+
flex: 0 0 1px;
|
|
263
|
+
align-self: center;
|
|
264
|
+
height: 66%;
|
|
265
|
+
pointer-events: none;
|
|
266
|
+
background: linear-gradient(180deg,
|
|
267
|
+
transparent 0%,
|
|
268
|
+
var(--color-boundary-o5) 20%,
|
|
269
|
+
var(--color-boundary-o5) 80%,
|
|
270
|
+
transparent 100%);
|
|
271
|
+
}
|
|
272
|
+
/* Push the separator away from the cover-bar entries on its area side so
|
|
273
|
+
* the line doesn't touch a filled-out tile. The rootbar-facing edge stays
|
|
274
|
+
* flush against the rootbar so the boundary still reads as boundary. */
|
|
275
|
+
footer#fixedBottom nav#customFixedSections::after { margin-left: var(--basic-ui-inset-h-half); }
|
|
276
|
+
footer#fixedBottom nav#instantSections::before { margin-right: var(--basic-ui-inset-h-half); }
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/* Top layer — host surface that paints above every embed (including those that
|
|
280
|
+
* sit at extreme z-index). The container itself is pointer-event-transparent;
|
|
281
|
+
* only its mounted children take input, so it never blocks the page underneath.
|
|
282
|
+
* Mount points include cover-bar overflow dropdowns and any other generic-host
|
|
283
|
+
* UI that must outrank embeds. Z-index is set to the max safe signed-int value
|
|
284
|
+
* so an embed cannot accidentally outpaint it. */
|
|
285
|
+
div#topLayer { position: fixed; z-index: 2147483647; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
|
|
286
|
+
div#topLayer > * { pointer-events: auto; }
|
|
287
|
+
|
|
288
|
+
/* Cover bar entries — see EstreCoverBarHandle. One button per opt-in page or
|
|
289
|
+
* external embed window. Two layouts share the same markup:
|
|
290
|
+
* - footer-mounted (instantSections / customFixedSections): column-stacked
|
|
291
|
+
* icon-on-top + label-below, sized as a near-square tile (6/7 ~ 8/7 of
|
|
292
|
+
* rootbar-height) to line up with rootbar tab buttons.
|
|
293
|
+
* - dropdown-mounted (#topLayer .cover_overflow_dropdown): row-laid out
|
|
294
|
+
* icon-then-label, free-width — a horizontal list of overflowed entries.
|
|
295
|
+
* Visual states are driven by data-active / data-minimized so the controller
|
|
296
|
+
* can flip them with attr() without touching class lists.
|
|
297
|
+
* flex-shrink: 0 keeps entries readable — when they don't fit, the leading
|
|
298
|
+
* (instantSections) or trailing (customFixedSections) ones get
|
|
299
|
+
* data-overflowed="1" and disappear from layout via display:none. The
|
|
300
|
+
* sentinel + dropdown expose them. */
|
|
301
|
+
footer#fixedBottom nav#customFixedSections .cover_entry,
|
|
302
|
+
footer#fixedBottom nav#instantSections .cover_entry {
|
|
303
|
+
position: relative;
|
|
304
|
+
display: inline-flex; flex-flow: column nowrap; align-items: center; justify-content: center; gap: 0;
|
|
305
|
+
margin: 0; padding: 0;
|
|
306
|
+
height: 100%;
|
|
307
|
+
min-width: calc(var(--rootbar-height) * 6 / 7);
|
|
308
|
+
max-width: calc(var(--rootbar-height) * 8 / 7);
|
|
309
|
+
flex-shrink: 0;
|
|
310
|
+
border: 0; outline: 0;
|
|
311
|
+
border-radius: 0;
|
|
312
|
+
color: var(--color-text-pale, rgb(var(--ca) / 70%));
|
|
313
|
+
background-color: transparent;
|
|
314
|
+
cursor: pointer;
|
|
315
|
+
appearance: none;
|
|
316
|
+
-webkit-appearance: none;
|
|
317
|
+
/* Zero out the user-agent button line-height baseline so the icon + label
|
|
318
|
+
* column stacks at the rootbar tab's exact pixel position. Children opt
|
|
319
|
+
* back in with their own line-height (label) or display:block (img). */
|
|
320
|
+
font-size: 0; line-height: 0;
|
|
321
|
+
transition-duration: 0.15s;
|
|
322
|
+
transition-property: color, opacity;
|
|
323
|
+
}
|
|
324
|
+
div#topLayer .cover_overflow_dropdown .cover_entry {
|
|
325
|
+
position: relative;
|
|
326
|
+
display: flex; flex-flow: row nowrap; align-items: center; gap: 6px;
|
|
327
|
+
width: 100%;
|
|
328
|
+
margin: 0; padding: 6px 12px;
|
|
329
|
+
border: 0; outline: 0;
|
|
330
|
+
border-radius: 0;
|
|
331
|
+
color: var(--color-text-darker, rgb(var(--ca) / 95%));
|
|
332
|
+
background-color: transparent;
|
|
333
|
+
cursor: pointer;
|
|
334
|
+
appearance: none;
|
|
335
|
+
-webkit-appearance: none;
|
|
336
|
+
text-align: left;
|
|
337
|
+
font-size: 0.875rem; line-height: 1.25rem;
|
|
338
|
+
transition-duration: 0.15s;
|
|
339
|
+
transition-property: background-color, color, opacity;
|
|
340
|
+
}
|
|
341
|
+
/* Footer entries — keep the visual minimal: indicator bar + label color tell the
|
|
342
|
+
* state, no background fill. Dropdown rows are a contextual list so they keep
|
|
343
|
+
* the hover/active background highlight. */
|
|
344
|
+
footer#fixedBottom nav .cover_entry[data-active="1"] { color: var(--color-text-darker, rgb(var(--ca) / 95%)); }
|
|
345
|
+
footer#fixedBottom nav .cover_entry[data-minimized="1"] { opacity: 0.55; }
|
|
346
|
+
footer#fixedBottom nav .cover_entry[data-minimized="1"][data-active="1"] { opacity: 0.8; }
|
|
347
|
+
div#topLayer .cover_overflow_dropdown .cover_entry:hover { background-color: rgb(var(--ca) / 8%); }
|
|
348
|
+
div#topLayer .cover_overflow_dropdown .cover_entry[data-active="1"] { color: var(--color-text-darker, rgb(var(--ca) / 95%)); background-color: rgb(var(--ca) / 12%); }
|
|
349
|
+
div#topLayer .cover_overflow_dropdown .cover_entry[data-minimized="1"] { opacity: 0.55; }
|
|
350
|
+
div#topLayer .cover_overflow_dropdown .cover_entry[data-minimized="1"][data-active="1"] { opacity: 0.8; }
|
|
351
|
+
/* Footer icon matches rootbar tab maskable_icon size (32x32) for visual line-up. */
|
|
352
|
+
footer#fixedBottom nav .cover_entry > .cover_icon { display: inline-flex; flex-shrink: 0; width: 32px; height: 32px; margin-bottom: 5px; align-items: center; justify-content: center; line-height: 0; }
|
|
353
|
+
div#topLayer .cover_overflow_dropdown .cover_entry > .cover_icon { display: inline-flex; flex-shrink: 0; width: 18px; height: 18px; align-items: center; justify-content: center; line-height: 0; }
|
|
354
|
+
footer#fixedBottom nav .cover_entry > .cover_icon > img,
|
|
355
|
+
div#topLayer .cover_overflow_dropdown .cover_entry > .cover_icon > img { display: block; width: 100%; height: 100%; }
|
|
356
|
+
/* footer label — small caption under the icon, follows rootbar tab label style. */
|
|
357
|
+
footer#fixedBottom nav .cover_entry > label {
|
|
358
|
+
flex-shrink: 1; min-width: 0; max-width: 100%;
|
|
359
|
+
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
360
|
+
font-size: 0.625rem; line-height: 0.75rem;
|
|
361
|
+
color: inherit;
|
|
362
|
+
cursor: inherit;
|
|
363
|
+
}
|
|
364
|
+
/* dropdown label — full readable text inline next to the icon. flex-grow so
|
|
365
|
+
* the row stretches to fill the dropdown's max-content width consistently
|
|
366
|
+
* even when the title is shorter than the widest sibling. */
|
|
367
|
+
div#topLayer .cover_overflow_dropdown .cover_entry > label {
|
|
368
|
+
flex: 1 1 auto; min-width: 0;
|
|
369
|
+
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
370
|
+
color: inherit;
|
|
371
|
+
font-size: 0.875rem; line-height: 1.25rem;
|
|
372
|
+
cursor: inherit;
|
|
373
|
+
}
|
|
374
|
+
/* Match the default cover_entry's specificity by repeating the nav id, so
|
|
375
|
+
* the display:none here actually wins. Without the id duplication the
|
|
376
|
+
* default rule `nav#instantSections .cover_entry { display: inline-flex }`
|
|
377
|
+
* outranks this one and overflowed entries stay visible. */
|
|
378
|
+
footer#fixedBottom nav#customFixedSections .cover_entry[data-overflowed="1"],
|
|
379
|
+
footer#fixedBottom nav#instantSections .cover_entry[data-overflowed="1"] { display: none; }
|
|
380
|
+
|
|
381
|
+
/* Top-edge indicator bar — Windows-11 taskbar-style. A pseudo-element sits at
|
|
382
|
+
* the top of each footer-mounted entry; its width and color reflect the state.
|
|
383
|
+
* The fixedBottom sits at the bottom of the viewport, so the bar lives on the
|
|
384
|
+
* *upper* edge of the button (opposite the taskbar). Default state is "open
|
|
385
|
+
* but inactive" (a cover-bar entry exists iff its embed is open) — the
|
|
386
|
+
* not-open state is represented by the absence of the entry itself.
|
|
387
|
+
* - inactive : short bar, pale color
|
|
388
|
+
* - active : long bar, accent color
|
|
389
|
+
* - minimized : short bar, dimmed (opacity)
|
|
390
|
+
* - minimized+active : long bar, dimmed (opacity)
|
|
391
|
+
* Dropdown rows do not carry the indicator — selection there is communicated
|
|
392
|
+
* with the background highlight only. */
|
|
393
|
+
footer#fixedBottom nav .cover_entry::before {
|
|
394
|
+
content: "";
|
|
395
|
+
position: absolute; top: 0; left: 50%;
|
|
396
|
+
width: 30%; height: 2px;
|
|
397
|
+
transform: translateX(-50%);
|
|
398
|
+
background-color: rgb(var(--ca) / 35%);
|
|
399
|
+
border-radius: 0 0 2px 2px;
|
|
400
|
+
transition-duration: 0.2s;
|
|
401
|
+
transition-property: width, background-color, opacity;
|
|
402
|
+
}
|
|
403
|
+
footer#fixedBottom nav .cover_entry[data-active="1"]::before {
|
|
404
|
+
width: 70%;
|
|
405
|
+
background-color: var(--color-point-dark, rgb(var(--ca) / 80%));
|
|
406
|
+
}
|
|
407
|
+
footer#fixedBottom nav .cover_entry[data-active="1"] > label { color: var(--color-point-dark, rgb(var(--ca) / 95%)); }
|
|
408
|
+
|
|
409
|
+
/* Per-entry unread / notification badge — surfaces via [data-badge] on the
|
|
410
|
+
* entry's .cover_icon so it sits in the icon's top-right corner. Mirrors the
|
|
411
|
+
* project-wide `article [data-badge]::after` convention (see estreUi.css)
|
|
412
|
+
* so host themes can override `--badge-color` once and have it apply
|
|
413
|
+
* everywhere. Cover bar uses a slightly tighter --height than article badges
|
|
414
|
+
* to suit the 32px icon. Display rules (see #refreshEntryBadge):
|
|
415
|
+
* data-badge="" → dot
|
|
416
|
+
* data-badge="<n>" → numeric pill (2 ≤ n ≤ 99)
|
|
417
|
+
* data-badge="99+" → cap label
|
|
418
|
+
* attribute absent → no badge */
|
|
419
|
+
footer#fixedBottom nav .cover_entry > .cover_icon,
|
|
420
|
+
div#topLayer .cover_overflow_dropdown .cover_entry > .cover_icon { position: relative; }
|
|
421
|
+
|
|
422
|
+
footer#fixedBottom nav .cover_entry > .cover_icon[data-badge]::after,
|
|
423
|
+
div#topLayer .cover_overflow_dropdown .cover_entry > .cover_icon[data-badge]::after {
|
|
424
|
+
--height: 14px;
|
|
425
|
+
--badge-color: var(--color-point);
|
|
426
|
+
content: attr(data-badge);
|
|
427
|
+
position: absolute; z-index: 1;
|
|
428
|
+
top: -2px; right: -6px;
|
|
429
|
+
display: flex; align-items: center; justify-content: center;
|
|
430
|
+
width: max-content;
|
|
431
|
+
min-width: var(--height); min-height: var(--height); max-height: var(--height);
|
|
432
|
+
padding: 0 4px;
|
|
433
|
+
box-sizing: border-box;
|
|
434
|
+
border-radius: var(--height);
|
|
435
|
+
background-color: var(--badge-color);
|
|
436
|
+
color: var(--color-text-inverse, #FFFFFF);
|
|
437
|
+
font-size: 0.625rem; line-height: var(--height); font-weight: 700;
|
|
438
|
+
text-align: center;
|
|
439
|
+
pointer-events: none;
|
|
440
|
+
transition-timing-function: ease;
|
|
441
|
+
transition-duration: 0.3s;
|
|
442
|
+
}
|
|
443
|
+
footer#fixedBottom nav .cover_entry > .cover_icon[data-badge=""]::after,
|
|
444
|
+
div#topLayer .cover_overflow_dropdown .cover_entry > .cover_icon[data-badge=""]::after {
|
|
445
|
+
top: 0; right: -2px;
|
|
446
|
+
width: 8px; height: 8px;
|
|
447
|
+
min-width: 8px; min-height: 8px;
|
|
448
|
+
aspect-ratio: 1;
|
|
449
|
+
padding: 0;
|
|
450
|
+
border-radius: 100%;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/* Per-entry close ✕ — rendered when the entry was pushed with closable:true
|
|
454
|
+
* (Phase 3 external embed hook). Lives inside the entry button as a span so
|
|
455
|
+
* the click handler can stopPropagation and route to onAction("close") without
|
|
456
|
+
* the surrounding row registering as a focus/minimize click. The embed is
|
|
457
|
+
* responsible for actually removing the entry; the ✕ only signals intent.
|
|
458
|
+
* Footer tiles deliberately hide the ✕ to stay visually tidy — close is
|
|
459
|
+
* still reachable via the overflow dropdown row, where the ✕ sits inline at
|
|
460
|
+
* the trailing edge. */
|
|
461
|
+
footer#fixedBottom nav .cover_entry > .cover_entry_close { display: none; }
|
|
462
|
+
div#topLayer .cover_overflow_dropdown .cover_entry > .cover_entry_close {
|
|
463
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
464
|
+
flex-shrink: 0;
|
|
465
|
+
width: 18px; height: 18px;
|
|
466
|
+
margin-left: 2px;
|
|
467
|
+
border-radius: 50%;
|
|
468
|
+
color: var(--color-text-pale, rgb(var(--ca) / 50%));
|
|
469
|
+
font-size: 0.75rem; line-height: 1;
|
|
470
|
+
cursor: pointer;
|
|
471
|
+
transition-duration: 0.15s;
|
|
472
|
+
transition-property: background-color, color;
|
|
473
|
+
}
|
|
474
|
+
div#topLayer .cover_overflow_dropdown .cover_entry > .cover_entry_close:hover {
|
|
475
|
+
background-color: rgb(var(--ca) / 15%);
|
|
476
|
+
color: var(--color-text-darker, rgb(var(--ca) / 95%));
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/* Overflow sentinel — narrow chevron button at the leading edge of each area
|
|
480
|
+
* (right-aligned bars' clipped side). Visibility flips via the `hidden`
|
|
481
|
+
* attribute from #recomputeOverflow. data-opened mirrors the dropdown's
|
|
482
|
+
* open state so the sentinel feels pressed while its dropdown is up.
|
|
483
|
+
* Rendered as a thin column-flex button with a small ^-chevron SVG glued
|
|
484
|
+
* to the top edge — the chevron points to the overflow dropdown that opens
|
|
485
|
+
* upward from above. */
|
|
486
|
+
footer#fixedBottom nav .cover_overflow_sentinel {
|
|
487
|
+
display: inline-flex; flex-flow: column nowrap; align-items: center; justify-content: flex-start;
|
|
488
|
+
flex-shrink: 0;
|
|
489
|
+
width: 16px; height: 100%;
|
|
490
|
+
padding: 6px 0 0 0;
|
|
491
|
+
border: 0; outline: 0;
|
|
492
|
+
border-radius: 0;
|
|
493
|
+
color: var(--color-text-pale, rgb(var(--ca) / 60%));
|
|
494
|
+
background-color: transparent;
|
|
495
|
+
cursor: pointer;
|
|
496
|
+
appearance: none;
|
|
497
|
+
-webkit-appearance: none;
|
|
498
|
+
/* Push the sentinel to the trailing edge of its area regardless of DOM
|
|
499
|
+
* position — entries (default order 0) pack flush to the area's leading
|
|
500
|
+
* edge, sentinel sits at the trailing end indicating "more this way". */
|
|
501
|
+
order: 1;
|
|
502
|
+
transition-duration: 0.15s;
|
|
503
|
+
transition-property: background-color, color;
|
|
504
|
+
}
|
|
505
|
+
footer#fixedBottom nav .cover_overflow_sentinel > svg { width: 10px; height: 6px; }
|
|
506
|
+
footer#fixedBottom nav .cover_overflow_sentinel:hover { background-color: rgb(var(--ca) / 8%); color: var(--color-text-darker, rgb(var(--ca) / 90%)); }
|
|
507
|
+
footer#fixedBottom nav .cover_overflow_sentinel[data-opened="1"] { color: var(--color-point-dark, rgb(var(--ca) / 95%)); background-color: rgb(var(--ca) / 12%); }
|
|
508
|
+
footer#fixedBottom nav .cover_overflow_sentinel[hidden] { display: none; }
|
|
509
|
+
|
|
510
|
+
/* Overflow dropdown — mounted in #topLayer, anchored above its sentinel.
|
|
511
|
+
* Vertical list of cover_entry rows (one per overflowed entry). Chrome
|
|
512
|
+
* matches the right-click context menu (`.cover_entry_menu`): same
|
|
513
|
+
* color-mix background wash, backdrop-filter, 1px outset border, and
|
|
514
|
+
* border-radius. Width sizes to the widest row (max-content) and clamps
|
|
515
|
+
* to 320px so a long title doesn't push the dropdown past the host.
|
|
516
|
+
* Positioning is set inline by #positionDropdown. */
|
|
517
|
+
div#topLayer .cover_overflow_dropdown {
|
|
518
|
+
position: fixed;
|
|
519
|
+
display: flex; flex-flow: column nowrap;
|
|
520
|
+
width: max-content; max-width: min(320px, calc(100vw - 16px));
|
|
521
|
+
padding: 4px 0;
|
|
522
|
+
border: 1px outset var(--color-boundary-o15);
|
|
523
|
+
border-radius: 8px;
|
|
524
|
+
background-color: color-mix(in srgb, var(--common-bg-color) 5%, transparent);
|
|
525
|
+
backdrop-filter: var(--basic-backdrop-blur);
|
|
526
|
+
-webkit-backdrop-filter: var(--basic-backdrop-blur);
|
|
527
|
+
box-shadow: 0 6px 16px rgb(0 0 0 / 14%), 0 1px 4px rgb(0 0 0 / 8%);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/* Context menu — right-click affordance on cover-bar entries. Mounted in
|
|
531
|
+
* #topLayer so it paints above embed surfaces. Positioned at the cursor
|
|
532
|
+
* (clamped to the viewport) by #positionContextMenu, which picks a quadrant
|
|
533
|
+
* (origin corner) so the menu always opens toward viewport center. The
|
|
534
|
+
* --menu-origin inline custom property drives transform-origin for the
|
|
535
|
+
* scale-grow open animation. */
|
|
536
|
+
div#topLayer .cover_entry_menu {
|
|
537
|
+
--menu-origin: top left;
|
|
538
|
+
position: fixed;
|
|
539
|
+
display: flex; flex-flow: column nowrap;
|
|
540
|
+
min-width: 180px; max-width: 280px;
|
|
541
|
+
padding: 4px 0;
|
|
542
|
+
border: 1px outset var(--color-boundary-o15);
|
|
543
|
+
border-radius: 8px;
|
|
544
|
+
background-color: color-mix(in srgb, var(--common-bg-color) 5%, transparent);
|
|
545
|
+
backdrop-filter: var(--basic-backdrop-blur);
|
|
546
|
+
-webkit-backdrop-filter: var(--basic-backdrop-blur);
|
|
547
|
+
box-shadow: 0 6px 16px rgb(0 0 0 / 14%), 0 1px 4px rgb(0 0 0 / 8%);
|
|
548
|
+
transform-origin: var(--menu-origin);
|
|
549
|
+
/* Two-stage open: first 0.2s grows the width (a thin horizontal sliver
|
|
550
|
+
* around 4~8px tall expands left/right toward full menu width); next 0.2s
|
|
551
|
+
* grows the height. Total ~0.4s. Origin matches the cursor corner so the
|
|
552
|
+
* grow unfolds from the click point. */
|
|
553
|
+
animation: cover_menu_enter 0.4s ease-out;
|
|
554
|
+
}
|
|
555
|
+
div#topLayer .cover_entry_menu[data-closing="1"] {
|
|
556
|
+
opacity: 0;
|
|
557
|
+
transform: scale(1);
|
|
558
|
+
transition: opacity 0.2s ease;
|
|
559
|
+
animation: none;
|
|
560
|
+
}
|
|
561
|
+
@keyframes cover_menu_enter {
|
|
562
|
+
0% { transform: scale(0.15, 0.1); opacity: 0; }
|
|
563
|
+
50% { transform: scale(1, 0.1); opacity: 1; }
|
|
564
|
+
100% { transform: scale(1, 1); opacity: 1; }
|
|
565
|
+
}
|
|
566
|
+
div#topLayer .cover_entry_menu > header.cover_menu_title {
|
|
567
|
+
margin: 0 0 4px 0;
|
|
568
|
+
padding: 6px 12px 6px;
|
|
569
|
+
border-bottom: 1px solid rgb(var(--ca) / 10%);
|
|
570
|
+
font-size: 0.75rem; line-height: 1rem;
|
|
571
|
+
color: var(--color-text-pale, rgb(var(--ca) / 60%));
|
|
572
|
+
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
573
|
+
}
|
|
574
|
+
div#topLayer .cover_entry_menu > button.cover_menu_item {
|
|
575
|
+
display: flex; flex-flow: row nowrap; align-items: center; gap: 8px;
|
|
576
|
+
width: 100%; margin: 0;
|
|
577
|
+
padding: 6px 12px;
|
|
578
|
+
border: 0; outline: 0;
|
|
579
|
+
background-color: transparent;
|
|
580
|
+
text-align: left;
|
|
581
|
+
font-size: 0.875rem; line-height: 1.25rem;
|
|
582
|
+
color: var(--color-text-darker, rgb(var(--ca) / 95%));
|
|
583
|
+
cursor: pointer;
|
|
584
|
+
appearance: none;
|
|
585
|
+
-webkit-appearance: none;
|
|
586
|
+
transition-duration: 0.15s;
|
|
587
|
+
transition-property: background-color;
|
|
588
|
+
}
|
|
589
|
+
div#topLayer .cover_entry_menu > button.cover_menu_item > .cover_menu_item_icon { display: inline-flex; flex-shrink: 0; width: 14px; height: 14px; align-items: center; justify-content: center; line-height: 0; color: var(--color-text-pale, rgb(var(--ca) / 60%)); }
|
|
590
|
+
div#topLayer .cover_entry_menu > button.cover_menu_item > .cover_menu_item_icon > svg { width: 14px; height: 14px; display: block; }
|
|
591
|
+
div#topLayer .cover_entry_menu > button.cover_menu_item > .cover_menu_item_label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
592
|
+
div#topLayer .cover_entry_menu > button.cover_menu_item:hover { background-color: rgb(var(--ca) / 8%); }
|
|
593
|
+
div#topLayer .cover_entry_menu > button.cover_menu_item:disabled,
|
|
594
|
+
div#topLayer .cover_entry_menu > button.cover_menu_item[disabled] {
|
|
595
|
+
color: var(--color-text-pale, rgb(var(--ca) / 50%));
|
|
596
|
+
cursor: not-allowed;
|
|
597
|
+
}
|
|
598
|
+
div#topLayer .cover_entry_menu > button.cover_menu_item:disabled:hover,
|
|
599
|
+
div#topLayer .cover_entry_menu > button.cover_menu_item[disabled]:hover { background-color: transparent; }
|
|
249
600
|
|
|
250
601
|
|
|
251
602
|
/* session manager */
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="6" y="8" width="20" height="16" rx="2" stroke="#333333" stroke-width="2" stroke-linejoin="round" fill="none"/>
|
|
3
|
+
<line x1="7" y1="12" x2="25" y2="12" stroke="#333333" stroke-width="2" stroke-linecap="round"/>
|
|
4
|
+
<line x1="7" y1="20" x2="25" y2="20" stroke="#333333" stroke-width="2" stroke-linecap="round"/>
|
|
5
|
+
</svg>
|