@withnicer/ui 0.0.0-stage → 1.0.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.
Files changed (57) hide show
  1. package/README.md +74 -2
  2. package/dist/index.d.ts +919 -0
  3. package/dist/index.js +5521 -0
  4. package/package.json +91 -4
  5. package/src/assets/avatar-placeholder-dark.svg +4 -0
  6. package/src/assets/avatar-placeholder-light.svg +4 -0
  7. package/src/assets/cards/amex.png +0 -0
  8. package/src/assets/cards/amex.svg +4 -0
  9. package/src/assets/cards/apple-pay.png +0 -0
  10. package/src/assets/cards/apple-pay.svg +4 -0
  11. package/src/assets/cards/cartes-bancaires.png +0 -0
  12. package/src/assets/cards/cartes-bancaires.svg +4 -0
  13. package/src/assets/cards/diners.png +0 -0
  14. package/src/assets/cards/diners.svg +6 -0
  15. package/src/assets/cards/discover.png +0 -0
  16. package/src/assets/cards/discover.svg +13 -0
  17. package/src/assets/cards/eftpos.png +0 -0
  18. package/src/assets/cards/eftpos.svg +11 -0
  19. package/src/assets/cards/google-pay.png +0 -0
  20. package/src/assets/cards/google-pay.svg +7 -0
  21. package/src/assets/cards/hiper.png +0 -0
  22. package/src/assets/cards/hiper.svg +9 -0
  23. package/src/assets/cards/hipercard.png +0 -0
  24. package/src/assets/cards/hipercard.svg +4 -0
  25. package/src/assets/cards/interac.png +0 -0
  26. package/src/assets/cards/interac.svg +16 -0
  27. package/src/assets/cards/jcb.png +0 -0
  28. package/src/assets/cards/jcb.svg +31 -0
  29. package/src/assets/cards/maestro.png +0 -0
  30. package/src/assets/cards/maestro.svg +7 -0
  31. package/src/assets/cards/mastercard.png +0 -0
  32. package/src/assets/cards/mastercard.svg +6 -0
  33. package/src/assets/cards/unionpay.png +0 -0
  34. package/src/assets/cards/unionpay.svg +8 -0
  35. package/src/assets/cards/unknown.png +0 -0
  36. package/src/assets/cards/unknown.svg +3 -0
  37. package/src/assets/cards/visa.png +0 -0
  38. package/src/assets/cards/visa.svg +4 -0
  39. package/src/assets/dropdown-black.svg +5 -0
  40. package/src/assets/dropdown-white.svg +5 -0
  41. package/src/assets/image-placeholder-dark.svg +12 -0
  42. package/src/assets/image-placeholder-light.svg +12 -0
  43. package/src/assets/lodging-placeholder.jpg +0 -0
  44. package/src/assets/spinner-black.png +0 -0
  45. package/src/assets/spinner-white.png +0 -0
  46. package/src/styles/fonts/TheSeasons-Regular.ttf +0 -0
  47. package/src/styles/fonts/TheSeasons-Regular.woff +0 -0
  48. package/src/styles/fonts/TheSeasons-Regular.woff2 +0 -0
  49. package/src/styles/icons/Icomoon.json +4117 -0
  50. package/src/styles/icons/fonts/icomoon.eot +0 -0
  51. package/src/styles/icons/fonts/icomoon.svg +221 -0
  52. package/src/styles/icons/fonts/icomoon.ttf +0 -0
  53. package/src/styles/icons/fonts/icomoon.woff +0 -0
  54. package/src/styles/icons/style.css +677 -0
  55. package/src/styles/reset.css +35 -0
  56. package/src/styles/styles.sass +2719 -0
  57. package/src/utils/dial-codes.json +1454 -0
@@ -0,0 +1,2719 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap')
2
+ @import './reset.css'
3
+ @import './icons/style.css'
4
+
5
+ /* FONTS */
6
+ @font-face
7
+ font-family: 'The Seasons'
8
+ src: url('./fonts/TheSeasons-Regular.woff2') format('woff2'), url('./fonts/TheSeasons-Regular.woff') format('woff'), url('./fonts/TheSeasons-Regular.ttf') format('truetype')
9
+ font-weight: normal
10
+ font-style: normal
11
+ /* eND: FONTS */
12
+
13
+ /* COLORS */
14
+ :root
15
+ // Grayscale
16
+ --gray50: #F2F2F2
17
+ --gray100: #E6E6E6
18
+ --gray150: #D9D9D9
19
+ --gray200: #CCCCCC
20
+ --gray300: #B3B3B3
21
+ --gray400: #999999
22
+ --gray500: #808080
23
+ --gray600: #666666
24
+ --gray700: #4D4D4D
25
+ --gray800: #333333
26
+ --gray850: #262626
27
+ --gray875: #202020
28
+ --gray900: #1A1A1A
29
+
30
+ // Status
31
+ --positive100: #D9F2D9
32
+ --positive300: #8CD98C
33
+ --positive500: #40BF40
34
+ --positive700: #267326
35
+
36
+ --warning100: #FFF2CC
37
+ --warning300: #FFD966
38
+ --warning500: #FFBF00
39
+ --warning700: #997300
40
+
41
+ --negative100: #FFCCCC
42
+ --negative300: #FF6666
43
+ --negative500: #FF0000
44
+ --negative700: #990000
45
+
46
+ // Brand
47
+ --brandBg: #333333
48
+ --brandHighlight: white
49
+ --brandShadow: rgba(51, 51, 51, .5)
50
+
51
+ // Brand gold — the warm half of the identity.
52
+ // The mid steps share hex values with --warning*, but they are NOT alerts:
53
+ // this ramp is what makes the product feel like Nicer rather than a neutral
54
+ // shell (advisor banner, progress CTAs, accents). The two darkest steps exist
55
+ // only here — nothing else in the system goes that deep.
56
+ --gold50: #FFF9E5
57
+ --gold100: #FFF2CC
58
+ --gold200: #FFE599
59
+ --gold300: #FFD966
60
+ --gold400: #FFCC33
61
+ --gold500: #FFBF00
62
+ --gold600: #CC9900
63
+ --gold700: #997300
64
+ --gold800: #664D00
65
+ --gold900: #332600
66
+ // The accent ramp agency-facing screens use: Nicer's gold until an agency's
67
+ // theme sets its own (site-theme brandRamp).
68
+ --brand50: var(--gold50)
69
+ --brand100: var(--gold100)
70
+ --brand200: var(--gold200)
71
+ --brand300: var(--gold300)
72
+ --brand400: var(--gold400)
73
+ --brand500: var(--gold500)
74
+ --brand600: var(--gold600)
75
+ --brand700: var(--gold700)
76
+ --brand800: var(--gold800)
77
+ --brand900: var(--gold900)
78
+
79
+ // THEMES
80
+ // Light
81
+ :root
82
+ --bgPrimary: white
83
+ --bgSoft: var(--gray50)
84
+ --bgMedium: var(--gray100)
85
+ --bgHard: var(--gray150)
86
+ --borderSoft: var(--gray100)
87
+ --borderMedium: var(--gray150)
88
+ --borderHard: var(--gray200)
89
+ --borderHighlight: var(--gray400)
90
+ --textSoft: var(--gray500)
91
+ --textNormal: var(--gray700)
92
+ --highlight: black
93
+ --bgPositive: var(--positive100)
94
+ --textPositive: var(--positive700)
95
+ --bgWarning: var(--warning100)
96
+ --textWarning: var(--warning700)
97
+ --bgNegative: var(--negative100)
98
+ --bgNegativeHover: #FFB2B2
99
+ --textNegative: var(--negative700)
100
+
101
+ // Chart series (categorical, fixed slot order: colour follows the entity).
102
+ // Gold leads as the brand hue; the order passes colour-vision separation
103
+ // (OKLab ΔE ≥ 8 on adjacent pairs) on white. Never cycle past slot 6.
104
+ --chart1: #EDA100
105
+ --chart2: #2A78D6
106
+ --chart3: #1BAF7A
107
+ --chart4: #4A3AA7
108
+ --chart5: #E87BA4
109
+ --chart6: #008300
110
+
111
+ // Dark
112
+ .dark
113
+ --bgPrimary: var(--gray900)
114
+ --bgSoft: var(--gray875)
115
+ --bgMedium: var(--gray850)
116
+ --bgHard: var(--gray800)
117
+ --borderSoft: var(--gray850)
118
+ --borderMedium: var(--gray800)
119
+ --borderHard: var(--gray700)
120
+ --borderHighlight: var(--gray600)
121
+ --textSoft: var(--gray500)
122
+ --textNormal: var(--gray300)
123
+ --highlight: white
124
+ --bgPositive: rgba(64, 191, 64, .15)
125
+ --textPositive: var(--positive300)
126
+ --bgWarning: rgba(255, 191, 0, .15)
127
+ --textWarning: var(--warning300)
128
+ --bgNegative: rgba(255, 0, 0, .15)
129
+ --bgNegativeHover: rgba(255, 0, 0, .25)
130
+ --textNegative: var(--negative300)
131
+
132
+ // Same six hues re-stepped for the dark surface (not a brightness flip).
133
+ --chart1: #C98500
134
+ --chart2: #3987E5
135
+ --chart3: #199E70
136
+ --chart4: #9085E9
137
+ --chart5: #D55181
138
+ --chart6: #008300
139
+
140
+ // SEGMENTS
141
+ :root
142
+ --activityDark: #301040
143
+ --activityLight: #D6B8E5
144
+ --car_rentalDark: #404010
145
+ --car_rentalLight: #E5E5B8
146
+ --cruiseDark: #104040
147
+ --cruiseLight: #B8E5E5
148
+ --flightDark: #104028
149
+ --flightLight: #B8E5CF
150
+ --lodgingDark: #401010
151
+ --lodgingLight: #FFCCCC
152
+ --restaurantDark: #402810
153
+ --restaurantLight: #FFCC99
154
+ --transportationDark: #404040
155
+ --transportationLight: #E6E6E6
156
+ --insuranceDark: #102840
157
+ --insuranceLight: #99CCFF
158
+ --customDark: var(--highlight)
159
+ --customLight: var(--bgSoft)
160
+
161
+ .dark
162
+ --activityDark: #D6B8E5
163
+ --activityLight: rgba(214, 184, 229, .15)
164
+ --car_rentalDark: #E5E5B8
165
+ --car_rentalLight: rgba(229, 229, 184, .15)
166
+ --cruiseDark: #B8E5E5
167
+ --cruiseLight: rgba(184, 229, 229, .15)
168
+ --flightDark: #B8E5CF
169
+ --flightLight: rgba(184, 229, 207, .15)
170
+ --lodgingDark: #FFCCCC
171
+ --lodgingLight: rgba(255, 204, 204, .15)
172
+ --restaurantDark: #FFCC99
173
+ --restaurantLight: rgba(255, 204, 153, .15)
174
+ --transportationDark: #E6E6E6
175
+ --transportationLight: rgba(230, 230, 230, .15)
176
+ --insuranceDark: #99CCFF
177
+ --insuranceLight: rgba(153, 204, 255, .15)
178
+ --customDark: var(--highlight)
179
+ --customLight: var(--bgSoft)
180
+ /* End: COLORS */
181
+
182
+ /* EASINGS */
183
+ :root
184
+ --easeOutExpo: cubic-bezier(0.16, 1, 0.3, 1)
185
+ --easeOutBack: cubic-bezier(0.34, 1.56, 0.64, 1)
186
+ /* End: EASINGS */
187
+
188
+ /* RADIUS */
189
+ // A booking site's theme overrides these (siteThemeVars in @nicer/catalog).
190
+ // Not `--radius-*`: discover's Tailwind CSS defines those globally.
191
+ :root
192
+ --nicerRadiusS: 6px
193
+ --nicerRadiusM: 12px
194
+ --nicerRadiusL: 16px
195
+ /* End: RADIUS */
196
+
197
+ /* TEXT STYLES */
198
+ .t-xxxl
199
+ font-size: 56px
200
+ line-height: 96px
201
+
202
+ .t-xxl
203
+ font-size: 48px
204
+ line-height: 80px
205
+
206
+ .t-xl
207
+ font-size: 32px
208
+ line-height: 56px
209
+
210
+ .t-l
211
+ font-size: 28px
212
+ line-height: 48px
213
+
214
+ .t-m
215
+ font-size: 24px
216
+ line-height: 40px
217
+
218
+ .t-s
219
+ font-size: 16px
220
+ line-height: 28px
221
+
222
+ .t-xs
223
+ font-size: 14px
224
+ line-height: 24px
225
+
226
+ .t-xxs
227
+ font-size: 12px
228
+ line-height: 20px
229
+
230
+ .t-xxxs
231
+ font-size: 10px
232
+ line-height: 16px
233
+
234
+ b,
235
+ .bold
236
+ font-weight: 700
237
+
238
+ .brand
239
+ font-family: var(--fontBrand, 'The Seasons')
240
+ /* End: TEXT STYLES */
241
+
242
+ /* GLOBALS */
243
+ // The browser's own parts (scrollbars, native pickers) follow the theme:
244
+ // without it, every scrollbar stays light on a dark page.
245
+ body
246
+ color-scheme: light
247
+
248
+ body.dark
249
+ color-scheme: dark
250
+
251
+ body
252
+ background: var(--bgPrimary)
253
+ font-family: var(--fontBody, 'Inter'), sans-serif
254
+ font-weight: 400
255
+ color: var(--highlight)
256
+ -webkit-font-smoothing: antialiased
257
+ -moz-osx-font-smoothing: grayscale
258
+
259
+ // IMAGE PLACEHOLDERS
260
+ // A photo that failed (installImageFallbacks), an <img> without a src, or a
261
+ // frame with no photo to show (.ui-image-placeholder): a picture glyph a tone
262
+ // off a fill one step harder than the surfaces around it, so the slot reads as
263
+ // a slot — never a broken icon, its alt text or a block of the proxy's 1×1
264
+ // pixel. No brand mark: every agency's travelers see it. A person gets a
265
+ // silhouette, a hotel the blurred room its cards already fall back to.
266
+ img[data-image-fallback],
267
+ img:not([src]),
268
+ .ui-image-placeholder
269
+ background-color: var(--bgMedium)
270
+ background-image: url('../assets/image-placeholder-light.svg')
271
+ background-position: center
272
+ background-repeat: no-repeat
273
+ background-size: auto min(40%, 48px)
274
+ color: transparent
275
+
276
+ // The frame's stand-in for its photo: sized by the host like the <img> it
277
+ // replaces.
278
+ .ui-image-placeholder
279
+ display: block
280
+
281
+ img[data-image-fallback='avatar']
282
+ background-color: var(--bgSoft)
283
+ background-image: url('../assets/avatar-placeholder-light.svg')
284
+ background-position: center bottom
285
+ background-size: 100%
286
+
287
+ img[data-image-fallback='lodging'],
288
+ .ui-image-placeholder[data-image-kind='lodging']
289
+ background-image: url('../assets/lodging-placeholder.jpg')
290
+ background-size: cover
291
+
292
+ .dark
293
+ img[data-image-fallback],
294
+ img:not([src]),
295
+ .ui-image-placeholder
296
+ background-image: url('../assets/image-placeholder-dark.svg')
297
+
298
+ img[data-image-fallback='avatar']
299
+ background-image: url('../assets/avatar-placeholder-dark.svg')
300
+
301
+ img[data-image-fallback='lodging'],
302
+ .ui-image-placeholder[data-image-kind='lodging']
303
+ background-image: url('../assets/lodging-placeholder.jpg')
304
+
305
+ // A photo that waits for its pixels: hidden until installImageFallbacks marks
306
+ // it loaded or swaps in its placeholder, so neither the proxy's 1×1 pixel nor
307
+ // a half-painted photo flashes before it — the frame shows its own ground.
308
+ img.ui-image-reveal
309
+ transition: opacity 240ms var(--easeOutExpo)
310
+
311
+ &[src]:not([data-image-loaded]):not([data-image-fallback])
312
+ opacity: 0
313
+ // End: IMAGE PLACEHOLDERS
314
+
315
+ // Scrollbar
316
+ .no-scrollbar
317
+ -ms-overflow-style: none
318
+ scrollbar-width: none
319
+
320
+ &::-webkit-scrollbar
321
+ display: none
322
+ /* End: GLOBALS */
323
+
324
+ /* ICONS THE FONT LACKS */
325
+ // Drawn as a mask in the text's colour at the font's size, so <Icon> and
326
+ // IconButton take them by name like the font's own, at the same 1px line.
327
+ // A gear: Settings, wherever a page or a panel is set up (the sliders,
328
+ // `settings`, arrange a list's columns or pages).
329
+ .ui-icon.icon-gear::before
330
+ content: ""
331
+ display: inline-block
332
+ width: 1em
333
+ height: 1em
334
+ vertical-align: top
335
+ background-color: currentColor
336
+ $gear: "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1' stroke-linejoin='round'><path d='M10.05 4.45L10.32 1.94A10.2 10.2 0 0 1 13.68 1.94L13.95 4.45A7.8 7.8 0 0 1 15.96 5.28L17.92 3.7A10.2 10.2 0 0 1 20.3 6.08L18.72 8.04A7.8 7.8 0 0 1 19.55 10.05L22.06 10.32A10.2 10.2 0 0 1 22.06 13.68L19.55 13.95A7.8 7.8 0 0 1 18.72 15.96L20.3 17.92A10.2 10.2 0 0 1 17.92 20.3L15.96 18.72A7.8 7.8 0 0 1 13.95 19.55L13.68 22.06A10.2 10.2 0 0 1 10.32 22.06L10.05 19.55A7.8 7.8 0 0 1 8.04 18.72L6.08 20.3A10.2 10.2 0 0 1 3.7 17.92L5.28 15.96A7.8 7.8 0 0 1 4.45 13.95L1.94 13.68A10.2 10.2 0 0 1 1.94 10.32L4.45 10.05A7.8 7.8 0 0 1 5.28 8.04L3.7 6.08A10.2 10.2 0 0 1 6.08 3.7L8.04 5.28A7.8 7.8 0 0 1 10.05 4.45Z'/><circle cx='12' cy='12' r='3'/></svg>"
337
+ -webkit-mask: url("#{$gear}") center / contain no-repeat
338
+ mask: url("#{$gear}") center / contain no-repeat
339
+ /* End: ICONS THE FONT LACKS */
340
+
341
+ /* ACTIONS */
342
+ .ui-actions
343
+ @extend .no-scrollbar
344
+ list-style: none
345
+ min-width: 200px
346
+ border-radius: 16px
347
+ overflow-y: scroll
348
+ border: 1px solid var(--borderHard)
349
+ padding: 7px
350
+ background: var(--bgPrimary)
351
+ box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .1)
352
+ color: var(--highlight)
353
+ position: absolute
354
+ z-index: 1000
355
+
356
+ li
357
+ height: 40px
358
+ border-radius: 8px
359
+ padding: 8px 20px 8px 8px
360
+ display: flex
361
+ align-items: center
362
+ gap: 12px
363
+ cursor: pointer
364
+ transition: background 150ms
365
+
366
+ > .ui-icon
367
+ margin: 3px
368
+
369
+ p
370
+ @extend .t-xs
371
+ white-space: nowrap
372
+
373
+ &:hover
374
+ background: var(--bgSoft)
375
+
376
+ &.destructive
377
+ color: var(--textNegative)
378
+
379
+ > .ui-icon
380
+ color: var(--textNegative)
381
+
382
+ &.disabled
383
+ color: var(--textSoft)
384
+ cursor: default
385
+
386
+ > .ui-icon
387
+ color: var(--textSoft)
388
+
389
+ &:hover
390
+ background: none
391
+ /* End: ACTIONS */
392
+
393
+ /* BUTTON */
394
+ .ui-button
395
+ white-space: nowrap
396
+ display: flex
397
+ align-items: center
398
+ justify-content: center
399
+ gap: 8px
400
+ cursor: pointer
401
+ transition-property: background, box-shadow
402
+ transition-duration: 300ms
403
+
404
+ // Size
405
+ &.l
406
+ @extend .t-s
407
+ height: 56px
408
+ padding: 0 28px
409
+ border-radius: var(--nicerRadiusM, 12px)
410
+
411
+ &.m
412
+ @extend .t-xs
413
+ height: 40px
414
+ padding: 0 20px
415
+ // 8px: two thirds of M, so it follows a site's radius too.
416
+ border-radius: calc(var(--nicerRadiusM, 12px) * 2 / 3)
417
+
418
+ &.s
419
+ @extend .t-xxs
420
+ height: 28px
421
+ padding: 0 14px
422
+ border-radius: var(--nicerRadiusS, 6px)
423
+
424
+ // Hierarchy
425
+ // Hover styles only where hover exists: on touch, the browser keeps
426
+ // :hover applied after a tap, so the shadow (and hover fill) stuck to
427
+ // the tapped button until something else was touched.
428
+ &.primary
429
+ background: var(--brandBg)
430
+ color: var(--brandHighlight)
431
+
432
+ @media (hover: hover)
433
+ &.l:hover
434
+ box-shadow: 0 28px 28px -14px var(--brandShadow)
435
+
436
+ &.m:hover
437
+ box-shadow: 0 20px 20px -10px var(--brandShadow)
438
+
439
+ &.s:hover
440
+ box-shadow: 0 14px 14px -7px var(--brandShadow)
441
+
442
+ &.secondary,
443
+ &.tertiary
444
+ box-shadow: inset 0 0 0 1px var(--borderHard)
445
+ color: var(--highlight)
446
+
447
+ @media (hover: hover)
448
+ &:hover
449
+ background: var(--bgSoft)
450
+
451
+ // A tour pointing at the button shows it as hovered.
452
+ &.tour-highlighted
453
+ background: var(--bgSoft)
454
+
455
+ &.destructive
456
+ background: var(--bgNegative)
457
+ color: var(--textNegative)
458
+
459
+ @media (hover: hover)
460
+ &:hover
461
+ background: var(--bgNegativeHover)
462
+
463
+ // State
464
+ &.loading,
465
+ &.success,
466
+ &.error,
467
+ &.disabled
468
+ box-shadow: none
469
+ pointer-events: none
470
+
471
+ // Busy, done or failed: the label keeps its room unseen, so the button
472
+ // keeps its width, and the state sits on it, in the middle.
473
+ &.loading,
474
+ &.success,
475
+ &.error
476
+ display: grid
477
+ place-items: center
478
+
479
+ > .held,
480
+ > .status
481
+ grid-area: 1 / 1
482
+ display: flex
483
+ align-items: center
484
+ gap: 8px
485
+
486
+ > .held
487
+ visibility: hidden
488
+
489
+ &.disabled
490
+ background: var(--bgHard)
491
+ color: var(--textSoft)
492
+
493
+ &.loading
494
+ &.secondary,
495
+ &.tertiary
496
+ background: var(--bgSoft)
497
+ color: var(--highlight)
498
+
499
+ &.m .ui-spinner
500
+ width: 18px
501
+ height: 18px
502
+
503
+ &.s .ui-spinner
504
+ width: 12px
505
+ height: 12px
506
+
507
+ &.success
508
+ background: var(--bgPositive)
509
+ color: var(--textPositive)
510
+
511
+ &.error
512
+ background: var(--bgNegative)
513
+ color: var(--textNegative)
514
+ /* End: BUTTON */
515
+
516
+ /* MAINTENANCE GATE */
517
+ .ui-maintenance
518
+ min-height: 100dvh
519
+ display: flex
520
+ flex-direction: column
521
+ align-items: center
522
+ justify-content: center
523
+ gap: 12px
524
+ padding: 24px
525
+ text-align: center
526
+ background: var(--bgPrimary)
527
+
528
+ .wordmark
529
+ font-size: 44px
530
+ margin: 0 0 12px
531
+ color: var(--highlight)
532
+
533
+ h1
534
+ margin: 0
535
+ font-weight: 600
536
+
537
+ > p:last-child
538
+ margin: 0
539
+ max-width: 380px
540
+ color: var(--textSoft)
541
+ /* End: MAINTENANCE GATE */
542
+
543
+
544
+
545
+ /* ICON BUTTON */
546
+ .ui-icon-button
547
+ display: flex
548
+ align-items: center
549
+ justify-content: center
550
+ cursor: pointer
551
+ transition-property: background, box-shadow
552
+ transition-duration: 300ms
553
+
554
+ // Size
555
+ &.l
556
+ width: 56px
557
+ height: 56px
558
+ border-radius: 12px
559
+
560
+ &.m
561
+ width: 40px
562
+ height: 40px
563
+ border-radius: 8px
564
+
565
+ &.s
566
+ width: 28px
567
+ height: 28px
568
+ border-radius: 4px
569
+
570
+ &.circle
571
+ border-radius: 50% !important
572
+
573
+ // Hierarchy
574
+ // Hover styles only where hover exists: on touch, the browser keeps
575
+ // :hover applied after a tap, so the shadow (and hover fill) stuck to
576
+ // the tapped button until something else was touched.
577
+ &.primary
578
+ background: var(--brandBg)
579
+ color: var(--brandHighlight)
580
+
581
+ @media (hover: hover)
582
+ &.l:hover
583
+ box-shadow: 0 28px 28px -14px var(--brandShadow)
584
+
585
+ &.m:hover
586
+ box-shadow: 0 20px 20px -10px var(--brandShadow)
587
+
588
+ &.s:hover
589
+ box-shadow: 0 14px 14px -7px var(--brandShadow)
590
+
591
+ &.secondary,
592
+ &.tertiary
593
+ box-shadow: inset 0 0 0 1px var(--borderHard)
594
+ color: var(--highlight)
595
+
596
+ @media (hover: hover)
597
+ &:hover
598
+ background: var(--bgSoft)
599
+
600
+ &.destructive
601
+ background: var(--bgNegative)
602
+ color: var(--textNegative)
603
+
604
+ @media (hover: hover)
605
+ &:hover
606
+ background: var(--bgNegativeHover)
607
+
608
+ // State
609
+ &.disabled
610
+ box-shadow: none
611
+ pointer-events: none
612
+ background: var(--bgHard)
613
+ color: var(--textSoft)
614
+ /* End: ICON BUTTON */
615
+
616
+ /* CALENDAR */
617
+ .ui-calendar
618
+ width: 332px
619
+ border-radius: 20px
620
+ border: 1px solid var(--borderHard)
621
+ padding: 11px
622
+ background: var(--bgPrimary)
623
+ display: flex
624
+ flex-direction: column
625
+ gap: 24px
626
+
627
+ > :first-child
628
+ display: flex
629
+ align-items: center
630
+
631
+ .ui-nav-button
632
+ margin: 2px
633
+
634
+ p
635
+ @extend .t-s
636
+ flex: 1
637
+ line-height: 40px
638
+ border-radius: 8px
639
+ text-align: center
640
+ margin: 2px
641
+ cursor: pointer
642
+ transition: background 300ms
643
+
644
+ &:hover
645
+ background: var(--bgSoft)
646
+
647
+ .days
648
+ display: flex
649
+ flex-direction: column
650
+ gap: 16px
651
+
652
+ > :first-child
653
+ display: grid
654
+ grid-template-columns: repeat(7, 1fr)
655
+
656
+ p
657
+ @extend .t-xxxs
658
+ color: var(--textSoft)
659
+ text-align: center
660
+
661
+ > :last-child
662
+ display: grid
663
+ grid-template-columns: repeat(7, 1fr)
664
+ gap: 4px
665
+
666
+ button
667
+ @extend .t-xxs
668
+ width: 40px
669
+ height: 40px
670
+ border-radius: 20px
671
+ display: flex
672
+ align-items: center
673
+ justify-content: center
674
+ position: relative
675
+ margin: 0 auto
676
+ cursor: pointer
677
+
678
+ &:hover
679
+ background: var(--bgSoft)
680
+
681
+ &.today
682
+ &::after
683
+ content: ''
684
+ width: 4px
685
+ height: 4px
686
+ border-radius: 2px
687
+ background: var(--brandBg)
688
+ position: absolute
689
+ bottom: 4px
690
+ left: 18px
691
+
692
+ &.selected::after
693
+ background: white
694
+
695
+ &.selected
696
+ background: var(--brandBg)
697
+ color: var(--brandHighlight) !important
698
+
699
+ &.between
700
+ border: 1px solid var(--borderHard)
701
+
702
+ &:disabled
703
+ color: var(--textSoft)
704
+ pointer-events: none
705
+
706
+ &:empty
707
+ visibility: hidden
708
+
709
+ .months,
710
+ .years
711
+ display: flex
712
+ flex-wrap: wrap
713
+
714
+ p
715
+ flex-basis: calc(100% / 3)
716
+ border-radius: 8px
717
+ line-height: 40px
718
+ text-align: center
719
+ cursor: pointer
720
+ transition: background 300ms
721
+
722
+ &:hover
723
+ background: var(--bgSoft)
724
+
725
+ &.active
726
+ background: var(--brandBg)
727
+ color: var(--brandHighlight)
728
+
729
+ > .ui-button
730
+ width: 100%
731
+ /* End: CALENDAR */
732
+
733
+ /* CHECK & RADIO BUTTON */
734
+ .ui-check,
735
+ .ui-radio-button
736
+ width: 24px
737
+ height: 24px
738
+ padding: 2px
739
+ position: relative
740
+
741
+ input
742
+ width: 20px
743
+ height: 20px
744
+ border-radius: 50%
745
+ border: 1px solid var(--borderHard)
746
+ background: var(--bgSoft)
747
+ cursor: pointer
748
+
749
+ &:hover,
750
+ &:focus
751
+ & + figure,
752
+ & + .ui-icon
753
+ opacity: .2
754
+
755
+ &:focus
756
+ border: 0
757
+ box-shadow: 0 0 0 2px var(--borderHighlight)
758
+
759
+ // A required choice left empty, until it is made: only the ring turns
760
+ // red, so it still reads as empty.
761
+ &[aria-invalid="true"]:not(:checked)
762
+ border: 1px solid var(--textNegative)
763
+
764
+ &:checked
765
+ border: 0
766
+ background: var(--brandBg)
767
+
768
+ & + figure,
769
+ & + .ui-icon
770
+ opacity: 1
771
+
772
+ & + figure
773
+ background: var(--brandHighlight)
774
+
775
+ & + .ui-icon
776
+ color: var(--brandHighlight)
777
+
778
+ &:disabled
779
+ border: 0
780
+ background: var(--bgMedium)
781
+ pointer-events: none
782
+
783
+ &:checked
784
+ background: var(--bgHard)
785
+
786
+ & + figure,
787
+ & + .ui-icon
788
+ opacity: 1
789
+
790
+ & + figure
791
+ background: var(--textSoft)
792
+
793
+ & + .ui-icon
794
+ color: var(--textSoft)
795
+
796
+ figure,
797
+ .ui-icon
798
+ opacity: 0
799
+ position: absolute
800
+ top: calc(50% - 4px)
801
+ left: calc(50% - 4px)
802
+ pointer-events: none
803
+
804
+ figure
805
+ width: 8px
806
+ height: 8px
807
+ background: var(--highlight)
808
+ border-radius: 50%
809
+
810
+ .ui-icon
811
+ color: var(--highlight)
812
+
813
+ .ui-radio-button,
814
+ .ui-check.circle
815
+ input
816
+ border-radius: 50%
817
+
818
+ .ui-check:not(.circle)
819
+ input
820
+ border-radius: 5px
821
+ /* End: CHECK & RADIO BUTTON */
822
+
823
+ /* DIALOG */
824
+ .ui-dialog
825
+ width: 400px
826
+ max-width: calc(100vw - 40px)
827
+ // Header and actions stay put; a long body scrolls between them. Capped
828
+ // like a dialog, not the viewport: on a tall screen a long list stretched
829
+ // the box nearly floor to ceiling.
830
+ max-height: min(560px, calc(100dvh - 96px))
831
+ margin: 0 20px
832
+ border-radius: 20px
833
+ border: 1px solid var(--borderMedium)
834
+ background: var(--bgPrimary)
835
+ display: flex
836
+ flex-direction: column
837
+
838
+ header
839
+ padding: 10px
840
+ display: flex
841
+ align-items: center
842
+ justify-content: flex-end
843
+ gap: 16px
844
+
845
+ h6
846
+ flex: 1
847
+ min-width: 0
848
+ padding-left: 10px
849
+ overflow-wrap: anywhere
850
+
851
+ .ui-nav-button
852
+ flex-shrink: 0
853
+
854
+ > p
855
+ @extend .t-xs
856
+ padding: 32px 20px
857
+
858
+ .content
859
+ @extend .no-scrollbar
860
+ flex-grow: 1
861
+ min-height: 0
862
+ overflow-y: auto
863
+ padding: 0px 20px 32px
864
+
865
+ // A title sits right above the body: the gap that held the lone close
866
+ // button would float the content away from its heading.
867
+ header:has(h6) + .content
868
+ padding-top: 8px
869
+
870
+ footer
871
+ padding: 0 12px 12px
872
+ display: flex
873
+ gap: 8px
874
+
875
+ .ui-button
876
+ flex: 1
877
+ /* End: DIALOG */
878
+
879
+ /* DROPDOWN */
880
+ .ui-dropdown
881
+ @extend .no-scrollbar
882
+ list-style: none
883
+ min-width: 100%
884
+ width: 100%
885
+ max-height: 256px
886
+ border-radius: 8px
887
+ overflow-y: scroll
888
+ border: 1px solid var(--borderHard)
889
+ padding: 7px
890
+ background: var(--bgPrimary)
891
+ box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .1)
892
+ position: absolute
893
+ z-index: 999
894
+ top: 100%
895
+ left: 0
896
+
897
+ li
898
+ @extend .t-xs
899
+ border-bottom: 1px solid var(--borderSoft)
900
+ padding: 12px 8px 11px
901
+ display: flex
902
+ align-items: center
903
+ gap: 12px
904
+ cursor: pointer
905
+ transition: background 150ms
906
+
907
+ // Phone-sized: desktop's row height turns five results into most of the
908
+ // screen.
909
+ @media (max-width: 600px)
910
+ padding: 9px 8px 8px
911
+
912
+ p
913
+ flex: 1
914
+ overflow: hidden
915
+ text-overflow: ellipsis
916
+ white-space: nowrap
917
+
918
+ img
919
+ width: auto
920
+ max-height: 24px
921
+
922
+ // A label with a second line under it: the row keeps its height.
923
+ &:has(.option-text)
924
+ padding: 6px 8px 5px
925
+
926
+ .option-text
927
+ flex: 1
928
+ min-width: 0
929
+ display: flex
930
+ flex-direction: column
931
+
932
+ p
933
+ flex: none
934
+
935
+ .description
936
+ color: var(--textSoft)
937
+
938
+ // The row the keyboard is on reads like the hovered one.
939
+ &:hover,
940
+ &.active
941
+ background: var(--bgSoft)
942
+
943
+ // Section headings group the rows under them; they are read, not picked.
944
+ &.section
945
+ @extend .t-xxs
946
+ padding: 12px 8px 6px
947
+ border-bottom: none
948
+ color: var(--textSoft)
949
+ font-weight: 600
950
+ cursor: default
951
+
952
+ &:hover
953
+ background: none
954
+
955
+ // Grouped lists (recent searches, then popular places) get the room to
956
+ // show more than one group before scrolling.
957
+ &.sectioned
958
+ max-height: min(330px, 60vh)
959
+
960
+ // A list with its own search: the field stays on top while the rows
961
+ // scroll under it.
962
+ &.searchable
963
+ max-height: min(400px, 60vh)
964
+ padding-top: 0
965
+
966
+ li.search
967
+ @extend .t-xs
968
+ margin: 0 -7px
969
+ border-bottom: 1px solid var(--borderSoft)
970
+ padding: 12px 15px
971
+ background: var(--bgPrimary)
972
+ position: sticky
973
+ top: 0
974
+ z-index: 1
975
+ cursor: text
976
+
977
+ &:hover
978
+ background: var(--bgPrimary)
979
+
980
+ .ui-icon
981
+ flex-shrink: 0
982
+ color: var(--textSoft)
983
+
984
+ input
985
+ flex: 1
986
+ min-width: 0
987
+ border: none
988
+ padding: 0
989
+ background: transparent
990
+ color: var(--highlight)
991
+ font-family: inherit
992
+ outline: none
993
+
994
+ &::placeholder
995
+ color: var(--textSoft)
996
+
997
+ li.empty
998
+ @extend .t-xxs
999
+ border-bottom: none
1000
+ color: var(--textSoft)
1001
+ cursor: default
1002
+
1003
+ &:hover
1004
+ background: none
1005
+ /* End: DROPDOWN */
1006
+
1007
+ /* FILE UPLOAD */
1008
+ .ui-file-input
1009
+ // One height for every state: the box never pulls what is under it.
1010
+ min-height: 180px
1011
+ padding: 20px 16px
1012
+ border-radius: 12px
1013
+ border: 2px dashed var(--borderHard)
1014
+ display: flex
1015
+ align-items: center
1016
+ justify-content: center
1017
+ cursor: pointer
1018
+ transition-property: border-color, background
1019
+ transition-duration: 300ms
1020
+
1021
+ &:hover
1022
+ border-color: var(--borderHighlight)
1023
+
1024
+ // Something held over it: the box answers, the arrow lifts.
1025
+ &.dragging
1026
+ border-style: solid
1027
+ border-color: var(--borderHighlight)
1028
+ background: var(--bgSoft)
1029
+
1030
+ .badge
1031
+ background: var(--bgPrimary)
1032
+ transform: scale(1.15)
1033
+
1034
+ .ui-icon
1035
+ animation: ui-file-input-lift 700ms var(--easeOutExpo) infinite alternate
1036
+
1037
+ &.link
1038
+ cursor: default
1039
+
1040
+ .stage
1041
+ width: 100%
1042
+ display: flex
1043
+ flex-direction: column
1044
+ align-items: center
1045
+ gap: 12px
1046
+ text-align: center
1047
+ animation: ui-file-input-in 240ms var(--easeOutExpo)
1048
+
1049
+ .badge
1050
+ width: 40px
1051
+ height: 40px
1052
+ border-radius: 50%
1053
+ background: var(--bgSoft)
1054
+ color: var(--highlight)
1055
+ display: grid
1056
+ place-items: center
1057
+ transition: transform 300ms var(--easeOutBack), background 300ms
1058
+
1059
+ .words
1060
+ display: flex
1061
+ flex-direction: column
1062
+ min-width: 0
1063
+ max-width: 100%
1064
+
1065
+ .lead
1066
+ @extend .t-xs
1067
+ color: var(--highlight)
1068
+ font-weight: 500
1069
+ overflow-wrap: anywhere
1070
+
1071
+ .hint
1072
+ @extend .t-xxs
1073
+ color: var(--textSoft)
1074
+
1075
+ .actions
1076
+ display: flex
1077
+ flex-wrap: wrap
1078
+ justify-content: center
1079
+ gap: 8px
1080
+
1081
+ // The field and its buttons share one height.
1082
+ .link-row
1083
+ width: 100%
1084
+ display: flex
1085
+ align-items: center
1086
+ gap: 8px
1087
+
1088
+ .ui-text-input
1089
+ flex: 1
1090
+ min-width: 0
1091
+
1092
+ // Browse opens it; it never shows.
1093
+ input[type="file"]
1094
+ display: none
1095
+
1096
+ @media (prefers-reduced-motion: reduce)
1097
+ .stage,
1098
+ &.dragging .badge .ui-icon
1099
+ animation: none
1100
+
1101
+ @keyframes ui-file-input-in
1102
+ from
1103
+ opacity: 0
1104
+ transform: translateY(4px)
1105
+
1106
+ @keyframes ui-file-input-lift
1107
+ to
1108
+ transform: translateY(-3px)
1109
+ /* End: FILE UPLOAD */
1110
+
1111
+ /* SIGN IN — the portal's and Octopus's: the card inside the brand photo on a
1112
+ desktop, the native app's plain screen on a phone (the wordmark in the
1113
+ upper half, the field at mid screen, the terms and a full-width pill at
1114
+ the bottom). */
1115
+ .ui-sign-in
1116
+ width: 100%
1117
+ height: 100%
1118
+ background: var(--bgPrimary)
1119
+ display: flex
1120
+ align-items: center
1121
+ justify-content: center
1122
+
1123
+ // The desktop frame: the brand photo around the card.
1124
+ > .frame
1125
+ width: 800px
1126
+ height: 600px
1127
+ border-radius: 24px
1128
+ padding: 8px
1129
+ background: url('/images/login/bg.png') center
1130
+ background-size: cover
1131
+
1132
+ .card
1133
+ position: relative
1134
+ width: 50%
1135
+ height: 100%
1136
+ border-radius: 16px
1137
+ padding: 40px
1138
+ background: var(--bgPrimary)
1139
+ display: flex
1140
+ flex-direction: column
1141
+
1142
+ .corner
1143
+ position: absolute
1144
+ top: 40px
1145
+ right: 40px
1146
+
1147
+ a
1148
+ text-decoration: underline
1149
+ text-underline-offset: 3px
1150
+
1151
+ .logo
1152
+ align-self: flex-start
1153
+ margin-bottom: 64px
1154
+
1155
+ // An agency's mark on the 66px tile Nicer's own logo is drawn on.
1156
+ .logo.agency
1157
+ width: 66px
1158
+ height: 66px
1159
+ border: 1px solid var(--borderSoft)
1160
+ border-radius: 16px
1161
+ overflow: hidden
1162
+
1163
+ h1
1164
+ margin-bottom: 40px
1165
+ font-weight: normal
1166
+
1167
+ .wordmark
1168
+ display: none
1169
+
1170
+ .links
1171
+ display: flex
1172
+ flex-wrap: wrap
1173
+ gap: 12px
1174
+ margin-top: 12px
1175
+
1176
+ button
1177
+ color: inherit
1178
+ text-decoration: underline
1179
+ text-underline-offset: 3px
1180
+ cursor: pointer
1181
+
1182
+ .terms
1183
+ margin: auto 0 24px
1184
+ color: var(--textSoft)
1185
+
1186
+ a
1187
+ text-decoration: underline
1188
+ text-underline-offset: 3px
1189
+
1190
+ .ui-button
1191
+ width: 100%
1192
+
1193
+ @media (max-width: 768px)
1194
+ > .frame
1195
+ width: 100%
1196
+ height: 100%
1197
+ border-radius: 0
1198
+ padding: 0
1199
+ background: none
1200
+
1201
+ .card
1202
+ width: 100%
1203
+ border-radius: 0
1204
+ padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px))
1205
+
1206
+ .corner
1207
+ top: calc(16px + env(safe-area-inset-top, 0px))
1208
+ right: 16px
1209
+
1210
+ .logo,
1211
+ h1
1212
+ display: none
1213
+
1214
+ // The upper half, the wordmark centred in it; the terms below grow to
1215
+ // match, so the field lands at mid screen.
1216
+ .wordmark
1217
+ display: flex
1218
+ flex: 1
1219
+ align-items: center
1220
+ justify-content: center
1221
+
1222
+ img
1223
+ width: 171px
1224
+ height: 40px
1225
+
1226
+ // The native field: 48px, radius 8, a hairline border.
1227
+ .contact
1228
+ input,
1229
+ select
1230
+ height: 48px
1231
+ border-radius: 8px
1232
+ box-shadow: inset 0 0 0 1px var(--borderSoft)
1233
+
1234
+ &:focus
1235
+ box-shadow: inset 0 0 0 1px var(--borderHighlight)
1236
+
1237
+ // The dial code sits for a 40px field; recentre it in this one.
1238
+ .ui-phone-input button
1239
+ top: 50%
1240
+ left: 10px
1241
+ transform: translateY(-50%)
1242
+ color: var(--textNormal)
1243
+
1244
+ .terms
1245
+ flex: 1
1246
+ display: flex
1247
+ align-items: flex-end
1248
+ justify-content: center
1249
+ margin: 0 0 16px
1250
+ text-align: center
1251
+
1252
+ // The native pill: pale gold to continue, the brand's dark to sign in.
1253
+ .ui-button
1254
+ height: 56px
1255
+ border-radius: 12px
1256
+ background: var(--gold200)
1257
+ color: var(--brandBg)
1258
+
1259
+ &.code-step .ui-button
1260
+ background: var(--brandBg)
1261
+ color: var(--brandHighlight)
1262
+
1263
+ // The wordmark is drawn in dark ink; the dark theme turns it light.
1264
+ .dark .ui-sign-in .wordmark img
1265
+ filter: invert(1)
1266
+ /* End: SIGN IN */
1267
+
1268
+ /* AGENCY MARK — an agency's logo over a neutral tile with its initial; the
1269
+ logo shows once it has loaded, so a broken one leaves the initial. */
1270
+ .ui-agency-mark
1271
+ position: relative
1272
+ flex-shrink: 0
1273
+ width: 32px
1274
+ height: 32px
1275
+ border-radius: 8px
1276
+ overflow: hidden
1277
+ background: var(--bgSoft)
1278
+ color: var(--textSoft)
1279
+ display: flex
1280
+ align-items: center
1281
+ justify-content: center
1282
+
1283
+ .initial
1284
+ font-weight: 600
1285
+
1286
+ img
1287
+ position: absolute
1288
+ inset: 0
1289
+ width: 100%
1290
+ height: 100%
1291
+ object-fit: contain
1292
+ background: var(--bgPrimary)
1293
+ opacity: 0
1294
+ transition: opacity 300ms var(--easeOutExpo)
1295
+
1296
+ &.loaded
1297
+ opacity: 1
1298
+
1299
+ &.s
1300
+ width: 24px
1301
+ height: 24px
1302
+ border-radius: 6px
1303
+
1304
+ // The whole of a tile the host frames (and rounds).
1305
+ &.fill
1306
+ width: 100%
1307
+ height: 100%
1308
+ border-radius: 0
1309
+ /* End: AGENCY MARK */
1310
+
1311
+ /* SIDE NAV — the apps' left rail (SideNav): 72px, open over the page on
1312
+ hover with the pages' names, and Edit menu's rows while editing. */
1313
+ .ui-side-nav-overlay
1314
+ width: 100vw
1315
+ height: 100vh
1316
+ // The modal veil's grey in every brand: --bgHard takes the agency's tint,
1317
+ // which turned this veil the brand's colour.
1318
+ background: var(--gray150)
1319
+ opacity: 0
1320
+ position: fixed
1321
+ z-index: 998
1322
+ top: 0
1323
+ left: 0
1324
+ pointer-events: none
1325
+ transition: opacity 300ms
1326
+
1327
+ .ui-side-nav
1328
+ width: 72px
1329
+ height: 100%
1330
+ overflow-y: auto
1331
+ overflow-x: hidden
1332
+ border-right: 1px solid var(--borderSoft)
1333
+ padding: 20px 19px 92px 20px
1334
+ background: var(--bgPrimary)
1335
+ position: fixed
1336
+ z-index: 999
1337
+ top: 0
1338
+ left: 0
1339
+ transition: width 300ms
1340
+
1341
+ // The agency, and Edit menu's button after its chevron: the open
1342
+ // sidebar is wider by the button and its gap, so the agency's name keeps
1343
+ // the room it had (Avenue Two Travel whole).
1344
+ .side-nav-logo
1345
+ width: 100%
1346
+ display: flex
1347
+ align-items: center
1348
+ gap: 4px
1349
+ margin-bottom: 60px
1350
+
1351
+ // The logo's row up to Edit menu: the switcher's button, or a link with
1352
+ // the mark and its name, a page's gap between them.
1353
+ .side-nav-brand
1354
+ flex: 1
1355
+ min-width: 0
1356
+ display: flex
1357
+ align-items: center
1358
+
1359
+ > button:first-child
1360
+ flex: 1
1361
+ min-width: 0
1362
+
1363
+ > a
1364
+ flex: 1
1365
+ min-width: 0
1366
+ display: flex
1367
+ align-items: center
1368
+ gap: 20px
1369
+
1370
+ .label
1371
+ flex: 1
1372
+ min-width: 0
1373
+ overflow: hidden
1374
+ text-overflow: ellipsis
1375
+ white-space: nowrap
1376
+ color: var(--textNormal)
1377
+
1378
+ // There with the labels only, as the sidebar opens, or while the
1379
+ // keyboard is on it. Not a click's focus: Done kept it, and the
1380
+ // closed rail showed the button over the agency's logo.
1381
+ .nav-edit-toggle
1382
+ display: flex
1383
+ flex-shrink: 0
1384
+ margin-left: auto
1385
+ opacity: 0
1386
+ transition: opacity 300ms
1387
+
1388
+ &:has(:focus-visible)
1389
+ opacity: 1
1390
+
1391
+ // Bare beside the chevron, the kit's soft ground under the pointer;
1392
+ // its ring only as Done, so the check doesn't read as the chevron's.
1393
+ .ui-icon-button:not([aria-pressed="true"])
1394
+ box-shadow: none
1395
+
1396
+ // The lone logo only: the agency switcher frames its own, and this rule
1397
+ // rounded the logo inside that frame past the frame's corners.
1398
+ .side-nav-brand > a > img,
1399
+ .side-nav-brand > a > .ui-agency-mark
1400
+ border-radius: 8px
1401
+ box-shadow: 0 16px 16px -8px rgba(0, 0, 0, .4)
1402
+
1403
+ // While editing, the hint and Reset: in the room under the logo, over
1404
+ // the pages' end, so the pages start where they did.
1405
+ .nav-tools
1406
+ height: 28px
1407
+ margin: -44px 0 16px
1408
+ display: flex
1409
+ align-items: center
1410
+ justify-content: flex-end
1411
+ gap: 4px
1412
+
1413
+ .hint
1414
+ flex: 1
1415
+ min-width: 0
1416
+ color: var(--textSoft)
1417
+ white-space: nowrap
1418
+
1419
+ .tool
1420
+ display: flex
1421
+
1422
+ #menu
1423
+ display: flex
1424
+ flex-direction: column
1425
+ gap: 24px
1426
+
1427
+ .disabled
1428
+ opacity: .25
1429
+ pointer-events: none
1430
+
1431
+ // A page while editing: taken anywhere but its eye and dragged where
1432
+ // it stands; a hidden one softer.
1433
+ .nav-row
1434
+ cursor: grab
1435
+ touch-action: none
1436
+ user-select: none
1437
+
1438
+ .nav-grip
1439
+ position: absolute
1440
+ top: 50%
1441
+ left: 5px
1442
+ transform: translateY(-50%)
1443
+ display: flex
1444
+ color: var(--textSoft)
1445
+ transition: color 150ms
1446
+
1447
+ &:hover .nav-grip,
1448
+ &.held .nav-grip
1449
+ color: var(--highlight)
1450
+
1451
+ // The page's mark and name take the row, its eye at the end (the
1452
+ // eye's tooltip wraps it in its own box).
1453
+ .nav-content
1454
+ flex: 1
1455
+
1456
+ .eye
1457
+ display: flex
1458
+ flex-shrink: 0
1459
+
1460
+ &.off .nav-content
1461
+ opacity: .4
1462
+
1463
+ // In hand: lifted over the pages it passes.
1464
+ &.held
1465
+ z-index: 1
1466
+ border-radius: 8px
1467
+ background: var(--bgPrimary)
1468
+ box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .12)
1469
+ cursor: grabbing
1470
+
1471
+ // While a page is in hand, only it reads as held.
1472
+ &.sorting .nav-row:not(.held):hover p
1473
+ color: var(--textSoft)
1474
+
1475
+ a,
1476
+ .nav-row
1477
+ width: calc(100% + 20px)
1478
+ height: 32px
1479
+ overflow: hidden
1480
+ padding-right: 20px
1481
+ display: flex
1482
+ align-items: center
1483
+ gap: 20px
1484
+ position: relative
1485
+
1486
+ .nav-content
1487
+ display: inline-flex
1488
+ align-items: center
1489
+ gap: 20px
1490
+ min-width: 0
1491
+
1492
+ .nav-icon-wrapper
1493
+ position: relative
1494
+ flex-shrink: 0
1495
+
1496
+ .nav-badge
1497
+ position: absolute
1498
+ top: -4px
1499
+ right: -4px
1500
+ min-width: 16px
1501
+ height: 16px
1502
+ padding: 0 4px
1503
+ border-radius: 8px
1504
+ background: var(--negative500)
1505
+ border: 1px solid var(--bgPrimary)
1506
+ color: var(--gray50)
1507
+ font-weight: 700
1508
+ line-height: 12px
1509
+ display: flex
1510
+ align-items: center
1511
+ justify-content: center
1512
+
1513
+ .ui-icon
1514
+ flex-shrink: 0
1515
+ margin: 4px
1516
+
1517
+ p
1518
+ flex: 1
1519
+ padding-right: 8px
1520
+ color: var(--textSoft)
1521
+ white-space: nowrap
1522
+ display: flex
1523
+ align-items: center
1524
+ justify-content: space-between
1525
+ gap: 8px
1526
+ transition: color 300ms
1527
+
1528
+ &:hover
1529
+ p
1530
+ color: var(--highlight)
1531
+
1532
+ &.active
1533
+ p
1534
+ color: var(--highlight)
1535
+
1536
+ &::after
1537
+ content: ''
1538
+ width: 2px
1539
+ height: 100%
1540
+ border-radius: 1px
1541
+ background: var(--highlight)
1542
+ position: absolute
1543
+ top: 0
1544
+ right: 0
1545
+
1546
+ // Editing, a row reaches into the sidebar's left margin with its grip
1547
+ // there, so the pages' marks stay where they were. After the rule
1548
+ // above, whose width it widens.
1549
+ .nav-row
1550
+ margin-left: -18px
1551
+ padding-left: 18px
1552
+ width: calc(100% + 38px)
1553
+
1554
+ figure
1555
+ width: 100%
1556
+ height: 1px
1557
+ background-color: var(--borderSoft)
1558
+
1559
+ .ui-spinner
1560
+ background-color: transparent
1561
+
1562
+ // Open, it lies over the page (the layout keeps the closed rail's room),
1563
+ // so its width moves nothing else. 240px, and Edit menu's button and gap.
1564
+ &:hover,
1565
+ &.expanded
1566
+ width: 272px
1567
+
1568
+ .side-nav-logo .nav-edit-toggle
1569
+ opacity: 1
1570
+
1571
+ & + .ui-side-nav-overlay
1572
+ opacity: .8
1573
+
1574
+ // Dark: the dark grey --bgHard is without a brand.
1575
+ .dark .ui-side-nav-overlay
1576
+ background: var(--gray800)
1577
+ /* End: SIDE NAV */
1578
+
1579
+ /* INPUTS */
1580
+ // Text input (base)
1581
+ .ui-text-input
1582
+ position: relative
1583
+
1584
+ input,
1585
+ textarea
1586
+ @extend .t-xs
1587
+ // Form controls don't inherit the page's font: a textarea fell back to
1588
+ // the browser's monospace.
1589
+ font-family: inherit
1590
+ width: 100%
1591
+ height: 40px
1592
+ border-radius: 8px
1593
+ padding: 0 16px
1594
+ background: var(--bgPrimary)
1595
+ box-shadow: inset 0 0 0 1px var(--borderSoft)
1596
+ color: var(--highlight)
1597
+
1598
+ &::placeholder
1599
+ color: var(--highlight)
1600
+ opacity: .5
1601
+
1602
+ &:focus
1603
+ box-shadow: 0 0 0 2px var(--borderMedium)
1604
+
1605
+ &:not(:placeholder-shown) + label
1606
+ @extend .t-xxxs
1607
+ max-width: calc(100% - 24px)
1608
+ padding: 0 4px
1609
+ background: var(--bgPrimary)
1610
+ opacity: 1
1611
+ top: -8px
1612
+ left: 12px
1613
+
1614
+ &:disabled
1615
+ background: var(--bgMedium)
1616
+ box-shadow: none
1617
+ color: var(--textSoft)
1618
+
1619
+ & + label
1620
+ display: none
1621
+
1622
+ // One line inside the field: a label longer than a narrow field ends in an
1623
+ // ellipsis instead of wrapping out of it.
1624
+ > label
1625
+ @extend .t-xs
1626
+ max-width: calc(100% - 32px)
1627
+ overflow: hidden
1628
+ text-overflow: ellipsis
1629
+ white-space: nowrap
1630
+ opacity: .5
1631
+ position: absolute
1632
+ top: 8px
1633
+ left: 16px
1634
+ pointer-events: none
1635
+ transition: all 150ms
1636
+
1637
+ .ui-spinner
1638
+ position: absolute
1639
+ top: 12px
1640
+ right: 12px
1641
+
1642
+ &.icon
1643
+ input
1644
+ padding-left: 40px
1645
+
1646
+ &:not(:placeholder-shown) + label
1647
+ left: 36px
1648
+
1649
+ > label
1650
+ max-width: calc(100% - 56px)
1651
+ left: 40px
1652
+
1653
+ .ui-icon
1654
+ opacity: .5
1655
+ position: absolute
1656
+ top: 12px
1657
+ left: 12px
1658
+ pointer-events: none
1659
+
1660
+ > .error
1661
+ padding-top: 8px
1662
+ display: flex
1663
+ align-items: center
1664
+ padding: 8px
1665
+
1666
+ .ui-icon,
1667
+ p
1668
+ color: var(--textNegative)
1669
+
1670
+ // Phone input
1671
+ .ui-phone-input
1672
+ @extend .ui-text-input
1673
+
1674
+ // A named phone field: its name rests on the top border from the start,
1675
+ // where a filled TextInput's label floats, since the dial code takes the
1676
+ // spot inside.
1677
+ &.labelled > label
1678
+ @extend .t-xxxs
1679
+ padding: 0 4px
1680
+ background: var(--bgPrimary)
1681
+ opacity: 1
1682
+ top: -8px
1683
+ left: 12px
1684
+
1685
+ // Disabled keeps its chevron, softened like a disabled date input's icon,
1686
+ // so the number stays where it was.
1687
+ input:disabled + button
1688
+ color: var(--textSoft)
1689
+ pointer-events: none
1690
+
1691
+ button
1692
+ height: 24px
1693
+ border-radius: 4px
1694
+ padding: 0 8px
1695
+ color: var(--highlight)
1696
+ display: flex
1697
+ align-items: center
1698
+ gap: 8px
1699
+ position: absolute
1700
+ top: 8px
1701
+ left: 8px
1702
+ cursor: pointer
1703
+ transition: background 300ms
1704
+
1705
+ .ui-icon
1706
+ opacity: .5
1707
+
1708
+ &:hover
1709
+ background: var(--bgSoft)
1710
+
1711
+ // Date input
1712
+ .ui-date-input
1713
+ @extend .ui-text-input
1714
+
1715
+ input
1716
+ cursor: text
1717
+
1718
+ &:disabled + button
1719
+ pointer-events: none
1720
+
1721
+ .ui-icon
1722
+ color: var(--textSoft)
1723
+
1724
+ > label
1725
+ @extend .t-xxxs
1726
+ padding: 0 4px
1727
+ background: var(--bgPrimary)
1728
+ opacity: 1
1729
+ top: -8px
1730
+ left: 12px
1731
+
1732
+ > button
1733
+ width: 32px
1734
+ height: 32px
1735
+ border-radius: 4px
1736
+ position: absolute
1737
+ top: 4px
1738
+ right: 4px
1739
+ cursor: pointer
1740
+ transition: background 300ms
1741
+
1742
+ &:hover
1743
+ background: var(--bgSoft)
1744
+
1745
+ .ui-calendar
1746
+ position: absolute
1747
+ top: 50%
1748
+ left: 50%
1749
+ transform: translate(-50%, -50%)
1750
+
1751
+ // Time input
1752
+ .ui-time-input
1753
+ @extend .ui-text-input
1754
+
1755
+ input
1756
+ display: flex
1757
+ align-items: center
1758
+
1759
+ &::-webkit-datetime-edit,
1760
+ &::-webkit-datetime-edit-hour-field,
1761
+ &::-webkit-datetime-edit-minute-field
1762
+ padding: 0
1763
+
1764
+ &::-webkit-datetime-edit-ampm-field,
1765
+ &::-webkit-calendar-picker-indicator
1766
+ display: none
1767
+
1768
+ .ui-toggle
1769
+ width: 80px
1770
+ position: absolute
1771
+ top: 8px
1772
+ right: 8px
1773
+
1774
+ // Number input
1775
+ .ui-number-input
1776
+ @extend .ui-text-input
1777
+
1778
+ input
1779
+ padding-inline: 40px
1780
+ text-align: center
1781
+
1782
+ // The stepper buttons overlap the field's edges, so the text input's
1783
+ // OUTER focus ring bled out from behind them — keep this one's inset.
1784
+ &:focus
1785
+ box-shadow: inset 0 0 0 2px var(--borderMedium)
1786
+
1787
+ &:disabled
1788
+ & + .ui-nav-button,
1789
+ & + .ui-nav-button + .ui-nav-button
1790
+ display: none
1791
+
1792
+ .ui-nav-button
1793
+ position: absolute
1794
+ z-index: 1
1795
+ top: 10px
1796
+
1797
+ &:nth-child(2)
1798
+ left: 10px
1799
+
1800
+ &:last-child
1801
+ right: 10px
1802
+
1803
+ // Price input
1804
+ .ui-price-input
1805
+ @extend .ui-text-input
1806
+
1807
+ input
1808
+ text-align: right
1809
+
1810
+ &:disabled + select
1811
+ padding-right: 8px
1812
+ background: transparent
1813
+ color: var(--textSoft)
1814
+ pointer-events: none
1815
+
1816
+ b
1817
+ @extend .t-xs
1818
+ position: absolute
1819
+ top: 8px
1820
+ left: 16px
1821
+ pointer-events: none
1822
+
1823
+ select
1824
+ @extend .t-xs
1825
+ height: 24px
1826
+ border-radius: 4px
1827
+ padding: 0 24px 0 8px
1828
+ background: url('../assets/dropdown-black.svg') right 8px top 8px no-repeat
1829
+ position: absolute
1830
+ top: 8px
1831
+ left: 8px
1832
+ cursor: pointer
1833
+ transition: background-color 300ms
1834
+
1835
+ &:hover
1836
+ background-color: var(--bgSoft)
1837
+
1838
+ .dark
1839
+ .ui-price-input
1840
+ select
1841
+ background-image: url('../assets/dropdown-white.svg')
1842
+
1843
+ // Payment input
1844
+ .ui-card-input
1845
+ width: 100%
1846
+ height: 40px
1847
+ border-radius: 8px
1848
+ overflow: hidden
1849
+ background: var(--bgPrimary)
1850
+ box-shadow: inset 0 0 0 1px var(--borderSoft)
1851
+ color: var(--highlight)
1852
+ display: flex
1853
+ position: relative
1854
+
1855
+ &::placeholder
1856
+ color: var(--highlight)
1857
+ opacity: .5
1858
+
1859
+ &.focus
1860
+ box-shadow: 0 0 0 2px var(--borderMedium)
1861
+
1862
+ img
1863
+ width: 24px
1864
+ height: 16px
1865
+ position: absolute
1866
+ top: 12px
1867
+ left: 12px
1868
+
1869
+ input
1870
+ @extend .t-xs
1871
+ height: 100%
1872
+ background: transparent
1873
+
1874
+ &:nth-child(2)
1875
+ width: 60%
1876
+ padding-left: 48px
1877
+
1878
+ &:nth-child(3),
1879
+ &:last-child
1880
+ width: 20%
1881
+
1882
+ &.without-cvv input:last-child
1883
+ width: 40%
1884
+
1885
+ &.disabled
1886
+ background: var(--bgMedium)
1887
+ box-shadow: none
1888
+ color: var(--textSoft)
1889
+ pointer-events: none
1890
+
1891
+ // Autocomplete
1892
+ .ui-autocomplete
1893
+ position: relative
1894
+
1895
+ .ui-spinner
1896
+ position: absolute
1897
+ top: 12px
1898
+ right: 12px
1899
+
1900
+ // Text area
1901
+ .ui-text-area
1902
+ @extend .ui-text-input
1903
+
1904
+ textarea
1905
+ @extend .no-scrollbar
1906
+ height: 120px
1907
+ resize: none
1908
+ padding: 8px 16px
1909
+ /* End: INPUTS */
1910
+
1911
+ /* MODAL */
1912
+ .ui-modal
1913
+ @extend .no-scrollbar
1914
+ width: 400px
1915
+ // Long content (forms, lists) scrolls inside the box instead of pushing
1916
+ // it past the viewport — desktop had no ceiling at all.
1917
+ max-height: calc(100dvh - 96px)
1918
+ border-radius: 24px
1919
+ overflow-y: auto
1920
+ overflow-x: hidden
1921
+ border: 1px solid var(--borderMedium)
1922
+ padding: 15px
1923
+ background: var(--bgPrimary)
1924
+ display: flex
1925
+ flex-direction: column
1926
+ gap: 48px
1927
+
1928
+ &.no-content
1929
+ gap: 10px
1930
+
1931
+ > header
1932
+ padding: 8px 8px 0
1933
+ display: flex
1934
+ gap: 16px
1935
+
1936
+ h6
1937
+ flex: 1
1938
+ word-break: break-all
1939
+
1940
+ .ui-nav-button
1941
+ flex-shrink: 0
1942
+ margin-top: 4px
1943
+
1944
+ > div
1945
+ flex-grow: 1
1946
+ min-height: 0
1947
+ padding: 0 8px
1948
+
1949
+ > .ui-button
1950
+ width: 100%
1951
+
1952
+ // Phone-sized: the fixed 400px box overflowed a 375px screen and sat flush
1953
+ // against the edges, and 48px of gap made every modal feel oversized.
1954
+ // Nothing to opt into — the modal adapts to the viewport it's in.
1955
+ @media (max-width: 600px)
1956
+ width: 100%
1957
+ max-width: calc(100vw - 32px)
1958
+ max-height: calc(100dvh - 96px)
1959
+ border-radius: 20px
1960
+ gap: 28px
1961
+ padding: 12px
1962
+
1963
+ > header
1964
+ padding: 6px 6px 0
1965
+
1966
+ h6
1967
+ word-break: normal
1968
+ overflow-wrap: anywhere
1969
+
1970
+ > div
1971
+ padding: 0 6px
1972
+ /* End: MODAL */
1973
+
1974
+ /* NAV BUTTON */
1975
+ .ui-nav-button
1976
+ border-radius: 50%
1977
+ background: var(--bgSoft)
1978
+ color: var(--highlight)
1979
+ display: flex
1980
+ align-items: center
1981
+ justify-content: center
1982
+ cursor: pointer
1983
+ transition: background 300ms
1984
+
1985
+ &.l
1986
+ width: 40px
1987
+ height: 40px
1988
+
1989
+ &.s
1990
+ width: 20px
1991
+ height: 20px
1992
+
1993
+ &:hover
1994
+ background: var(--bgMedium)
1995
+ /* End: NAV BUTTON */
1996
+
1997
+ /* OVERLAY */
1998
+ .ui-overlay
1999
+ width: 100vw
2000
+ height: 100vh
2001
+ background: rgba(217, 217, 217, .9)
2002
+ display: flex
2003
+ align-items: center
2004
+ justify-content: center
2005
+ position: fixed
2006
+ z-index: 1000
2007
+ top: 0
2008
+ left: 0
2009
+ animation: overlay 300ms var(--easeOutBack) forwards
2010
+
2011
+ @keyframes overlay
2012
+ from
2013
+ transform: scale(0.75)
2014
+ opacity: 0
2015
+
2016
+ to
2017
+ transform: none
2018
+ opacity: 1
2019
+
2020
+ > figure
2021
+ width: 100%
2022
+ height: 100%
2023
+ position: absolute
2024
+ z-index: -1
2025
+ top: 0
2026
+ left: 0
2027
+
2028
+ .dark
2029
+ .ui-overlay
2030
+ background: rgba(64, 64, 64, .9)
2031
+ /* End: OVERLAY */
2032
+
2033
+ /* PAGINATOR */
2034
+ .ui-paginator
2035
+ @extend .t-xxs
2036
+ color: var(--textNormal)
2037
+ display: flex
2038
+ gap: 24px
2039
+
2040
+ p
2041
+ white-space: nowrap
2042
+
2043
+ > :first-child
2044
+ display: flex
2045
+ gap: 8px
2046
+
2047
+ select
2048
+ @extend .t-xxs
2049
+ height: 20px
2050
+ border-radius: 10px
2051
+ background: var(--bgSoft) url('../assets/dropdown-black.svg') right 8px center no-repeat
2052
+ padding-inline: 8px 20px
2053
+ cursor: pointer
2054
+ transition: 300ms
2055
+
2056
+ &:hover
2057
+ background-color: var(--bgMedium)
2058
+
2059
+ > :last-child
2060
+ display: flex
2061
+ gap: 12px
2062
+
2063
+ .dark
2064
+ .ui-paginator
2065
+ > :first-child
2066
+ select
2067
+ background-image: url('../assets/dropdown-white.svg')
2068
+ /* End: PAGINATOR */
2069
+
2070
+ /* SELECT */
2071
+ .ui-select
2072
+ @extend .t-xs
2073
+ width: 100%
2074
+ height: 40px
2075
+ border-radius: 8px
2076
+ padding: 0 16px
2077
+ background: var(--bgPrimary) url('../assets/dropdown-black.svg') right 15px top 15px no-repeat
2078
+ box-shadow: inset 0 0 0 1px var(--borderSoft)
2079
+ cursor: pointer
2080
+ transition: border-color 150ms
2081
+
2082
+ &:focus
2083
+ box-shadow: 0 0 0 2px var(--borderMedium)
2084
+
2085
+ // Unanswered, it shows its placeholder muted like an input's, so the
2086
+ // question never reads as its own answer.
2087
+ &:has(> option:disabled:checked)
2088
+ color: var(--textSoft)
2089
+
2090
+ option
2091
+ color: var(--highlight)
2092
+
2093
+ &:disabled
2094
+ color: var(--textSoft)
2095
+
2096
+ &:disabled
2097
+ background: var(--bgMedium) !important
2098
+ box-shadow: none
2099
+ color: var(--textSoft)
2100
+ pointer-events: none
2101
+
2102
+ .dark
2103
+ .ui-select
2104
+ background-image: url('../assets/dropdown-white.svg')
2105
+ /* End: SELECT */
2106
+
2107
+ /* SEPARATOR */
2108
+ .ui-separator
2109
+ background: var(--borderSoft)
2110
+
2111
+ &.vertical
2112
+ width: 1px !important
2113
+
2114
+ &.horizontal
2115
+ height: 1px !important
2116
+ /* End: SEPARATOR */
2117
+
2118
+ /* SLIDER */
2119
+ .ui-slider
2120
+ height: 20px
2121
+ position: relative
2122
+
2123
+ &::before
2124
+ content: ''
2125
+ width: 100%
2126
+ height: 4px
2127
+ border-radius: 4px
2128
+ background: var(--borderMedium)
2129
+ position: absolute
2130
+ top: 8px
2131
+ left: 0
2132
+
2133
+ figure
2134
+ height: 4px
2135
+ margin: 0
2136
+ border-radius: 2px
2137
+ background: var(--highlight)
2138
+ position: absolute
2139
+ top: 8px
2140
+
2141
+ input
2142
+ width: 100%
2143
+ height: 4px
2144
+ background: transparent
2145
+ position: absolute
2146
+ top: 8px
2147
+ left: 0
2148
+ margin: 0
2149
+ pointer-events: none
2150
+ // Without it WebKit keeps its native thumb and ignores the one below.
2151
+ -webkit-appearance: none
2152
+ appearance: none
2153
+
2154
+ &::-ms-track
2155
+ opacity: 0
2156
+
2157
+ &::-webkit-slider-thumb
2158
+ -webkit-appearance: none
2159
+ appearance: none
2160
+ width: 20px
2161
+ height: 20px
2162
+ border-radius: 50%
2163
+ border: 1px solid var(--borderHard)
2164
+ background: var(--bgPrimary)
2165
+ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .1)
2166
+ cursor: pointer
2167
+ pointer-events: all
2168
+
2169
+ &::-moz-range-thumb
2170
+ width: 20px
2171
+ height: 20px
2172
+ border-radius: 50%
2173
+ border: 1px solid var(--borderHard)
2174
+ background: var(--bgPrimary)
2175
+ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .1)
2176
+ cursor: pointer
2177
+ pointer-events: all
2178
+
2179
+ &::-ms-thumb
2180
+ width: 20px
2181
+ height: 20px
2182
+ border-radius: 50%
2183
+ border: 1px solid var(--borderHard)
2184
+ background: var(--bgPrimary)
2185
+ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .1)
2186
+ cursor: pointer
2187
+ pointer-events: all
2188
+ /* End: SLIDER */
2189
+
2190
+ /* SPINNER */
2191
+ .ui-spinner
2192
+ width: 24px
2193
+ height: 24px
2194
+ background-color: currentColor
2195
+ -webkit-mask-image: url(../assets/spinner-black.png)
2196
+ -webkit-mask-repeat: no-repeat
2197
+ -webkit-mask-size: contain
2198
+ mask-image: url(../assets/spinner-black.png)
2199
+ mask-repeat: no-repeat
2200
+ mask-size: contain
2201
+ animation: spinner linear 300ms infinite
2202
+
2203
+ @keyframes spinner
2204
+ to
2205
+ transform: rotate(360deg)
2206
+
2207
+ /* End: SPINNER */
2208
+
2209
+ /* SWITCH */
2210
+ .ui-switch
2211
+ background: var(--bgSoft)
2212
+ box-shadow: inset 0 0 0 1px var(--bgHard)
2213
+ position: relative
2214
+ cursor: pointer
2215
+ transition: background 300ms
2216
+
2217
+ &::after
2218
+ content: ''
2219
+ border-radius: 50%
2220
+ background: white
2221
+ position: absolute
2222
+ transition: left 300ms var(--easeOutBack)
2223
+
2224
+ &.l
2225
+ width: 48px
2226
+ height: 32px
2227
+ border-radius: 16px
2228
+
2229
+ &::after
2230
+ width: 16px
2231
+ height: 16px
2232
+ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .2)
2233
+ top: 8px
2234
+ left: 8px
2235
+
2236
+ &.checked::after
2237
+ left: 24px
2238
+
2239
+ &.s
2240
+ width: 36px
2241
+ height: 24px
2242
+ border-radius: 12px
2243
+
2244
+ &::after
2245
+ width: 12px
2246
+ height: 12px
2247
+ box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .2)
2248
+ top: 6px
2249
+ left: 6px
2250
+
2251
+ &.checked::after
2252
+ left: 18px
2253
+
2254
+ &:hover
2255
+ background: var(--bgMedium)
2256
+
2257
+ &:focus
2258
+ box-shadow: 0 0 0 2px var(--borderMedium)
2259
+
2260
+ &.checked
2261
+ background: var(--brandBg)
2262
+ box-shadow: none
2263
+
2264
+ &:disabled
2265
+ background: var(--bgHard)
2266
+ box-shadow: none
2267
+ pointer-events: none
2268
+
2269
+ &::after
2270
+ background: var(--textSoft)
2271
+ box-shadow: none
2272
+ /* End: SWITCH */
2273
+
2274
+ /* TABLE */
2275
+ .ui-table
2276
+ > header
2277
+ border-bottom: 1px solid var(--borderSoft)
2278
+ padding: 10px 20px
2279
+ display: flex
2280
+
2281
+ p,
2282
+ b
2283
+ @extend .t-xxs
2284
+ font-weight: normal !important
2285
+ flex: 1
2286
+
2287
+ &.right
2288
+ text-align: right
2289
+
2290
+ > ul
2291
+ list-style: none
2292
+
2293
+ > li
2294
+ @extend .t-xs
2295
+ min-height: 64px
2296
+ border-bottom: 1px solid var(--borderSoft)
2297
+ padding: 20px
2298
+ display: flex
2299
+ flex-direction: column
2300
+ justify-content: center
2301
+ gap: 8px
2302
+
2303
+ &.dropdown
2304
+ @extend .t-xxs
2305
+ padding-block: 8px
2306
+ background: var(--bgSoft)
2307
+ gap: 4px
2308
+
2309
+ .row
2310
+ display: flex
2311
+ align-items: center
2312
+
2313
+ > div
2314
+ flex: 1
2315
+ color: var(--textNormal)
2316
+ display: flex
2317
+ align-items: center
2318
+ gap: 20px
2319
+
2320
+ &.right
2321
+ justify-content: flex-end
2322
+
2323
+ .actions
2324
+ position: relative
2325
+
2326
+ .ui-actions
2327
+ top: calc(100% + 4px)
2328
+ right: 0
2329
+ /* TABLE */
2330
+
2331
+ /* TABS */
2332
+ .ui-tabs
2333
+ display: flex
2334
+ position: relative
2335
+
2336
+ p
2337
+ position: relative
2338
+ padding: 0 20px 12px
2339
+
2340
+ .count
2341
+ margin-left: 8px
2342
+ padding: 1px 7px
2343
+ border-radius: 999px
2344
+ background: var(--bgSoft)
2345
+ color: var(--textSoft)
2346
+
2347
+ // Something in the tab waits, unsaved: the brand's dot. It sits in the
2348
+ // tab's own right padding, centred on the label's line, so showing it
2349
+ // moves neither the tabs after it nor the underline.
2350
+ .mark
2351
+ position: absolute
2352
+ top: calc(50% - 9px)
2353
+ right: 8px
2354
+ width: 6px
2355
+ height: 6px
2356
+ border-radius: 50%
2357
+ background: var(--brandBg)
2358
+ color: var(--textNormal)
2359
+ cursor: pointer
2360
+ transition: color 300ms
2361
+
2362
+ &:hover,
2363
+ &.active
2364
+ color: var(--highlight)
2365
+
2366
+ figure
2367
+ height: 2px
2368
+ background: var(--highlight)
2369
+ position: absolute
2370
+ bottom: 0
2371
+ transition: all 300ms var(--easeOutExpo)
2372
+ /* End: TABS */
2373
+
2374
+ /* TAG */
2375
+ .ui-tag
2376
+ @extend .t-xxs
2377
+ border-radius: 4px
2378
+ padding-inline: 8px
2379
+ white-space: nowrap
2380
+ display: inline-flex
2381
+ align-items: center
2382
+ gap: 8px
2383
+
2384
+ button
2385
+ display: flex
2386
+ opacity: .5
2387
+ cursor: pointer
2388
+ transition: opacity 150ms
2389
+
2390
+ &:hover
2391
+ opacity: 1
2392
+
2393
+ &.default
2394
+ background: var(--bgSoft)
2395
+ color: var(--textNormal)
2396
+
2397
+ &.positive
2398
+ background: var(--bgPositive)
2399
+ color: var(--textPositive)
2400
+
2401
+ &.warning
2402
+ background: var(--bgWarning)
2403
+ color: var(--textWarning)
2404
+
2405
+ &.negative
2406
+ background: var(--bgNegative)
2407
+ color: var(--textNegative)
2408
+
2409
+ &.disabled
2410
+ background: var(--bgSoft)
2411
+ color: var(--textSoft)
2412
+ /* End: TAG */
2413
+
2414
+ /* TOAST */
2415
+ .ui-toast
2416
+ height: 40px
2417
+ border-radius: 12px
2418
+ border: 1px solid var(--borderHard)
2419
+ padding-inline: 7px
2420
+ background: var(--bgPrimary)
2421
+ box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .1)
2422
+ display: flex
2423
+ align-items: center
2424
+ gap: 16px
2425
+ position: fixed
2426
+ z-index: 1000
2427
+ bottom: 40px
2428
+ left: 50%
2429
+ animation: toast 600ms var(--easeOutBack) forwards
2430
+
2431
+ // A phone gets the full width: sized to its one-line content the toast
2432
+ // squeezed long copy into a tall three-line sliver.
2433
+ @media (max-width: 768px)
2434
+ width: calc(100vw - 32px)
2435
+ height: auto
2436
+ min-height: 40px
2437
+ padding-block: 8px
2438
+
2439
+ p
2440
+ flex: 1
2441
+
2442
+ @keyframes toast
2443
+ from
2444
+ opacity: 0
2445
+ transform: translate(-50%, 100%)
2446
+
2447
+ to
2448
+ opacity: 1
2449
+ transform: translateX(-50%)
2450
+
2451
+ figure,
2452
+ button
2453
+ width: 24px
2454
+ height: 24px
2455
+ border-radius: 4px
2456
+ display: flex
2457
+ align-items: center
2458
+ justify-content: center
2459
+
2460
+ p
2461
+ @extend .t-xxs
2462
+
2463
+ svg
2464
+ width: 24px
2465
+ height: 24px
2466
+
2467
+ path
2468
+ fill: none
2469
+ stroke: var(--highlight)
2470
+ stroke-linecap: round
2471
+ stroke-width: 2px
2472
+ stroke-dashoffset: 44px
2473
+ animation: toggleSVGPath 5s linear forwards
2474
+
2475
+ @keyframes toggleSVGPath
2476
+ from
2477
+ stroke-dasharray: 44px
2478
+
2479
+ to
2480
+ stroke-dasharray: 88px
2481
+
2482
+ button
2483
+ cursor: pointer
2484
+ transition: background 150ms
2485
+
2486
+ &:hover
2487
+ background: rgba(0, 0, 0, .05)
2488
+
2489
+ // Undo and its like: the label underlined after the message, before the
2490
+ // ring.
2491
+ button.action
2492
+ @extend .t-xxs
2493
+ width: auto
2494
+ padding: 0 6px
2495
+ gap: 6px
2496
+ color: var(--highlight)
2497
+ font-weight: 600
2498
+ text-decoration: underline
2499
+ text-underline-offset: 3px
2500
+ white-space: nowrap
2501
+
2502
+ &.info figure
2503
+ background: var(--bgMedium)
2504
+
2505
+ &.success figure
2506
+ background: var(--bgPositive)
2507
+ color: var(--textPositive)
2508
+
2509
+ &.warning figure
2510
+ background: var(--bgWarning)
2511
+ color: var(--textWarning)
2512
+
2513
+ &.error figure
2514
+ background: var(--bgNegative)
2515
+ color: var(--textNegative)
2516
+ /* End: TOAST */
2517
+
2518
+ /* TOOGLE */
2519
+ // Equal columns, each as wide as the longest label: the sliding figure is
2520
+ // one column wide, so a longer label (Agency next to Mine) used to push
2521
+ // its button past the figure and leave both labels off-centre.
2522
+ .ui-toggle
2523
+ overflow: hidden
2524
+ background: var(--bgSoft)
2525
+ // Equal columns: the highlight is one equal part, whatever each label measures.
2526
+ display: grid
2527
+ grid-auto-flow: column
2528
+ grid-auto-columns: 1fr
2529
+ position: relative
2530
+ z-index: 1
2531
+
2532
+ figure
2533
+ background: var(--bgPrimary)
2534
+ box-shadow: 0 0 2px 0 rgba(0, 0, 0, .2)
2535
+ position: absolute
2536
+ z-index: -1
2537
+ transition: transform 300ms var(--easeOutExpo)
2538
+
2539
+ button
2540
+ @extend .t-xxs
2541
+ cursor: pointer
2542
+ transition: color 150ms
2543
+ white-space: nowrap
2544
+ padding-inline: 12px
2545
+
2546
+ &.active
2547
+ pointer-events: none
2548
+
2549
+ &:not(.active)
2550
+ color: var(--textSoft)
2551
+
2552
+ &:hover
2553
+ color: var(--highlight)
2554
+
2555
+ // A view's icon before its name.
2556
+ &.with-icon
2557
+ display: inline-flex
2558
+ align-items: center
2559
+ justify-content: center
2560
+ gap: 6px
2561
+
2562
+ &.xl
2563
+ width: 100%
2564
+ height: 40px
2565
+ border-radius: 12px
2566
+ padding: 4px
2567
+
2568
+ figure
2569
+ height: 32px
2570
+ border-radius: 8px
2571
+ top: 4px
2572
+ left: 4px
2573
+
2574
+ &.l
2575
+ height: 40px
2576
+ border-radius: 12px
2577
+ padding: 4px
2578
+
2579
+ figure
2580
+ height: 32px
2581
+ border-radius: 8px
2582
+ top: 4px
2583
+ left: 4px
2584
+
2585
+ &.s
2586
+ height: 24px
2587
+ border-radius: 6px
2588
+ padding: 2px
2589
+
2590
+ figure
2591
+ height: 20px
2592
+ border-radius: 4px
2593
+ top: 2px
2594
+ left: 2px
2595
+
2596
+ &.disabled
2597
+ background: var(--bgHard)
2598
+ pointer-events: none
2599
+
2600
+ figure
2601
+ background: var(--bgMedium)
2602
+ box-shadow: none
2603
+
2604
+ button
2605
+ &.active
2606
+ color: var(--textNormal)
2607
+ /* End: TOOGLE */
2608
+
2609
+ // REVISAR
2610
+ /* DRAWER */
2611
+ .ui-drawer
2612
+ width: 100vw
2613
+ height: 100vh
2614
+ display: flex
2615
+ flex-direction: column
2616
+ position: fixed
2617
+ z-index: 1000
2618
+ top: 0
2619
+ left: 0
2620
+ animation: drawer 600ms var(--easeOutExpo) forwards
2621
+
2622
+ @keyframes drawer
2623
+ from
2624
+ background: transparent
2625
+
2626
+ to
2627
+ background: rgba(230, 230, 230, .8)
2628
+
2629
+ > figure
2630
+ flex: 1
2631
+ min-height: 80px
2632
+
2633
+ > div
2634
+ border-radius: 16px 16px 0 0
2635
+ padding: 16px 16px 0
2636
+ background: white
2637
+ display: flex
2638
+ flex-direction: column
2639
+ align-items: center
2640
+ gap: 16px
2641
+ animation: drawerDiv 600ms var(--easeOutExpo) forwards
2642
+
2643
+ @keyframes drawerDiv
2644
+ from
2645
+ transform: translateY(100%)
2646
+
2647
+ to
2648
+ transform: none
2649
+
2650
+ &::before
2651
+ flex-shrink: 0
2652
+ content: ''
2653
+ width: 20px
2654
+ height: 1px
2655
+ border-radius: .5px
2656
+ background: var(--gray200)
2657
+
2658
+ > div
2659
+ width: 100%
2660
+
2661
+ &.scrolleable
2662
+ > figure
2663
+ flex: 0
2664
+
2665
+ > div
2666
+ @extend .no-scrollbar
2667
+ flex: 1
2668
+ overflow-y: auto
2669
+
2670
+ // Dark
2671
+ .dark
2672
+ .ui-drawer
2673
+ animation-name: darkDrawer
2674
+
2675
+ @keyframes darkDrawer
2676
+ from
2677
+ background: transparent
2678
+
2679
+ to
2680
+ background: rgba(26, 26, 26, .8)
2681
+
2682
+ > div
2683
+ background: black
2684
+
2685
+ &::before
2686
+ background: var(--gray800)
2687
+ /* End: DRAWER */
2688
+
2689
+ /* TOOLTIP */
2690
+ .ui-tooltip
2691
+ position: relative
2692
+ cursor: help
2693
+
2694
+ &.disabled
2695
+ cursor: inherit
2696
+
2697
+ // On body, fixed: placed by the component in viewport coordinates.
2698
+ .ui-tooltip-bubble
2699
+ position: fixed
2700
+ // Above every popover and card: nothing is meant to sit over a hint.
2701
+ z-index: 1300
2702
+ width: max-content
2703
+ padding: 4px
2704
+ // The border tokens, so an agency's brand tints it like every card and
2705
+ // input; Nicer's own theme keeps gray200 here and gray800 in dark.
2706
+ border: 1px solid var(--borderHard)
2707
+ border-radius: 4px
2708
+ background: var(--bgPrimary)
2709
+ color: var(--highlight)
2710
+ line-height: 1.4
2711
+ overflow-wrap: break-word
2712
+ white-space: normal
2713
+ pointer-events: none
2714
+
2715
+ // Dark
2716
+ .dark
2717
+ .ui-tooltip-bubble
2718
+ border-color: var(--borderMedium)
2719
+ /* End: TOOLTIP */