notchbar 0.1.0 → 0.2.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 +193 -181
- package/dist/index.cjs +16 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +16 -7
- package/dist/index.js.map +1 -1
- package/dist/styles.css +510 -510
- package/package.json +82 -68
package/dist/styles.css
CHANGED
|
@@ -1,510 +1,510 @@
|
|
|
1
|
-
/* notchbar
|
|
2
|
-
A tab hanging from the top edge of the page. Stretched: quiet paper.
|
|
3
|
-
Condensed: liquid glass. The whole tab, shoulders included, is one path
|
|
4
|
-
re-traced from its live size; fill layers are clipped to it, and the
|
|
5
|
-
hairline, inner rim and drop shadow are strokes and fills of the same path.
|
|
6
|
-
|
|
7
|
-
Theme it with custom properties on .nb (or any ancestor):
|
|
8
|
-
--nb-accent marker colour (set from the accent prop)
|
|
9
|
-
--nb-ink text colour
|
|
10
|
-
--nb-muted secondary text
|
|
11
|
-
--nb-paper the stretched tab's tone
|
|
12
|
-
--nb-glass the condensed glass tint
|
|
13
|
-
--nb-font-mono the small panel headings
|
|
14
|
-
--nb-font-marker handwriting for "New" marks */
|
|
15
|
-
|
|
16
|
-
.nb {
|
|
17
|
-
--nb-ink: #111;
|
|
18
|
-
--nb-muted: #8f8f8a;
|
|
19
|
-
--nb-link: #5c5c5c;
|
|
20
|
-
--nb-paper: #efefec;
|
|
21
|
-
--nb-glass: rgba(255, 255, 255, 0.42);
|
|
22
|
-
--nb-line: rgba(17, 17, 17, 0.05);
|
|
23
|
-
--nb-rim: rgba(255, 255, 255, 0);
|
|
24
|
-
--nb-ease: cubic-bezier(0.22, 1, 0.36, 1);
|
|
25
|
-
--nb-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
26
|
-
--nb-font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
|
|
27
|
-
--nb-font-marker: "Gochi Hand", "Comic Sans MS", cursive;
|
|
28
|
-
|
|
29
|
-
position: fixed;
|
|
30
|
-
inset: 0 0 auto 0;
|
|
31
|
-
z-index: 50;
|
|
32
|
-
display: flex;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
pointer-events: none;
|
|
35
|
-
color: var(--nb-ink);
|
|
36
|
-
}
|
|
37
|
-
/* Resets carry no weight, so every class below wins over them */
|
|
38
|
-
:where(.nb) *,
|
|
39
|
-
:where(.nb) *::before,
|
|
40
|
-
:where(.nb) *::after { box-sizing: border-box; }
|
|
41
|
-
:where(.nb) a { color: inherit; text-decoration: none; }
|
|
42
|
-
:where(.nb) p { margin: 0; }
|
|
43
|
-
:where(.nb) ul { margin: 0; padding: 0; list-style: none; }
|
|
44
|
-
:where(.nb) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
|
|
45
|
-
|
|
46
|
-
.nb-wrap { position: relative; pointer-events: auto; }
|
|
47
|
-
|
|
48
|
-
/* ---- the tab ---- */
|
|
49
|
-
.nb-tab {
|
|
50
|
-
position: relative;
|
|
51
|
-
isolation: isolate;
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
justify-content: space-between;
|
|
55
|
-
width: min(var(--nb-max, 1024px), calc(100vw - 52px));
|
|
56
|
-
height: 60px;
|
|
57
|
-
padding: 0 8px 0 20px;
|
|
58
|
-
}
|
|
59
|
-
.nb-tab[data-compact] {
|
|
60
|
-
--nb-line: rgba(17, 17, 17, 0.09);
|
|
61
|
-
--nb-rim: rgba(255, 255, 255, 0.95);
|
|
62
|
-
}
|
|
63
|
-
.nb-shape {
|
|
64
|
-
position: absolute;
|
|
65
|
-
z-index: -1;
|
|
66
|
-
inset: 0 -18px;
|
|
67
|
-
pointer-events: none;
|
|
68
|
-
}
|
|
69
|
-
.nb-glass,
|
|
70
|
-
.nb-paper,
|
|
71
|
-
.nb-sheen,
|
|
72
|
-
.nb-glint,
|
|
73
|
-
.nb-outline { position: absolute; inset: 0; }
|
|
74
|
-
.nb-outline { overflow: visible; }
|
|
75
|
-
/* Paper sits over the glass while stretched and dissolves away, so the glass
|
|
76
|
-
seems to condense out of it instead of swapping in. */
|
|
77
|
-
.nb-paper {
|
|
78
|
-
background: var(--nb-paper);
|
|
79
|
-
transition: opacity 460ms var(--nb-ease) 120ms;
|
|
80
|
-
}
|
|
81
|
-
.nb-tab[data-compact] .nb-paper {
|
|
82
|
-
opacity: 0;
|
|
83
|
-
transition-delay: 0ms;
|
|
84
|
-
transition-duration: 300ms;
|
|
85
|
-
}
|
|
86
|
-
.nb-glass {
|
|
87
|
-
background-color: var(--nb-glass);
|
|
88
|
-
-webkit-backdrop-filter: blur(14px) saturate(1.7) brightness(1.06);
|
|
89
|
-
backdrop-filter: blur(14px) saturate(1.7) brightness(1.06);
|
|
90
|
-
transition: background-color 420ms var(--nb-ease);
|
|
91
|
-
}
|
|
92
|
-
/* Chromium bends the backdrop through an SVG displacement filter, like the
|
|
93
|
-
edge of a water drop. Everywhere else stays plain frosted glass. */
|
|
94
|
-
.nb-tab[data-compact][data-refract] .nb-glass {
|
|
95
|
-
-webkit-backdrop-filter: url(#nb-refract) blur(5px) saturate(1.7) brightness(1.08);
|
|
96
|
-
backdrop-filter: url(#nb-refract) blur(5px) saturate(1.7) brightness(1.08);
|
|
97
|
-
}
|
|
98
|
-
/* Edges: a hairline just outside the path, a bright rim just inside it */
|
|
99
|
-
.nb-hairline { stroke: var(--nb-line); transition: stroke 420ms var(--nb-ease); }
|
|
100
|
-
.nb-rim { stroke: var(--nb-rim); transition: stroke 420ms var(--nb-ease); }
|
|
101
|
-
/* The shadow lands a beat after the shape: the glass lifts off the page */
|
|
102
|
-
.nb-drop-shadow { opacity: 0; transition: opacity 380ms var(--nb-ease); }
|
|
103
|
-
.nb-drop-contact { fill: rgba(17, 17, 17, 0.07); }
|
|
104
|
-
.nb-drop-ambient { fill: rgba(17, 17, 17, 0.06); }
|
|
105
|
-
.nb-tab[data-compact] .nb-drop-shadow {
|
|
106
|
-
opacity: 1;
|
|
107
|
-
transition: opacity 620ms var(--nb-ease) 160ms;
|
|
108
|
-
}
|
|
109
|
-
/* One specular sweep across the glass as it forms */
|
|
110
|
-
.nb-glint { overflow: hidden; }
|
|
111
|
-
.nb-glint::before {
|
|
112
|
-
content: "";
|
|
113
|
-
position: absolute;
|
|
114
|
-
inset: 0 auto 0 0;
|
|
115
|
-
width: 38%;
|
|
116
|
-
transform: translateX(-110%) skewX(-18deg);
|
|
117
|
-
background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0));
|
|
118
|
-
opacity: 0;
|
|
119
|
-
}
|
|
120
|
-
.nb-tab[data-compact] .nb-glint::before {
|
|
121
|
-
animation: nb-glint 1050ms cubic-bezier(0.35, 0, 0.15, 1) 180ms both;
|
|
122
|
-
}
|
|
123
|
-
@keyframes nb-glint {
|
|
124
|
-
0% { transform: translateX(-110%) skewX(-18deg); opacity: 0; }
|
|
125
|
-
18% { opacity: 1; }
|
|
126
|
-
80% { opacity: 1; }
|
|
127
|
-
100% { transform: translateX(300%) skewX(-18deg); opacity: 0; }
|
|
128
|
-
}
|
|
129
|
-
/* Light: a soft top-down falloff, and a highlight that follows the cursor */
|
|
130
|
-
.nb-sheen {
|
|
131
|
-
opacity: 0;
|
|
132
|
-
background:
|
|
133
|
-
radial-gradient(140px circle at var(--nb-mx, 50%) var(--nb-my, 50%), rgba(255, 255, 255, 0.55), transparent 70%),
|
|
134
|
-
linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.35));
|
|
135
|
-
transition: opacity 420ms var(--nb-ease);
|
|
136
|
-
}
|
|
137
|
-
.nb-tab[data-compact] .nb-sheen { opacity: 0.6; }
|
|
138
|
-
@media (hover: hover) {
|
|
139
|
-
.nb-tab[data-compact]:hover .nb-sheen { opacity: 1; }
|
|
140
|
-
}
|
|
141
|
-
@media (prefers-reduced-motion: reduce) {
|
|
142
|
-
.nb-tab[data-compact] .nb-glint::before { animation: none; }
|
|
143
|
-
}
|
|
144
|
-
@media (prefers-reduced-transparency: reduce) {
|
|
145
|
-
.nb-tab[data-compact] { --nb-glass: #f7f7f5; }
|
|
146
|
-
.nb-tab[data-compact] .nb-glint::before { animation: none; }
|
|
147
|
-
.nb-tab[data-compact][data-refract] .nb-glass {
|
|
148
|
-
-webkit-backdrop-filter: none;
|
|
149
|
-
backdrop-filter: none;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/* ---- contents of the tab ---- */
|
|
154
|
-
.nb-brand { flex-shrink: 0; }
|
|
155
|
-
.nb-brand-link {
|
|
156
|
-
display: flex;
|
|
157
|
-
align-items: center;
|
|
158
|
-
gap: 8px;
|
|
159
|
-
font-size: 15px;
|
|
160
|
-
font-weight: 600;
|
|
161
|
-
letter-spacing: -0.02em;
|
|
162
|
-
}
|
|
163
|
-
.nb-brand-name { white-space: nowrap; }
|
|
164
|
-
@media (max-width: 639px) {
|
|
165
|
-
.nb-brand-name { display: none; }
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.nb-list {
|
|
169
|
-
display: none;
|
|
170
|
-
flex-shrink: 0;
|
|
171
|
-
align-items: center;
|
|
172
|
-
transform-origin: center;
|
|
173
|
-
font-size: 14px;
|
|
174
|
-
color: var(--nb-link);
|
|
175
|
-
}
|
|
176
|
-
@media (min-width: 768px) {
|
|
177
|
-
.nb-list { display: flex; }
|
|
178
|
-
}
|
|
179
|
-
.nb-item {
|
|
180
|
-
position: relative;
|
|
181
|
-
display: flex;
|
|
182
|
-
align-items: center;
|
|
183
|
-
gap: 4px;
|
|
184
|
-
height: 36px;
|
|
185
|
-
padding: 0 12px;
|
|
186
|
-
transition: color 150ms;
|
|
187
|
-
}
|
|
188
|
-
.nb-item:hover,
|
|
189
|
-
.nb-item[data-active] { color: var(--nb-ink); }
|
|
190
|
-
.nb-item:focus-visible { outline: 2px solid var(--nb-ink); outline-offset: 2px; border-radius: 10px; }
|
|
191
|
-
.nb-stroke {
|
|
192
|
-
position: absolute;
|
|
193
|
-
left: 10px;
|
|
194
|
-
bottom: 2px;
|
|
195
|
-
width: calc(100% - 20px);
|
|
196
|
-
height: 7px;
|
|
197
|
-
overflow: visible;
|
|
198
|
-
pointer-events: none;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.nb-right { display: flex; flex-shrink: 0; align-items: center; gap: 6px; }
|
|
202
|
-
.nb-burger {
|
|
203
|
-
display: grid;
|
|
204
|
-
place-items: center;
|
|
205
|
-
width: 40px;
|
|
206
|
-
height: 40px;
|
|
207
|
-
border-radius: 999px;
|
|
208
|
-
color: var(--nb-ink);
|
|
209
|
-
}
|
|
210
|
-
@media (min-width: 768px) {
|
|
211
|
-
.nb-burger { display: none; }
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/* Spotlight: point at one item and the rest step back. Dimming is quick;
|
|
215
|
-
coming back waits a beat, so sweeping across a row never flashes everything
|
|
216
|
-
back to full ink in between. It dims the item's content, not the item, so
|
|
217
|
-
entrance animations that leave an inline opacity on the item never fight it. */
|
|
218
|
-
.nb-spot-item > * { transition: opacity 260ms var(--nb-ease) 70ms; }
|
|
219
|
-
.nb-spot:has(.nb-spot-item:hover) .nb-spot-item:not(:hover) > *,
|
|
220
|
-
.nb-spot:has(.nb-spot-item :focus-visible) .nb-spot-item:not(:has(:focus-visible)) > * {
|
|
221
|
-
opacity: 0.36;
|
|
222
|
-
transition-duration: 140ms;
|
|
223
|
-
transition-delay: 0ms;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/* ---- the panel under the tab ---- */
|
|
227
|
-
.nb-drop {
|
|
228
|
-
position: absolute;
|
|
229
|
-
left: 50%;
|
|
230
|
-
top: 100%;
|
|
231
|
-
display: none;
|
|
232
|
-
padding-top: 12px;
|
|
233
|
-
translate: -50% 0;
|
|
234
|
-
}
|
|
235
|
-
@media (min-width: 768px) {
|
|
236
|
-
.nb-drop { display: block; }
|
|
237
|
-
}
|
|
238
|
-
.nb-panel {
|
|
239
|
-
position: relative;
|
|
240
|
-
overflow: hidden;
|
|
241
|
-
border-radius: 22px;
|
|
242
|
-
background: #fff;
|
|
243
|
-
color: var(--nb-ink);
|
|
244
|
-
box-shadow:
|
|
245
|
-
inset 0 0 0 1px rgba(17, 17, 17, 0.07),
|
|
246
|
-
0 2px 4px rgba(17, 17, 17, 0.04),
|
|
247
|
-
0 24px 48px -12px rgba(17, 17, 17, 0.22);
|
|
248
|
-
}
|
|
249
|
-
.nb-panel-inner { width: max-content; }
|
|
250
|
-
|
|
251
|
-
.nb-mono {
|
|
252
|
-
font-family: var(--nb-font-mono);
|
|
253
|
-
font-size: 12px;
|
|
254
|
-
line-height: 1.4;
|
|
255
|
-
letter-spacing: -0.01em;
|
|
256
|
-
color: var(--nb-muted);
|
|
257
|
-
}
|
|
258
|
-
.nb-marker {
|
|
259
|
-
font-family: var(--nb-font-marker);
|
|
260
|
-
line-height: 1.05;
|
|
261
|
-
letter-spacing: 0;
|
|
262
|
-
color: var(--nb-accent);
|
|
263
|
-
}
|
|
264
|
-
.nb-truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
265
|
-
|
|
266
|
-
.nb-ph { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 20px 4px; }
|
|
267
|
-
.nb-ph-aside { color: #b5b5b0; }
|
|
268
|
-
|
|
269
|
-
.nb-row { display: flex; align-items: center; }
|
|
270
|
-
.nb-row:focus-visible { outline: 2px solid var(--nb-ink); outline-offset: -2px; }
|
|
271
|
-
/* The row's arrow slides in from the left as the row is chosen */
|
|
272
|
-
.nb-row-arrow {
|
|
273
|
-
flex-shrink: 0;
|
|
274
|
-
color: var(--nb-ink);
|
|
275
|
-
opacity: 0;
|
|
276
|
-
transform: translateX(-5px);
|
|
277
|
-
transition: opacity 160ms ease, transform 260ms var(--nb-spring);
|
|
278
|
-
}
|
|
279
|
-
.nb-row:hover .nb-row-arrow,
|
|
280
|
-
.nb-row:focus-visible .nb-row-arrow { opacity: 1; transform: none; }
|
|
281
|
-
|
|
282
|
-
.nb-rows { padding: 0 8px 8px; }
|
|
283
|
-
.nb-row--wide { gap: 12px; padding: 11px 12px; border-radius: 12px; }
|
|
284
|
-
.nb-row-title {
|
|
285
|
-
display: flex;
|
|
286
|
-
min-width: 0;
|
|
287
|
-
align-items: center;
|
|
288
|
-
gap: 10px;
|
|
289
|
-
font-size: 15px;
|
|
290
|
-
font-weight: 500;
|
|
291
|
-
letter-spacing: -0.01em;
|
|
292
|
-
}
|
|
293
|
-
.nb-row-meta { margin-left: auto; flex-shrink: 0; white-space: nowrap; font-size: 13px; color: var(--nb-muted); }
|
|
294
|
-
|
|
295
|
-
.nb-cards { padding: 8px; }
|
|
296
|
-
.nb-card { gap: 12px; padding: 8px; border-radius: 14px; }
|
|
297
|
-
.nb-card .nb-row-arrow { margin-left: auto; }
|
|
298
|
-
.nb-glyph {
|
|
299
|
-
display: grid;
|
|
300
|
-
flex-shrink: 0;
|
|
301
|
-
place-items: center;
|
|
302
|
-
width: 36px;
|
|
303
|
-
height: 36px;
|
|
304
|
-
border-radius: 10px;
|
|
305
|
-
background: #f2f2f0;
|
|
306
|
-
color: var(--nb-ink);
|
|
307
|
-
transition: transform 300ms var(--nb-spring), background-color 200ms ease;
|
|
308
|
-
}
|
|
309
|
-
.nb-row:hover .nb-glyph { transform: rotate(-6deg) scale(1.06); background-color: #ebebe8; }
|
|
310
|
-
.nb-card-copy { min-width: 0; }
|
|
311
|
-
.nb-card-title { display: block; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
|
|
312
|
-
.nb-card-text { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--nb-muted); }
|
|
313
|
-
|
|
314
|
-
.nb-grid-wrap { padding: 12px 8px; }
|
|
315
|
-
.nb-grid-title { padding: 4px 12px 6px; }
|
|
316
|
-
.nb-grid { display: grid; grid-template-columns: 1fr 1fr; }
|
|
317
|
-
.nb-grid-link { gap: 4px; padding: 7px 10px; border-radius: 10px; font-size: 13px; }
|
|
318
|
-
|
|
319
|
-
.nb-split { display: grid; }
|
|
320
|
-
.nb-split-right { border-left: 1px solid #efefec; }
|
|
321
|
-
|
|
322
|
-
.nb-pf {
|
|
323
|
-
display: flex;
|
|
324
|
-
align-items: center;
|
|
325
|
-
justify-content: space-between;
|
|
326
|
-
gap: 16px;
|
|
327
|
-
padding: 14px 20px;
|
|
328
|
-
border-top: 1px solid #efefec;
|
|
329
|
-
background: #fafaf9;
|
|
330
|
-
font-size: 13px;
|
|
331
|
-
color: var(--nb-link);
|
|
332
|
-
}
|
|
333
|
-
/* An underline that draws from the left */
|
|
334
|
-
.nb-link {
|
|
335
|
-
flex-shrink: 0;
|
|
336
|
-
padding-bottom: 2px;
|
|
337
|
-
font-weight: 500;
|
|
338
|
-
color: var(--nb-ink);
|
|
339
|
-
background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
|
|
340
|
-
transition: background-size 240ms var(--nb-ease), color 120ms;
|
|
341
|
-
}
|
|
342
|
-
.nb-link:hover { background-size: 100% 1px; }
|
|
343
|
-
|
|
344
|
-
.nb-new {
|
|
345
|
-
position: relative;
|
|
346
|
-
display: inline-block;
|
|
347
|
-
flex-shrink: 0;
|
|
348
|
-
padding: 0 6px;
|
|
349
|
-
font-size: 16px;
|
|
350
|
-
line-height: 1;
|
|
351
|
-
}
|
|
352
|
-
.nb-new > .nb-marker { position: relative; }
|
|
353
|
-
.nb-new-ring {
|
|
354
|
-
position: absolute;
|
|
355
|
-
left: -4px;
|
|
356
|
-
top: -7px;
|
|
357
|
-
width: calc(100% + 8px);
|
|
358
|
-
height: calc(100% + 14px);
|
|
359
|
-
overflow: visible;
|
|
360
|
-
pointer-events: none;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
/* ---- mobile ---- */
|
|
364
|
-
.nb-mobile { position: fixed; left: 12px; right: 12px; top: 72px; }
|
|
365
|
-
@media (min-width: 768px) {
|
|
366
|
-
.nb-mobile { display: none; }
|
|
367
|
-
}
|
|
368
|
-
.nb-mpanel {
|
|
369
|
-
max-height: calc(100dvh - 96px);
|
|
370
|
-
overflow-y: auto;
|
|
371
|
-
padding: 8px;
|
|
372
|
-
border-radius: 22px;
|
|
373
|
-
background: #fff;
|
|
374
|
-
box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.07), 0 24px 48px -12px rgba(17, 17, 17, 0.25);
|
|
375
|
-
}
|
|
376
|
-
.nb-mhead { padding: 8px 12px 4px; }
|
|
377
|
-
.nb-mrow {
|
|
378
|
-
display: flex;
|
|
379
|
-
align-items: center;
|
|
380
|
-
justify-content: space-between;
|
|
381
|
-
gap: 12px;
|
|
382
|
-
padding: 10px 12px;
|
|
383
|
-
border-radius: 14px;
|
|
384
|
-
font-size: 15px;
|
|
385
|
-
}
|
|
386
|
-
.nb-mrow:active { background: #f5f5f3; }
|
|
387
|
-
.nb-mrow--strong { font-weight: 500; }
|
|
388
|
-
.nb-mrow-title { display: flex; min-width: 0; align-items: center; gap: 8px; font-weight: 500; }
|
|
389
|
-
.nb-mrow-meta { flex-shrink: 0; font-size: 13px; color: var(--nb-muted); }
|
|
390
|
-
.nb-mbadge { flex-shrink: 0; font-size: 15px; }
|
|
391
|
-
.nb-mdivider { height: 1px; margin: 8px 0; background: #efefec; }
|
|
392
|
-
|
|
393
|
-
/* ---- the call to action ---- */
|
|
394
|
-
.nb-cta {
|
|
395
|
-
position: relative;
|
|
396
|
-
isolation: isolate;
|
|
397
|
-
display: inline-flex;
|
|
398
|
-
align-items: center;
|
|
399
|
-
gap: 10px;
|
|
400
|
-
height: 40px;
|
|
401
|
-
padding: 0 4px 0 16px;
|
|
402
|
-
overflow: hidden;
|
|
403
|
-
border-radius: 999px;
|
|
404
|
-
font-size: 14px;
|
|
405
|
-
font-weight: 500;
|
|
406
|
-
letter-spacing: -0.01em;
|
|
407
|
-
white-space: nowrap;
|
|
408
|
-
background: linear-gradient(180deg, #2b2b2b 0%, #111 100%);
|
|
409
|
-
box-shadow:
|
|
410
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.16),
|
|
411
|
-
inset 0 -1px 0 rgba(0, 0, 0, 0.4),
|
|
412
|
-
0 1px 2px rgba(0, 0, 0, 0.24),
|
|
413
|
-
0 6px 16px -4px rgba(0, 0, 0, 0.28);
|
|
414
|
-
transition: transform 260ms var(--nb-ease), box-shadow 260ms var(--nb-ease);
|
|
415
|
-
}
|
|
416
|
-
.nb-cta, .nb-cta:hover { color: #fff; }
|
|
417
|
-
.nb-cta:focus-visible { outline: 2px solid var(--nb-ink); outline-offset: 2px; }
|
|
418
|
-
/* A highlight that crosses the gloss on hover */
|
|
419
|
-
.nb-cta::after {
|
|
420
|
-
content: "";
|
|
421
|
-
position: absolute;
|
|
422
|
-
inset: 0;
|
|
423
|
-
z-index: 0;
|
|
424
|
-
pointer-events: none;
|
|
425
|
-
background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
|
|
426
|
-
transform: translateX(-110%);
|
|
427
|
-
}
|
|
428
|
-
.nb-cta-label,
|
|
429
|
-
.nb-cta-chip { position: relative; z-index: 1; }
|
|
430
|
-
/* Each letter is two stacked copies; hover rolls them up in a wave */
|
|
431
|
-
.nb-cta-label { display: inline-flex; }
|
|
432
|
-
.nb-cta-char { display: inline-block; height: 1.25em; line-height: 1.25em; overflow: hidden; }
|
|
433
|
-
.nb-cta-char > span {
|
|
434
|
-
display: block;
|
|
435
|
-
transition: transform 420ms cubic-bezier(0.65, 0, 0.35, 1);
|
|
436
|
-
transition-delay: calc(var(--i) * 11ms);
|
|
437
|
-
}
|
|
438
|
-
.nb-cta-chip {
|
|
439
|
-
display: grid;
|
|
440
|
-
place-items: center;
|
|
441
|
-
width: 32px;
|
|
442
|
-
height: 32px;
|
|
443
|
-
border-radius: 999px;
|
|
444
|
-
background: linear-gradient(180deg, #ffffff 0%, #ececea 100%);
|
|
445
|
-
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.4);
|
|
446
|
-
transition: transform 420ms var(--nb-spring);
|
|
447
|
-
}
|
|
448
|
-
.nb-cta-dot {
|
|
449
|
-
fill: var(--nb-accent);
|
|
450
|
-
transform-box: fill-box;
|
|
451
|
-
transform-origin: center;
|
|
452
|
-
animation: nb-breathe 2.6s ease-in-out infinite;
|
|
453
|
-
transition: transform 220ms var(--nb-ease);
|
|
454
|
-
}
|
|
455
|
-
@keyframes nb-breathe {
|
|
456
|
-
0%, 100% { scale: 1; opacity: 1; }
|
|
457
|
-
50% { scale: 0.72; opacity: 0.75; }
|
|
458
|
-
}
|
|
459
|
-
.nb-cta-arrow {
|
|
460
|
-
fill: none;
|
|
461
|
-
stroke: #111;
|
|
462
|
-
stroke-width: 1.7;
|
|
463
|
-
stroke-linecap: round;
|
|
464
|
-
stroke-linejoin: round;
|
|
465
|
-
stroke-dasharray: 1;
|
|
466
|
-
stroke-dashoffset: 1;
|
|
467
|
-
transition: stroke-dashoffset 200ms var(--nb-ease);
|
|
468
|
-
}
|
|
469
|
-
@media (hover: hover) {
|
|
470
|
-
.nb-cta:hover {
|
|
471
|
-
transform: translate3d(0, -1px, 0);
|
|
472
|
-
box-shadow:
|
|
473
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.2),
|
|
474
|
-
inset 0 -1px 0 rgba(0, 0, 0, 0.4),
|
|
475
|
-
0 2px 4px rgba(0, 0, 0, 0.24),
|
|
476
|
-
0 10px 22px -6px rgba(0, 0, 0, 0.34);
|
|
477
|
-
}
|
|
478
|
-
.nb-cta:hover::after { transform: translateX(110%); transition: transform 750ms cubic-bezier(0.3, 0, 0.2, 1); }
|
|
479
|
-
.nb-cta:hover .nb-cta-char > span { transform: translateY(-100%); }
|
|
480
|
-
.nb-cta:hover .nb-cta-chip { transform: translateX(1px) scale(1.06); }
|
|
481
|
-
.nb-cta:hover .nb-cta-dot { transform: scale(0); }
|
|
482
|
-
.nb-cta:hover .nb-cta-arrow { stroke-dashoffset: 0; transition: stroke-dashoffset 380ms cubic-bezier(0.65, 0, 0.35, 1) 90ms; }
|
|
483
|
-
}
|
|
484
|
-
.nb-cta:focus-visible .nb-cta-dot { transform: scale(0); }
|
|
485
|
-
.nb-cta:focus-visible .nb-cta-arrow { stroke-dashoffset: 0; }
|
|
486
|
-
.nb-cta:active { transform: scale(0.97); transition-duration: 90ms; }
|
|
487
|
-
.nb-cta:active .nb-cta-chip { transform: scale(0.88); transition-duration: 120ms; }
|
|
488
|
-
|
|
489
|
-
/* ---- the default mark ---- */
|
|
490
|
-
.nb-mark {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
place-items: center;
|
|
494
|
-
width:
|
|
495
|
-
height:
|
|
496
|
-
border-radius:
|
|
497
|
-
background: #
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
.nb-mark
|
|
501
|
-
|
|
502
|
-
@media (prefers-reduced-motion: reduce) {
|
|
503
|
-
.nb-row-arrow, .nb-glyph { transition: opacity 120ms ease; }
|
|
504
|
-
.nb-row:hover .nb-glyph { transform: none; }
|
|
505
|
-
.nb-cta, .nb-cta-chip, .nb-cta-char > span, .nb-cta-dot { transition: none; }
|
|
506
|
-
.nb-cta-dot { animation: none; }
|
|
507
|
-
.nb-cta::after { display: none; }
|
|
508
|
-
.nb-cta:hover, .nb-cta:active, .nb-cta:hover .nb-cta-chip, .nb-cta:hover .nb-cta-char > span { transform: none; }
|
|
509
|
-
.nb-cta-arrow, .nb-cta:hover .nb-cta-arrow { transition: stroke-dashoffset 120ms linear; }
|
|
510
|
-
}
|
|
1
|
+
/* notchbar
|
|
2
|
+
A tab hanging from the top edge of the page. Stretched: quiet paper.
|
|
3
|
+
Condensed: liquid glass. The whole tab, shoulders included, is one path
|
|
4
|
+
re-traced from its live size; fill layers are clipped to it, and the
|
|
5
|
+
hairline, inner rim and drop shadow are strokes and fills of the same path.
|
|
6
|
+
|
|
7
|
+
Theme it with custom properties on .nb (or any ancestor):
|
|
8
|
+
--nb-accent marker colour (set from the accent prop)
|
|
9
|
+
--nb-ink text colour
|
|
10
|
+
--nb-muted secondary text
|
|
11
|
+
--nb-paper the stretched tab's tone
|
|
12
|
+
--nb-glass the condensed glass tint
|
|
13
|
+
--nb-font-mono the small panel headings
|
|
14
|
+
--nb-font-marker handwriting for "New" marks */
|
|
15
|
+
|
|
16
|
+
.nb {
|
|
17
|
+
--nb-ink: #111;
|
|
18
|
+
--nb-muted: #8f8f8a;
|
|
19
|
+
--nb-link: #5c5c5c;
|
|
20
|
+
--nb-paper: #efefec;
|
|
21
|
+
--nb-glass: rgba(255, 255, 255, 0.42);
|
|
22
|
+
--nb-line: rgba(17, 17, 17, 0.05);
|
|
23
|
+
--nb-rim: rgba(255, 255, 255, 0);
|
|
24
|
+
--nb-ease: cubic-bezier(0.22, 1, 0.36, 1);
|
|
25
|
+
--nb-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
26
|
+
--nb-font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
|
|
27
|
+
--nb-font-marker: "Gochi Hand", "Comic Sans MS", cursive;
|
|
28
|
+
|
|
29
|
+
position: fixed;
|
|
30
|
+
inset: 0 0 auto 0;
|
|
31
|
+
z-index: 50;
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
color: var(--nb-ink);
|
|
36
|
+
}
|
|
37
|
+
/* Resets carry no weight, so every class below wins over them */
|
|
38
|
+
:where(.nb) *,
|
|
39
|
+
:where(.nb) *::before,
|
|
40
|
+
:where(.nb) *::after { box-sizing: border-box; }
|
|
41
|
+
:where(.nb) a { color: inherit; text-decoration: none; }
|
|
42
|
+
:where(.nb) p { margin: 0; }
|
|
43
|
+
:where(.nb) ul { margin: 0; padding: 0; list-style: none; }
|
|
44
|
+
:where(.nb) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
|
|
45
|
+
|
|
46
|
+
.nb-wrap { position: relative; pointer-events: auto; }
|
|
47
|
+
|
|
48
|
+
/* ---- the tab ---- */
|
|
49
|
+
.nb-tab {
|
|
50
|
+
position: relative;
|
|
51
|
+
isolation: isolate;
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
width: min(var(--nb-max, 1024px), calc(100vw - 52px));
|
|
56
|
+
height: 60px;
|
|
57
|
+
padding: 0 8px 0 20px;
|
|
58
|
+
}
|
|
59
|
+
.nb-tab[data-compact] {
|
|
60
|
+
--nb-line: rgba(17, 17, 17, 0.09);
|
|
61
|
+
--nb-rim: rgba(255, 255, 255, 0.95);
|
|
62
|
+
}
|
|
63
|
+
.nb-shape {
|
|
64
|
+
position: absolute;
|
|
65
|
+
z-index: -1;
|
|
66
|
+
inset: 0 -18px;
|
|
67
|
+
pointer-events: none;
|
|
68
|
+
}
|
|
69
|
+
.nb-glass,
|
|
70
|
+
.nb-paper,
|
|
71
|
+
.nb-sheen,
|
|
72
|
+
.nb-glint,
|
|
73
|
+
.nb-outline { position: absolute; inset: 0; }
|
|
74
|
+
.nb-outline { overflow: visible; }
|
|
75
|
+
/* Paper sits over the glass while stretched and dissolves away, so the glass
|
|
76
|
+
seems to condense out of it instead of swapping in. */
|
|
77
|
+
.nb-paper {
|
|
78
|
+
background: var(--nb-paper);
|
|
79
|
+
transition: opacity 460ms var(--nb-ease) 120ms;
|
|
80
|
+
}
|
|
81
|
+
.nb-tab[data-compact] .nb-paper {
|
|
82
|
+
opacity: 0;
|
|
83
|
+
transition-delay: 0ms;
|
|
84
|
+
transition-duration: 300ms;
|
|
85
|
+
}
|
|
86
|
+
.nb-glass {
|
|
87
|
+
background-color: var(--nb-glass);
|
|
88
|
+
-webkit-backdrop-filter: blur(14px) saturate(1.7) brightness(1.06);
|
|
89
|
+
backdrop-filter: blur(14px) saturate(1.7) brightness(1.06);
|
|
90
|
+
transition: background-color 420ms var(--nb-ease);
|
|
91
|
+
}
|
|
92
|
+
/* Chromium bends the backdrop through an SVG displacement filter, like the
|
|
93
|
+
edge of a water drop. Everywhere else stays plain frosted glass. */
|
|
94
|
+
.nb-tab[data-compact][data-refract] .nb-glass {
|
|
95
|
+
-webkit-backdrop-filter: url(#nb-refract) blur(5px) saturate(1.7) brightness(1.08);
|
|
96
|
+
backdrop-filter: url(#nb-refract) blur(5px) saturate(1.7) brightness(1.08);
|
|
97
|
+
}
|
|
98
|
+
/* Edges: a hairline just outside the path, a bright rim just inside it */
|
|
99
|
+
.nb-hairline { stroke: var(--nb-line); transition: stroke 420ms var(--nb-ease); }
|
|
100
|
+
.nb-rim { stroke: var(--nb-rim); transition: stroke 420ms var(--nb-ease); }
|
|
101
|
+
/* The shadow lands a beat after the shape: the glass lifts off the page */
|
|
102
|
+
.nb-drop-shadow { opacity: 0; transition: opacity 380ms var(--nb-ease); }
|
|
103
|
+
.nb-drop-contact { fill: rgba(17, 17, 17, 0.07); }
|
|
104
|
+
.nb-drop-ambient { fill: rgba(17, 17, 17, 0.06); }
|
|
105
|
+
.nb-tab[data-compact] .nb-drop-shadow {
|
|
106
|
+
opacity: 1;
|
|
107
|
+
transition: opacity 620ms var(--nb-ease) 160ms;
|
|
108
|
+
}
|
|
109
|
+
/* One specular sweep across the glass as it forms */
|
|
110
|
+
.nb-glint { overflow: hidden; }
|
|
111
|
+
.nb-glint::before {
|
|
112
|
+
content: "";
|
|
113
|
+
position: absolute;
|
|
114
|
+
inset: 0 auto 0 0;
|
|
115
|
+
width: 38%;
|
|
116
|
+
transform: translateX(-110%) skewX(-18deg);
|
|
117
|
+
background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0));
|
|
118
|
+
opacity: 0;
|
|
119
|
+
}
|
|
120
|
+
.nb-tab[data-compact] .nb-glint::before {
|
|
121
|
+
animation: nb-glint 1050ms cubic-bezier(0.35, 0, 0.15, 1) 180ms both;
|
|
122
|
+
}
|
|
123
|
+
@keyframes nb-glint {
|
|
124
|
+
0% { transform: translateX(-110%) skewX(-18deg); opacity: 0; }
|
|
125
|
+
18% { opacity: 1; }
|
|
126
|
+
80% { opacity: 1; }
|
|
127
|
+
100% { transform: translateX(300%) skewX(-18deg); opacity: 0; }
|
|
128
|
+
}
|
|
129
|
+
/* Light: a soft top-down falloff, and a highlight that follows the cursor */
|
|
130
|
+
.nb-sheen {
|
|
131
|
+
opacity: 0;
|
|
132
|
+
background:
|
|
133
|
+
radial-gradient(140px circle at var(--nb-mx, 50%) var(--nb-my, 50%), rgba(255, 255, 255, 0.55), transparent 70%),
|
|
134
|
+
linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.35));
|
|
135
|
+
transition: opacity 420ms var(--nb-ease);
|
|
136
|
+
}
|
|
137
|
+
.nb-tab[data-compact] .nb-sheen { opacity: 0.6; }
|
|
138
|
+
@media (hover: hover) {
|
|
139
|
+
.nb-tab[data-compact]:hover .nb-sheen { opacity: 1; }
|
|
140
|
+
}
|
|
141
|
+
@media (prefers-reduced-motion: reduce) {
|
|
142
|
+
.nb-tab[data-compact] .nb-glint::before { animation: none; }
|
|
143
|
+
}
|
|
144
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
145
|
+
.nb-tab[data-compact] { --nb-glass: #f7f7f5; }
|
|
146
|
+
.nb-tab[data-compact] .nb-glint::before { animation: none; }
|
|
147
|
+
.nb-tab[data-compact][data-refract] .nb-glass {
|
|
148
|
+
-webkit-backdrop-filter: none;
|
|
149
|
+
backdrop-filter: none;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* ---- contents of the tab ---- */
|
|
154
|
+
.nb-brand { flex-shrink: 0; }
|
|
155
|
+
.nb-brand-link {
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
gap: 8px;
|
|
159
|
+
font-size: 15px;
|
|
160
|
+
font-weight: 600;
|
|
161
|
+
letter-spacing: -0.02em;
|
|
162
|
+
}
|
|
163
|
+
.nb-brand-name { white-space: nowrap; }
|
|
164
|
+
@media (max-width: 639px) {
|
|
165
|
+
.nb-brand-name { display: none; }
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.nb-list {
|
|
169
|
+
display: none;
|
|
170
|
+
flex-shrink: 0;
|
|
171
|
+
align-items: center;
|
|
172
|
+
transform-origin: center;
|
|
173
|
+
font-size: 14px;
|
|
174
|
+
color: var(--nb-link);
|
|
175
|
+
}
|
|
176
|
+
@media (min-width: 768px) {
|
|
177
|
+
.nb-list { display: flex; }
|
|
178
|
+
}
|
|
179
|
+
.nb-item {
|
|
180
|
+
position: relative;
|
|
181
|
+
display: flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
gap: 4px;
|
|
184
|
+
height: 36px;
|
|
185
|
+
padding: 0 12px;
|
|
186
|
+
transition: color 150ms;
|
|
187
|
+
}
|
|
188
|
+
.nb-item:hover,
|
|
189
|
+
.nb-item[data-active] { color: var(--nb-ink); }
|
|
190
|
+
.nb-item:focus-visible { outline: 2px solid var(--nb-ink); outline-offset: 2px; border-radius: 10px; }
|
|
191
|
+
.nb-stroke {
|
|
192
|
+
position: absolute;
|
|
193
|
+
left: 10px;
|
|
194
|
+
bottom: 2px;
|
|
195
|
+
width: calc(100% - 20px);
|
|
196
|
+
height: 7px;
|
|
197
|
+
overflow: visible;
|
|
198
|
+
pointer-events: none;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.nb-right { display: flex; flex-shrink: 0; align-items: center; gap: 6px; }
|
|
202
|
+
.nb-burger {
|
|
203
|
+
display: grid;
|
|
204
|
+
place-items: center;
|
|
205
|
+
width: 40px;
|
|
206
|
+
height: 40px;
|
|
207
|
+
border-radius: 999px;
|
|
208
|
+
color: var(--nb-ink);
|
|
209
|
+
}
|
|
210
|
+
@media (min-width: 768px) {
|
|
211
|
+
.nb-burger { display: none; }
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* Spotlight: point at one item and the rest step back. Dimming is quick;
|
|
215
|
+
coming back waits a beat, so sweeping across a row never flashes everything
|
|
216
|
+
back to full ink in between. It dims the item's content, not the item, so
|
|
217
|
+
entrance animations that leave an inline opacity on the item never fight it. */
|
|
218
|
+
.nb-spot-item > * { transition: opacity 260ms var(--nb-ease) 70ms; }
|
|
219
|
+
.nb-spot:has(.nb-spot-item:hover) .nb-spot-item:not(:hover) > *,
|
|
220
|
+
.nb-spot:has(.nb-spot-item :focus-visible) .nb-spot-item:not(:has(:focus-visible)) > * {
|
|
221
|
+
opacity: 0.36;
|
|
222
|
+
transition-duration: 140ms;
|
|
223
|
+
transition-delay: 0ms;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* ---- the panel under the tab ---- */
|
|
227
|
+
.nb-drop {
|
|
228
|
+
position: absolute;
|
|
229
|
+
left: 50%;
|
|
230
|
+
top: 100%;
|
|
231
|
+
display: none;
|
|
232
|
+
padding-top: 12px;
|
|
233
|
+
translate: -50% 0;
|
|
234
|
+
}
|
|
235
|
+
@media (min-width: 768px) {
|
|
236
|
+
.nb-drop { display: block; }
|
|
237
|
+
}
|
|
238
|
+
.nb-panel {
|
|
239
|
+
position: relative;
|
|
240
|
+
overflow: hidden;
|
|
241
|
+
border-radius: 22px;
|
|
242
|
+
background: #fff;
|
|
243
|
+
color: var(--nb-ink);
|
|
244
|
+
box-shadow:
|
|
245
|
+
inset 0 0 0 1px rgba(17, 17, 17, 0.07),
|
|
246
|
+
0 2px 4px rgba(17, 17, 17, 0.04),
|
|
247
|
+
0 24px 48px -12px rgba(17, 17, 17, 0.22);
|
|
248
|
+
}
|
|
249
|
+
.nb-panel-inner { width: max-content; }
|
|
250
|
+
|
|
251
|
+
.nb-mono {
|
|
252
|
+
font-family: var(--nb-font-mono);
|
|
253
|
+
font-size: 12px;
|
|
254
|
+
line-height: 1.4;
|
|
255
|
+
letter-spacing: -0.01em;
|
|
256
|
+
color: var(--nb-muted);
|
|
257
|
+
}
|
|
258
|
+
.nb-marker {
|
|
259
|
+
font-family: var(--nb-font-marker);
|
|
260
|
+
line-height: 1.05;
|
|
261
|
+
letter-spacing: 0;
|
|
262
|
+
color: var(--nb-accent);
|
|
263
|
+
}
|
|
264
|
+
.nb-truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
265
|
+
|
|
266
|
+
.nb-ph { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 20px 4px; }
|
|
267
|
+
.nb-ph-aside { color: #b5b5b0; }
|
|
268
|
+
|
|
269
|
+
.nb-row { display: flex; align-items: center; }
|
|
270
|
+
.nb-row:focus-visible { outline: 2px solid var(--nb-ink); outline-offset: -2px; }
|
|
271
|
+
/* The row's arrow slides in from the left as the row is chosen */
|
|
272
|
+
.nb-row-arrow {
|
|
273
|
+
flex-shrink: 0;
|
|
274
|
+
color: var(--nb-ink);
|
|
275
|
+
opacity: 0;
|
|
276
|
+
transform: translateX(-5px);
|
|
277
|
+
transition: opacity 160ms ease, transform 260ms var(--nb-spring);
|
|
278
|
+
}
|
|
279
|
+
.nb-row:hover .nb-row-arrow,
|
|
280
|
+
.nb-row:focus-visible .nb-row-arrow { opacity: 1; transform: none; }
|
|
281
|
+
|
|
282
|
+
.nb-rows { padding: 0 8px 8px; }
|
|
283
|
+
.nb-row--wide { gap: 12px; padding: 11px 12px; border-radius: 12px; }
|
|
284
|
+
.nb-row-title {
|
|
285
|
+
display: flex;
|
|
286
|
+
min-width: 0;
|
|
287
|
+
align-items: center;
|
|
288
|
+
gap: 10px;
|
|
289
|
+
font-size: 15px;
|
|
290
|
+
font-weight: 500;
|
|
291
|
+
letter-spacing: -0.01em;
|
|
292
|
+
}
|
|
293
|
+
.nb-row-meta { margin-left: auto; flex-shrink: 0; white-space: nowrap; font-size: 13px; color: var(--nb-muted); }
|
|
294
|
+
|
|
295
|
+
.nb-cards { padding: 8px; }
|
|
296
|
+
.nb-card { gap: 12px; padding: 8px; border-radius: 14px; }
|
|
297
|
+
.nb-card .nb-row-arrow { margin-left: auto; }
|
|
298
|
+
.nb-glyph {
|
|
299
|
+
display: grid;
|
|
300
|
+
flex-shrink: 0;
|
|
301
|
+
place-items: center;
|
|
302
|
+
width: 36px;
|
|
303
|
+
height: 36px;
|
|
304
|
+
border-radius: 10px;
|
|
305
|
+
background: #f2f2f0;
|
|
306
|
+
color: var(--nb-ink);
|
|
307
|
+
transition: transform 300ms var(--nb-spring), background-color 200ms ease;
|
|
308
|
+
}
|
|
309
|
+
.nb-row:hover .nb-glyph { transform: rotate(-6deg) scale(1.06); background-color: #ebebe8; }
|
|
310
|
+
.nb-card-copy { min-width: 0; }
|
|
311
|
+
.nb-card-title { display: block; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
|
|
312
|
+
.nb-card-text { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--nb-muted); }
|
|
313
|
+
|
|
314
|
+
.nb-grid-wrap { padding: 12px 8px; }
|
|
315
|
+
.nb-grid-title { padding: 4px 12px 6px; }
|
|
316
|
+
.nb-grid { display: grid; grid-template-columns: 1fr 1fr; }
|
|
317
|
+
.nb-grid-link { gap: 4px; padding: 7px 10px; border-radius: 10px; font-size: 13px; }
|
|
318
|
+
|
|
319
|
+
.nb-split { display: grid; }
|
|
320
|
+
.nb-split-right { border-left: 1px solid #efefec; }
|
|
321
|
+
|
|
322
|
+
.nb-pf {
|
|
323
|
+
display: flex;
|
|
324
|
+
align-items: center;
|
|
325
|
+
justify-content: space-between;
|
|
326
|
+
gap: 16px;
|
|
327
|
+
padding: 14px 20px;
|
|
328
|
+
border-top: 1px solid #efefec;
|
|
329
|
+
background: #fafaf9;
|
|
330
|
+
font-size: 13px;
|
|
331
|
+
color: var(--nb-link);
|
|
332
|
+
}
|
|
333
|
+
/* An underline that draws from the left */
|
|
334
|
+
.nb-link {
|
|
335
|
+
flex-shrink: 0;
|
|
336
|
+
padding-bottom: 2px;
|
|
337
|
+
font-weight: 500;
|
|
338
|
+
color: var(--nb-ink);
|
|
339
|
+
background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
|
|
340
|
+
transition: background-size 240ms var(--nb-ease), color 120ms;
|
|
341
|
+
}
|
|
342
|
+
.nb-link:hover { background-size: 100% 1px; }
|
|
343
|
+
|
|
344
|
+
.nb-new {
|
|
345
|
+
position: relative;
|
|
346
|
+
display: inline-block;
|
|
347
|
+
flex-shrink: 0;
|
|
348
|
+
padding: 0 6px;
|
|
349
|
+
font-size: 16px;
|
|
350
|
+
line-height: 1;
|
|
351
|
+
}
|
|
352
|
+
.nb-new > .nb-marker { position: relative; }
|
|
353
|
+
.nb-new-ring {
|
|
354
|
+
position: absolute;
|
|
355
|
+
left: -4px;
|
|
356
|
+
top: -7px;
|
|
357
|
+
width: calc(100% + 8px);
|
|
358
|
+
height: calc(100% + 14px);
|
|
359
|
+
overflow: visible;
|
|
360
|
+
pointer-events: none;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/* ---- mobile ---- */
|
|
364
|
+
.nb-mobile { position: fixed; left: 12px; right: 12px; top: 72px; }
|
|
365
|
+
@media (min-width: 768px) {
|
|
366
|
+
.nb-mobile { display: none; }
|
|
367
|
+
}
|
|
368
|
+
.nb-mpanel {
|
|
369
|
+
max-height: calc(100dvh - 96px);
|
|
370
|
+
overflow-y: auto;
|
|
371
|
+
padding: 8px;
|
|
372
|
+
border-radius: 22px;
|
|
373
|
+
background: #fff;
|
|
374
|
+
box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.07), 0 24px 48px -12px rgba(17, 17, 17, 0.25);
|
|
375
|
+
}
|
|
376
|
+
.nb-mhead { padding: 8px 12px 4px; }
|
|
377
|
+
.nb-mrow {
|
|
378
|
+
display: flex;
|
|
379
|
+
align-items: center;
|
|
380
|
+
justify-content: space-between;
|
|
381
|
+
gap: 12px;
|
|
382
|
+
padding: 10px 12px;
|
|
383
|
+
border-radius: 14px;
|
|
384
|
+
font-size: 15px;
|
|
385
|
+
}
|
|
386
|
+
.nb-mrow:active { background: #f5f5f3; }
|
|
387
|
+
.nb-mrow--strong { font-weight: 500; }
|
|
388
|
+
.nb-mrow-title { display: flex; min-width: 0; align-items: center; gap: 8px; font-weight: 500; }
|
|
389
|
+
.nb-mrow-meta { flex-shrink: 0; font-size: 13px; color: var(--nb-muted); }
|
|
390
|
+
.nb-mbadge { flex-shrink: 0; font-size: 15px; }
|
|
391
|
+
.nb-mdivider { height: 1px; margin: 8px 0; background: #efefec; }
|
|
392
|
+
|
|
393
|
+
/* ---- the call to action ---- */
|
|
394
|
+
.nb-cta {
|
|
395
|
+
position: relative;
|
|
396
|
+
isolation: isolate;
|
|
397
|
+
display: inline-flex;
|
|
398
|
+
align-items: center;
|
|
399
|
+
gap: 10px;
|
|
400
|
+
height: 40px;
|
|
401
|
+
padding: 0 4px 0 16px;
|
|
402
|
+
overflow: hidden;
|
|
403
|
+
border-radius: 999px;
|
|
404
|
+
font-size: 14px;
|
|
405
|
+
font-weight: 500;
|
|
406
|
+
letter-spacing: -0.01em;
|
|
407
|
+
white-space: nowrap;
|
|
408
|
+
background: linear-gradient(180deg, #2b2b2b 0%, #111 100%);
|
|
409
|
+
box-shadow:
|
|
410
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.16),
|
|
411
|
+
inset 0 -1px 0 rgba(0, 0, 0, 0.4),
|
|
412
|
+
0 1px 2px rgba(0, 0, 0, 0.24),
|
|
413
|
+
0 6px 16px -4px rgba(0, 0, 0, 0.28);
|
|
414
|
+
transition: transform 260ms var(--nb-ease), box-shadow 260ms var(--nb-ease);
|
|
415
|
+
}
|
|
416
|
+
.nb-cta, .nb-cta:hover { color: #fff; }
|
|
417
|
+
.nb-cta:focus-visible { outline: 2px solid var(--nb-ink); outline-offset: 2px; }
|
|
418
|
+
/* A highlight that crosses the gloss on hover */
|
|
419
|
+
.nb-cta::after {
|
|
420
|
+
content: "";
|
|
421
|
+
position: absolute;
|
|
422
|
+
inset: 0;
|
|
423
|
+
z-index: 0;
|
|
424
|
+
pointer-events: none;
|
|
425
|
+
background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
|
|
426
|
+
transform: translateX(-110%);
|
|
427
|
+
}
|
|
428
|
+
.nb-cta-label,
|
|
429
|
+
.nb-cta-chip { position: relative; z-index: 1; }
|
|
430
|
+
/* Each letter is two stacked copies; hover rolls them up in a wave */
|
|
431
|
+
.nb-cta-label { display: inline-flex; }
|
|
432
|
+
.nb-cta-char { display: inline-block; height: 1.25em; line-height: 1.25em; overflow: hidden; }
|
|
433
|
+
.nb-cta-char > span {
|
|
434
|
+
display: block;
|
|
435
|
+
transition: transform 420ms cubic-bezier(0.65, 0, 0.35, 1);
|
|
436
|
+
transition-delay: calc(var(--i) * 11ms);
|
|
437
|
+
}
|
|
438
|
+
.nb-cta-chip {
|
|
439
|
+
display: grid;
|
|
440
|
+
place-items: center;
|
|
441
|
+
width: 32px;
|
|
442
|
+
height: 32px;
|
|
443
|
+
border-radius: 999px;
|
|
444
|
+
background: linear-gradient(180deg, #ffffff 0%, #ececea 100%);
|
|
445
|
+
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.4);
|
|
446
|
+
transition: transform 420ms var(--nb-spring);
|
|
447
|
+
}
|
|
448
|
+
.nb-cta-dot {
|
|
449
|
+
fill: var(--nb-accent);
|
|
450
|
+
transform-box: fill-box;
|
|
451
|
+
transform-origin: center;
|
|
452
|
+
animation: nb-breathe 2.6s ease-in-out infinite;
|
|
453
|
+
transition: transform 220ms var(--nb-ease);
|
|
454
|
+
}
|
|
455
|
+
@keyframes nb-breathe {
|
|
456
|
+
0%, 100% { scale: 1; opacity: 1; }
|
|
457
|
+
50% { scale: 0.72; opacity: 0.75; }
|
|
458
|
+
}
|
|
459
|
+
.nb-cta-arrow {
|
|
460
|
+
fill: none;
|
|
461
|
+
stroke: #111;
|
|
462
|
+
stroke-width: 1.7;
|
|
463
|
+
stroke-linecap: round;
|
|
464
|
+
stroke-linejoin: round;
|
|
465
|
+
stroke-dasharray: 1;
|
|
466
|
+
stroke-dashoffset: 1;
|
|
467
|
+
transition: stroke-dashoffset 200ms var(--nb-ease);
|
|
468
|
+
}
|
|
469
|
+
@media (hover: hover) {
|
|
470
|
+
.nb-cta:hover {
|
|
471
|
+
transform: translate3d(0, -1px, 0);
|
|
472
|
+
box-shadow:
|
|
473
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.2),
|
|
474
|
+
inset 0 -1px 0 rgba(0, 0, 0, 0.4),
|
|
475
|
+
0 2px 4px rgba(0, 0, 0, 0.24),
|
|
476
|
+
0 10px 22px -6px rgba(0, 0, 0, 0.34);
|
|
477
|
+
}
|
|
478
|
+
.nb-cta:hover::after { transform: translateX(110%); transition: transform 750ms cubic-bezier(0.3, 0, 0.2, 1); }
|
|
479
|
+
.nb-cta:hover .nb-cta-char > span { transform: translateY(-100%); }
|
|
480
|
+
.nb-cta:hover .nb-cta-chip { transform: translateX(1px) scale(1.06); }
|
|
481
|
+
.nb-cta:hover .nb-cta-dot { transform: scale(0); }
|
|
482
|
+
.nb-cta:hover .nb-cta-arrow { stroke-dashoffset: 0; transition: stroke-dashoffset 380ms cubic-bezier(0.65, 0, 0.35, 1) 90ms; }
|
|
483
|
+
}
|
|
484
|
+
.nb-cta:focus-visible .nb-cta-dot { transform: scale(0); }
|
|
485
|
+
.nb-cta:focus-visible .nb-cta-arrow { stroke-dashoffset: 0; }
|
|
486
|
+
.nb-cta:active { transform: scale(0.97); transition-duration: 90ms; }
|
|
487
|
+
.nb-cta:active .nb-cta-chip { transform: scale(0.88); transition-duration: 120ms; }
|
|
488
|
+
|
|
489
|
+
/* ---- the default mark ---- */
|
|
490
|
+
.nb-mark {
|
|
491
|
+
display: grid;
|
|
492
|
+
flex-shrink: 0;
|
|
493
|
+
place-items: center;
|
|
494
|
+
width: 26px;
|
|
495
|
+
height: 26px;
|
|
496
|
+
border-radius: 8px;
|
|
497
|
+
background: #0b0b0b;
|
|
498
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
499
|
+
}
|
|
500
|
+
.nb-mark svg { display: block; width: 22px; height: 22px; }
|
|
501
|
+
|
|
502
|
+
@media (prefers-reduced-motion: reduce) {
|
|
503
|
+
.nb-row-arrow, .nb-glyph { transition: opacity 120ms ease; }
|
|
504
|
+
.nb-row:hover .nb-glyph { transform: none; }
|
|
505
|
+
.nb-cta, .nb-cta-chip, .nb-cta-char > span, .nb-cta-dot { transition: none; }
|
|
506
|
+
.nb-cta-dot { animation: none; }
|
|
507
|
+
.nb-cta::after { display: none; }
|
|
508
|
+
.nb-cta:hover, .nb-cta:active, .nb-cta:hover .nb-cta-chip, .nb-cta:hover .nb-cta-char > span { transform: none; }
|
|
509
|
+
.nb-cta-arrow, .nb-cta:hover .nb-cta-arrow { transition: stroke-dashoffset 120ms linear; }
|
|
510
|
+
}
|