@plexui/styles 0.1.30 → 0.1.31
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.
|
@@ -252,6 +252,18 @@
|
|
|
252
252
|
flex-shrink: 0;
|
|
253
253
|
justify-content: flex-end;
|
|
254
254
|
gap: 0.5rem;
|
|
255
|
+
}.HeaderAction {
|
|
256
|
+
position: absolute;
|
|
257
|
+
top: 0.75rem;
|
|
258
|
+
inset-inline-end: 3.25rem;
|
|
259
|
+
display: flex;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.HeaderAction > button {
|
|
263
|
+
--button-size: 2rem;
|
|
264
|
+
--button-radius: var(--radius-full);
|
|
265
|
+
}.Panel:has(.HeaderAction) > .Header {
|
|
266
|
+
padding-inline-end: 4.75rem;
|
|
255
267
|
}.Title {
|
|
256
268
|
margin: 0;
|
|
257
269
|
font-size: 1.125rem;
|
|
@@ -318,5 +330,192 @@
|
|
|
318
330
|
--button-font-size: var(--dialog-mobile-action-font-size);
|
|
319
331
|
--button-gutter: var(--control-gutter-xl);
|
|
320
332
|
}
|
|
333
|
+
}/* iOS presentations are opt-in; placement and all desktop styles remain independent. */@media (width <= 640px) {
|
|
334
|
+
.Content[data-mobile-variant="alert"] {
|
|
335
|
+
--dialog-content-align: center;
|
|
336
|
+
--dialog-content-justify: center;
|
|
337
|
+
--dialog-content-padding: 1rem;
|
|
338
|
+
--dialog-panel-width: var(--dialog-alert-width);
|
|
339
|
+
--dialog-panel-height: auto;
|
|
340
|
+
--dialog-panel-max-height: calc(100dvh - 2rem);
|
|
341
|
+
--dialog-panel-radius: var(--dialog-alert-radius);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.Content[data-mobile-variant="alert"] .Panel {
|
|
345
|
+
gap: 10px;
|
|
346
|
+
padding: var(--dialog-alert-padding);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.Content[data-mobile-variant="alert"] .CloseButton,
|
|
350
|
+
.Content[data-mobile-variant="alert"] .HeaderAction {
|
|
351
|
+
display: none;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.Content[data-mobile-variant="alert"] .Header {
|
|
355
|
+
gap: 10px;
|
|
356
|
+
padding: 8px 8px 24px;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.Content[data-mobile-variant="alert"] .Header > :first-child {
|
|
360
|
+
padding-inline-end: 0;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.Content[data-mobile-variant="alert"] .Title,
|
|
364
|
+
.Content[data-mobile-variant="alert"] .Description,
|
|
365
|
+
.Content[data-mobile-variant="sheet"] .Title {
|
|
366
|
+
font-size: var(--dialog-mobile-type-size);
|
|
367
|
+
line-height: var(--dialog-mobile-type-leading);
|
|
368
|
+
letter-spacing: -0.43px;
|
|
369
|
+
overflow-wrap: anywhere;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.Content[data-mobile-variant="alert"] .Description {
|
|
373
|
+
color: var(--color-text);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.Content[data-mobile-variant="alert"] .Body {
|
|
377
|
+
margin-inline: 0;
|
|
378
|
+
padding: 2px 8px;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.Content[data-mobile-variant] .Footer {
|
|
382
|
+
gap: 10px;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.Content[data-mobile-variant] .Footer > * {
|
|
386
|
+
--button-size: var(--dialog-alert-action-height);
|
|
387
|
+
--button-font-size: var(--dialog-mobile-type-size);
|
|
388
|
+
--button-gutter: 16px;
|
|
389
|
+
min-width: 0;
|
|
390
|
+
max-width: 100%;
|
|
391
|
+
min-height: var(--dialog-alert-action-height);
|
|
392
|
+
height: auto;
|
|
393
|
+
padding-block: 13px;
|
|
394
|
+
line-height: var(--dialog-mobile-type-leading);
|
|
395
|
+
white-space: normal;
|
|
396
|
+
overflow-wrap: anywhere;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]),
|
|
400
|
+
.Content .Footer[data-mobile-layout="inline"] {
|
|
401
|
+
flex-flow: row wrap;
|
|
402
|
+
gap: 10px 16px;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > *, .Content .Footer[data-mobile-layout="inline"] > * {
|
|
406
|
+
flex: 1 0 auto;
|
|
407
|
+
width: auto;
|
|
408
|
+
min-width: calc(50% - 8px);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.Content .Footer[data-mobile-layout="inline"] > * {
|
|
412
|
+
max-width: 100%;
|
|
413
|
+
white-space: normal;
|
|
414
|
+
overflow-wrap: anywhere;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.Content[data-mobile-variant="sheet"] {
|
|
418
|
+
--field-group-radius: 26px;
|
|
419
|
+
--dialog-panel-max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 16px);
|
|
420
|
+
--dialog-panel-radius: var(--dialog-sheet-radius) var(--dialog-sheet-radius) 0 0;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] {
|
|
424
|
+
--dialog-panel-max-height: 100dvh;
|
|
425
|
+
--dialog-panel-radius: 0;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.Content[data-mobile-variant="sheet"] .Panel {
|
|
429
|
+
gap: 0;
|
|
430
|
+
padding: 0;
|
|
431
|
+
overflow: auto;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.Content[data-mobile-variant="sheet"] .Panel:has(> .Body) {
|
|
435
|
+
overflow: hidden;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.Content[data-mobile-variant="sheet"] .Header {
|
|
439
|
+
position: relative;
|
|
440
|
+
gap: 0;
|
|
441
|
+
min-height: 70px;
|
|
442
|
+
padding: 16px 68px 10px;
|
|
443
|
+
text-align: center;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.Content[data-mobile-variant="sheet"] .Header::before {
|
|
447
|
+
position: absolute;
|
|
448
|
+
top: 5px;
|
|
449
|
+
left: calc(50% - 18px);
|
|
450
|
+
width: 36px;
|
|
451
|
+
height: 5px;
|
|
452
|
+
border-radius: var(--radius-full);
|
|
453
|
+
background: var(--color-background-secondary-soft-alpha);
|
|
454
|
+
content: "";
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.Content[data-mobile-variant="sheet"] .Header > :first-child {
|
|
458
|
+
display: flex;
|
|
459
|
+
align-items: center;
|
|
460
|
+
justify-content: center;
|
|
461
|
+
min-height: 44px;
|
|
462
|
+
padding-inline-end: 0;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.Content[data-mobile-variant="sheet"] .CloseButton {
|
|
466
|
+
z-index: 1;
|
|
467
|
+
top: 16px;
|
|
468
|
+
inset-inline-start: 16px;
|
|
469
|
+
inset-inline-end: auto;
|
|
470
|
+
width: var(--dialog-sheet-close-size);
|
|
471
|
+
height: var(--dialog-sheet-close-size);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.Content[data-mobile-variant="sheet"] .CloseButton::before {
|
|
475
|
+
inset: 0;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.Content[data-mobile-variant="sheet"] .HeaderAction {
|
|
479
|
+
top: 16px;
|
|
480
|
+
inset-inline-end: 16px;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.Content[data-mobile-variant="sheet"] .HeaderAction > button {
|
|
484
|
+
--button-size: var(--dialog-sheet-close-size);
|
|
485
|
+
--button-icon-size: 24px;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.Content[data-mobile-variant="sheet"] .CloseIcon {
|
|
489
|
+
width: var(--dialog-sheet-close-icon-size);
|
|
490
|
+
height: var(--dialog-sheet-close-icon-size);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.Content[data-mobile-variant="sheet"] .Body {
|
|
494
|
+
margin-inline: 0;
|
|
495
|
+
padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px));
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.Content[data-mobile-variant="sheet"] .Panel:has(> .Footer) > .Body {
|
|
499
|
+
padding-bottom: 16px;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.Content[data-mobile-variant="sheet"] .Footer {
|
|
503
|
+
padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px));
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header {
|
|
507
|
+
min-height: calc(54px + env(safe-area-inset-top, 0px));
|
|
508
|
+
padding-top: env(safe-area-inset-top, 0px);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header::before {
|
|
512
|
+
display: none;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .CloseButton,
|
|
516
|
+
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .HeaderAction {
|
|
517
|
+
top: env(safe-area-inset-top, 0px);
|
|
518
|
+
}
|
|
519
|
+
|
|
321
520
|
}
|
|
322
521
|
}
|
|
@@ -15,10 +15,15 @@
|
|
|
15
15
|
.Page[data-width="column"] {
|
|
16
16
|
--page-width: var(--page-width-column);
|
|
17
17
|
}/* Header and content read one width, so the line, the title, the buttons and the content are one column. */.Head,
|
|
18
|
-
.Column
|
|
18
|
+
.Column,
|
|
19
|
+
.FooterContent {
|
|
19
20
|
width: 100%;
|
|
20
21
|
max-width: var(--page-width, none);
|
|
21
22
|
margin-inline: auto;
|
|
23
|
+
}.Footer {
|
|
24
|
+
flex: none;
|
|
25
|
+
padding: 16px var(--page-gutter) max(16px, env(safe-area-inset-bottom, 0px));
|
|
26
|
+
background: var(--page-background);
|
|
22
27
|
}.Header {
|
|
23
28
|
flex: none;
|
|
24
29
|
padding: var(--page-header-padding-top) var(--page-gutter) 0;
|
|
@@ -362,6 +362,15 @@
|
|
|
362
362
|
--dialog-max-width: 450px;
|
|
363
363
|
--dialog-container-inner-padding: calc(var(--spacing) * 5);
|
|
364
364
|
--dialog-backdrop-fade-background: color-mix(in oklab, var(--color-surface-elevated) 60%, transparent);
|
|
365
|
+
--dialog-alert-width: 300px;
|
|
366
|
+
--dialog-alert-radius: 34px;
|
|
367
|
+
--dialog-alert-padding: 14px;
|
|
368
|
+
--dialog-alert-action-height: 48px;
|
|
369
|
+
--dialog-sheet-radius: 38px;
|
|
370
|
+
--dialog-sheet-close-size: var(--control-size-2xl);
|
|
371
|
+
--dialog-sheet-close-icon-size: 34px;
|
|
372
|
+
--dialog-mobile-type-size: 17px;
|
|
373
|
+
--dialog-mobile-type-leading: 22px;
|
|
365
374
|
--dialog-mobile-close-size: var(--control-size-md);
|
|
366
375
|
--dialog-mobile-close-icon-size: var(--control-icon-size-2xl);
|
|
367
376
|
--dialog-mobile-close-background: var(--color-background-secondary-soft-alpha);
|