@monster-orange/den-ui 0.6.6 → 0.7.1
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 +271 -7
- package/bin/den-ui-parity.mjs +80 -3
- package/inventory/fonts-dir.cjs +8 -0
- package/inventory/fonts-dir.mjs +10 -0
- package/inventory/nav-inventory.d.ts +81 -0
- package/inventory/nav-inventory.js +496 -16
- package/inventory/reference/den-chromium-1280.json +577 -98
- package/inventory/reference/den-chromium-390.json +457 -44
- package/inventory/reference/den-webkit-1280.json +577 -98
- package/inventory/reference/den-webkit-390.json +457 -44
- package/package.json +8 -1
- package/src/kit.d.ts +76 -3
- package/src/kit.js +79 -2
- package/src/marks/den.svg +6 -0
- package/src/report-shot.js +194 -12
- package/src/shell-client.d.ts +118 -0
- package/src/shell-client.js +621 -0
- package/src/shell-html.d.ts +240 -3
- package/src/shell-html.js +724 -12
- package/src/shell.css +721 -5
- package/src/strings.js +54 -0
- package/src/tokens.css +69 -63
- package/src/version.js +5 -1
package/src/shell.css
CHANGED
|
@@ -61,9 +61,36 @@ body.den-has-shell > #den-content {
|
|
|
61
61
|
top: 8px;
|
|
62
62
|
}
|
|
63
63
|
.den-top {
|
|
64
|
-
|
|
64
|
+
/* Issue 303: three parts. The left part (☰, the brand, the crumbs) and
|
|
65
|
+
the search have set widths, so the search sits at the same x and
|
|
66
|
+
width in every product whatever the host's words; the chips take the
|
|
67
|
+
rest, pinned to the right edge. The chips' column is never narrower
|
|
68
|
+
than the kit's own buttons (the host's chips count for nothing
|
|
69
|
+
there): when the bar is too narrow for all three, the left part gives
|
|
70
|
+
way. Settings: --den-top-left (444px), --den-top-search (304px). */
|
|
71
|
+
display: grid;
|
|
72
|
+
/* The search never moves (issue 303): its x is a function of the
|
|
73
|
+
viewport only, the same in any host. The left part is
|
|
74
|
+
--den-top-left (444px), less what the search and the kit's right
|
|
75
|
+
group need (--den-top-right, 380px); the right group gives way
|
|
76
|
+
inside its column (the host's chips, then the version's text),
|
|
77
|
+
never Report, the bell or ◐. searchSlot() in the inventory is the
|
|
78
|
+
same sum. */
|
|
79
|
+
grid-template-columns:
|
|
80
|
+
minmax(
|
|
81
|
+
0,
|
|
82
|
+
min(
|
|
83
|
+
var(--den-top-left, 444px),
|
|
84
|
+
calc(
|
|
85
|
+
100% - var(--den-top-search, 304px) - var(--den-top-right, 380px) -
|
|
86
|
+
16px
|
|
87
|
+
)
|
|
88
|
+
)
|
|
89
|
+
)
|
|
90
|
+
var(--den-top-search, 304px)
|
|
91
|
+
minmax(0, 1fr);
|
|
65
92
|
align-items: center;
|
|
66
|
-
gap: 8px;
|
|
93
|
+
column-gap: 8px;
|
|
67
94
|
height: var(--den-top-h);
|
|
68
95
|
box-sizing: border-box;
|
|
69
96
|
padding: 0 12px;
|
|
@@ -100,19 +127,72 @@ body.den-has-shell > #den-content {
|
|
|
100
127
|
background: var(--bar, none);
|
|
101
128
|
pointer-events: none;
|
|
102
129
|
}
|
|
130
|
+
.den-left {
|
|
131
|
+
grid-column: 1;
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
gap: 8px;
|
|
135
|
+
min-width: 0;
|
|
136
|
+
}
|
|
137
|
+
/* The crumbs give way first: they shrink before the brand does. */
|
|
103
138
|
.den-brand {
|
|
104
139
|
display: flex;
|
|
105
140
|
align-items: center;
|
|
106
141
|
gap: 8px;
|
|
107
142
|
color: var(--text);
|
|
108
143
|
text-decoration: none;
|
|
109
|
-
flex
|
|
144
|
+
flex: 0 0.001 auto;
|
|
145
|
+
min-width: 0;
|
|
110
146
|
white-space: nowrap;
|
|
111
147
|
}
|
|
112
148
|
.den-title {
|
|
113
149
|
font: 600 15px var(--display);
|
|
114
150
|
margin: 0;
|
|
115
151
|
white-space: nowrap;
|
|
152
|
+
min-width: 0;
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
text-overflow: ellipsis;
|
|
155
|
+
}
|
|
156
|
+
/* The mark's layout (0.7.0, from Den's own sheet): a centred box its
|
|
157
|
+
image fills, whatever the host's mark is. */
|
|
158
|
+
.den-mark {
|
|
159
|
+
display: inline-flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
justify-content: center;
|
|
162
|
+
width: 18px;
|
|
163
|
+
height: 18px;
|
|
164
|
+
flex-shrink: 0;
|
|
165
|
+
overflow: hidden;
|
|
166
|
+
}
|
|
167
|
+
.den-mark img {
|
|
168
|
+
display: block;
|
|
169
|
+
width: 18px;
|
|
170
|
+
height: 18px;
|
|
171
|
+
}
|
|
172
|
+
/* Scaled, never cropped: non-square art keeps its edges. */
|
|
173
|
+
.den-mark-raster img {
|
|
174
|
+
object-fit: contain;
|
|
175
|
+
}
|
|
176
|
+
.den-mark-text {
|
|
177
|
+
font: 700 11px/1 var(--display);
|
|
178
|
+
letter-spacing: -0.02em;
|
|
179
|
+
background: var(--accent-fill);
|
|
180
|
+
color: var(--on-accent);
|
|
181
|
+
}
|
|
182
|
+
.den-mark-text[data-len="2"] {
|
|
183
|
+
font-size: 9px;
|
|
184
|
+
}
|
|
185
|
+
.den-mark-text[data-len="3"] {
|
|
186
|
+
font-size: 7px;
|
|
187
|
+
}
|
|
188
|
+
.den-mark-square {
|
|
189
|
+
border-radius: 2px;
|
|
190
|
+
}
|
|
191
|
+
.den-mark-rounded {
|
|
192
|
+
border-radius: 5px;
|
|
193
|
+
}
|
|
194
|
+
.den-mark-circle {
|
|
195
|
+
border-radius: 50%;
|
|
116
196
|
}
|
|
117
197
|
#den-shell .den-mark {
|
|
118
198
|
width: 22px;
|
|
@@ -149,10 +229,112 @@ body.den-has-shell > #den-content {
|
|
|
149
229
|
display: none;
|
|
150
230
|
}
|
|
151
231
|
.den-chips {
|
|
232
|
+
grid-column: 3;
|
|
152
233
|
display: flex;
|
|
153
234
|
align-items: center;
|
|
235
|
+
justify-content: flex-end;
|
|
154
236
|
gap: 4px;
|
|
155
|
-
|
|
237
|
+
min-width: 0;
|
|
238
|
+
/* A clear gap after the search's ⌕. */
|
|
239
|
+
padding-left: 8px;
|
|
240
|
+
}
|
|
241
|
+
/* The kit's own buttons keep their size; the host's chips give way. */
|
|
242
|
+
.den-chips > * {
|
|
243
|
+
flex: none;
|
|
244
|
+
}
|
|
245
|
+
/* The version sits in a fixed slot (96px; 64px up to 1100px): its text
|
|
246
|
+
ends in "…" inside it (the whole version in the text's title), so
|
|
247
|
+
Report, the bell and ◐ sit at the same x in any host, anchored from
|
|
248
|
+
the right edge. */
|
|
249
|
+
.den-chips > .v-pill,
|
|
250
|
+
#den-shell .den-chips > .v-pill {
|
|
251
|
+
flex: none;
|
|
252
|
+
width: var(--den-top-version, 96px);
|
|
253
|
+
min-width: 0;
|
|
254
|
+
justify-content: center;
|
|
255
|
+
box-sizing: border-box;
|
|
256
|
+
}
|
|
257
|
+
@media (max-width: 1100px) {
|
|
258
|
+
.den-chips > .v-pill,
|
|
259
|
+
#den-shell .den-chips > .v-pill {
|
|
260
|
+
width: var(--den-top-version-md, 64px);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
.den-chips > .v-pill .v-txt {
|
|
264
|
+
min-width: 0;
|
|
265
|
+
overflow: hidden;
|
|
266
|
+
text-overflow: ellipsis;
|
|
267
|
+
white-space: nowrap;
|
|
268
|
+
}
|
|
269
|
+
/* Report, the bell and ◐ are the kit's: their font and box are set here,
|
|
270
|
+
so a host's own rules (letter-spacing, box-sizing) can't size them. */
|
|
271
|
+
.den-chips > .den-rb-top,
|
|
272
|
+
.den-chips > #den-bell,
|
|
273
|
+
.den-chips > .appearance-btn {
|
|
274
|
+
font-family: var(--sans);
|
|
275
|
+
letter-spacing: normal;
|
|
276
|
+
word-spacing: normal;
|
|
277
|
+
text-transform: none;
|
|
278
|
+
box-sizing: border-box;
|
|
279
|
+
}
|
|
280
|
+
/* The host's chips (issue 303): the first to give way when the bar is
|
|
281
|
+
short. Their group takes the room left of the kit's buttons, right
|
|
282
|
+
aligned, clipped on the x axis only (a touch tap area still reaches
|
|
283
|
+
above and below); under 40px its chips hide, so none ever sits under
|
|
284
|
+
the search. */
|
|
285
|
+
.den-end {
|
|
286
|
+
display: flex;
|
|
287
|
+
align-items: center;
|
|
288
|
+
justify-content: flex-end;
|
|
289
|
+
gap: 4px;
|
|
290
|
+
flex: 1 1 0;
|
|
291
|
+
min-width: 0;
|
|
292
|
+
overflow-x: clip;
|
|
293
|
+
/* Its chips never widen the bar: the group's own width is the room. */
|
|
294
|
+
contain: inline-size;
|
|
295
|
+
}
|
|
296
|
+
/* A host chip gives way: its last part (its words, in a span) ends in
|
|
297
|
+
"…". */
|
|
298
|
+
/* Width 0, growing to its own width: a host chip takes only the room
|
|
299
|
+
there is, and counts for nothing in the chips' least width. */
|
|
300
|
+
.den-top .den-end > * {
|
|
301
|
+
width: auto;
|
|
302
|
+
flex: 0 1 auto;
|
|
303
|
+
max-width: max-content;
|
|
304
|
+
/* A shrunk chip keeps its dot and "…" (its words in its title and
|
|
305
|
+
name, set by the kit's hydration). */
|
|
306
|
+
min-width: 2.6em;
|
|
307
|
+
display: inline-flex;
|
|
308
|
+
align-items: center;
|
|
309
|
+
white-space: nowrap;
|
|
310
|
+
}
|
|
311
|
+
.den-top .den-end > * > :last-child {
|
|
312
|
+
min-width: 0;
|
|
313
|
+
overflow: hidden;
|
|
314
|
+
text-overflow: ellipsis;
|
|
315
|
+
white-space: nowrap;
|
|
316
|
+
}
|
|
317
|
+
@media not (pointer: coarse) {
|
|
318
|
+
.den-top .den-end > * {
|
|
319
|
+
overflow: hidden;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
/* On a touch screen nothing is clipped, so a chip's 44px tap reaches
|
|
323
|
+
past its group. */
|
|
324
|
+
@media (pointer: coarse) {
|
|
325
|
+
.den-end {
|
|
326
|
+
overflow-x: visible;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
/* A phone: nothing is clipped (touch or not, the bar looks the same);
|
|
330
|
+
the chips shrink to the room there is. */
|
|
331
|
+
@media (max-width: 720px) {
|
|
332
|
+
.den-end {
|
|
333
|
+
overflow-x: visible;
|
|
334
|
+
}
|
|
335
|
+
.den-top .den-end > * {
|
|
336
|
+
min-width: 0;
|
|
337
|
+
}
|
|
156
338
|
}
|
|
157
339
|
.den-user {
|
|
158
340
|
display: contents;
|
|
@@ -264,14 +446,20 @@ body.den-has-shell > #den-content {
|
|
|
264
446
|
.den-rail > .den-rail-group:first-child > .den-gh {
|
|
265
447
|
padding-top: 2px;
|
|
266
448
|
}
|
|
449
|
+
/* A group's "from" tag never makes its heading taller, on any font: its
|
|
450
|
+
box (a 12px line and its border, 14px) is centred on the heading's line
|
|
451
|
+
and its vertical margins cancel that box, so its row is the heading's
|
|
452
|
+
own words' line, with or without the tag. */
|
|
267
453
|
.den-tagx {
|
|
268
|
-
font: 10px var(--mono);
|
|
454
|
+
font: 10px/12px var(--mono);
|
|
269
455
|
color: var(--faint);
|
|
270
456
|
border: 1px dashed var(--border-strong);
|
|
271
457
|
border-radius: 4px;
|
|
272
458
|
padding: 0 4px;
|
|
273
459
|
text-transform: none;
|
|
274
460
|
letter-spacing: 0;
|
|
461
|
+
align-self: center;
|
|
462
|
+
margin-block: -7px;
|
|
275
463
|
}
|
|
276
464
|
.den-ni {
|
|
277
465
|
display: flex;
|
|
@@ -517,6 +705,12 @@ body.den-has-shell .den-upd {
|
|
|
517
705
|
white-space: nowrap;
|
|
518
706
|
border: 0;
|
|
519
707
|
}
|
|
708
|
+
/* The brand is its mark alone here (the title is hidden): it never
|
|
709
|
+
shrinks below it; the host's chips give way instead. */
|
|
710
|
+
.den-brand {
|
|
711
|
+
flex-shrink: 0;
|
|
712
|
+
min-width: max-content;
|
|
713
|
+
}
|
|
520
714
|
}
|
|
521
715
|
@media (prefers-reduced-motion: reduce) {
|
|
522
716
|
.den-rail {
|
|
@@ -556,3 +750,525 @@ body.den-has-shell .den-upd {
|
|
|
556
750
|
display: none;
|
|
557
751
|
pointer-events: none;
|
|
558
752
|
}
|
|
753
|
+
|
|
754
|
+
/* ── 0.7.0: the scope crumbs, the search, the bell, the account ───────── */
|
|
755
|
+
|
|
756
|
+
/* The scope crumbs: / KEY value ▾ / … The search gives way first: the
|
|
757
|
+
crumbs keep their parts whole (each value is capped), so they never run
|
|
758
|
+
into one another. */
|
|
759
|
+
/* The crumbs (issue 303): each crumb a column of minmax(auto, max-content)
|
|
760
|
+
whose least width is 0 (min-width: 0), so the room there is goes to
|
|
761
|
+
every crumb alike until each is whole: a short crumb keeps its words, a
|
|
762
|
+
long one ends in an ellipsis, and the last crumb is kept whole. They
|
|
763
|
+
give way before the brand. */
|
|
764
|
+
.den-scope {
|
|
765
|
+
display: grid;
|
|
766
|
+
grid-auto-flow: column;
|
|
767
|
+
grid-auto-columns: minmax(auto, max-content);
|
|
768
|
+
align-items: center;
|
|
769
|
+
column-gap: 2px;
|
|
770
|
+
/* Never narrower than what its crumbs can give: past that, the brand
|
|
771
|
+
gives way. */
|
|
772
|
+
min-width: min-content;
|
|
773
|
+
flex: 0 999 auto;
|
|
774
|
+
position: relative;
|
|
775
|
+
}
|
|
776
|
+
.den-sep {
|
|
777
|
+
color: var(--faint);
|
|
778
|
+
}
|
|
779
|
+
.den-scope [hidden] {
|
|
780
|
+
display: none;
|
|
781
|
+
}
|
|
782
|
+
.den-scope .den-ib {
|
|
783
|
+
color: var(--text);
|
|
784
|
+
font-size: 13px;
|
|
785
|
+
min-width: 0;
|
|
786
|
+
}
|
|
787
|
+
/* The last crumb's least width is its whole self: it never gives way. */
|
|
788
|
+
.den-scope .den-ib.den-last {
|
|
789
|
+
min-width: auto;
|
|
790
|
+
}
|
|
791
|
+
.den-scope .den-ib > * {
|
|
792
|
+
flex: none;
|
|
793
|
+
}
|
|
794
|
+
/* The label gives way first (down to nothing), then the value ends in
|
|
795
|
+
"…": a crumb's value outlasts its label. Before the last crumb, a
|
|
796
|
+
value keeps about 4ch and its ▾. */
|
|
797
|
+
.den-scope .den-ib > .den-k {
|
|
798
|
+
flex: 0 1000 auto;
|
|
799
|
+
min-width: 0;
|
|
800
|
+
overflow: hidden;
|
|
801
|
+
white-space: nowrap;
|
|
802
|
+
}
|
|
803
|
+
.den-scope .den-ib:not(.den-last) > .den-v {
|
|
804
|
+
min-width: calc(5ch + 0.28em);
|
|
805
|
+
}
|
|
806
|
+
.den-scope .den-ib:not(.den-last) > :last-child:not(.den-v):not(.den-k) {
|
|
807
|
+
min-width: 4ch;
|
|
808
|
+
}
|
|
809
|
+
/* The value gives way (its ▾ stays): a static crumb's value, or a menu
|
|
810
|
+
crumb's value box and the name in it. */
|
|
811
|
+
.den-scope .den-ib > :last-child {
|
|
812
|
+
flex: 0 1 auto;
|
|
813
|
+
min-width: 0;
|
|
814
|
+
overflow: hidden;
|
|
815
|
+
text-overflow: ellipsis;
|
|
816
|
+
white-space: nowrap;
|
|
817
|
+
}
|
|
818
|
+
.den-scope .den-v {
|
|
819
|
+
display: inline-flex;
|
|
820
|
+
align-items: baseline;
|
|
821
|
+
/* The space between the value and its ▾. */
|
|
822
|
+
column-gap: 0.28em;
|
|
823
|
+
}
|
|
824
|
+
.den-scope .den-v > .den-vn {
|
|
825
|
+
flex: 0 1 auto;
|
|
826
|
+
min-width: 0;
|
|
827
|
+
overflow: hidden;
|
|
828
|
+
text-overflow: ellipsis;
|
|
829
|
+
white-space: nowrap;
|
|
830
|
+
}
|
|
831
|
+
.den-scope .den-v > :not(.den-vn) {
|
|
832
|
+
flex: none;
|
|
833
|
+
}
|
|
834
|
+
.den-k {
|
|
835
|
+
font: 11px var(--mono);
|
|
836
|
+
color: var(--faint);
|
|
837
|
+
text-transform: uppercase;
|
|
838
|
+
letter-spacing: 0.06em;
|
|
839
|
+
}
|
|
840
|
+
.den-scope .den-ib[aria-expanded="true"] {
|
|
841
|
+
background: var(--sunken);
|
|
842
|
+
}
|
|
843
|
+
/* A long value ends in an ellipsis; the whole value is in the menu. An
|
|
844
|
+
env's name is short: never capped. */
|
|
845
|
+
.den-scope-btn:not([data-scope="env"]) .den-vn,
|
|
846
|
+
.den-scope .den-opt .den-vn {
|
|
847
|
+
display: inline-block;
|
|
848
|
+
max-width: 200px;
|
|
849
|
+
overflow: hidden;
|
|
850
|
+
text-overflow: ellipsis;
|
|
851
|
+
vertical-align: top;
|
|
852
|
+
}
|
|
853
|
+
/* The search field, ⌘K inside it. Its sizes are content-box (a page may
|
|
854
|
+
reset everything to border-box). */
|
|
855
|
+
.den-search {
|
|
856
|
+
grid-column: 2;
|
|
857
|
+
margin: 0;
|
|
858
|
+
display: flex;
|
|
859
|
+
align-items: center;
|
|
860
|
+
gap: 8px;
|
|
861
|
+
background: var(--sunken);
|
|
862
|
+
border: 1px solid var(--border);
|
|
863
|
+
border-radius: var(--radius-button);
|
|
864
|
+
padding: 5px 10px;
|
|
865
|
+
color: var(--faint);
|
|
866
|
+
cursor: text;
|
|
867
|
+
min-width: 0;
|
|
868
|
+
font: inherit;
|
|
869
|
+
box-sizing: content-box;
|
|
870
|
+
}
|
|
871
|
+
.den-search-ph {
|
|
872
|
+
flex: 1;
|
|
873
|
+
overflow: hidden;
|
|
874
|
+
text-overflow: ellipsis;
|
|
875
|
+
white-space: nowrap;
|
|
876
|
+
text-align: left;
|
|
877
|
+
}
|
|
878
|
+
.den-search-ic {
|
|
879
|
+
flex: none;
|
|
880
|
+
}
|
|
881
|
+
/* A key cap: the search's ⌘K, the top bar's Report ⌘⇧F, and any .den-kbd
|
|
882
|
+
a host draws. One rule, so they never drift apart. */
|
|
883
|
+
.den-kbd,
|
|
884
|
+
.den-search kbd,
|
|
885
|
+
.den-top .den-rb kbd {
|
|
886
|
+
font: 11px var(--mono);
|
|
887
|
+
border: 1px solid var(--border);
|
|
888
|
+
border-bottom-width: 2px;
|
|
889
|
+
border-radius: 4px;
|
|
890
|
+
padding: 0 5px;
|
|
891
|
+
color: var(--muted);
|
|
892
|
+
background: var(--surface);
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
/* The bell, its count, and its panel (on <body>, outside the bar). */
|
|
896
|
+
.den-bell {
|
|
897
|
+
position: relative;
|
|
898
|
+
}
|
|
899
|
+
.den-bell-n {
|
|
900
|
+
position: absolute;
|
|
901
|
+
top: -4px;
|
|
902
|
+
right: -6px;
|
|
903
|
+
min-width: 16px;
|
|
904
|
+
height: 16px;
|
|
905
|
+
padding: 0 4px;
|
|
906
|
+
border-radius: 999px;
|
|
907
|
+
background: var(--warn);
|
|
908
|
+
color: var(--bg);
|
|
909
|
+
font: 600 10px/16px var(--mono);
|
|
910
|
+
text-align: center;
|
|
911
|
+
}
|
|
912
|
+
.den-bell-n[hidden] {
|
|
913
|
+
display: none;
|
|
914
|
+
}
|
|
915
|
+
.den-bell-pop {
|
|
916
|
+
position: fixed;
|
|
917
|
+
top: 52px;
|
|
918
|
+
right: 12px;
|
|
919
|
+
width: min(420px, calc(100vw - 32px));
|
|
920
|
+
max-height: min(70vh, 640px);
|
|
921
|
+
overflow: auto;
|
|
922
|
+
background: var(--surface);
|
|
923
|
+
color: var(--text);
|
|
924
|
+
border: 1px solid var(--border-strong);
|
|
925
|
+
border-radius: 10px;
|
|
926
|
+
box-shadow: 0 8px 28px color-mix(in srgb, var(--text) 25%, transparent);
|
|
927
|
+
/* On <body>: its own font, not a page's default (a serif). */
|
|
928
|
+
z-index: 60;
|
|
929
|
+
padding: 8px 0;
|
|
930
|
+
font: 13px/1.45 var(--sans);
|
|
931
|
+
}
|
|
932
|
+
.den-bell-pop[hidden] {
|
|
933
|
+
display: none;
|
|
934
|
+
}
|
|
935
|
+
.den-bell-pop:focus {
|
|
936
|
+
outline: none;
|
|
937
|
+
}
|
|
938
|
+
.den-bell-hd {
|
|
939
|
+
display: flex;
|
|
940
|
+
gap: 8px;
|
|
941
|
+
align-items: center;
|
|
942
|
+
padding: 4px 12px 8px;
|
|
943
|
+
border-bottom: 1px solid var(--border);
|
|
944
|
+
}
|
|
945
|
+
.den-bell-hd h2 {
|
|
946
|
+
font-size: 13px;
|
|
947
|
+
margin: 0;
|
|
948
|
+
flex: 1;
|
|
949
|
+
}
|
|
950
|
+
.den-bell-hd button {
|
|
951
|
+
font: inherit;
|
|
952
|
+
font-size: 12px;
|
|
953
|
+
background: none;
|
|
954
|
+
border: 0;
|
|
955
|
+
color: var(--accent-text);
|
|
956
|
+
cursor: pointer;
|
|
957
|
+
padding: 2px 4px;
|
|
958
|
+
}
|
|
959
|
+
.den-bell-row {
|
|
960
|
+
display: flex;
|
|
961
|
+
gap: 8px;
|
|
962
|
+
align-items: flex-start;
|
|
963
|
+
padding: 6px 12px;
|
|
964
|
+
}
|
|
965
|
+
.den-bell-row:hover {
|
|
966
|
+
background: color-mix(in srgb, var(--text) 5%, transparent);
|
|
967
|
+
}
|
|
968
|
+
.den-bell-row a {
|
|
969
|
+
flex: 1;
|
|
970
|
+
color: inherit;
|
|
971
|
+
text-decoration: none;
|
|
972
|
+
overflow-wrap: anywhere;
|
|
973
|
+
}
|
|
974
|
+
.den-bell-row.read a {
|
|
975
|
+
color: var(--muted);
|
|
976
|
+
}
|
|
977
|
+
.den-bell-row time {
|
|
978
|
+
color: var(--faint);
|
|
979
|
+
font-size: 11px;
|
|
980
|
+
white-space: nowrap;
|
|
981
|
+
}
|
|
982
|
+
.den-bell-empty {
|
|
983
|
+
padding: 16px 12px;
|
|
984
|
+
color: var(--muted);
|
|
985
|
+
}
|
|
986
|
+
.den-bell-empty p {
|
|
987
|
+
margin: 0 0 6px;
|
|
988
|
+
}
|
|
989
|
+
.den-bell-empty a {
|
|
990
|
+
color: var(--accent-text);
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
/* A phone: the panel the window's width, its rows tall enough to touch. */
|
|
994
|
+
@media (max-width: 480px) {
|
|
995
|
+
.den-bell-pop {
|
|
996
|
+
left: 0;
|
|
997
|
+
right: 0;
|
|
998
|
+
width: auto;
|
|
999
|
+
top: 48px;
|
|
1000
|
+
border-radius: 0 0 10px 10px;
|
|
1001
|
+
}
|
|
1002
|
+
.den-bell-row {
|
|
1003
|
+
min-height: 44px;
|
|
1004
|
+
align-items: center;
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
/* The account entry: its detail after the label, quieter. */
|
|
1009
|
+
.den-acct-d {
|
|
1010
|
+
color: var(--faint);
|
|
1011
|
+
}
|
|
1012
|
+
/* Who is signed in (0.7.1): the name, then @login under it, quieter;
|
|
1013
|
+
the same in the rail's entry and the account menu's header. */
|
|
1014
|
+
.den-acct {
|
|
1015
|
+
display: flex;
|
|
1016
|
+
flex-direction: column;
|
|
1017
|
+
min-width: 0;
|
|
1018
|
+
}
|
|
1019
|
+
.den-acct-n,
|
|
1020
|
+
.den-acct-l,
|
|
1021
|
+
.den-acct-r {
|
|
1022
|
+
overflow: hidden;
|
|
1023
|
+
text-overflow: ellipsis;
|
|
1024
|
+
white-space: nowrap;
|
|
1025
|
+
}
|
|
1026
|
+
.den-acct-l,
|
|
1027
|
+
.den-acct-r {
|
|
1028
|
+
font-size: 11px;
|
|
1029
|
+
color: var(--faint);
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/* Narrow: the crumbs' keys and the optional crumb give way, then the
|
|
1033
|
+
crumbs hide and the search is its icon. */
|
|
1034
|
+
@media (max-width: 860px) {
|
|
1035
|
+
.den-scope .den-k,
|
|
1036
|
+
.den-scope .den-sep,
|
|
1037
|
+
.den-scope .den-opt {
|
|
1038
|
+
display: none;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
@media (max-width: 720px) {
|
|
1042
|
+
/* The search is its icon, in a slot after the brand: the same x in
|
|
1043
|
+
every product (--den-top-left-md, 200px; on a phone
|
|
1044
|
+
--den-top-left-sm, 62px: ☰ and the mark). */
|
|
1045
|
+
.den-top {
|
|
1046
|
+
grid-template-columns: minmax(0, var(--den-top-left-md, 200px)) auto minmax(
|
|
1047
|
+
min-content,
|
|
1048
|
+
1fr
|
|
1049
|
+
);
|
|
1050
|
+
}
|
|
1051
|
+
.den-chips {
|
|
1052
|
+
padding-left: 0;
|
|
1053
|
+
}
|
|
1054
|
+
.den-scope {
|
|
1055
|
+
display: none;
|
|
1056
|
+
}
|
|
1057
|
+
.den-search {
|
|
1058
|
+
margin: 0;
|
|
1059
|
+
}
|
|
1060
|
+
.den-search-ph,
|
|
1061
|
+
.den-search kbd {
|
|
1062
|
+
display: none;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
/* A phone's tap targets: every top-bar button 32px or more each way. */
|
|
1067
|
+
@media (max-width: 479.98px) {
|
|
1068
|
+
.den-top {
|
|
1069
|
+
grid-template-columns: var(--den-top-left-sm, 62px) auto minmax(
|
|
1070
|
+
min-content,
|
|
1071
|
+
1fr
|
|
1072
|
+
);
|
|
1073
|
+
}
|
|
1074
|
+
.den-top button {
|
|
1075
|
+
min-height: 32px;
|
|
1076
|
+
min-width: 32px;
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
/* 0.7.0: the kit's menus (◐ ▾, a crumb's own menu): a host's menu look,
|
|
1081
|
+
value for value. */
|
|
1082
|
+
.den-pop {
|
|
1083
|
+
position: fixed;
|
|
1084
|
+
z-index: 45;
|
|
1085
|
+
background: var(--raised);
|
|
1086
|
+
border: 1px solid var(--border-strong);
|
|
1087
|
+
border-radius: 10px;
|
|
1088
|
+
box-shadow: var(--shadow);
|
|
1089
|
+
padding: 6px;
|
|
1090
|
+
min-width: 220px;
|
|
1091
|
+
max-height: calc(100vh - 72px);
|
|
1092
|
+
overflow-y: auto;
|
|
1093
|
+
box-sizing: border-box;
|
|
1094
|
+
font: 14px/1.45 var(--sans);
|
|
1095
|
+
color: var(--text);
|
|
1096
|
+
}
|
|
1097
|
+
.den-pop:focus {
|
|
1098
|
+
outline: none;
|
|
1099
|
+
}
|
|
1100
|
+
.den-pop :focus-visible {
|
|
1101
|
+
outline: 2px solid var(--accent);
|
|
1102
|
+
outline-offset: 2px;
|
|
1103
|
+
}
|
|
1104
|
+
.den-pop .den-ml {
|
|
1105
|
+
font: 11px var(--mono);
|
|
1106
|
+
color: var(--faint);
|
|
1107
|
+
text-transform: uppercase;
|
|
1108
|
+
letter-spacing: 0.07em;
|
|
1109
|
+
padding: 6px 8px 2px;
|
|
1110
|
+
}
|
|
1111
|
+
.den-pop .den-mi {
|
|
1112
|
+
display: flex;
|
|
1113
|
+
width: 100%;
|
|
1114
|
+
align-items: center;
|
|
1115
|
+
gap: 8px;
|
|
1116
|
+
background: none;
|
|
1117
|
+
border: 0;
|
|
1118
|
+
padding: 6px 8px;
|
|
1119
|
+
border-radius: 6px;
|
|
1120
|
+
cursor: pointer;
|
|
1121
|
+
text-align: left;
|
|
1122
|
+
font: inherit;
|
|
1123
|
+
color: inherit;
|
|
1124
|
+
text-decoration: none;
|
|
1125
|
+
box-sizing: border-box;
|
|
1126
|
+
}
|
|
1127
|
+
.den-pop .den-mi:hover,
|
|
1128
|
+
.den-pop .den-mi:focus {
|
|
1129
|
+
background: var(--sunken);
|
|
1130
|
+
}
|
|
1131
|
+
/* The ✓ is drawn, not read (aria-checked or aria-current says it). */
|
|
1132
|
+
.den-pop .den-mi[aria-checked="true"]::after,
|
|
1133
|
+
.den-pop .den-mi[aria-current="true"]::after {
|
|
1134
|
+
content: "✓" / "";
|
|
1135
|
+
margin-left: auto;
|
|
1136
|
+
color: var(--accent-text);
|
|
1137
|
+
}
|
|
1138
|
+
.den-pop .den-mi-l {
|
|
1139
|
+
min-width: 0;
|
|
1140
|
+
overflow: hidden;
|
|
1141
|
+
text-overflow: ellipsis;
|
|
1142
|
+
white-space: nowrap;
|
|
1143
|
+
}
|
|
1144
|
+
.den-pop .den-mtag {
|
|
1145
|
+
font: 11px var(--mono);
|
|
1146
|
+
color: var(--muted);
|
|
1147
|
+
}
|
|
1148
|
+
.den-pop .den-hr {
|
|
1149
|
+
height: 1px;
|
|
1150
|
+
background: var(--border);
|
|
1151
|
+
margin: 6px 0;
|
|
1152
|
+
}
|
|
1153
|
+
.den-pop .den-mnote {
|
|
1154
|
+
color: var(--muted);
|
|
1155
|
+
font-size: 12.5px;
|
|
1156
|
+
margin: 0;
|
|
1157
|
+
padding: 4px 8px;
|
|
1158
|
+
max-width: 260px;
|
|
1159
|
+
}
|
|
1160
|
+
/* A long menu's type-to-filter field, a host's menu field look; an entry
|
|
1161
|
+
it filters out is hidden. */
|
|
1162
|
+
.den-pop input.den-mfilter {
|
|
1163
|
+
display: block;
|
|
1164
|
+
width: 100%;
|
|
1165
|
+
box-sizing: border-box;
|
|
1166
|
+
margin: 0 0 4px;
|
|
1167
|
+
-webkit-appearance: none;
|
|
1168
|
+
appearance: none;
|
|
1169
|
+
border: 1px solid var(--border);
|
|
1170
|
+
background: var(--bg);
|
|
1171
|
+
color: var(--text);
|
|
1172
|
+
border-radius: var(--radius-button);
|
|
1173
|
+
padding: 6px 8px;
|
|
1174
|
+
font: inherit;
|
|
1175
|
+
font-size: 13.3333px;
|
|
1176
|
+
line-height: normal;
|
|
1177
|
+
}
|
|
1178
|
+
.den-pop .den-mi[hidden],
|
|
1179
|
+
.den-pop .den-mnote[hidden] {
|
|
1180
|
+
display: none;
|
|
1181
|
+
}
|
|
1182
|
+
/* A form in a menu (the account menu's Sign out) is just its row. */
|
|
1183
|
+
.den-pop form.den-mform {
|
|
1184
|
+
display: block;
|
|
1185
|
+
width: auto;
|
|
1186
|
+
margin: 0;
|
|
1187
|
+
padding: 0;
|
|
1188
|
+
box-sizing: border-box;
|
|
1189
|
+
}
|
|
1190
|
+
/* ◐ ▾'s menu, on <body> above everything, placed under the button. */
|
|
1191
|
+
.den-um {
|
|
1192
|
+
margin: 0;
|
|
1193
|
+
right: auto;
|
|
1194
|
+
bottom: auto;
|
|
1195
|
+
z-index: 1000;
|
|
1196
|
+
}
|
|
1197
|
+
/* A crumb's own menu drops below its ▾, inside the bar. */
|
|
1198
|
+
.den-scope-menu {
|
|
1199
|
+
position: absolute;
|
|
1200
|
+
top: calc(100% + 6px);
|
|
1201
|
+
left: var(--den-menu-x, 0px);
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
/* 0.7.0: the update-waiting pill beside the version chip. */
|
|
1205
|
+
.stale-pill {
|
|
1206
|
+
font-family: var(--mono);
|
|
1207
|
+
font-size: 10px;
|
|
1208
|
+
font-weight: 600;
|
|
1209
|
+
padding: 2px 9px;
|
|
1210
|
+
border-radius: 10px;
|
|
1211
|
+
cursor: pointer;
|
|
1212
|
+
user-select: none;
|
|
1213
|
+
border: 1px solid var(--warn);
|
|
1214
|
+
color: var(--warn);
|
|
1215
|
+
background: color-mix(in srgb, var(--warn) 12%, transparent);
|
|
1216
|
+
display: inline-flex;
|
|
1217
|
+
align-items: center;
|
|
1218
|
+
gap: 5px;
|
|
1219
|
+
flex-shrink: 0;
|
|
1220
|
+
animation: stale-pulse 2s ease-in-out infinite;
|
|
1221
|
+
}
|
|
1222
|
+
.stale-pill:hover {
|
|
1223
|
+
color: var(--bg);
|
|
1224
|
+
background: var(--warn);
|
|
1225
|
+
}
|
|
1226
|
+
.stale-pill b {
|
|
1227
|
+
font-weight: 700;
|
|
1228
|
+
}
|
|
1229
|
+
@keyframes stale-pulse {
|
|
1230
|
+
0%,
|
|
1231
|
+
100% {
|
|
1232
|
+
opacity: 1;
|
|
1233
|
+
}
|
|
1234
|
+
50% {
|
|
1235
|
+
opacity: 0.5;
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
@media (max-width: 720px) {
|
|
1239
|
+
.den-top .stale-lbl {
|
|
1240
|
+
display: none;
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
/* Touch (issue 303): .den-hit is the kit's 44×44px tap, for any control
|
|
1245
|
+
(the kit's top bar uses it, and a host may put it on its own buttons
|
|
1246
|
+
and tabs): a hit area centred on the control, transparent, with no
|
|
1247
|
+
change to its look or layout, on a touch screen only. Key hints
|
|
1248
|
+
(.den-kbd, and the bar's kbd) hide on a touch screen, wherever they
|
|
1249
|
+
are. */
|
|
1250
|
+
@media (pointer: coarse) {
|
|
1251
|
+
.den-hit,
|
|
1252
|
+
.den-top button,
|
|
1253
|
+
.den-top a[href] {
|
|
1254
|
+
position: relative;
|
|
1255
|
+
}
|
|
1256
|
+
.den-hit::after,
|
|
1257
|
+
.den-top button::after,
|
|
1258
|
+
.den-top a[href]::after {
|
|
1259
|
+
content: "";
|
|
1260
|
+
position: absolute;
|
|
1261
|
+
left: 50%;
|
|
1262
|
+
top: 50%;
|
|
1263
|
+
width: 100%;
|
|
1264
|
+
height: 100%;
|
|
1265
|
+
min-width: 44px;
|
|
1266
|
+
min-height: 44px;
|
|
1267
|
+
transform: translate(-50%, -50%);
|
|
1268
|
+
background: transparent;
|
|
1269
|
+
}
|
|
1270
|
+
.den-kbd,
|
|
1271
|
+
.den-top kbd {
|
|
1272
|
+
display: none;
|
|
1273
|
+
}
|
|
1274
|
+
}
|