estreui 1.3.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 +10 -0
- package/managedOverlay.html +3 -2
- package/package.json +2 -2
- package/scripts/estreUi-core.js +2 -0
- package/scripts/estreUi-dialog.js +1 -4
- package/scripts/estreUi-main.js +1047 -76
- package/scripts/estreUi-notification.js +539 -0
- package/scripts/estreUi-pageModel.js +231 -1
- package/serviceWorker.js +7 -3
- package/styles/estreUiCore.css +401 -8
- package/styles/estreUiCore2.css +25 -1
- 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
package/styles/estreUiCore.css
CHANGED
|
@@ -129,7 +129,11 @@ nav#overwatchPanel { --grab-y: 0px; --panel-block-height: calc(100vh - var(--top
|
|
|
129
129
|
nav#overwatchPanel > header#panelHeader,
|
|
130
130
|
nav#overwatchPanel > .dynamic_section_host,
|
|
131
131
|
nav#overwatchPanel > .dynamic_section_block,
|
|
132
|
-
nav#overwatchPanel > section#panelGrabArea { pointer-events: auto; }
|
|
132
|
+
nav#overwatchPanel > section#panelGrabArea { position: relative; pointer-events: auto; }
|
|
133
|
+
nav#overwatchPanel > header#panelHeader { z-index: 4; }
|
|
134
|
+
nav#overwatchPanel > .dynamic_section_host { z-index: 3; }
|
|
135
|
+
nav#overwatchPanel > .dynamic_section_block { z-index: 2; }
|
|
136
|
+
nav#overwatchPanel > section#panelGrabArea { z-index: 1; }
|
|
133
137
|
nav#overwatchPanel > header#panelHeader { display: flex; flex-direction: row; align-items: baseline; gap: 0.5em; padding: calc(var(--top-pad) + 4px) var(--basic-ui-inset-h) 4px; flex-shrink: 0; background-color: rgba(var(--cabr) / 60%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transform: translateY(-100%); transition-duration: 0.3s; }
|
|
134
138
|
nav#overwatchPanel > header#panelHeader > #panelClock { font-size: 1.125rem; font-weight: 600; }
|
|
135
139
|
nav#overwatchPanel > header#panelHeader > #panelDate { font-size: 0.875rem; opacity: 0.75; }
|
|
@@ -138,25 +142,32 @@ nav#overwatchPanel > .dynamic_section_host > .host_item { flex-grow: 1; padding:
|
|
|
138
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); }
|
|
139
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; }
|
|
140
144
|
nav#overwatchPanel > .dynamic_section_block > .block_item { width: 100%; flex-shrink: 0; overflow-y: auto; scroll-snap-align: start; }
|
|
141
|
-
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; }
|
|
142
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); }
|
|
143
147
|
nav#overwatchPanel > section#panelGrabArea > div.pad { flex-grow: 1; }
|
|
144
148
|
|
|
145
149
|
nav#overwatchPanel[data-opened="1"] > header#panelHeader,
|
|
146
150
|
nav#overwatchPanel[data-opened="1"] > .dynamic_section_host,
|
|
147
151
|
nav#overwatchPanel[data-opened="1"] > .dynamic_section_block { transform: translateY(0); }
|
|
148
|
-
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); }
|
|
149
153
|
|
|
150
154
|
nav#overwatchPanel[data-on-grab="1"] > header#panelHeader,
|
|
151
155
|
nav#overwatchPanel[data-on-grab="1"] > .dynamic_section_host,
|
|
152
156
|
nav#overwatchPanel[data-on-grab="1"] > .dynamic_section_block { transition-delay: 0s; transition-duration: 0s; }
|
|
153
|
-
nav#overwatchPanel[data-on-grab="1"]:not([data-opened="1"]) > header#panelHeader { transform: translateY(calc(-100% + max(var(--grab-y), 0px))); }
|
|
154
|
-
nav#overwatchPanel[data-on-grab="1"]:not([data-opened="1"]) > .dynamic_section_host { transform: translateY(calc(-100% - var(--panel-block-height) + max(var(--grab-y), 0px))); }
|
|
155
|
-
nav#overwatchPanel[data-on-grab="1"]:not([data-opened="1"]) > .dynamic_section_block { transform: translateY(calc(-100vh - var(--panel-block-height) + max(var(--grab-y), 0px))); }
|
|
157
|
+
nav#overwatchPanel[data-on-grab="1"]:not([data-opened="1"]) > header#panelHeader { transform: translateY(calc(-100% + min(max(var(--grab-y), 0px), 100%))); }
|
|
158
|
+
nav#overwatchPanel[data-on-grab="1"]:not([data-opened="1"]) > .dynamic_section_host { transform: translateY(calc(-100% - var(--panel-block-height) + min(max(var(--grab-y), 0px), calc(100% + var(--panel-block-height))))); }
|
|
159
|
+
nav#overwatchPanel[data-on-grab="1"]:not([data-opened="1"]) > .dynamic_section_block { transform: translateY(calc(-100vh - var(--panel-block-height) + min(max(var(--grab-y), 0px), calc(100vh + var(--panel-block-height))))); }
|
|
156
160
|
nav#overwatchPanel[data-opened="1"][data-on-grab="1"] > header#panelHeader,
|
|
157
161
|
nav#overwatchPanel[data-opened="1"][data-on-grab="1"] > .dynamic_section_host,
|
|
158
162
|
nav#overwatchPanel[data-opened="1"][data-on-grab="1"] > .dynamic_section_block { transform: translateY(min(var(--grab-y), 0px)); }
|
|
159
163
|
|
|
164
|
+
/* Tablet+ (≥740 wide) — surface both block_items side-by-side instead of tab swipe. */
|
|
165
|
+
@media all and (min-width: 740px) {
|
|
166
|
+
nav#overwatchPanel > .dynamic_section_host { display: none; }
|
|
167
|
+
nav#overwatchPanel > .dynamic_section_block { scroll-snap-type: none; overflow-x: hidden; }
|
|
168
|
+
nav#overwatchPanel > .dynamic_section_block > .block_item { width: auto; flex: 1 1 0; min-width: 0; }
|
|
169
|
+
}
|
|
170
|
+
|
|
160
171
|
/* Top swipe trigger strip. Sits above fixedTop (z-index 130) so the downward swipe can fire while the panel is closed.
|
|
161
172
|
Height stays inside the safe area (status bar / notch) plus a small 8px bleed into fixedTop so the strip
|
|
162
173
|
does not cover tappable fixedTop controls. */
|
|
@@ -171,6 +182,37 @@ nav#overwatchPanel[data-opened="1"] ~ section#panelTrigger { pointer-events: non
|
|
|
171
182
|
#darkModeToggle[data-dark-mode-state="light"] { background-color: rgba(var(--cabr) / 50%); }
|
|
172
183
|
#darkModeToggle[data-dark-mode-state="dark"] { background-color: rgba(var(--cadm) / 50%); }
|
|
173
184
|
|
|
185
|
+
/* Timeline (overwatchPanel #timeline) — roadmap #010. Reuses .post_block visuals from estreUiCore2.css. */
|
|
186
|
+
nav#overwatchPanel #timeline { --bg-color: rgb(var(--cabr) / 70%); box-sizing: border-box; padding: 8px var(--basic-ui-inset-h) calc(8px + var(--bottom-safe-pad)); }
|
|
187
|
+
nav#overwatchPanel #timeline > .timeline_host { display: flex; flex-flow: column nowrap; gap: 10px; }
|
|
188
|
+
nav#overwatchPanel #timeline .timeline_group { display: flex; flex-flow: column nowrap; gap: 6px; }
|
|
189
|
+
nav#overwatchPanel #timeline .timeline_group_header { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 2px; font-size: 0.75rem; font-weight: 600; color: rgb(var(--ca) / 70%); letter-spacing: 0.02em; text-transform: uppercase; }
|
|
190
|
+
nav#overwatchPanel #timeline .timeline_group_header > .timeline_group_label { flex: 1 1 auto; min-width: 0; }
|
|
191
|
+
nav#overwatchPanel #timeline .timeline_clear_all { flex: 0 0 auto; margin-left: 8px; padding: 3px 10px; border: none; border-radius: 10px; background-color: rgb(var(--ca) / 10%); color: rgb(var(--ca) / 80%); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
|
|
192
|
+
nav#overwatchPanel #timeline .timeline_clear_all:active { background-color: rgb(var(--ca) / 25%); }
|
|
193
|
+
nav#overwatchPanel #timeline .timeline_item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; box-sizing: border-box; border-radius: 14px; background-color: var(--bg-color); backdrop-filter: var(--basic-backdrop-blur); -webkit-backdrop-filter: var(--basic-backdrop-blur); box-shadow: 1px 2px 4px 1px rgb(var(--ca) / 18%); cursor: pointer; user-select: none; }
|
|
194
|
+
nav#overwatchPanel #timeline .timeline_item > .icon_place { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
|
|
195
|
+
nav#overwatchPanel #timeline .timeline_item > .icon_place > img { width: 100%; height: 100%; object-fit: cover; }
|
|
196
|
+
nav#overwatchPanel #timeline .timeline_item > .content_place { flex: 1 1 auto; min-width: 0; --color: var(--color-text); --size: 0.9375rem; --weight: 400; }
|
|
197
|
+
nav#overwatchPanel #timeline .timeline_item > .content_place > .title_line { font-size: 0.9375rem; font-weight: 600; color: var(--color-text); line-height: 1.25em; }
|
|
198
|
+
nav#overwatchPanel #timeline .timeline_item > .content_place > .subtitle_line { font-size: 0.8125rem; font-weight: 400; color: rgb(var(--ca) / 70%); line-height: 1.25em; margin-top: 1px; }
|
|
199
|
+
nav#overwatchPanel #timeline .timeline_item > .content_place > .content_area { display: flex; gap: 8px; align-items: flex-start; margin-top: 3px; }
|
|
200
|
+
nav#overwatchPanel #timeline .timeline_item > .content_place > .content_area > .content_place { flex: 1 1 auto; min-width: 0; color: var(--color); font-size: var(--size); font-weight: var(--weight); line-height: 1.3em; word-break: break-word; }
|
|
201
|
+
nav#overwatchPanel #timeline .timeline_item > .content_place > .content_area > .icon_place { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 4px; overflow: hidden; }
|
|
202
|
+
nav#overwatchPanel #timeline .timeline_item > .content_place > .content_area > .icon_place > img { width: 100%; height: 100%; object-fit: cover; }
|
|
203
|
+
nav#overwatchPanel #timeline .timeline_empty { padding: 32px 16px; text-align: center; font-size: 0.875rem; color: rgb(var(--ca) / 60%); }
|
|
204
|
+
nav#overwatchPanel #timeline .timeline_item.timeline_item_enter { animation: timeline-item-enter 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-origin: top center; }
|
|
205
|
+
@keyframes timeline-item-enter {
|
|
206
|
+
0% { opacity: 0; transform: translateY(-14px) scale(0.96); }
|
|
207
|
+
60% { opacity: 1; }
|
|
208
|
+
100% { opacity: 1; transform: translateY(0) scale(1); }
|
|
209
|
+
}
|
|
210
|
+
nav#overwatchPanel #timeline .timeline_item.timeline_item_exit { animation: timeline-item-exit 0.3s ease-in both; animation-delay: var(--exit-delay, 0ms); pointer-events: none; }
|
|
211
|
+
@keyframes timeline-item-exit {
|
|
212
|
+
0% { opacity: 1; transform: translateX(0); }
|
|
213
|
+
100% { opacity: 0; transform: translateX(60px); }
|
|
214
|
+
}
|
|
215
|
+
|
|
174
216
|
/* root tabs (bottom) */
|
|
175
217
|
footer#fixedBottom { position: fixed; display: flex; flex-direction: row; flex-wrap: nowrap; z-index: 110; bottom: 0; left: 0; right: 0; height: var(--rootbar-height); margin: 0; padding-bottom: var(--bottom-safe-pad); justify-content: center; background-color: var(--color-boundary-foggy-o66); backdrop-filter: var(--basic-backdrop-blur); -webkit-backdrop-filter: var(--basic-backdrop-blur); justify-content: center; user-select: none; }
|
|
176
218
|
footer#fixedBottom nav { position: relative; display: flex; flex-direction: row; flex-wrap: nowrap; height: var(--rootbar-height); flex-grow: 1; flex-shrink: 1; user-select: none; }
|
|
@@ -202,8 +244,359 @@ footer#fixedBottom nav:not(#rootbar) { width: -moz-available; width: -webkit-fil
|
|
|
202
244
|
footer#fixedBottom nav:not(#rootbar):first-child { padding-left: var(--left-pad); }
|
|
203
245
|
footer#fixedBottom nav:not(#rootbar):last-child { padding-right: var(--right-pad); }
|
|
204
246
|
}
|
|
205
|
-
footer#fixedBottom nav#customFixedSections { }
|
|
206
|
-
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; }
|
|
207
600
|
|
|
208
601
|
|
|
209
602
|
/* session manager */
|
package/styles/estreUiCore2.css
CHANGED
|
@@ -290,7 +290,31 @@ nav#managedOverlay > section#notification > div.container > article { position:
|
|
|
290
290
|
nav#managedOverlay > section#notification > div.container > article:not(:is([data-on-top^="1"], [data-on-top^="0"])) { display: none; }
|
|
291
291
|
nav#managedOverlay > section#notification > div.container > article:not([data-on-top="1"]) { opacity: 0; }
|
|
292
292
|
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] { top: var(--top-pad); }
|
|
293
|
-
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article { top:
|
|
293
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article { top: 0; transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); transition-duration: 0.45s; will-change: transform, opacity; }
|
|
294
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article[data-on-top="1"] { top: 12px; transform: translateY(0); }
|
|
295
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article[data-on-top="0"] { top: 12px; transform: translateY(calc(-100% - var(--top-pad) - 12px)); }
|
|
296
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article > .post_block { display: flex; align-items: center; gap: 10px; padding: 10px 14px; max-width: calc(100vw - var(--left-pad) - var(--right-pad) - 16px); min-width: min(320px, calc(100vw - var(--left-pad) - var(--right-pad) - 16px)); box-sizing: border-box; border-radius: 18px; background-color: var(--bg-color); backdrop-filter: var(--basic-backdrop-blur); -webkit-backdrop-filter: var(--basic-backdrop-blur); box-shadow: 1px 4px 8px 2px rgb(var(--ca) / 25%); cursor: pointer; }
|
|
297
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article > .post_block:not([data-interactive]) { cursor: default; }
|
|
298
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article > .post_block > .icon_place { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
|
|
299
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article > .post_block > .icon_place > img { width: 100%; height: 100%; object-fit: cover; }
|
|
300
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article > .post_block > .content_place { flex: 1 1 auto; min-width: 0; --color: var(--color-text); --size: 0.9375rem; --weight: 400; }
|
|
301
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article > .post_block > .content_place > .title_line { font-size: 0.9375rem; font-weight: 600; color: var(--color-text); line-height: 1.25em; }
|
|
302
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article > .post_block > .content_place > .subtitle_line { font-size: 0.8125rem; font-weight: 400; color: rgb(var(--ca) / 70%); line-height: 1.25em; margin-top: 1px; }
|
|
303
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article > .post_block > .content_place > .content_area { display: flex; gap: 8px; align-items: flex-start; margin-top: 3px; }
|
|
304
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article > .post_block > .content_place > .content_area > .content_place { flex: 1 1 auto; min-width: 0; color: var(--color); font-size: var(--size); font-weight: var(--weight); line-height: 1.3em; word-break: break-word; }
|
|
305
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article > .post_block > .content_place > .content_area > .icon_place { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 4px; overflow: hidden; }
|
|
306
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article > .post_block > .content_place > .content_area > .icon_place > img { width: 100%; height: 100%; object-fit: cover; }
|
|
307
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article > .post_block { position: relative; z-index: 1; }
|
|
308
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article > .post_block.banner_incoming { animation: banner-incoming 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
|
|
309
|
+
nav#managedOverlay > section#notification > div.container[data-container-id="noti"] > article > .post_block.banner_ghost_exit { z-index: 0; animation: banner-ghost-exit 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; pointer-events: none; }
|
|
310
|
+
@keyframes banner-incoming {
|
|
311
|
+
0% { opacity: 0; transform: translateY(calc(-100% - var(--top-pad) - 12px)); }
|
|
312
|
+
100% { opacity: 1; transform: translateY(0); }
|
|
313
|
+
}
|
|
314
|
+
@keyframes banner-ghost-exit {
|
|
315
|
+
0% { opacity: 1; transform: translateY(0); }
|
|
316
|
+
100% { opacity: 0; transform: translateY(calc(-100% - var(--top-pad) - 12px)); }
|
|
317
|
+
}
|
|
294
318
|
nav#managedOverlay > section#notification > div.container[data-container-id="note"] { bottom: var(--bottom-pad); }
|
|
295
319
|
nav#managedOverlay > section#notification > div.container[data-container-id="note"] > article { bottom: 0; }
|
|
296
320
|
nav#managedOverlay > section#notification > div.container[data-container-id="note"] > article:is([data-on-top^="1"], [data-on-top="0"]) { }
|
|
@@ -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>
|