@pontive/pontkit-core 1.39.0 → 1.41.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/catalog.json +1 -1
- package/custom-elements.json +1 -1
- package/dist/index.js +1846 -1289
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17059 -12690
- package/dist/index.mjs.map +1 -1
- package/dist/pont2/core/context-root.d.ts +1 -0
- package/dist/pont2/core/events.d.ts +1 -1
- package/dist/pont2/core/format.d.ts +46 -0
- package/dist/pont2/core/icons.d.ts +11 -0
- package/dist/pont2/core/index.d.ts +2 -0
- package/dist/pont2/core/messages.d.ts +128 -2
- package/dist/pont2/core/popup/index.d.ts +1 -0
- package/dist/pont2/core/popup/modal.d.ts +56 -0
- package/dist/pont2/core/popup/popup-content.d.ts +7 -0
- package/dist/pont2/core/popup/story-helpers.d.ts +6 -0
- package/dist/pont2/custom-elements.json +55405 -24958
- package/dist/pont2/index.d.ts +7 -0
- package/dist/pont2/index.mjs +6600 -2376
- package/dist/pont2/index.mjs.map +1 -1
- package/dist/pont2/kit/account-menu/account-menu.d.ts +115 -0
- package/dist/pont2/kit/account-settings/account-settings.d.ts +157 -0
- package/dist/pont2/kit/account-settings/profile.d.ts +74 -0
- package/dist/pont2/kit/badge-selector/badge-selector.d.ts +65 -0
- package/dist/pont2/kit/consent/consent.d.ts +3 -2
- package/dist/pont2/kit/data-table/data-table.d.ts +120 -0
- package/dist/pont2/kit/data-table/rows.d.ts +25 -0
- package/dist/pont2/kit/flow-widget/flow-widget.d.ts +21 -8
- package/dist/pont2/kit/index.d.ts +11 -0
- package/dist/pont2/kit/layout/layout.d.ts +7 -0
- package/dist/pont2/kit/member-management/errors.d.ts +60 -0
- package/dist/pont2/kit/member-management/member-management.d.ts +237 -0
- package/dist/pont2/kit/member-management/roles.d.ts +42 -0
- package/dist/pont2/kit/multi-email-input/emails.d.ts +19 -0
- package/dist/pont2/kit/multi-email-input/multi-email-input.d.ts +78 -0
- package/dist/pont2/kit/multi-select-filter/multi-select-filter.d.ts +53 -0
- package/dist/pont2/kit/organization-switcher/organization-switcher.d.ts +111 -0
- package/dist/pont2/kit/pagination/pagination.d.ts +61 -0
- package/dist/pont2/kit/pagination/range.d.ts +17 -0
- package/dist/pont2/kit/provider/account-client.d.ts +355 -0
- package/dist/pont2/kit/provider/account-controller.d.ts +47 -0
- package/dist/pont2/kit/provider/account-user.d.ts +16 -0
- package/dist/pont2/kit/provider/coexistence.d.ts +19 -0
- package/dist/pont2/kit/provider/contexts.d.ts +46 -0
- package/dist/pont2/kit/provider/provider.d.ts +219 -0
- package/dist/pont2/kit/provider/redirect.d.ts +122 -0
- package/dist/pont2/kit/provider/runtime-config.d.ts +24 -0
- package/dist/pont2/kit/provider/sdk.d.ts +100 -0
- package/dist/pont2/kit/provider/signed-in.d.ts +81 -0
- package/dist/pont2/kit/provider/widget-messages.d.ts +35 -0
- package/dist/pont2/primitives/alert-dialog/alert-dialog.d.ts +132 -0
- package/dist/pont2/primitives/combobox/combobox.d.ts +82 -14
- package/dist/pont2/primitives/dialog/dialog.d.ts +195 -0
- package/dist/pont2/primitives/drawer/drawer.d.ts +112 -0
- package/dist/pont2/primitives/hover-card/hover-card.d.ts +83 -0
- package/dist/pont2/primitives/pagination/pagination.d.ts +120 -0
- package/dist/pont2/primitives/sheet/sheet.d.ts +92 -0
- package/dist/pont2/primitives/sonner/sonner.d.ts +86 -0
- package/dist/pont2/primitives/sonner/toast-store.d.ts +81 -0
- package/dist/pont2/styles.css +2489 -760
- package/dist/pont2/theme/tokens.json.d.ts +700 -1
- package/dist/pont2/theme-golden.json +45 -45
- package/dist/pont2/theme.mjs +119 -119
- package/dist/pont2/tokens.json +700 -1
- package/dist/styles.css +2475 -746
- package/package.json +2 -2
package/dist/pont2/styles.css
CHANGED
|
@@ -3718,6 +3718,93 @@
|
|
|
3718
3718
|
}
|
|
3719
3719
|
}
|
|
3720
3720
|
|
|
3721
|
+
/* ../primitives/pagination/pagination.css */
|
|
3722
|
+
/*
|
|
3723
|
+
* Pagination. shadcn (Base UI, Vega):
|
|
3724
|
+
* nav: "mx-auto flex w-full justify-center"
|
|
3725
|
+
* content (ul): "flex items-center" + .cn-pagination-content "gap-1"
|
|
3726
|
+
* link: Button variant ghost (outline when active), size icon
|
|
3727
|
+
* previous / next: link size default + .cn-pagination-previous "pl-2!" / -next "pr-2!",
|
|
3728
|
+
* a ChevronLeft / ChevronRight icon (cn-rtl-flip) and text "hidden sm:block"
|
|
3729
|
+
* ellipsis: "flex items-center justify-center" + .cn-pagination-ellipsis "size-9
|
|
3730
|
+
* [&_svg:not([class*='size-'])]:size-4"
|
|
3731
|
+
*
|
|
3732
|
+
* The links are Button recipes (button.css), so their tokens are the Button's. The
|
|
3733
|
+
* previous / next chevrons are mask-drawn pseudo-elements: the native link's content
|
|
3734
|
+
* is the author's (pagination.ts).
|
|
3735
|
+
*/
|
|
3736
|
+
@layer pont2.primitives {
|
|
3737
|
+
:is(pont2-prim-pagination, pont2-pagination, [data-pont2-pagination]) {
|
|
3738
|
+
display: flex;
|
|
3739
|
+
width: 100%;
|
|
3740
|
+
margin-inline: auto;
|
|
3741
|
+
justify-content: center;
|
|
3742
|
+
}
|
|
3743
|
+
|
|
3744
|
+
:is(pont2-prim-pagination-content, [data-pont2-pagination-content]) {
|
|
3745
|
+
display: flex;
|
|
3746
|
+
align-items: center;
|
|
3747
|
+
gap: 0.25rem;
|
|
3748
|
+
margin: 0;
|
|
3749
|
+
padding: 0;
|
|
3750
|
+
list-style: none;
|
|
3751
|
+
}
|
|
3752
|
+
|
|
3753
|
+
:is(pont2-prim-pagination-item, [data-pont2-pagination-item]) {
|
|
3754
|
+
display: block;
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3757
|
+
[data-slot="pagination-previous"][data-pont2-button] {
|
|
3758
|
+
padding-left: 0.5rem;
|
|
3759
|
+
}
|
|
3760
|
+
[data-slot="pagination-next"][data-pont2-button] {
|
|
3761
|
+
padding-right: 0.5rem;
|
|
3762
|
+
}
|
|
3763
|
+
[data-slot="pagination-previous"][data-pont2-button]::before,
|
|
3764
|
+
[data-slot="pagination-next"][data-pont2-button]::after {
|
|
3765
|
+
content: "";
|
|
3766
|
+
flex-shrink: 0;
|
|
3767
|
+
width: 1rem;
|
|
3768
|
+
height: 1rem;
|
|
3769
|
+
background-color: currentColor;
|
|
3770
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
3771
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
3772
|
+
}
|
|
3773
|
+
/* ChevronRight is ChevronLeft mirrored; cn-rtl-flip mirrors both in RTL. */
|
|
3774
|
+
[data-slot="pagination-next"][data-pont2-button]::after {
|
|
3775
|
+
scale: -1 1;
|
|
3776
|
+
}
|
|
3777
|
+
[data-slot="pagination-previous"][data-pont2-button]:dir(rtl)::before {
|
|
3778
|
+
scale: -1 1;
|
|
3779
|
+
}
|
|
3780
|
+
[data-slot="pagination-next"][data-pont2-button]:dir(rtl)::after {
|
|
3781
|
+
scale: 1 1;
|
|
3782
|
+
}
|
|
3783
|
+
|
|
3784
|
+
[data-slot="pagination-previous-text"],
|
|
3785
|
+
[data-slot="pagination-next-text"] {
|
|
3786
|
+
display: none;
|
|
3787
|
+
}
|
|
3788
|
+
@media (width >= 40rem) {
|
|
3789
|
+
[data-slot="pagination-previous-text"],
|
|
3790
|
+
[data-slot="pagination-next-text"] {
|
|
3791
|
+
display: block;
|
|
3792
|
+
}
|
|
3793
|
+
}
|
|
3794
|
+
|
|
3795
|
+
:is(pont2-prim-pagination-ellipsis, [data-pont2-pagination-ellipsis]) {
|
|
3796
|
+
display: flex;
|
|
3797
|
+
width: 2.25rem;
|
|
3798
|
+
height: 2.25rem;
|
|
3799
|
+
align-items: center;
|
|
3800
|
+
justify-content: center;
|
|
3801
|
+
}
|
|
3802
|
+
:is(pont2-prim-pagination-ellipsis, [data-pont2-pagination-ellipsis]) > svg {
|
|
3803
|
+
width: 1rem;
|
|
3804
|
+
height: 1rem;
|
|
3805
|
+
}
|
|
3806
|
+
}
|
|
3807
|
+
|
|
3721
3808
|
/* --- end structural (A) --- */
|
|
3722
3809
|
|
|
3723
3810
|
/* --- widgets (B) --- */
|
|
@@ -4588,6 +4675,17 @@
|
|
|
4588
4675
|
translate: var(--_pont2-popup-enter-translate-x, 0) var(--_pont2-popup-enter-translate-y, 0);
|
|
4589
4676
|
}
|
|
4590
4677
|
}
|
|
4678
|
+
/* Modal overlays (the popup's ::backdrop): tw-animate-css fade-in-0 / fade-out-0. */
|
|
4679
|
+
@keyframes pont2-backdrop-enter {
|
|
4680
|
+
from {
|
|
4681
|
+
opacity: 0;
|
|
4682
|
+
}
|
|
4683
|
+
}
|
|
4684
|
+
@keyframes pont2-backdrop-exit {
|
|
4685
|
+
to {
|
|
4686
|
+
opacity: 0;
|
|
4687
|
+
}
|
|
4688
|
+
}
|
|
4591
4689
|
@keyframes pont2-popup-exit {
|
|
4592
4690
|
to {
|
|
4593
4691
|
opacity: var(--_pont2-popup-exit-opacity, 1);
|
|
@@ -4653,7 +4751,8 @@
|
|
|
4653
4751
|
}
|
|
4654
4752
|
|
|
4655
4753
|
@media (prefers-reduced-motion: reduce) {
|
|
4656
|
-
[data-pont2-popup]:is([data-open], [data-closed])
|
|
4754
|
+
[data-pont2-popup]:is([data-open], [data-closed]),
|
|
4755
|
+
[data-pont2-popup]:is([data-open], [data-closed])::backdrop {
|
|
4657
4756
|
animation: none;
|
|
4658
4757
|
}
|
|
4659
4758
|
}
|
|
@@ -5200,6 +5299,12 @@
|
|
|
5200
5299
|
--_pont2-combobox-item-bg-focus: var(--pont2-combobox-item-bg-focus, var(--pont2-sem-color-accent));
|
|
5201
5300
|
/** @token Text when highlighted */
|
|
5202
5301
|
--_pont2-combobox-item-fg-focus: var(--pont2-combobox-item-fg-focus, var(--pont2-sem-color-accent-foreground));
|
|
5302
|
+
/** @token Background */
|
|
5303
|
+
--_pont2-combobox-chip-bg: var(--pont2-combobox-chip-bg, var(--pont2-sem-color-muted));
|
|
5304
|
+
/** @token Text */
|
|
5305
|
+
--_pont2-combobox-chip-fg: var(--pont2-combobox-chip-fg, var(--pont2-sem-color-foreground));
|
|
5306
|
+
/** @token Corner radius */
|
|
5307
|
+
--_pont2-combobox-chip-radius: var(--pont2-combobox-chip-radius, var(--pont2-sem-radius-sm));
|
|
5203
5308
|
}
|
|
5204
5309
|
|
|
5205
5310
|
/* ComboboxInput = InputGroup: "relative flex w-full min-w-0 items-center outline-none"
|
|
@@ -5428,6 +5533,100 @@
|
|
|
5428
5533
|
width: auto;
|
|
5429
5534
|
margin: 0.25rem -0.25rem;
|
|
5430
5535
|
}
|
|
5536
|
+
|
|
5537
|
+
/* ------------------------------------------------------------------ */
|
|
5538
|
+
/* Multiple: chips */
|
|
5539
|
+
/* ------------------------------------------------------------------ */
|
|
5540
|
+
|
|
5541
|
+
/* .cn-combobox-chips "dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50
|
|
5542
|
+
has-aria-invalid:… flex min-h-9 flex-wrap items-center gap-1.5 rounded-md border bg-transparent
|
|
5543
|
+
bg-clip-padding px-2.5 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:ring-3
|
|
5544
|
+
has-data-[slot=combobox-chip]:px-1.5". It is a ComboboxInput (combobox.ts), so the input
|
|
5545
|
+
group box above applies; these rules make it a wrapping row. */
|
|
5546
|
+
:is(pont2-prim-combobox-chips, [data-pont2-combobox-chips]) {
|
|
5547
|
+
height: auto;
|
|
5548
|
+
min-height: var(--_pont2-combobox-input-height);
|
|
5549
|
+
flex-wrap: wrap;
|
|
5550
|
+
gap: 0.375rem;
|
|
5551
|
+
padding: 0.375rem 0.625rem;
|
|
5552
|
+
background-clip: padding-box;
|
|
5553
|
+
font-size: var(--pont2-sem-text-sm);
|
|
5554
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
5555
|
+
cursor: text;
|
|
5556
|
+
}
|
|
5557
|
+
[data-pont2-combobox-chips]:has(> [data-slot="combobox-chip"]) {
|
|
5558
|
+
padding-inline: 0.375rem;
|
|
5559
|
+
}
|
|
5560
|
+
[data-pont2-combobox-chips]:focus-within {
|
|
5561
|
+
border-color: var(--pont2-sem-color-ring);
|
|
5562
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-ring-width) color-mix(in oklab, var(--pont2-sem-color-ring) 50%, transparent);
|
|
5563
|
+
}
|
|
5564
|
+
[data-pont2-combobox-chips][data-disabled],
|
|
5565
|
+
[data-pont2-combobox][data-disabled] [data-pont2-combobox-chips] {
|
|
5566
|
+
cursor: not-allowed;
|
|
5567
|
+
opacity: var(--pont2-sem-opacity-disabled);
|
|
5568
|
+
}
|
|
5569
|
+
|
|
5570
|
+
/* .cn-combobox-chip "bg-muted text-foreground flex h-[calc(--spacing(5.5))] w-fit items-center
|
|
5571
|
+
justify-center gap-1 rounded-sm px-1.5 text-xs font-medium whitespace-nowrap
|
|
5572
|
+
has-data-[slot=combobox-chip-remove]:pr-0" */
|
|
5573
|
+
[data-pont2-combobox-chip] {
|
|
5574
|
+
display: flex;
|
|
5575
|
+
width: fit-content;
|
|
5576
|
+
height: 1.375rem;
|
|
5577
|
+
box-sizing: border-box;
|
|
5578
|
+
align-items: center;
|
|
5579
|
+
justify-content: center;
|
|
5580
|
+
gap: 0.25rem;
|
|
5581
|
+
padding: 0 0.375rem;
|
|
5582
|
+
border-radius: var(--_pont2-combobox-chip-radius);
|
|
5583
|
+
background-color: var(--_pont2-combobox-chip-bg);
|
|
5584
|
+
color: var(--_pont2-combobox-chip-fg);
|
|
5585
|
+
font-size: var(--pont2-sem-text-xs);
|
|
5586
|
+
line-height: var(--pont2-sem-text-xs--line-height);
|
|
5587
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
5588
|
+
white-space: nowrap;
|
|
5589
|
+
outline: none;
|
|
5590
|
+
}
|
|
5591
|
+
[data-pont2-combobox-chip]:has(> [data-slot="combobox-chip-remove"]) {
|
|
5592
|
+
padding-right: 0;
|
|
5593
|
+
}
|
|
5594
|
+
[data-pont2-combobox-chip]:focus-visible {
|
|
5595
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-ring-width) color-mix(in oklab, var(--pont2-sem-color-ring) 50%, transparent);
|
|
5596
|
+
box-shadow: var(--pont2-ring-shadow);
|
|
5597
|
+
}
|
|
5598
|
+
/* .cn-combobox-chip-remove "-ml-1 opacity-50 hover:opacity-100" (Button ghost icon-xs) */
|
|
5599
|
+
[data-pont2-combobox-chip] > [data-slot="combobox-chip-remove"] {
|
|
5600
|
+
margin-left: -0.25rem;
|
|
5601
|
+
opacity: 0.5;
|
|
5602
|
+
}
|
|
5603
|
+
[data-pont2-combobox-chip] > [data-slot="combobox-chip-remove"]:hover {
|
|
5604
|
+
opacity: 1;
|
|
5605
|
+
}
|
|
5606
|
+
[data-pont2-combobox-chip] > [data-slot="combobox-chip-remove"] svg {
|
|
5607
|
+
pointer-events: none;
|
|
5608
|
+
}
|
|
5609
|
+
|
|
5610
|
+
/* .cn-combobox-chip-input "min-w-16 flex-1 outline-none" */
|
|
5611
|
+
[data-pont2-combobox-chip-input] {
|
|
5612
|
+
box-sizing: border-box;
|
|
5613
|
+
flex: 1 1 0%;
|
|
5614
|
+
min-width: 4rem;
|
|
5615
|
+
margin: 0;
|
|
5616
|
+
padding: 0;
|
|
5617
|
+
border: 0;
|
|
5618
|
+
background: transparent;
|
|
5619
|
+
color: inherit;
|
|
5620
|
+
font: inherit;
|
|
5621
|
+
outline: none;
|
|
5622
|
+
}
|
|
5623
|
+
[data-pont2-combobox-chip-input]::placeholder {
|
|
5624
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
5625
|
+
opacity: 1;
|
|
5626
|
+
}
|
|
5627
|
+
[data-pont2-combobox-chip-input]:disabled {
|
|
5628
|
+
cursor: not-allowed;
|
|
5629
|
+
}
|
|
5431
5630
|
}
|
|
5432
5631
|
|
|
5433
5632
|
/* ../primitives/tooltip/tooltip.css */
|
|
@@ -5517,1030 +5716,2560 @@
|
|
|
5517
5716
|
}
|
|
5518
5717
|
}
|
|
5519
5718
|
|
|
5520
|
-
/*
|
|
5521
|
-
|
|
5522
|
-
/* Kit: composites (each file wraps itself in @layer pont2.kit). Aliases need no CSS:
|
|
5523
|
-
their tags are listed in the primitive recipes. docs/10-primitives-and-kit.md */
|
|
5524
|
-
/* ../kit/alert/alert.css */
|
|
5719
|
+
/* ../primitives/dialog/dialog.css */
|
|
5525
5720
|
/*
|
|
5526
|
-
*
|
|
5527
|
-
*
|
|
5528
|
-
*
|
|
5529
|
-
*
|
|
5530
|
-
*
|
|
5721
|
+
* Dialog. shadcn (Base UI, Vega):
|
|
5722
|
+
* overlay: "fixed inset-0 isolate z-50" + .cn-dialog-overlay "data-open:animate-in
|
|
5723
|
+
* data-closed:animate-out fade-in-0/fade-out-0 bg-black/10 duration-100
|
|
5724
|
+
* supports-backdrop-filter:backdrop-blur-xs"
|
|
5725
|
+
* content: "fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none"
|
|
5726
|
+
* + .cn-dialog-content "bg-popover text-popover-foreground fade/zoom-95 ring-foreground/10
|
|
5727
|
+
* grid max-w-[calc(100%-2rem)] gap-6 rounded-xl p-6 text-sm ring-1 duration-100 sm:max-w-md"
|
|
5728
|
+
* close: Button ghost icon-sm + .cn-dialog-close "absolute top-4 right-4"
|
|
5729
|
+
* header: "flex flex-col gap-2"; footer: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end"
|
|
5730
|
+
* title: "leading-none font-medium" (+ cn-font-heading); description: "text-muted-foreground text-sm
|
|
5731
|
+
* *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground"
|
|
5531
5732
|
*
|
|
5532
|
-
*
|
|
5533
|
-
*
|
|
5733
|
+
* The overlay is the popup's ::backdrop (dialog.ts), and the popup is centred with
|
|
5734
|
+
* `inset: 0; margin: auto` instead of a translate, so the shared enter/exit
|
|
5735
|
+
* animation (core/popup/popup.css: fade + zoom-95, 100ms) composes with it.
|
|
5736
|
+
*
|
|
5737
|
+
* Tokens (docs/11-tokens.md): `--pont2-dialog-*`, resolved on the content.
|
|
5738
|
+
* The border is shadcn's 1px ring.
|
|
5534
5739
|
*/
|
|
5535
|
-
@layer pont2.
|
|
5740
|
+
@layer pont2.primitives {
|
|
5536
5741
|
/* ------------------------------------------------------------------ */
|
|
5537
5742
|
/* Tokens */
|
|
5538
5743
|
/* ------------------------------------------------------------------ */
|
|
5539
5744
|
|
|
5540
|
-
pont2-
|
|
5541
|
-
|
|
5542
|
-
--_pont2-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
/** @token
|
|
5546
|
-
--_pont2-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
/** @token
|
|
5550
|
-
--_pont2-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
/** @token
|
|
5554
|
-
--_pont2-
|
|
5745
|
+
:is(pont2-prim-dialog-content, [data-pont2-dialog-content]) {
|
|
5746
|
+
/** @token Background */
|
|
5747
|
+
--_pont2-dialog-bg: var(--pont2-dialog-bg, var(--pont2-sem-color-popover));
|
|
5748
|
+
/** @token Text */
|
|
5749
|
+
--_pont2-dialog-fg: var(--pont2-dialog-fg, var(--pont2-sem-color-popover-foreground));
|
|
5750
|
+
/** @token Border */
|
|
5751
|
+
--_pont2-dialog-border-color: var(--pont2-dialog-border-color, color-mix(in oklab, var(--pont2-sem-color-foreground) 10%, transparent));
|
|
5752
|
+
/** @token Corner radius */
|
|
5753
|
+
--_pont2-dialog-radius: var(--pont2-dialog-radius, var(--pont2-sem-radius-xl));
|
|
5754
|
+
/** @token Shadow */
|
|
5755
|
+
--_pont2-dialog-shadow: var(--pont2-dialog-shadow, var(--pont2-sem-shadow-none));
|
|
5756
|
+
/** @token Maximum width */
|
|
5757
|
+
--_pont2-dialog-max-width: var(--pont2-dialog-max-width, 28rem);
|
|
5758
|
+
/** @token Horizontal padding */
|
|
5759
|
+
--_pont2-dialog-padding-x: var(--pont2-dialog-padding-x, 1.5rem);
|
|
5760
|
+
/** @token Vertical padding */
|
|
5761
|
+
--_pont2-dialog-padding-y: var(--pont2-dialog-padding-y, 1.5rem);
|
|
5762
|
+
/** @token Gap */
|
|
5763
|
+
--_pont2-dialog-gap: var(--pont2-dialog-gap, 1.5rem);
|
|
5764
|
+
/** @token Overlay */
|
|
5765
|
+
--_pont2-dialog-overlay-bg: var(--pont2-dialog-overlay-bg, oklch(0 0 0 / 10%));
|
|
5555
5766
|
}
|
|
5556
5767
|
|
|
5557
5768
|
/* ------------------------------------------------------------------ */
|
|
5558
5769
|
/* Recipe */
|
|
5559
5770
|
/* ------------------------------------------------------------------ */
|
|
5560
5771
|
|
|
5561
|
-
|
|
5562
|
-
|
|
5772
|
+
:is(pont2-prim-dialog-content, [data-pont2-dialog-content]) {
|
|
5773
|
+
inset: 0;
|
|
5774
|
+
margin: auto;
|
|
5775
|
+
display: grid;
|
|
5776
|
+
box-sizing: border-box;
|
|
5777
|
+
width: 100%;
|
|
5778
|
+
max-width: calc(100% - 2rem);
|
|
5779
|
+
height: fit-content;
|
|
5780
|
+
max-height: calc(100% - 2rem);
|
|
5781
|
+
overflow-y: auto;
|
|
5782
|
+
gap: var(--_pont2-dialog-gap);
|
|
5783
|
+
padding: var(--_pont2-dialog-padding-y) var(--_pont2-dialog-padding-x);
|
|
5784
|
+
border-radius: var(--_pont2-dialog-radius);
|
|
5785
|
+
background-color: var(--_pont2-dialog-bg);
|
|
5786
|
+
color: var(--_pont2-dialog-fg);
|
|
5787
|
+
font-size: var(--pont2-sem-text-sm);
|
|
5788
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
5789
|
+
outline: none;
|
|
5790
|
+
--pont2-shadow: var(--_pont2-dialog-shadow);
|
|
5791
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-border-width) var(--_pont2-dialog-border-color);
|
|
5792
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
5563
5793
|
}
|
|
5564
|
-
|
|
5565
|
-
|
|
5794
|
+
@media (width >= 40rem) {
|
|
5795
|
+
:is(pont2-prim-dialog-content, [data-pont2-dialog-content]) {
|
|
5796
|
+
max-width: min(var(--_pont2-dialog-max-width), calc(100% - 2rem));
|
|
5797
|
+
}
|
|
5566
5798
|
}
|
|
5567
|
-
}
|
|
5568
5799
|
|
|
5569
|
-
/*
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
* (primitives/avatar/avatar.css) through [data-pont2-avatar] and the parts'
|
|
5573
|
-
* identity attributes; the composite adds no visual rules of its own.
|
|
5574
|
-
*
|
|
5575
|
-
* The file exists so every kit element has a stylesheet in @layer pont2.kit,
|
|
5576
|
-
* where composite-specific rules go when they appear.
|
|
5577
|
-
*/
|
|
5578
|
-
@layer pont2.kit {
|
|
5579
|
-
/* Size before upgrade, so a server-rendered composite does not collapse. */
|
|
5580
|
-
pont2-avatar:not([data-pont2-avatar]) {
|
|
5581
|
-
display: inline-flex;
|
|
5582
|
-
width: 2rem;
|
|
5583
|
-
height: 2rem;
|
|
5800
|
+
/* The overlay: the popup's ::backdrop. */
|
|
5801
|
+
:is(pont2-prim-dialog-content, [data-pont2-dialog-content])::backdrop {
|
|
5802
|
+
background-color: var(--_pont2-dialog-overlay-bg);
|
|
5584
5803
|
}
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5804
|
+
|
|
5805
|
+
/* The close button: Button ghost icon-sm, absolute top-4 right-4. */
|
|
5806
|
+
[data-pont2-dialog-content] > [data-pont2-modal-close] {
|
|
5807
|
+
position: absolute;
|
|
5808
|
+
top: 1rem;
|
|
5809
|
+
right: 1rem;
|
|
5588
5810
|
}
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5811
|
+
|
|
5812
|
+
:is(pont2-prim-dialog-header, [data-pont2-dialog-header]) {
|
|
5813
|
+
display: flex;
|
|
5814
|
+
flex-direction: column;
|
|
5815
|
+
gap: 0.5rem;
|
|
5592
5816
|
}
|
|
5593
|
-
}
|
|
5594
5817
|
|
|
5595
|
-
|
|
5596
|
-
/*
|
|
5597
|
-
* <pont2-input-otp> (kit composite). All styling comes from the primitive
|
|
5598
|
-
* recipe (primitives/input-otp/input-otp.css) through [data-pont2-input-otp]
|
|
5599
|
-
* and the parts' identity attributes.
|
|
5600
|
-
*
|
|
5601
|
-
* Added here: the composite has no children before upgrade, so it reserves the
|
|
5602
|
-
* primitive's slot height (2.25rem) to avoid a layout shift.
|
|
5603
|
-
*/
|
|
5604
|
-
@layer pont2.kit {
|
|
5605
|
-
pont2-input-otp:not([data-pont2-input-otp]) {
|
|
5818
|
+
:is(pont2-prim-dialog-footer, [data-pont2-dialog-footer]) {
|
|
5606
5819
|
display: flex;
|
|
5607
|
-
|
|
5820
|
+
flex-direction: column-reverse;
|
|
5821
|
+
gap: 0.5rem;
|
|
5822
|
+
}
|
|
5823
|
+
@media (width >= 40rem) {
|
|
5824
|
+
:is(pont2-prim-dialog-footer, [data-pont2-dialog-footer]) {
|
|
5825
|
+
flex-direction: row;
|
|
5826
|
+
justify-content: flex-end;
|
|
5827
|
+
}
|
|
5828
|
+
}
|
|
5829
|
+
|
|
5830
|
+
:is(pont2-prim-dialog-title, [data-pont2-dialog-title]) {
|
|
5831
|
+
display: block;
|
|
5832
|
+
margin: 0;
|
|
5833
|
+
font-family: var(--pont2-sem-font-heading);
|
|
5834
|
+
line-height: 1;
|
|
5835
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
5836
|
+
}
|
|
5837
|
+
|
|
5838
|
+
:is(pont2-prim-dialog-description, [data-pont2-dialog-description]) {
|
|
5839
|
+
display: block;
|
|
5840
|
+
margin: 0;
|
|
5841
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
5842
|
+
font-size: var(--pont2-sem-text-sm);
|
|
5843
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
5844
|
+
}
|
|
5845
|
+
:is(pont2-prim-dialog-description, [data-pont2-dialog-description]) > a {
|
|
5846
|
+
color: inherit;
|
|
5847
|
+
text-decoration: underline;
|
|
5848
|
+
text-underline-offset: 3px;
|
|
5849
|
+
}
|
|
5850
|
+
:is(pont2-prim-dialog-description, [data-pont2-dialog-description]) > a:hover {
|
|
5851
|
+
color: var(--pont2-sem-color-foreground);
|
|
5852
|
+
}
|
|
5853
|
+
|
|
5854
|
+
/* ------------------------------------------------------------------ */
|
|
5855
|
+
/* Every modal surface's overlay (dialog, alert dialog, sheet, drawer) */
|
|
5856
|
+
/* ------------------------------------------------------------------ */
|
|
5857
|
+
|
|
5858
|
+
/* supports-backdrop-filter:backdrop-blur-xs; fade-in-0 / fade-out-0 with the popup. */
|
|
5859
|
+
:is([data-pont2-dialog-content], [data-pont2-alert-dialog-content], [data-pont2-sheet-content], [data-pont2-drawer-content])::backdrop {
|
|
5860
|
+
backdrop-filter: blur(4px);
|
|
5861
|
+
}
|
|
5862
|
+
:is([data-pont2-dialog-content], [data-pont2-alert-dialog-content], [data-pont2-sheet-content], [data-pont2-drawer-content])[data-open]::backdrop {
|
|
5863
|
+
animation: pont2-backdrop-enter var(--_pont2-popup-duration) var(--pont2-sem-ease-in-out);
|
|
5864
|
+
}
|
|
5865
|
+
:is([data-pont2-dialog-content], [data-pont2-alert-dialog-content], [data-pont2-sheet-content], [data-pont2-drawer-content])[data-closed]::backdrop {
|
|
5866
|
+
animation: pont2-backdrop-exit var(--_pont2-popup-duration) var(--pont2-sem-ease-in-out) forwards;
|
|
5867
|
+
}
|
|
5868
|
+
/* modal="false": no overlay. */
|
|
5869
|
+
:is([data-pont2-dialog-content], [data-pont2-alert-dialog-content], [data-pont2-sheet-content], [data-pont2-drawer-content])[data-modal="false"]::backdrop {
|
|
5870
|
+
display: none;
|
|
5608
5871
|
}
|
|
5609
5872
|
}
|
|
5610
5873
|
|
|
5611
|
-
/* ../
|
|
5874
|
+
/* ../primitives/alert-dialog/alert-dialog.css */
|
|
5612
5875
|
/*
|
|
5613
|
-
*
|
|
5614
|
-
*
|
|
5615
|
-
*
|
|
5616
|
-
*
|
|
5876
|
+
* Alert Dialog. shadcn (Base UI, Vega):
|
|
5877
|
+
* overlay: .cn-alert-dialog-overlay = the dialog's (bg-black/10, blur, fade; dialog.css)
|
|
5878
|
+
* content: "fixed top-1/2 left-1/2 z-50 grid w-full -translate-1/2 outline-none"
|
|
5879
|
+
* + .cn-alert-dialog-content "bg-popover text-popover-foreground ring-foreground/10 gap-6
|
|
5880
|
+
* rounded-xl p-6 ring-1 duration-100 fade/zoom-95 data-[size=default]:max-w-xs
|
|
5881
|
+
* data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg"
|
|
5882
|
+
* header: "grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center
|
|
5883
|
+
* has-media:grid-rows-[auto_auto_1fr] has-media:gap-x-6 sm:size-default:place-items-start
|
|
5884
|
+
* sm:size-default:text-left sm:size-default:has-media:grid-rows-[auto_1fr]"
|
|
5885
|
+
* media: "bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-md
|
|
5886
|
+
* sm:size-default:row-span-2 *:[svg]:size-8"
|
|
5887
|
+
* title: "text-lg font-medium sm:size-default:has-media:col-start-2"
|
|
5888
|
+
* description: "text-muted-foreground text-sm text-balance md:text-pretty" + links
|
|
5889
|
+
* footer: "flex flex-col-reverse gap-2 size-sm:grid size-sm:grid-cols-2 sm:flex-row sm:justify-end"
|
|
5617
5890
|
*
|
|
5618
|
-
*
|
|
5619
|
-
* - before upgrade the shell is empty, so it reserves a default button's
|
|
5620
|
-
* height (h-9) to avoid a layout shift;
|
|
5621
|
-
* - brand marks keep their shape at any button size;
|
|
5622
|
-
* - provider-button tokens (docs/11-tokens.md §5): the provider button is an
|
|
5623
|
-
* outline Button by default, brandable on its own, and follows the Button's
|
|
5624
|
-
* outline tokens when only those are set.
|
|
5891
|
+
* Tokens (docs/11-tokens.md): `--pont2-alert-dialog-*`, resolved on the content.
|
|
5625
5892
|
*/
|
|
5626
|
-
@layer pont2.
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5893
|
+
@layer pont2.primitives {
|
|
5894
|
+
:is(pont2-prim-alert-dialog-content, [data-pont2-alert-dialog-content]) {
|
|
5895
|
+
/** @token Background */
|
|
5896
|
+
--_pont2-alert-dialog-bg: var(--pont2-alert-dialog-bg, var(--pont2-sem-color-popover));
|
|
5897
|
+
/** @token Text */
|
|
5898
|
+
--_pont2-alert-dialog-fg: var(--pont2-alert-dialog-fg, var(--pont2-sem-color-popover-foreground));
|
|
5899
|
+
/** @token Border */
|
|
5900
|
+
--_pont2-alert-dialog-border-color: var(--pont2-alert-dialog-border-color, color-mix(in oklab, var(--pont2-sem-color-foreground) 10%, transparent));
|
|
5901
|
+
/** @token Corner radius */
|
|
5902
|
+
--_pont2-alert-dialog-radius: var(--pont2-alert-dialog-radius, var(--pont2-sem-radius-xl));
|
|
5903
|
+
/** @token Maximum width */
|
|
5904
|
+
--_pont2-alert-dialog-max-width: var(--pont2-alert-dialog-max-width, 32rem);
|
|
5905
|
+
/** @token Maximum width (small) */
|
|
5906
|
+
--_pont2-alert-dialog-sm-max-width: var(--pont2-alert-dialog-sm-max-width, 20rem);
|
|
5907
|
+
/** @token Horizontal padding */
|
|
5908
|
+
--_pont2-alert-dialog-padding-x: var(--pont2-alert-dialog-padding-x, 1.5rem);
|
|
5909
|
+
/** @token Vertical padding */
|
|
5910
|
+
--_pont2-alert-dialog-padding-y: var(--pont2-alert-dialog-padding-y, 1.5rem);
|
|
5911
|
+
/** @token Gap */
|
|
5912
|
+
--_pont2-alert-dialog-gap: var(--pont2-alert-dialog-gap, 1.5rem);
|
|
5913
|
+
/** @token Overlay */
|
|
5914
|
+
--_pont2-alert-dialog-overlay-bg: var(--pont2-alert-dialog-overlay-bg, oklch(0 0 0 / 10%));
|
|
5915
|
+
}
|
|
5630
5916
|
|
|
5631
|
-
pont2-
|
|
5632
|
-
|
|
5633
|
-
|
|
5917
|
+
:is(pont2-prim-alert-dialog-content, [data-pont2-alert-dialog-content]) {
|
|
5918
|
+
inset: 0;
|
|
5919
|
+
margin: auto;
|
|
5920
|
+
display: grid;
|
|
5921
|
+
box-sizing: border-box;
|
|
5922
|
+
width: 100%;
|
|
5923
|
+
max-width: min(var(--_pont2-alert-dialog-sm-max-width), calc(100% - 2rem));
|
|
5924
|
+
height: fit-content;
|
|
5925
|
+
max-height: calc(100% - 2rem);
|
|
5926
|
+
overflow-y: auto;
|
|
5927
|
+
gap: var(--_pont2-alert-dialog-gap);
|
|
5928
|
+
padding: var(--_pont2-alert-dialog-padding-y) var(--_pont2-alert-dialog-padding-x);
|
|
5929
|
+
border-radius: var(--_pont2-alert-dialog-radius);
|
|
5930
|
+
background-color: var(--_pont2-alert-dialog-bg);
|
|
5931
|
+
color: var(--_pont2-alert-dialog-fg);
|
|
5932
|
+
font-size: var(--pont2-sem-text-sm);
|
|
5933
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
5934
|
+
outline: none;
|
|
5935
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-border-width) var(--_pont2-alert-dialog-border-color);
|
|
5936
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
5634
5937
|
}
|
|
5635
|
-
pont2-
|
|
5636
|
-
|
|
5637
|
-
--_pont2-button-bg: var(--pont2-provider-button-bg, var(--pont2-button-outline-bg, var(--pont2-sem-color-control)));
|
|
5638
|
-
/** @token component=provider-button Text */
|
|
5639
|
-
--_pont2-button-fg: var(--pont2-provider-button-fg, var(--pont2-button-outline-fg, currentcolor));
|
|
5640
|
-
/** @token component=provider-button Border */
|
|
5641
|
-
--_pont2-button-border-color: var(--pont2-provider-button-border-color, var(--pont2-button-outline-border-color, var(--pont2-sem-color-control-border)));
|
|
5642
|
-
/** @token component=provider-button Background on hover */
|
|
5643
|
-
--_pont2-button-bg-hover: var(--pont2-provider-button-bg-hover, var(--pont2-button-outline-bg-hover, var(--pont2-sem-color-control-hover)));
|
|
5938
|
+
:is(pont2-prim-alert-dialog-content, [data-pont2-alert-dialog-content])::backdrop {
|
|
5939
|
+
background-color: var(--_pont2-alert-dialog-overlay-bg);
|
|
5644
5940
|
}
|
|
5645
5941
|
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
min-height: 2.25rem;
|
|
5942
|
+
:is(pont2-prim-alert-dialog-header, [data-pont2-alert-dialog-header]) {
|
|
5943
|
+
display: grid;
|
|
5944
|
+
grid-template-rows: auto 1fr;
|
|
5945
|
+
place-items: center;
|
|
5946
|
+
gap: 0.375rem;
|
|
5947
|
+
text-align: center;
|
|
5653
5948
|
}
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5949
|
+
:is(pont2-prim-alert-dialog-header, [data-pont2-alert-dialog-header]):has(> [data-slot="alert-dialog-media"]) {
|
|
5950
|
+
grid-template-rows: auto auto 1fr;
|
|
5951
|
+
column-gap: 1.5rem;
|
|
5657
5952
|
}
|
|
5658
5953
|
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5954
|
+
:is(pont2-prim-alert-dialog-media, [data-pont2-alert-dialog-media]) {
|
|
5955
|
+
display: inline-flex;
|
|
5956
|
+
width: 4rem;
|
|
5957
|
+
height: 4rem;
|
|
5958
|
+
margin-bottom: 0.5rem;
|
|
5959
|
+
align-items: center;
|
|
5960
|
+
justify-content: center;
|
|
5961
|
+
border-radius: var(--pont2-sem-radius-md);
|
|
5962
|
+
background-color: var(--pont2-sem-color-muted);
|
|
5963
|
+
}
|
|
5964
|
+
:is(pont2-prim-alert-dialog-media, [data-pont2-alert-dialog-media]) > svg {
|
|
5965
|
+
width: 2rem;
|
|
5966
|
+
height: 2rem;
|
|
5662
5967
|
}
|
|
5663
|
-
}
|
|
5664
5968
|
|
|
5665
|
-
|
|
5666
|
-
/*
|
|
5667
|
-
* Auth fields (kit composites). The field, label, input, input-group,
|
|
5668
|
-
* description and error recipes are the primitives'; the field host matches
|
|
5669
|
-
* them through [data-pont2-field], the parts through their identity
|
|
5670
|
-
* attributes. Added here:
|
|
5671
|
-
*/
|
|
5672
|
-
@layer pont2.kit {
|
|
5673
|
-
/* Before upgrade the composite is empty: reserve label + gap + input (h-9),
|
|
5674
|
-
so a server-rendered screen does not jump. */
|
|
5675
|
-
:is(pont2-email-field, pont2-phone-field, pont2-username-field, pont2-name-field, pont2-identifier-field,
|
|
5676
|
-
pont2-password-field, pont2-confirm-field):not([data-pont2-field]) {
|
|
5969
|
+
:is(pont2-prim-alert-dialog-title, [data-pont2-alert-dialog-title]) {
|
|
5677
5970
|
display: block;
|
|
5678
|
-
|
|
5971
|
+
margin: 0;
|
|
5972
|
+
font-family: var(--pont2-sem-font-heading);
|
|
5973
|
+
font-size: var(--pont2-sem-text-lg);
|
|
5974
|
+
line-height: var(--pont2-sem-text-lg--line-height);
|
|
5975
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
5679
5976
|
}
|
|
5680
5977
|
|
|
5681
|
-
|
|
5682
|
-
|
|
5978
|
+
:is(pont2-prim-alert-dialog-description, [data-pont2-alert-dialog-description]) {
|
|
5979
|
+
display: block;
|
|
5980
|
+
margin: 0;
|
|
5683
5981
|
color: var(--pont2-sem-color-muted-foreground);
|
|
5684
|
-
font-
|
|
5982
|
+
font-size: var(--pont2-sem-text-sm);
|
|
5983
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
5984
|
+
text-wrap: balance;
|
|
5985
|
+
}
|
|
5986
|
+
:is(pont2-prim-alert-dialog-description, [data-pont2-alert-dialog-description]) > a {
|
|
5987
|
+
color: inherit;
|
|
5988
|
+
text-decoration: underline;
|
|
5989
|
+
text-underline-offset: 3px;
|
|
5990
|
+
}
|
|
5991
|
+
:is(pont2-prim-alert-dialog-description, [data-pont2-alert-dialog-description]) > a:hover {
|
|
5992
|
+
color: var(--pont2-sem-color-foreground);
|
|
5685
5993
|
}
|
|
5686
5994
|
|
|
5687
|
-
|
|
5688
|
-
("flex items-center" + the link's "ml-auto text-sm underline-offset-4 hover:underline"). */
|
|
5689
|
-
[data-pont2-auth-field-label-row] {
|
|
5995
|
+
:is(pont2-prim-alert-dialog-footer, [data-pont2-alert-dialog-footer]) {
|
|
5690
5996
|
display: flex;
|
|
5691
|
-
|
|
5997
|
+
flex-direction: column-reverse;
|
|
5692
5998
|
gap: 0.5rem;
|
|
5693
5999
|
}
|
|
5694
|
-
[data-pont2-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
6000
|
+
[data-pont2-alert-dialog-content][data-size="sm"] :is(pont2-prim-alert-dialog-footer, [data-pont2-alert-dialog-footer]) {
|
|
6001
|
+
display: grid;
|
|
6002
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
6003
|
+
}
|
|
6004
|
+
|
|
6005
|
+
@media (width >= 40rem) {
|
|
6006
|
+
[data-pont2-alert-dialog-content]:not([data-size="sm"]) {
|
|
6007
|
+
max-width: min(var(--_pont2-alert-dialog-max-width), calc(100% - 2rem));
|
|
6008
|
+
}
|
|
6009
|
+
[data-pont2-alert-dialog-content]:not([data-size="sm"]) :is(pont2-prim-alert-dialog-header, [data-pont2-alert-dialog-header]) {
|
|
6010
|
+
place-items: start;
|
|
6011
|
+
text-align: left;
|
|
6012
|
+
}
|
|
6013
|
+
[data-pont2-alert-dialog-content]:not([data-size="sm"]) :is(pont2-prim-alert-dialog-header, [data-pont2-alert-dialog-header]):has(> [data-slot="alert-dialog-media"]) {
|
|
6014
|
+
grid-template-rows: auto 1fr;
|
|
6015
|
+
}
|
|
6016
|
+
[data-pont2-alert-dialog-content]:not([data-size="sm"]) :is(pont2-prim-alert-dialog-media, [data-pont2-alert-dialog-media]) {
|
|
6017
|
+
grid-row: span 2 / span 2;
|
|
6018
|
+
}
|
|
6019
|
+
[data-pont2-alert-dialog-content]:not([data-size="sm"]):has([data-slot="alert-dialog-media"]) :is(pont2-prim-alert-dialog-title, [data-pont2-alert-dialog-title]),
|
|
6020
|
+
[data-pont2-alert-dialog-content]:not([data-size="sm"]):has([data-slot="alert-dialog-media"]) :is(pont2-prim-alert-dialog-description, [data-pont2-alert-dialog-description]) {
|
|
6021
|
+
grid-column-start: 2;
|
|
6022
|
+
}
|
|
6023
|
+
:is(pont2-prim-alert-dialog-footer, [data-pont2-alert-dialog-footer]) {
|
|
6024
|
+
flex-direction: row;
|
|
6025
|
+
justify-content: flex-end;
|
|
6026
|
+
}
|
|
6027
|
+
}
|
|
6028
|
+
@media (width >= 48rem) {
|
|
6029
|
+
:is(pont2-prim-alert-dialog-description, [data-pont2-alert-dialog-description]) {
|
|
6030
|
+
text-wrap: pretty;
|
|
6031
|
+
}
|
|
5699
6032
|
}
|
|
5700
6033
|
}
|
|
5701
6034
|
|
|
5702
|
-
/* ../
|
|
6035
|
+
/* ../primitives/sheet/sheet.css */
|
|
5703
6036
|
/*
|
|
5704
|
-
*
|
|
5705
|
-
*
|
|
6037
|
+
* Sheet. shadcn (Base UI, Vega):
|
|
6038
|
+
* overlay: "fixed inset-0 z-50 transition-opacity duration-150 starting/ending:opacity-0"
|
|
6039
|
+
* + .cn-sheet-overlay "bg-black/10 supports-backdrop-filter:backdrop-blur-xs"
|
|
6040
|
+
* content: "starting/ending:opacity-0 data-[side=…]:starting/ending:translate-…-[2.5rem]"
|
|
6041
|
+
* + .cn-sheet-content "bg-popover text-popover-foreground fixed z-50 flex flex-col gap-4
|
|
6042
|
+
* bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out
|
|
6043
|
+
* bottom: inset-x-0 bottom-0 h-auto border-t · top: inset-x-0 top-0 h-auto border-b
|
|
6044
|
+
* left: inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm · right: … right-0 … border-l"
|
|
6045
|
+
* close: Button ghost icon-sm, "absolute top-4 right-4"
|
|
6046
|
+
* header: "flex flex-col gap-1.5 p-4"; footer: "mt-auto flex flex-col gap-2 p-4"
|
|
6047
|
+
* title: "text-foreground font-medium" (+ cn-font-heading); description: "text-muted-foreground text-sm"
|
|
6048
|
+
*
|
|
6049
|
+
* The slide is the shared popup keyframes (core/popup/popup.css) with the sheet's
|
|
6050
|
+
* values: from 2.5rem off its edge and transparent, 200ms.
|
|
6051
|
+
*
|
|
6052
|
+
* Tokens (docs/11-tokens.md): `--pont2-sheet-*`, resolved on the content.
|
|
5706
6053
|
*/
|
|
5707
|
-
@layer pont2.
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
6054
|
+
@layer pont2.primitives {
|
|
6055
|
+
:is(pont2-prim-sheet-content, [data-pont2-sheet-content]) {
|
|
6056
|
+
/** @token Background */
|
|
6057
|
+
--_pont2-sheet-bg: var(--pont2-sheet-bg, var(--pont2-sem-color-popover));
|
|
6058
|
+
/** @token Text */
|
|
6059
|
+
--_pont2-sheet-fg: var(--pont2-sheet-fg, var(--pont2-sem-color-popover-foreground));
|
|
6060
|
+
/** @token Border */
|
|
6061
|
+
--_pont2-sheet-border-color: var(--pont2-sheet-border-color, var(--pont2-sem-color-border));
|
|
6062
|
+
/** @token Shadow */
|
|
6063
|
+
--_pont2-sheet-shadow: var(--pont2-sheet-shadow, var(--pont2-sem-shadow-lg));
|
|
6064
|
+
/** @token Width (left and right sheets) */
|
|
6065
|
+
--_pont2-sheet-width: var(--pont2-sheet-width, 75%);
|
|
6066
|
+
/** @token Maximum width (left and right sheets) */
|
|
6067
|
+
--_pont2-sheet-max-width: var(--pont2-sheet-max-width, 24rem);
|
|
6068
|
+
/** @token Gap */
|
|
6069
|
+
--_pont2-sheet-gap: var(--pont2-sheet-gap, 1rem);
|
|
6070
|
+
/** @token Overlay */
|
|
6071
|
+
--_pont2-sheet-overlay-bg: var(--pont2-sheet-overlay-bg, oklch(0 0 0 / 10%));
|
|
5716
6072
|
}
|
|
5717
6073
|
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
6074
|
+
:is(pont2-prim-sheet-content, [data-pont2-sheet-content]) {
|
|
6075
|
+
display: flex;
|
|
6076
|
+
flex-direction: column;
|
|
6077
|
+
box-sizing: border-box;
|
|
6078
|
+
gap: var(--_pont2-sheet-gap);
|
|
6079
|
+
margin: 0;
|
|
6080
|
+
overflow-y: auto;
|
|
6081
|
+
border: 0 solid var(--_pont2-sheet-border-color);
|
|
6082
|
+
background-color: var(--_pont2-sheet-bg);
|
|
6083
|
+
background-clip: padding-box;
|
|
6084
|
+
color: var(--_pont2-sheet-fg);
|
|
6085
|
+
font-size: var(--pont2-sem-text-sm);
|
|
6086
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
6087
|
+
outline: none;
|
|
6088
|
+
--pont2-shadow: var(--_pont2-sheet-shadow);
|
|
6089
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
6090
|
+
/* the slide (core/popup/popup.css keyframes) */
|
|
6091
|
+
--_pont2-popup-duration: 200ms;
|
|
6092
|
+
--_pont2-popup-enter-scale: 1;
|
|
6093
|
+
--_pont2-popup-exit-scale: 1;
|
|
6094
|
+
}
|
|
6095
|
+
:is(pont2-prim-sheet-content, [data-pont2-sheet-content])::backdrop {
|
|
6096
|
+
background-color: var(--_pont2-sheet-overlay-bg);
|
|
5722
6097
|
}
|
|
5723
6098
|
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
6099
|
+
[data-pont2-sheet-content][data-side="right"],
|
|
6100
|
+
[data-pont2-sheet-content]:not([data-side]) {
|
|
6101
|
+
inset: 0 0 0 auto;
|
|
6102
|
+
width: var(--_pont2-sheet-width);
|
|
6103
|
+
height: 100%;
|
|
6104
|
+
border-left-width: var(--pont2-sem-border-width);
|
|
6105
|
+
--_pont2-popup-enter-translate-x: 2.5rem;
|
|
6106
|
+
--_pont2-popup-exit-translate-x: 2.5rem;
|
|
6107
|
+
--_pont2-popup-enter-translate-y: 0;
|
|
6108
|
+
}
|
|
6109
|
+
[data-pont2-sheet-content][data-side="left"] {
|
|
6110
|
+
inset: 0 auto 0 0;
|
|
6111
|
+
width: var(--_pont2-sheet-width);
|
|
6112
|
+
height: 100%;
|
|
6113
|
+
border-right-width: var(--pont2-sem-border-width);
|
|
6114
|
+
--_pont2-popup-enter-translate-x: -2.5rem;
|
|
6115
|
+
--_pont2-popup-exit-translate-x: -2.5rem;
|
|
6116
|
+
--_pont2-popup-enter-translate-y: 0;
|
|
6117
|
+
}
|
|
6118
|
+
[data-pont2-sheet-content][data-side="top"] {
|
|
6119
|
+
inset: 0 0 auto 0;
|
|
6120
|
+
width: 100%;
|
|
6121
|
+
height: auto;
|
|
6122
|
+
border-bottom-width: var(--pont2-sem-border-width);
|
|
6123
|
+
--_pont2-popup-enter-translate-x: 0;
|
|
6124
|
+
--_pont2-popup-enter-translate-y: -2.5rem;
|
|
6125
|
+
--_pont2-popup-exit-translate-y: -2.5rem;
|
|
6126
|
+
}
|
|
6127
|
+
[data-pont2-sheet-content][data-side="bottom"] {
|
|
6128
|
+
inset: auto 0 0 0;
|
|
6129
|
+
width: 100%;
|
|
6130
|
+
height: auto;
|
|
6131
|
+
border-top-width: var(--pont2-sem-border-width);
|
|
6132
|
+
--_pont2-popup-enter-translate-x: 0;
|
|
6133
|
+
--_pont2-popup-enter-translate-y: 2.5rem;
|
|
6134
|
+
--_pont2-popup-exit-translate-y: 2.5rem;
|
|
6135
|
+
}
|
|
6136
|
+
@media (width >= 40rem) {
|
|
6137
|
+
[data-pont2-sheet-content]:is([data-side="left"], [data-side="right"], :not([data-side])) {
|
|
6138
|
+
max-width: var(--_pont2-sheet-max-width);
|
|
6139
|
+
}
|
|
5728
6140
|
}
|
|
5729
6141
|
|
|
5730
|
-
|
|
5731
|
-
|
|
6142
|
+
[data-pont2-sheet-content] > [data-pont2-modal-close] {
|
|
6143
|
+
position: absolute;
|
|
6144
|
+
top: 1rem;
|
|
6145
|
+
right: 1rem;
|
|
6146
|
+
}
|
|
6147
|
+
|
|
6148
|
+
:is(pont2-prim-sheet-header, [data-pont2-sheet-header]) {
|
|
5732
6149
|
display: flex;
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
color: var(--_pont2-otp-resend-fg);
|
|
5737
|
-
font-size: var(--pont2-sem-text-sm);
|
|
5738
|
-
line-height: var(--pont2-sem-text-sm--line-height);
|
|
6150
|
+
flex-direction: column;
|
|
6151
|
+
gap: 0.375rem;
|
|
6152
|
+
padding: 1rem;
|
|
5739
6153
|
}
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
font-weight: inherit;
|
|
5747
|
-
text-decoration-line: underline;
|
|
5748
|
-
text-underline-offset: 4px;
|
|
6154
|
+
:is(pont2-prim-sheet-footer, [data-pont2-sheet-footer]) {
|
|
6155
|
+
display: flex;
|
|
6156
|
+
flex-direction: column;
|
|
6157
|
+
gap: 0.5rem;
|
|
6158
|
+
margin-top: auto;
|
|
6159
|
+
padding: 1rem;
|
|
5749
6160
|
}
|
|
5750
|
-
|
|
5751
|
-
|
|
6161
|
+
:is(pont2-prim-sheet-title, [data-pont2-sheet-title]) {
|
|
6162
|
+
display: block;
|
|
6163
|
+
margin: 0;
|
|
6164
|
+
color: var(--pont2-sem-color-foreground);
|
|
6165
|
+
font-family: var(--pont2-sem-font-heading);
|
|
6166
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
6167
|
+
}
|
|
6168
|
+
:is(pont2-prim-sheet-description, [data-pont2-sheet-description]) {
|
|
6169
|
+
display: block;
|
|
6170
|
+
margin: 0;
|
|
6171
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6172
|
+
font-size: var(--pont2-sem-text-sm);
|
|
6173
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
5752
6174
|
}
|
|
5753
6175
|
}
|
|
5754
6176
|
|
|
5755
|
-
/* ../
|
|
6177
|
+
/* ../primitives/drawer/drawer.css */
|
|
5756
6178
|
/*
|
|
5757
|
-
*
|
|
5758
|
-
* "
|
|
5759
|
-
*
|
|
6179
|
+
* Drawer. shadcn (Base UI Drawer, Vega):
|
|
6180
|
+
* overlay: "fixed inset-0 z-50 transition-opacity duration-450 ease-[cubic-bezier(0.32,0.72,0,1)]
|
|
6181
|
+
* starting/ending:opacity-0" + .cn-drawer-overlay "bg-black/10 supports-backdrop-filter:backdrop-blur-xs"
|
|
6182
|
+
* popup: "fixed z-50 flex flex-col duration-450 ease-[cubic-bezier(0.22,1,0.36,1)]
|
|
6183
|
+
* starting/ending:transform-(--closed-transform)" (translate 100% off its edge)
|
|
6184
|
+
* y axis: "inset-x-0 max-h-[calc(100dvh-6rem)]"; x axis: "inset-y-0 flex-row w-3/4 sm:w-[24rem]"
|
|
6185
|
+
* + .cn-drawer-popup "bg-popover text-popover-foreground text-sm
|
|
6186
|
+
* down: rounded-t-xl border-t · up: rounded-b-xl border-b · left: rounded-r-xl border-r · right: rounded-l-xl border-l"
|
|
6187
|
+
* content (inner): "flex min-h-0 flex-1 flex-col overflow-hidden overscroll-contain"
|
|
6188
|
+
* swipe handle: after:bg-muted after:rounded-full; y: h-3 w-full justify-center after:h-1.5 after:w-[100px]
|
|
6189
|
+
* header: "flex shrink-0 flex-col gap-0.5 p-4 pb-0 md:gap-1.5 md:text-left y-axis:text-center"
|
|
6190
|
+
* footer: "mt-auto flex shrink-0 flex-col gap-2 p-4 pt-0"
|
|
6191
|
+
* title: "text-foreground font-medium"; description: "text-muted-foreground text-sm text-balance"
|
|
5760
6192
|
*
|
|
5761
|
-
*
|
|
5762
|
-
*
|
|
6193
|
+
* pont2 has one element for popup and inner content (drawer.ts), so the column layout
|
|
6194
|
+
* sits on the popup itself. Swiping is not implemented (docs/primitives/drawer.md).
|
|
6195
|
+
*
|
|
6196
|
+
* Tokens (docs/11-tokens.md): `--pont2-drawer-*`, resolved on the content.
|
|
5763
6197
|
*/
|
|
5764
|
-
@layer pont2.
|
|
5765
|
-
|
|
5766
|
-
|
|
6198
|
+
@layer pont2.primitives {
|
|
6199
|
+
:is(pont2-prim-drawer-content, [data-pont2-drawer-content]) {
|
|
6200
|
+
/** @token Background */
|
|
6201
|
+
--_pont2-drawer-bg: var(--pont2-drawer-bg, var(--pont2-sem-color-popover));
|
|
5767
6202
|
/** @token Text */
|
|
5768
|
-
--_pont2-
|
|
5769
|
-
/** @token
|
|
5770
|
-
--_pont2-
|
|
5771
|
-
/** @token
|
|
5772
|
-
--_pont2-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
:is(pont2-link, [data-pont2-link])[data-invalid-href] {
|
|
5778
|
-
display: none;
|
|
6203
|
+
--_pont2-drawer-fg: var(--pont2-drawer-fg, var(--pont2-sem-color-popover-foreground));
|
|
6204
|
+
/** @token Border */
|
|
6205
|
+
--_pont2-drawer-border-color: var(--pont2-drawer-border-color, var(--pont2-sem-color-border));
|
|
6206
|
+
/** @token Corner radius */
|
|
6207
|
+
--_pont2-drawer-radius: var(--pont2-drawer-radius, var(--pont2-sem-radius-xl));
|
|
6208
|
+
/** @token Width (left and right drawers) */
|
|
6209
|
+
--_pont2-drawer-width: var(--pont2-drawer-width, 75%);
|
|
6210
|
+
/** @token Overlay */
|
|
6211
|
+
--_pont2-drawer-overlay-bg: var(--pont2-drawer-overlay-bg, oklch(0 0 0 / 10%));
|
|
5779
6212
|
}
|
|
5780
6213
|
|
|
5781
|
-
:is(pont2-
|
|
6214
|
+
:is(pont2-prim-drawer-content, [data-pont2-drawer-content]) {
|
|
5782
6215
|
display: flex;
|
|
5783
|
-
flex-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
6216
|
+
flex-direction: column;
|
|
6217
|
+
box-sizing: border-box;
|
|
6218
|
+
margin: 0;
|
|
6219
|
+
overflow: hidden;
|
|
6220
|
+
overscroll-behavior: contain;
|
|
6221
|
+
border: 0 solid var(--_pont2-drawer-border-color);
|
|
6222
|
+
background-color: var(--_pont2-drawer-bg);
|
|
6223
|
+
color: var(--_pont2-drawer-fg);
|
|
5788
6224
|
font-size: var(--pont2-sem-text-sm);
|
|
5789
6225
|
line-height: var(--pont2-sem-text-sm--line-height);
|
|
6226
|
+
outline: none;
|
|
6227
|
+
--_pont2-popup-duration: 450ms;
|
|
6228
|
+
--_pont2-popup-enter-opacity: 1;
|
|
6229
|
+
--_pont2-popup-exit-opacity: 1;
|
|
6230
|
+
--_pont2-popup-enter-scale: 1;
|
|
6231
|
+
--_pont2-popup-exit-scale: 1;
|
|
5790
6232
|
}
|
|
5791
|
-
[data-pont2-
|
|
5792
|
-
|
|
6233
|
+
[data-pont2-drawer-content]:is([data-open], [data-closed]) {
|
|
6234
|
+
animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
|
|
5793
6235
|
}
|
|
5794
|
-
[data-pont2-
|
|
5795
|
-
|
|
6236
|
+
:is(pont2-prim-drawer-content, [data-pont2-drawer-content])::backdrop {
|
|
6237
|
+
background-color: var(--_pont2-drawer-overlay-bg);
|
|
5796
6238
|
}
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
6239
|
+
|
|
6240
|
+
[data-pont2-drawer-content]:is([data-swipe-direction="down"], :not([data-swipe-direction])) {
|
|
6241
|
+
inset: auto 0 0 0;
|
|
6242
|
+
max-height: calc(100dvh - 6rem);
|
|
6243
|
+
border-top-width: var(--pont2-sem-border-width);
|
|
6244
|
+
border-radius: var(--_pont2-drawer-radius) var(--_pont2-drawer-radius) 0 0;
|
|
6245
|
+
--_pont2-popup-enter-translate-x: 0;
|
|
6246
|
+
--_pont2-popup-enter-translate-y: calc(100% + 2px);
|
|
6247
|
+
--_pont2-popup-exit-translate-y: calc(100% + 2px);
|
|
6248
|
+
}
|
|
6249
|
+
[data-pont2-drawer-content][data-swipe-direction="up"] {
|
|
6250
|
+
inset: 0 0 auto 0;
|
|
6251
|
+
max-height: calc(100dvh - 6rem);
|
|
6252
|
+
border-bottom-width: var(--pont2-sem-border-width);
|
|
6253
|
+
border-radius: 0 0 var(--_pont2-drawer-radius) var(--_pont2-drawer-radius);
|
|
6254
|
+
--_pont2-popup-enter-translate-x: 0;
|
|
6255
|
+
--_pont2-popup-enter-translate-y: calc(-100% - 2px);
|
|
6256
|
+
--_pont2-popup-exit-translate-y: calc(-100% - 2px);
|
|
6257
|
+
}
|
|
6258
|
+
[data-pont2-drawer-content][data-swipe-direction="left"] {
|
|
6259
|
+
inset: 0 auto 0 0;
|
|
6260
|
+
width: var(--_pont2-drawer-width);
|
|
6261
|
+
border-right-width: var(--pont2-sem-border-width);
|
|
6262
|
+
border-radius: 0 var(--_pont2-drawer-radius) var(--_pont2-drawer-radius) 0;
|
|
6263
|
+
--_pont2-popup-enter-translate-y: 0;
|
|
6264
|
+
--_pont2-popup-enter-translate-x: calc(-100% - 2px);
|
|
6265
|
+
--_pont2-popup-exit-translate-x: calc(-100% - 2px);
|
|
5806
6266
|
}
|
|
5807
|
-
[data-pont2-
|
|
5808
|
-
|
|
6267
|
+
[data-pont2-drawer-content][data-swipe-direction="right"] {
|
|
6268
|
+
inset: 0 0 0 auto;
|
|
6269
|
+
width: var(--_pont2-drawer-width);
|
|
6270
|
+
border-left-width: var(--pont2-sem-border-width);
|
|
6271
|
+
border-radius: var(--_pont2-drawer-radius) 0 0 var(--_pont2-drawer-radius);
|
|
6272
|
+
--_pont2-popup-enter-translate-y: 0;
|
|
6273
|
+
--_pont2-popup-enter-translate-x: calc(100% + 2px);
|
|
6274
|
+
--_pont2-popup-exit-translate-x: calc(100% + 2px);
|
|
5809
6275
|
}
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
* <pont2-divider>. Styled entirely by the FieldSeparator recipe through
|
|
5815
|
-
* [data-pont2-field-separator]. Added here: before upgrade the composite is
|
|
5816
|
-
* empty, so it reserves the separator's height (h-5).
|
|
5817
|
-
*/
|
|
5818
|
-
@layer pont2.kit {
|
|
5819
|
-
pont2-divider:not([data-pont2-field-separator]) {
|
|
5820
|
-
display: block;
|
|
5821
|
-
height: 1.25rem;
|
|
6276
|
+
@media (width >= 40rem) {
|
|
6277
|
+
[data-pont2-drawer-content][data-swipe-axis="x"] {
|
|
6278
|
+
width: min(var(--_pont2-drawer-width), 24rem);
|
|
6279
|
+
}
|
|
5822
6280
|
}
|
|
5823
|
-
}
|
|
5824
|
-
|
|
5825
|
-
/* ../kit/typography/typography.css */
|
|
5826
|
-
/*
|
|
5827
|
-
* <pont2-title> / <pont2-subtitle>: Tier 3 shells around a native <h1>–<h4> / <p>.
|
|
5828
|
-
*
|
|
5829
|
-
* Sizes follow shadcn's auth blocks (login-03/04: `<h1 class="text-2xl
|
|
5830
|
-
* font-bold">` + `<p class="text-muted-foreground text-balance">`); levels 2–4
|
|
5831
|
-
* step down. Margins are reset: spacing belongs to the layout (gap).
|
|
5832
|
-
*
|
|
5833
|
-
* Tokens: the title's colour, weight and per-level size (level 1's weight
|
|
5834
|
-
* falls back to the title weight, then bold); the subtitle's colour and size.
|
|
5835
|
-
*/
|
|
5836
|
-
@layer pont2.kit {
|
|
5837
|
-
/* ------------------------------------------------------------------ */
|
|
5838
|
-
/* Tokens */
|
|
5839
|
-
/* ------------------------------------------------------------------ */
|
|
5840
6281
|
|
|
5841
|
-
/*
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
6282
|
+
/* The grab handle (show-swipe-handle): first in the column, a 100px × 6px pill. */
|
|
6283
|
+
[data-pont2-drawer-swipe-handle] {
|
|
6284
|
+
order: -1;
|
|
6285
|
+
display: flex;
|
|
6286
|
+
flex-shrink: 0;
|
|
6287
|
+
justify-content: center;
|
|
6288
|
+
align-items: flex-end;
|
|
6289
|
+
height: 0.75rem;
|
|
6290
|
+
cursor: grab;
|
|
5848
6291
|
}
|
|
5849
|
-
[data-pont2-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
6292
|
+
[data-pont2-drawer-swipe-handle]::after {
|
|
6293
|
+
content: "";
|
|
6294
|
+
display: block;
|
|
6295
|
+
width: 100px;
|
|
6296
|
+
height: 0.375rem;
|
|
6297
|
+
border-radius: var(--pont2-sem-radius-full);
|
|
6298
|
+
background-color: var(--pont2-sem-color-muted);
|
|
5854
6299
|
}
|
|
5855
|
-
[data-pont2-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
6300
|
+
[data-pont2-drawer-content][data-swipe-axis="x"] > [data-pont2-drawer-swipe-handle] {
|
|
6301
|
+
position: absolute;
|
|
6302
|
+
inset-block: 0;
|
|
6303
|
+
width: 0.75rem;
|
|
6304
|
+
height: auto;
|
|
6305
|
+
align-items: center;
|
|
5860
6306
|
}
|
|
5861
|
-
[data-pont2-
|
|
5862
|
-
|
|
5863
|
-
--_pont2-title-font-size: var(--pont2-title-h2-font-size, var(--pont2-sem-text-xl));
|
|
6307
|
+
[data-pont2-drawer-content][data-swipe-direction="right"] > [data-pont2-drawer-swipe-handle] {
|
|
6308
|
+
left: 0;
|
|
5864
6309
|
}
|
|
5865
|
-
[data-pont2-
|
|
5866
|
-
|
|
5867
|
-
--_pont2-title-font-size: var(--pont2-title-h3-font-size, var(--pont2-sem-text-lg));
|
|
6310
|
+
[data-pont2-drawer-content][data-swipe-direction="left"] > [data-pont2-drawer-swipe-handle] {
|
|
6311
|
+
right: 0;
|
|
5868
6312
|
}
|
|
5869
|
-
[data-pont2-
|
|
5870
|
-
|
|
5871
|
-
|
|
6313
|
+
[data-pont2-drawer-content][data-swipe-direction="up"] > [data-pont2-drawer-swipe-handle] {
|
|
6314
|
+
order: 9999;
|
|
6315
|
+
align-items: flex-start;
|
|
5872
6316
|
}
|
|
5873
|
-
[data-pont2-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
/** @token component=subtitle Size */
|
|
5877
|
-
--_pont2-subtitle-font-size: var(--pont2-subtitle-font-size, var(--pont2-sem-text-sm));
|
|
6317
|
+
[data-pont2-drawer-content][data-swipe-axis="x"] > [data-pont2-drawer-swipe-handle]::after {
|
|
6318
|
+
width: 0.375rem;
|
|
6319
|
+
height: 100px;
|
|
5878
6320
|
}
|
|
5879
6321
|
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
color: var(--_pont2-title-fg);
|
|
5887
|
-
font-family: var(--pont2-sem-font-heading);
|
|
5888
|
-
font-size: var(--_pont2-title-font-size);
|
|
5889
|
-
font-weight: var(--_pont2-title-font-weight);
|
|
5890
|
-
letter-spacing: var(--pont2-sem-tracking-tight);
|
|
5891
|
-
text-wrap: balance;
|
|
6322
|
+
:is(pont2-prim-drawer-header, [data-pont2-drawer-header]) {
|
|
6323
|
+
display: flex;
|
|
6324
|
+
flex-direction: column;
|
|
6325
|
+
flex-shrink: 0;
|
|
6326
|
+
gap: 0.125rem;
|
|
6327
|
+
padding: 1rem 1rem 0;
|
|
5892
6328
|
}
|
|
5893
|
-
[data-pont2-
|
|
5894
|
-
|
|
6329
|
+
[data-pont2-drawer-content][data-swipe-axis="y"] :is(pont2-prim-drawer-header, [data-pont2-drawer-header]) {
|
|
6330
|
+
text-align: center;
|
|
5895
6331
|
}
|
|
5896
|
-
|
|
5897
|
-
|
|
6332
|
+
@media (width >= 48rem) {
|
|
6333
|
+
:is(pont2-prim-drawer-header, [data-pont2-drawer-header]) {
|
|
6334
|
+
gap: 0.375rem;
|
|
6335
|
+
}
|
|
6336
|
+
[data-pont2-drawer-content] :is(pont2-prim-drawer-header, [data-pont2-drawer-header]) {
|
|
6337
|
+
text-align: left;
|
|
6338
|
+
}
|
|
5898
6339
|
}
|
|
5899
|
-
[data-pont2-
|
|
5900
|
-
|
|
6340
|
+
:is(pont2-prim-drawer-footer, [data-pont2-drawer-footer]) {
|
|
6341
|
+
display: flex;
|
|
6342
|
+
flex-direction: column;
|
|
6343
|
+
flex-shrink: 0;
|
|
6344
|
+
gap: 0.5rem;
|
|
6345
|
+
margin-top: auto;
|
|
6346
|
+
padding: 0 1rem 1rem;
|
|
5901
6347
|
}
|
|
5902
|
-
[data-pont2-title]
|
|
5903
|
-
|
|
6348
|
+
:is(pont2-prim-drawer-title, [data-pont2-drawer-title]) {
|
|
6349
|
+
display: block;
|
|
6350
|
+
margin: 0;
|
|
6351
|
+
color: var(--pont2-sem-color-foreground);
|
|
6352
|
+
font-family: var(--pont2-sem-font-heading);
|
|
6353
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
5904
6354
|
}
|
|
5905
|
-
|
|
5906
|
-
|
|
6355
|
+
:is(pont2-prim-drawer-description, [data-pont2-drawer-description]) {
|
|
6356
|
+
display: block;
|
|
5907
6357
|
margin: 0;
|
|
5908
|
-
color: var(--
|
|
5909
|
-
font-size: var(--
|
|
6358
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6359
|
+
font-size: var(--pont2-sem-text-sm);
|
|
5910
6360
|
line-height: var(--pont2-sem-text-sm--line-height);
|
|
5911
6361
|
text-wrap: balance;
|
|
5912
6362
|
}
|
|
6363
|
+
}
|
|
5913
6364
|
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
6365
|
+
/* ../primitives/hover-card/hover-card.css */
|
|
6366
|
+
/*
|
|
6367
|
+
* Hover Card. shadcn (Base UI Preview Card, Vega):
|
|
6368
|
+
* content: "z-50 origin-(--transform-origin) outline-hidden" + .cn-hover-card-content
|
|
6369
|
+
* "fade/zoom-95, slide-in-from-<side>-2, ring-foreground/10 bg-popover
|
|
6370
|
+
* text-popover-foreground w-64 rounded-lg p-4 text-sm shadow-md ring-1 duration-100"
|
|
6371
|
+
* (enter/exit: core/popup/popup.css)
|
|
6372
|
+
*
|
|
6373
|
+
* Tokens (docs/11-tokens.md): `--pont2-hover-card-*`, resolved on the content.
|
|
6374
|
+
*/
|
|
6375
|
+
@layer pont2.primitives {
|
|
6376
|
+
:is(pont2-prim-hover-card-content, [data-pont2-hover-card-content]) {
|
|
6377
|
+
/** @token Background */
|
|
6378
|
+
--_pont2-hover-card-bg: var(--pont2-hover-card-bg, var(--pont2-sem-color-popover));
|
|
6379
|
+
/** @token Text */
|
|
6380
|
+
--_pont2-hover-card-fg: var(--pont2-hover-card-fg, var(--pont2-sem-color-popover-foreground));
|
|
6381
|
+
/** @token Border */
|
|
6382
|
+
--_pont2-hover-card-border-color: var(--pont2-hover-card-border-color, color-mix(in oklab, var(--pont2-sem-color-foreground) 10%, transparent));
|
|
6383
|
+
/** @token Corner radius */
|
|
6384
|
+
--_pont2-hover-card-radius: var(--pont2-hover-card-radius, var(--pont2-sem-radius-lg));
|
|
6385
|
+
/** @token Shadow */
|
|
6386
|
+
--_pont2-hover-card-shadow: var(--pont2-hover-card-shadow, var(--pont2-sem-shadow-md));
|
|
6387
|
+
/** @token Width */
|
|
6388
|
+
--_pont2-hover-card-width: var(--pont2-hover-card-width, 16rem);
|
|
6389
|
+
/** @token Horizontal padding */
|
|
6390
|
+
--_pont2-hover-card-padding-x: var(--pont2-hover-card-padding-x, 1rem);
|
|
6391
|
+
/** @token Vertical padding */
|
|
6392
|
+
--_pont2-hover-card-padding-y: var(--pont2-hover-card-padding-y, 1rem);
|
|
5932
6393
|
}
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
6394
|
+
|
|
6395
|
+
:is(pont2-prim-hover-card-content, [data-pont2-hover-card-content]) {
|
|
6396
|
+
display: block;
|
|
6397
|
+
box-sizing: border-box;
|
|
6398
|
+
width: var(--_pont2-hover-card-width);
|
|
6399
|
+
max-width: var(--pont2-available-width);
|
|
6400
|
+
padding: var(--_pont2-hover-card-padding-y) var(--_pont2-hover-card-padding-x);
|
|
6401
|
+
border-radius: var(--_pont2-hover-card-radius);
|
|
6402
|
+
background-color: var(--_pont2-hover-card-bg);
|
|
6403
|
+
color: var(--_pont2-hover-card-fg);
|
|
6404
|
+
font-size: var(--pont2-sem-text-sm);
|
|
6405
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
6406
|
+
outline: none;
|
|
6407
|
+
--pont2-shadow: var(--_pont2-hover-card-shadow);
|
|
6408
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-border-width) var(--_pont2-hover-card-border-color);
|
|
6409
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
5943
6410
|
}
|
|
5944
6411
|
}
|
|
5945
6412
|
|
|
5946
|
-
/* ../
|
|
6413
|
+
/* ../primitives/sonner/sonner.css */
|
|
5947
6414
|
/*
|
|
5948
|
-
*
|
|
5949
|
-
*
|
|
5950
|
-
*
|
|
5951
|
-
*
|
|
6415
|
+
* Toaster: shadcn's Sonner (components/ui/sonner.tsx, Vega). shadcn themes Sonner with
|
|
6416
|
+
* --normal-bg: var(--popover); --normal-text: var(--popover-foreground);
|
|
6417
|
+
* --normal-border: var(--border); --border-radius: var(--radius)
|
|
6418
|
+
* toastOptions.classNames.toast: .cn-toast "rounded-2xl"
|
|
6419
|
+
* and lucide icons at size-4 (the loading one animate-spin). Sonner's own stylesheet
|
|
6420
|
+
* gives the layout ported here: a 356px column 24px from the edge (16px and full width
|
|
6421
|
+
* below 600px), 14px apart; each toast a flex row, padding 16px, 1px border,
|
|
6422
|
+
* shadow 0 4px 12px #0000001a, 13px text, title 500 / description 400; buttons 24px
|
|
6423
|
+
* high, 12px text, radius 4px, the action in the toast's text colour; the × button a
|
|
6424
|
+
* 20px circle on the corner; toasts slide in from their edge and fade out.
|
|
6425
|
+
*
|
|
6426
|
+
* Tokens (docs/11-tokens.md): `--pont2-toast-*`, resolved on the toaster.
|
|
5952
6427
|
*/
|
|
5953
|
-
@layer pont2.
|
|
5954
|
-
pont2-
|
|
5955
|
-
|
|
5956
|
-
|
|
6428
|
+
@layer pont2.primitives {
|
|
6429
|
+
:is(pont2-prim-toaster, [data-pont2-toaster]) {
|
|
6430
|
+
/** @token component=toast Background */
|
|
6431
|
+
--_pont2-toast-bg: var(--pont2-toast-bg, var(--pont2-sem-color-popover));
|
|
6432
|
+
/** @token component=toast Text */
|
|
6433
|
+
--_pont2-toast-fg: var(--pont2-toast-fg, var(--pont2-sem-color-popover-foreground));
|
|
6434
|
+
/** @token component=toast Border */
|
|
6435
|
+
--_pont2-toast-border-color: var(--pont2-toast-border-color, var(--pont2-sem-color-border));
|
|
6436
|
+
/** @token component=toast Corner radius */
|
|
6437
|
+
--_pont2-toast-radius: var(--pont2-toast-radius, var(--pont2-sem-radius-2xl));
|
|
6438
|
+
/** @token component=toast Shadow */
|
|
6439
|
+
--_pont2-toast-shadow: var(--pont2-toast-shadow, 0 4px 12px oklch(0 0 0 / 10%));
|
|
6440
|
+
/** @token component=toast Width */
|
|
6441
|
+
--_pont2-toast-width: var(--pont2-toast-width, 356px);
|
|
6442
|
+
--_pont2-toaster-offset: 24px;
|
|
6443
|
+
}
|
|
6444
|
+
|
|
6445
|
+
/* The section: a popover in the top layer, with the UA popover box undone. */
|
|
6446
|
+
:is(pont2-prim-toaster, [data-pont2-toaster]) {
|
|
6447
|
+
position: fixed;
|
|
6448
|
+
inset: auto;
|
|
6449
|
+
width: var(--_pont2-toast-width);
|
|
6450
|
+
height: auto;
|
|
6451
|
+
margin: 0;
|
|
6452
|
+
padding: 0;
|
|
6453
|
+
border: 0;
|
|
6454
|
+
overflow: visible;
|
|
6455
|
+
background: transparent;
|
|
6456
|
+
color: var(--_pont2-toast-fg);
|
|
6457
|
+
font-family: var(--pont2-sem-font-body);
|
|
6458
|
+
outline: none;
|
|
5957
6459
|
}
|
|
5958
|
-
pont2-
|
|
5959
|
-
|
|
5960
|
-
width: 100%;
|
|
6460
|
+
:is(pont2-prim-toaster, [data-pont2-toaster]):not(:popover-open) {
|
|
6461
|
+
display: none;
|
|
5961
6462
|
}
|
|
5962
|
-
|
|
5963
|
-
|
|
6463
|
+
[data-pont2-toaster][data-y-position="bottom"] {
|
|
6464
|
+
bottom: var(--_pont2-toaster-offset);
|
|
5964
6465
|
}
|
|
5965
|
-
|
|
5966
|
-
|
|
6466
|
+
[data-pont2-toaster][data-y-position="top"] {
|
|
6467
|
+
top: var(--_pont2-toaster-offset);
|
|
5967
6468
|
}
|
|
5968
|
-
|
|
5969
|
-
|
|
6469
|
+
[data-pont2-toaster][data-x-position="right"] {
|
|
6470
|
+
right: var(--_pont2-toaster-offset);
|
|
5970
6471
|
}
|
|
5971
|
-
|
|
5972
|
-
|
|
6472
|
+
[data-pont2-toaster][data-x-position="left"] {
|
|
6473
|
+
left: var(--_pont2-toaster-offset);
|
|
6474
|
+
}
|
|
6475
|
+
[data-pont2-toaster][data-x-position="center"] {
|
|
6476
|
+
left: 50%;
|
|
6477
|
+
translate: -50% 0;
|
|
6478
|
+
}
|
|
6479
|
+
@media (width < 600px) {
|
|
6480
|
+
:is(pont2-prim-toaster, [data-pont2-toaster]) {
|
|
6481
|
+
--_pont2-toaster-offset: 16px;
|
|
6482
|
+
width: calc(100% - 2 * var(--_pont2-toaster-offset));
|
|
6483
|
+
}
|
|
6484
|
+
[data-pont2-toaster][data-x-position] {
|
|
6485
|
+
left: var(--_pont2-toaster-offset);
|
|
6486
|
+
right: var(--_pont2-toaster-offset);
|
|
6487
|
+
translate: none;
|
|
6488
|
+
}
|
|
5973
6489
|
}
|
|
5974
6490
|
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
6491
|
+
[data-pont2-toaster] > [data-sonner-toaster] {
|
|
6492
|
+
display: flex;
|
|
6493
|
+
flex-direction: column;
|
|
6494
|
+
gap: 14px;
|
|
6495
|
+
margin: 0;
|
|
6496
|
+
padding: 0;
|
|
6497
|
+
list-style: none;
|
|
5979
6498
|
}
|
|
5980
|
-
}
|
|
5981
6499
|
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6500
|
+
[data-pont2-toast] {
|
|
6501
|
+
position: relative;
|
|
6502
|
+
display: flex;
|
|
6503
|
+
box-sizing: border-box;
|
|
6504
|
+
width: 100%;
|
|
6505
|
+
align-items: center;
|
|
6506
|
+
gap: 6px;
|
|
6507
|
+
padding: 16px;
|
|
6508
|
+
border: var(--pont2-sem-border-width) solid var(--_pont2-toast-border-color);
|
|
6509
|
+
border-radius: var(--_pont2-toast-radius);
|
|
6510
|
+
background-color: var(--_pont2-toast-bg);
|
|
6511
|
+
color: var(--_pont2-toast-fg);
|
|
6512
|
+
font-size: 13px;
|
|
6513
|
+
line-height: 1.5;
|
|
6514
|
+
--pont2-shadow: var(--_pont2-toast-shadow);
|
|
6515
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
6516
|
+
outline: none;
|
|
6517
|
+
overflow-wrap: anywhere;
|
|
6518
|
+
animation: pont2-toast-enter 400ms var(--pont2-sem-ease-out);
|
|
6519
|
+
transition: opacity 400ms, translate 400ms;
|
|
6520
|
+
}
|
|
6521
|
+
[data-pont2-toast]:focus-visible {
|
|
6522
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-ring-width) color-mix(in oklab, var(--pont2-sem-color-ring) 50%, transparent);
|
|
6523
|
+
}
|
|
6524
|
+
[data-pont2-toaster][data-y-position="top"] [data-pont2-toast] {
|
|
6525
|
+
animation-name: pont2-toast-enter-top;
|
|
6526
|
+
}
|
|
6527
|
+
[data-pont2-toast][data-removed] {
|
|
6528
|
+
opacity: 0;
|
|
6529
|
+
translate: 0 25%;
|
|
6530
|
+
transition-duration: 200ms;
|
|
6531
|
+
pointer-events: none;
|
|
6532
|
+
}
|
|
6533
|
+
[data-pont2-toaster][data-y-position="top"] [data-pont2-toast][data-removed] {
|
|
6534
|
+
translate: 0 -25%;
|
|
6535
|
+
}
|
|
6536
|
+
|
|
6537
|
+
[data-pont2-toast] > [data-icon] {
|
|
6538
|
+
position: relative;
|
|
6539
|
+
display: flex;
|
|
6540
|
+
flex-shrink: 0;
|
|
6541
|
+
width: 16px;
|
|
6542
|
+
height: 16px;
|
|
6543
|
+
margin-inline: -3px 4px;
|
|
6544
|
+
align-items: center;
|
|
6545
|
+
justify-content: flex-start;
|
|
6546
|
+
}
|
|
6547
|
+
[data-pont2-toast] > [data-icon] > svg {
|
|
6548
|
+
width: 1rem;
|
|
6549
|
+
height: 1rem;
|
|
6550
|
+
}
|
|
6551
|
+
[data-pont2-toast] svg[data-spin] {
|
|
6552
|
+
animation: var(--pont2-sem-animate-spin);
|
|
6553
|
+
}
|
|
6554
|
+
|
|
6555
|
+
[data-pont2-toast] > [data-content] {
|
|
6556
|
+
display: flex;
|
|
6557
|
+
flex-direction: column;
|
|
6558
|
+
gap: 2px;
|
|
6559
|
+
min-width: 0;
|
|
6560
|
+
}
|
|
6561
|
+
[data-pont2-toast] [data-title] {
|
|
6562
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
6563
|
+
line-height: 1.5;
|
|
6564
|
+
}
|
|
6565
|
+
[data-pont2-toast] [data-description] {
|
|
6566
|
+
font-weight: var(--pont2-sem-font-weight-normal);
|
|
6567
|
+
line-height: 1.4;
|
|
6568
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6569
|
+
}
|
|
6570
|
+
|
|
6571
|
+
[data-pont2-toast] > [data-button] {
|
|
6572
|
+
display: flex;
|
|
6573
|
+
flex-shrink: 0;
|
|
6574
|
+
height: 24px;
|
|
6575
|
+
align-items: center;
|
|
6576
|
+
padding: 0 8px;
|
|
6577
|
+
border: 0;
|
|
6578
|
+
border-radius: 4px;
|
|
6579
|
+
background-color: var(--_pont2-toast-fg);
|
|
6580
|
+
color: var(--_pont2-toast-bg);
|
|
6581
|
+
font: inherit;
|
|
6582
|
+
font-size: 12px;
|
|
6583
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
6584
|
+
cursor: pointer;
|
|
6585
|
+
outline: none;
|
|
6586
|
+
transition: opacity 400ms, box-shadow 200ms;
|
|
6587
|
+
}
|
|
6588
|
+
[data-pont2-toast] > [data-button]:first-of-type {
|
|
6589
|
+
margin-inline-start: auto;
|
|
6590
|
+
}
|
|
6591
|
+
[data-pont2-toast] > [data-button][data-cancel] {
|
|
6592
|
+
background-color: color-mix(in oklab, var(--_pont2-toast-fg) 8%, transparent);
|
|
6593
|
+
color: var(--_pont2-toast-fg);
|
|
6594
|
+
}
|
|
6595
|
+
[data-pont2-toast] > :is([data-button], [data-close-button]):focus-visible {
|
|
6596
|
+
box-shadow: 0 0 0 2px color-mix(in oklab, var(--pont2-sem-color-ring) 50%, transparent);
|
|
6597
|
+
}
|
|
6598
|
+
|
|
6599
|
+
[data-pont2-toast] > [data-close-button] {
|
|
6600
|
+
position: absolute;
|
|
6601
|
+
top: 0;
|
|
6602
|
+
left: 0;
|
|
6603
|
+
display: flex;
|
|
6604
|
+
width: 20px;
|
|
6605
|
+
height: 20px;
|
|
6606
|
+
padding: 0;
|
|
6607
|
+
align-items: center;
|
|
6608
|
+
justify-content: center;
|
|
6609
|
+
translate: -35% -35%;
|
|
6610
|
+
border: var(--pont2-sem-border-width) solid var(--_pont2-toast-border-color);
|
|
6611
|
+
border-radius: var(--pont2-sem-radius-full);
|
|
6612
|
+
background-color: var(--_pont2-toast-bg);
|
|
6613
|
+
color: var(--_pont2-toast-fg);
|
|
6614
|
+
cursor: pointer;
|
|
6615
|
+
outline: none;
|
|
6616
|
+
}
|
|
6617
|
+
[data-pont2-toast] > [data-close-button] > svg {
|
|
6618
|
+
width: 12px;
|
|
6619
|
+
height: 12px;
|
|
6620
|
+
}
|
|
6621
|
+
|
|
6622
|
+
@media (prefers-reduced-motion: reduce) {
|
|
6623
|
+
[data-pont2-toast],
|
|
6624
|
+
[data-pont2-toast][data-removed] {
|
|
6625
|
+
animation: none;
|
|
6626
|
+
transition: none;
|
|
6627
|
+
translate: none;
|
|
6628
|
+
}
|
|
6629
|
+
}
|
|
6630
|
+
}
|
|
6631
|
+
|
|
6632
|
+
@keyframes pont2-toast-enter {
|
|
6633
|
+
from {
|
|
6634
|
+
opacity: 0;
|
|
6635
|
+
translate: 0 100%;
|
|
6636
|
+
}
|
|
6637
|
+
}
|
|
6638
|
+
@keyframes pont2-toast-enter-top {
|
|
6639
|
+
from {
|
|
6640
|
+
opacity: 0;
|
|
6641
|
+
translate: 0 -100%;
|
|
6642
|
+
}
|
|
6643
|
+
}
|
|
6644
|
+
|
|
6645
|
+
/* --- end overlays (C) --- */
|
|
6646
|
+
|
|
6647
|
+
/* Kit: composites (each file wraps itself in @layer pont2.kit). Aliases need no CSS:
|
|
6648
|
+
their tags are listed in the primitive recipes. docs/10-primitives-and-kit.md */
|
|
6649
|
+
/* ../kit/alert/alert.css */
|
|
6650
|
+
/*
|
|
6651
|
+
* <pont2-alert> (kit composite). Everything shadcn defines comes from the
|
|
6652
|
+
* primitive recipe (primitives/alert/alert.css), which matches this element
|
|
6653
|
+
* through [data-pont2-alert]. This file adds only what the composite adds:
|
|
6654
|
+
* the warning / success / info statuses, coloured like shadcn's destructive
|
|
6655
|
+
* variant ("text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90").
|
|
6656
|
+
*
|
|
6657
|
+
* Tokens (docs/11-tokens.md §5): one colour per status, defaulting to the sem
|
|
6658
|
+
* status colours.
|
|
6659
|
+
*/
|
|
6660
|
+
@layer pont2.kit {
|
|
6661
|
+
/* ------------------------------------------------------------------ */
|
|
6662
|
+
/* Tokens */
|
|
6663
|
+
/* ------------------------------------------------------------------ */
|
|
6664
|
+
|
|
6665
|
+
pont2-alert {
|
|
6666
|
+
/* set per status below; declared here so nothing is inherited from an ancestor */
|
|
6667
|
+
--_pont2-alert-status-fg: currentColor;
|
|
6668
|
+
}
|
|
6669
|
+
pont2-alert[data-status="warning"] {
|
|
6670
|
+
/** @token Text (warning) */
|
|
6671
|
+
--_pont2-alert-status-fg: var(--pont2-alert-warning-fg, var(--pont2-sem-color-warning));
|
|
6672
|
+
}
|
|
6673
|
+
pont2-alert[data-status="success"] {
|
|
6674
|
+
/** @token Text (success) */
|
|
6675
|
+
--_pont2-alert-status-fg: var(--pont2-alert-success-fg, var(--pont2-sem-color-success));
|
|
6676
|
+
}
|
|
6677
|
+
pont2-alert[data-status="info"] {
|
|
6678
|
+
/** @token Text (info) */
|
|
6679
|
+
--_pont2-alert-status-fg: var(--pont2-alert-info-fg, var(--pont2-sem-color-info));
|
|
6680
|
+
}
|
|
6681
|
+
|
|
6682
|
+
/* ------------------------------------------------------------------ */
|
|
6683
|
+
/* Recipe */
|
|
6684
|
+
/* ------------------------------------------------------------------ */
|
|
6685
|
+
|
|
6686
|
+
pont2-alert:is([data-status="warning"], [data-status="success"], [data-status="info"]) {
|
|
6687
|
+
color: var(--_pont2-alert-status-fg);
|
|
6688
|
+
}
|
|
6689
|
+
pont2-alert:is([data-status="warning"], [data-status="success"], [data-status="info"]) > [data-slot="alert-description"] {
|
|
6690
|
+
color: color-mix(in oklab, var(--_pont2-alert-status-fg) 90%, transparent);
|
|
6691
|
+
}
|
|
6692
|
+
}
|
|
6693
|
+
|
|
6694
|
+
/* ../kit/avatar/avatar.css */
|
|
6695
|
+
/*
|
|
6696
|
+
* <pont2-avatar> (kit composite). All styling comes from the primitive recipe
|
|
6697
|
+
* (primitives/avatar/avatar.css) through [data-pont2-avatar] and the parts'
|
|
6698
|
+
* identity attributes; the composite adds no visual rules of its own.
|
|
6699
|
+
*
|
|
6700
|
+
* The file exists so every kit element has a stylesheet in @layer pont2.kit,
|
|
6701
|
+
* where composite-specific rules go when they appear.
|
|
6702
|
+
*/
|
|
6703
|
+
@layer pont2.kit {
|
|
6704
|
+
/* Size before upgrade, so a server-rendered composite does not collapse. */
|
|
6705
|
+
pont2-avatar:not([data-pont2-avatar]) {
|
|
6706
|
+
display: inline-flex;
|
|
6707
|
+
width: 2rem;
|
|
6708
|
+
height: 2rem;
|
|
6709
|
+
}
|
|
6710
|
+
pont2-avatar:not([data-pont2-avatar])[size="sm"] {
|
|
6711
|
+
width: 1.5rem;
|
|
6712
|
+
height: 1.5rem;
|
|
6713
|
+
}
|
|
6714
|
+
pont2-avatar:not([data-pont2-avatar])[size="lg"] {
|
|
6715
|
+
width: 2.5rem;
|
|
6716
|
+
height: 2.5rem;
|
|
6717
|
+
}
|
|
6718
|
+
}
|
|
6719
|
+
|
|
6720
|
+
/* ../kit/input-otp/input-otp.css */
|
|
6721
|
+
/*
|
|
6722
|
+
* <pont2-input-otp> (kit composite). All styling comes from the primitive
|
|
6723
|
+
* recipe (primitives/input-otp/input-otp.css) through [data-pont2-input-otp]
|
|
6724
|
+
* and the parts' identity attributes.
|
|
6725
|
+
*
|
|
6726
|
+
* Added here: the composite has no children before upgrade, so it reserves the
|
|
6727
|
+
* primitive's slot height (2.25rem) to avoid a layout shift.
|
|
6728
|
+
*/
|
|
6729
|
+
@layer pont2.kit {
|
|
6730
|
+
pont2-input-otp:not([data-pont2-input-otp]) {
|
|
6731
|
+
display: flex;
|
|
6732
|
+
min-height: 2.25rem;
|
|
6733
|
+
}
|
|
6734
|
+
}
|
|
6735
|
+
|
|
6736
|
+
/* ../kit/auth-button/auth-button.css */
|
|
6737
|
+
/*
|
|
6738
|
+
* Auth buttons (kit composites). All visual styling is the button primitive's
|
|
6739
|
+
* recipe (primitives/button/button.css) on the native <button>, including
|
|
6740
|
+
* shadcn's icon spacing (`has-data-[icon=inline-start]`) and the icon sizes.
|
|
6741
|
+
* The busy spinner is the spinner primitive's part.
|
|
6742
|
+
*
|
|
6743
|
+
* Added here:
|
|
6744
|
+
* - before upgrade the shell is empty, so it reserves a default button's
|
|
6745
|
+
* height (h-9) to avoid a layout shift;
|
|
6746
|
+
* - brand marks keep their shape at any button size;
|
|
6747
|
+
* - provider-button tokens (docs/11-tokens.md §5): the provider button is an
|
|
6748
|
+
* outline Button by default, brandable on its own, and follows the Button's
|
|
6749
|
+
* outline tokens when only those are set.
|
|
6750
|
+
*/
|
|
6751
|
+
@layer pont2.kit {
|
|
6752
|
+
/* ------------------------------------------------------------------ */
|
|
6753
|
+
/* Tokens: re-default the Button's privates on a provider button */
|
|
6754
|
+
/* ------------------------------------------------------------------ */
|
|
6755
|
+
|
|
6756
|
+
pont2-provider-button > [data-pont2-button] {
|
|
6757
|
+
/** @token component=provider-button Corner radius */
|
|
6758
|
+
--_pont2-button-radius: var(--pont2-provider-button-radius, var(--pont2-button-radius, var(--pont2-sem-radius-md)));
|
|
6759
|
+
}
|
|
6760
|
+
pont2-provider-button > [data-pont2-button][data-variant="outline"] {
|
|
6761
|
+
/** @token component=provider-button Background */
|
|
6762
|
+
--_pont2-button-bg: var(--pont2-provider-button-bg, var(--pont2-button-outline-bg, var(--pont2-sem-color-control)));
|
|
6763
|
+
/** @token component=provider-button Text */
|
|
6764
|
+
--_pont2-button-fg: var(--pont2-provider-button-fg, var(--pont2-button-outline-fg, currentcolor));
|
|
6765
|
+
/** @token component=provider-button Border */
|
|
6766
|
+
--_pont2-button-border-color: var(--pont2-provider-button-border-color, var(--pont2-button-outline-border-color, var(--pont2-sem-color-control-border)));
|
|
6767
|
+
/** @token component=provider-button Background on hover */
|
|
6768
|
+
--_pont2-button-bg-hover: var(--pont2-provider-button-bg-hover, var(--pont2-button-outline-bg-hover, var(--pont2-sem-color-control-hover)));
|
|
6769
|
+
}
|
|
6770
|
+
|
|
6771
|
+
/* ------------------------------------------------------------------ */
|
|
6772
|
+
/* Additions */
|
|
6773
|
+
/* ------------------------------------------------------------------ */
|
|
6774
|
+
|
|
6775
|
+
:is(pont2-provider-button, pont2-passkey-button, pont2-submit-button):not([data-pont2-shell]) {
|
|
6776
|
+
display: inline-block;
|
|
6777
|
+
min-height: 2.25rem;
|
|
6778
|
+
}
|
|
6779
|
+
|
|
6780
|
+
[data-pont2-button] > svg[data-provider-icon] {
|
|
6781
|
+
flex-shrink: 0;
|
|
6782
|
+
}
|
|
6783
|
+
|
|
6784
|
+
/* The busy spinner is decorative (the button carries aria-busy). */
|
|
6785
|
+
[data-pont2-button] > [data-pont2-spinner][aria-hidden="true"] {
|
|
6786
|
+
flex-shrink: 0;
|
|
6787
|
+
}
|
|
6788
|
+
}
|
|
6789
|
+
|
|
6790
|
+
/* ../kit/auth-field/auth-field.css */
|
|
6791
|
+
/*
|
|
6792
|
+
* Auth fields (kit composites). The field, label, input, input-group,
|
|
6793
|
+
* description and error recipes are the primitives'; the field host matches
|
|
6794
|
+
* them through [data-pont2-field], the parts through their identity
|
|
6795
|
+
* attributes. Added here:
|
|
6796
|
+
*/
|
|
6797
|
+
@layer pont2.kit {
|
|
6798
|
+
/* Before upgrade the composite is empty: reserve label + gap + input (h-9),
|
|
6799
|
+
so a server-rendered screen does not jump. */
|
|
6800
|
+
:is(pont2-email-field, pont2-phone-field, pont2-username-field, pont2-name-field, pont2-identifier-field,
|
|
6801
|
+
pont2-password-field, pont2-confirm-field):not([data-pont2-field]) {
|
|
6802
|
+
display: block;
|
|
6803
|
+
min-height: 4rem;
|
|
6804
|
+
}
|
|
6805
|
+
|
|
6806
|
+
/* `mark` / required caret after the label text. */
|
|
6807
|
+
[data-pont2-field-label] > [data-slot="field-mark"] {
|
|
6808
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6809
|
+
font-weight: var(--pont2-sem-font-weight-normal, 400);
|
|
6810
|
+
}
|
|
6811
|
+
|
|
6812
|
+
/* Password: label + "Forgot your password?" on one row, as in shadcn's login blocks
|
|
6813
|
+
("flex items-center" + the link's "ml-auto text-sm underline-offset-4 hover:underline"). */
|
|
6814
|
+
[data-pont2-auth-field-label-row] {
|
|
6815
|
+
display: flex;
|
|
6816
|
+
align-items: center;
|
|
6817
|
+
gap: 0.5rem;
|
|
6818
|
+
}
|
|
6819
|
+
[data-pont2-auth-field-label-row] > [data-slot="field-forgot"] {
|
|
6820
|
+
margin-left: auto;
|
|
6821
|
+
height: auto;
|
|
6822
|
+
padding: 0;
|
|
6823
|
+
font-weight: var(--pont2-sem-font-weight-normal, 400);
|
|
6824
|
+
}
|
|
6825
|
+
}
|
|
6826
|
+
|
|
6827
|
+
/* ../kit/otp-field/otp-field.css */
|
|
6828
|
+
/*
|
|
6829
|
+
* OTP field and resend (kit composites). The field, label, Input OTP and
|
|
6830
|
+
* error styling are the primitives' recipes. Added here:
|
|
6831
|
+
*/
|
|
6832
|
+
@layer pont2.kit {
|
|
6833
|
+
/* Tokens: the resend row, like <pont2-link> (muted text, link colour and hover). */
|
|
6834
|
+
:is(pont2-otp-resend, [data-pont2-otp-resend]) {
|
|
6835
|
+
/** @token component=otp-resend Text */
|
|
6836
|
+
--_pont2-otp-resend-fg: var(--pont2-otp-resend-fg, var(--pont2-sem-color-muted-foreground));
|
|
6837
|
+
/** @token component=otp-resend Link text */
|
|
6838
|
+
--_pont2-otp-resend-button-fg: var(--pont2-otp-resend-button-fg, currentcolor);
|
|
6839
|
+
/** @token component=otp-resend Link text on hover */
|
|
6840
|
+
--_pont2-otp-resend-button-fg-hover: var(--pont2-otp-resend-button-fg-hover, var(--pont2-sem-color-primary));
|
|
6841
|
+
}
|
|
6842
|
+
|
|
6843
|
+
/* Before upgrade: reserve the slot row (h-9) so the screen does not jump. */
|
|
6844
|
+
pont2-otp-field:not([data-pont2-field]) {
|
|
6845
|
+
display: block;
|
|
6846
|
+
min-height: 2.25rem;
|
|
6847
|
+
}
|
|
6848
|
+
|
|
6849
|
+
/* Auto-submit pending: the code is being checked. */
|
|
6850
|
+
pont2-otp-field [data-pont2-input-otp][aria-busy="true"] {
|
|
6851
|
+
opacity: 0.6;
|
|
6852
|
+
pointer-events: none;
|
|
6853
|
+
}
|
|
6854
|
+
|
|
6855
|
+
/* Resend row: "Resend code in 42s" / the link, centred, small muted text. */
|
|
6856
|
+
:is(pont2-otp-resend, [data-pont2-otp-resend]) {
|
|
6857
|
+
display: flex;
|
|
6858
|
+
justify-content: center;
|
|
6859
|
+
align-items: center;
|
|
6860
|
+
min-height: 1.25rem;
|
|
6861
|
+
color: var(--_pont2-otp-resend-fg);
|
|
6862
|
+
font-size: var(--pont2-sem-text-sm);
|
|
6863
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
6864
|
+
}
|
|
6865
|
+
[data-pont2-otp-resend] > [data-slot="otp-resend-button"] {
|
|
6866
|
+
height: auto;
|
|
6867
|
+
padding: 0;
|
|
6868
|
+
color: var(--_pont2-otp-resend-button-fg);
|
|
6869
|
+
font-size: inherit;
|
|
6870
|
+
line-height: inherit;
|
|
6871
|
+
font-weight: inherit;
|
|
6872
|
+
text-decoration-line: underline;
|
|
6873
|
+
text-underline-offset: 4px;
|
|
6874
|
+
}
|
|
6875
|
+
[data-pont2-otp-resend] > [data-slot="otp-resend-button"]:hover {
|
|
6876
|
+
color: var(--_pont2-otp-resend-button-fg-hover);
|
|
6877
|
+
}
|
|
6878
|
+
}
|
|
6879
|
+
|
|
6880
|
+
/* ../kit/link/link.css */
|
|
6881
|
+
/*
|
|
6882
|
+
* <pont2-link>. shadcn's login blocks: "text-center text-sm" on the row and
|
|
6883
|
+
* "underline underline-offset-4" on the link. The link itself is the button
|
|
6884
|
+
* primitive's `link` variant; here it is sized as inline text.
|
|
6885
|
+
*
|
|
6886
|
+
* Tokens: the row's muted text, and the link's own colour (it inherits the
|
|
6887
|
+
* row's) and hover colour. They resolve on the row and the link inherits them.
|
|
6888
|
+
*/
|
|
6889
|
+
@layer pont2.kit {
|
|
6890
|
+
/* Tokens */
|
|
6891
|
+
:is(pont2-link, [data-pont2-link]) {
|
|
6892
|
+
/** @token Text */
|
|
6893
|
+
--_pont2-link-fg: var(--pont2-link-fg, var(--pont2-sem-color-muted-foreground));
|
|
6894
|
+
/** @token Link text */
|
|
6895
|
+
--_pont2-link-button-fg: var(--pont2-link-button-fg, currentcolor);
|
|
6896
|
+
/** @token Link text on hover */
|
|
6897
|
+
--_pont2-link-button-fg-hover: var(--pont2-link-button-fg-hover, var(--pont2-sem-color-primary));
|
|
6898
|
+
}
|
|
6899
|
+
|
|
6900
|
+
/* Recipe */
|
|
6901
|
+
/* An href that is not http(s) renders nothing; the row goes with it. */
|
|
6902
|
+
:is(pont2-link, [data-pont2-link])[data-invalid-href] {
|
|
6903
|
+
display: none;
|
|
6904
|
+
}
|
|
6905
|
+
|
|
6906
|
+
:is(pont2-link, [data-pont2-link]) {
|
|
6907
|
+
display: flex;
|
|
6908
|
+
flex-wrap: wrap;
|
|
6909
|
+
align-items: baseline;
|
|
6910
|
+
justify-content: center;
|
|
6911
|
+
column-gap: 0.25rem;
|
|
6912
|
+
color: var(--_pont2-link-fg);
|
|
6913
|
+
font-size: var(--pont2-sem-text-sm);
|
|
6914
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
6915
|
+
}
|
|
6916
|
+
[data-pont2-link][data-align="start"] {
|
|
6917
|
+
justify-content: flex-start;
|
|
6918
|
+
}
|
|
6919
|
+
[data-pont2-link][data-align="end"] {
|
|
6920
|
+
justify-content: flex-end;
|
|
6921
|
+
}
|
|
6922
|
+
[data-pont2-link] > [data-slot="link-button"] {
|
|
6923
|
+
height: auto;
|
|
6924
|
+
padding: 0;
|
|
6925
|
+
color: var(--_pont2-link-button-fg);
|
|
6926
|
+
font-size: inherit;
|
|
6927
|
+
line-height: inherit;
|
|
6928
|
+
font-weight: inherit;
|
|
6929
|
+
text-decoration-line: underline;
|
|
6930
|
+
text-underline-offset: 4px;
|
|
6931
|
+
}
|
|
6932
|
+
[data-pont2-link] > [data-slot="link-button"]:hover {
|
|
6933
|
+
color: var(--_pont2-link-button-fg-hover);
|
|
6934
|
+
}
|
|
6935
|
+
}
|
|
6936
|
+
|
|
6937
|
+
/* ../kit/divider/divider.css */
|
|
6938
|
+
/*
|
|
6939
|
+
* <pont2-divider>. Styled entirely by the FieldSeparator recipe through
|
|
6940
|
+
* [data-pont2-field-separator]. Added here: before upgrade the composite is
|
|
6941
|
+
* empty, so it reserves the separator's height (h-5).
|
|
6942
|
+
*/
|
|
6943
|
+
@layer pont2.kit {
|
|
6944
|
+
pont2-divider:not([data-pont2-field-separator]) {
|
|
6945
|
+
display: block;
|
|
6946
|
+
height: 1.25rem;
|
|
6947
|
+
}
|
|
6948
|
+
}
|
|
6949
|
+
|
|
6950
|
+
/* ../kit/typography/typography.css */
|
|
6951
|
+
/*
|
|
6952
|
+
* <pont2-title> / <pont2-subtitle>: Tier 3 shells around a native <h1>–<h4> / <p>.
|
|
6953
|
+
*
|
|
6954
|
+
* Sizes follow shadcn's auth blocks (login-03/04: `<h1 class="text-2xl
|
|
6955
|
+
* font-bold">` + `<p class="text-muted-foreground text-balance">`); levels 2–4
|
|
6956
|
+
* step down. Margins are reset: spacing belongs to the layout (gap).
|
|
6957
|
+
*
|
|
6958
|
+
* Tokens: the title's colour, weight and per-level size (level 1's weight
|
|
6959
|
+
* falls back to the title weight, then bold); the subtitle's colour and size.
|
|
6960
|
+
*/
|
|
6961
|
+
@layer pont2.kit {
|
|
6962
|
+
/* ------------------------------------------------------------------ */
|
|
6963
|
+
/* Tokens */
|
|
6964
|
+
/* ------------------------------------------------------------------ */
|
|
6965
|
+
|
|
6966
|
+
/* Set per element and level below; declared here so nothing is inherited. */
|
|
6967
|
+
:is([data-pont2-title], [data-pont2-subtitle]) {
|
|
6968
|
+
--_pont2-title-fg: initial;
|
|
6969
|
+
--_pont2-title-font-weight: initial;
|
|
6970
|
+
--_pont2-title-font-size: initial;
|
|
6971
|
+
--_pont2-subtitle-fg: initial;
|
|
6972
|
+
--_pont2-subtitle-font-size: initial;
|
|
6973
|
+
}
|
|
6974
|
+
[data-pont2-title] {
|
|
6975
|
+
/** @token component=title Text */
|
|
6976
|
+
--_pont2-title-fg: var(--pont2-title-fg, var(--pont2-sem-color-foreground));
|
|
6977
|
+
/** @token component=title Weight */
|
|
6978
|
+
--_pont2-title-font-weight: var(--pont2-title-font-weight, var(--pont2-sem-font-weight-semibold));
|
|
6979
|
+
}
|
|
6980
|
+
[data-pont2-title][data-level="1"] {
|
|
6981
|
+
/** @token component=title Size (level 1) */
|
|
6982
|
+
--_pont2-title-font-size: var(--pont2-title-h1-font-size, var(--pont2-sem-text-2xl));
|
|
6983
|
+
/** @token component=title Weight (level 1) */
|
|
6984
|
+
--_pont2-title-font-weight: var(--pont2-title-h1-font-weight, var(--pont2-title-font-weight, var(--pont2-sem-font-weight-bold)));
|
|
6985
|
+
}
|
|
6986
|
+
[data-pont2-title][data-level="2"] {
|
|
6987
|
+
/** @token component=title Size (level 2) */
|
|
6988
|
+
--_pont2-title-font-size: var(--pont2-title-h2-font-size, var(--pont2-sem-text-xl));
|
|
6989
|
+
}
|
|
6990
|
+
[data-pont2-title][data-level="3"] {
|
|
6991
|
+
/** @token component=title Size (level 3) */
|
|
6992
|
+
--_pont2-title-font-size: var(--pont2-title-h3-font-size, var(--pont2-sem-text-lg));
|
|
6993
|
+
}
|
|
6994
|
+
[data-pont2-title][data-level="4"] {
|
|
6995
|
+
/** @token component=title Size (level 4) */
|
|
6996
|
+
--_pont2-title-font-size: var(--pont2-title-h4-font-size, var(--pont2-sem-text-base));
|
|
6997
|
+
}
|
|
6998
|
+
[data-pont2-subtitle] {
|
|
6999
|
+
/** @token component=subtitle Text */
|
|
7000
|
+
--_pont2-subtitle-fg: var(--pont2-subtitle-fg, var(--pont2-sem-color-muted-foreground));
|
|
7001
|
+
/** @token component=subtitle Size */
|
|
7002
|
+
--_pont2-subtitle-font-size: var(--pont2-subtitle-font-size, var(--pont2-sem-text-sm));
|
|
7003
|
+
}
|
|
7004
|
+
|
|
7005
|
+
/* ------------------------------------------------------------------ */
|
|
7006
|
+
/* Recipe */
|
|
7007
|
+
/* ------------------------------------------------------------------ */
|
|
7008
|
+
|
|
7009
|
+
[data-pont2-title] {
|
|
7010
|
+
margin: 0;
|
|
7011
|
+
color: var(--_pont2-title-fg);
|
|
7012
|
+
font-family: var(--pont2-sem-font-heading);
|
|
7013
|
+
font-size: var(--_pont2-title-font-size);
|
|
7014
|
+
font-weight: var(--_pont2-title-font-weight);
|
|
7015
|
+
letter-spacing: var(--pont2-sem-tracking-tight);
|
|
7016
|
+
text-wrap: balance;
|
|
7017
|
+
}
|
|
7018
|
+
[data-pont2-title][data-level="1"] {
|
|
7019
|
+
line-height: var(--pont2-sem-text-2xl--line-height);
|
|
7020
|
+
}
|
|
7021
|
+
[data-pont2-title][data-level="2"] {
|
|
7022
|
+
line-height: var(--pont2-sem-text-xl--line-height);
|
|
7023
|
+
}
|
|
7024
|
+
[data-pont2-title][data-level="3"] {
|
|
7025
|
+
line-height: var(--pont2-sem-text-lg--line-height);
|
|
7026
|
+
}
|
|
7027
|
+
[data-pont2-title][data-level="4"] {
|
|
7028
|
+
line-height: var(--pont2-sem-text-base--line-height);
|
|
7029
|
+
}
|
|
7030
|
+
|
|
7031
|
+
[data-pont2-subtitle] {
|
|
7032
|
+
margin: 0;
|
|
7033
|
+
color: var(--_pont2-subtitle-fg);
|
|
7034
|
+
font-size: var(--_pont2-subtitle-font-size);
|
|
7035
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
7036
|
+
text-wrap: balance;
|
|
7037
|
+
}
|
|
7038
|
+
|
|
7039
|
+
/*
|
|
7040
|
+
* align: `auto` inherits the parent's alignment. An explicit value makes the
|
|
7041
|
+
* element span its parent's inline axis (stretch works in flex and grid
|
|
7042
|
+
* parents, and a block already spans) and aligns the lines inside it, the
|
|
7043
|
+
* legacy kit's approach.
|
|
7044
|
+
*/
|
|
7045
|
+
:is([data-pont2-title], [data-pont2-subtitle]):not([data-align="auto"]) {
|
|
7046
|
+
align-self: stretch;
|
|
7047
|
+
justify-self: stretch;
|
|
7048
|
+
}
|
|
7049
|
+
:is([data-pont2-title], [data-pont2-subtitle])[data-align="start"] {
|
|
7050
|
+
text-align: start;
|
|
7051
|
+
}
|
|
7052
|
+
:is([data-pont2-title], [data-pont2-subtitle])[data-align="center"] {
|
|
7053
|
+
text-align: center;
|
|
7054
|
+
}
|
|
7055
|
+
:is([data-pont2-title], [data-pont2-subtitle])[data-align="end"] {
|
|
7056
|
+
text-align: end;
|
|
7057
|
+
}
|
|
7058
|
+
/*
|
|
7059
|
+
* In a flex_row container the cross axis is vertical: stretching there would
|
|
7060
|
+
* change the element's height, not its width. The row keeps its own
|
|
7061
|
+
* alignment, and `align` only aligns the lines (the legacy kit's rule,
|
|
7062
|
+
* carry-over §9).
|
|
7063
|
+
*/
|
|
7064
|
+
[data-pont2-container][data-type="flex_row"]
|
|
7065
|
+
> :is(pont2-title, pont2-subtitle)
|
|
7066
|
+
> :is([data-pont2-title], [data-pont2-subtitle]):not([data-align="auto"]) {
|
|
7067
|
+
align-self: auto;
|
|
7068
|
+
}
|
|
7069
|
+
}
|
|
7070
|
+
|
|
7071
|
+
/* ../kit/provider-field/provider-field.css */
|
|
7072
|
+
/*
|
|
7073
|
+
* <pont2-provider-field>: the legacy 12-column grid (provider-field.css in the
|
|
7074
|
+
* legacy kit), on the Field host. The provider buttons' hosts are
|
|
7075
|
+
* `display: contents`, so the grid items are their native buttons, which
|
|
7076
|
+
* stretch to fill their cells (shadcn's login blocks: `w-full`).
|
|
7077
|
+
*/
|
|
7078
|
+
@layer pont2.kit {
|
|
7079
|
+
pont2-provider-field {
|
|
7080
|
+
display: grid;
|
|
7081
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
7082
|
+
}
|
|
7083
|
+
pont2-provider-field > pont2-provider-button > [data-pont2-button] {
|
|
7084
|
+
grid-column: span 12 / span 12;
|
|
7085
|
+
width: 100%;
|
|
7086
|
+
}
|
|
7087
|
+
pont2-provider-field[data-columns$="three"] > pont2-provider-button > [data-pont2-button] {
|
|
7088
|
+
grid-column: span 4 / span 4;
|
|
7089
|
+
}
|
|
7090
|
+
pont2-provider-field[data-columns$="four"] > pont2-provider-button > [data-pont2-button] {
|
|
7091
|
+
grid-column: span 3 / span 3;
|
|
7092
|
+
}
|
|
7093
|
+
pont2-provider-field[data-columns^="two-"] > pont2-provider-button:nth-child(-n + 2) > [data-pont2-button] {
|
|
7094
|
+
grid-column: span 6 / span 6;
|
|
7095
|
+
}
|
|
7096
|
+
pont2-provider-field[data-columns^="three-"] > pont2-provider-button:nth-child(-n + 3) > [data-pont2-button] {
|
|
7097
|
+
grid-column: span 4 / span 4;
|
|
7098
|
+
}
|
|
7099
|
+
|
|
7100
|
+
/* Before upgrade the composite is empty: reserve one row of buttons (h-9). */
|
|
7101
|
+
pont2-provider-field:not([data-pont2-field]) {
|
|
7102
|
+
display: block;
|
|
7103
|
+
min-height: 2.25rem;
|
|
7104
|
+
}
|
|
7105
|
+
}
|
|
7106
|
+
|
|
7107
|
+
/* ../kit/block/block.css */
|
|
7108
|
+
/*
|
|
7109
|
+
* <pont2-block>: the screen shell. A Card (the primitive recipe styles the
|
|
7110
|
+
* host through [data-pont2-card]) whose content sits directly in the host:
|
|
7111
|
+
* CardContent's inline padding (`px-(--card-spacing)`) is moved onto the host,
|
|
7112
|
+
* and the watermark footer bleeds back to the card's edges.
|
|
7113
|
+
*
|
|
7114
|
+
* Responsive like the legacy block: full-bleed and at least viewport-tall on
|
|
7115
|
+
* narrow screens; a centred card of `--pont2-block-max-width` from 40rem up.
|
|
7116
|
+
*
|
|
7117
|
+
* Tokens (docs/11-tokens.md §5): the screen card is brandable on its own. Its
|
|
7118
|
+
* `--pont2-block-*` colour, radius, shadow and spacing tokens fall back to
|
|
7119
|
+
* the Card's, so a theme that only sets `--pont2-card-radius` changes both.
|
|
7120
|
+
*/
|
|
7121
|
+
@layer pont2.kit {
|
|
7122
|
+
/* ------------------------------------------------------------------ */
|
|
7123
|
+
/* Tokens */
|
|
7124
|
+
/* ------------------------------------------------------------------ */
|
|
7125
|
+
|
|
7126
|
+
pont2-block {
|
|
7127
|
+
/** @token Background */
|
|
7128
|
+
--_pont2-card-bg: var(--pont2-block-bg, var(--pont2-card-bg, var(--pont2-sem-color-card)));
|
|
7129
|
+
/** @token Text */
|
|
7130
|
+
--_pont2-card-fg: var(--pont2-block-fg, var(--pont2-card-fg, var(--pont2-sem-color-card-foreground)));
|
|
7131
|
+
/** @token Border */
|
|
7132
|
+
--_pont2-card-border-color: var(--pont2-block-border-color, var(--pont2-card-border-color, color-mix(in oklab, var(--pont2-sem-color-foreground) 10%, transparent)));
|
|
7133
|
+
/** @token Corner radius */
|
|
7134
|
+
--_pont2-card-radius: var(--pont2-block-radius, var(--pont2-card-radius, var(--pont2-sem-radius-xl)));
|
|
7135
|
+
/** @token Shadow */
|
|
7136
|
+
--_pont2-card-shadow: var(--pont2-block-shadow, var(--pont2-card-shadow, var(--pont2-sem-shadow-xs)));
|
|
7137
|
+
/** @token Spacing (padding) */
|
|
7138
|
+
--_pont2-card-spacing: var(--pont2-block-spacing, var(--pont2-card-spacing, 1.5rem));
|
|
7139
|
+
/** @token Maximum width */
|
|
7140
|
+
--_pont2-block-max-width: var(--pont2-block-max-width, var(--pont2-sem-container-sm));
|
|
7141
|
+
/** @token Gap between children */
|
|
7142
|
+
--_pont2-block-gap: var(--pont2-block-gap, 1rem);
|
|
7143
|
+
/** @token Background (watermark band) */
|
|
7144
|
+
--_pont2-block-footer-bg: var(--pont2-block-footer-bg, color-mix(in oklab, var(--pont2-sem-color-muted) 50%, transparent));
|
|
7145
|
+
}
|
|
7146
|
+
/* size="sm": the Card's small spacing. Re-stated here because the rule above
|
|
7147
|
+
(pont2.kit) would otherwise beat the Card's own size rule (pont2.primitives). */
|
|
7148
|
+
pont2-block:is([data-size="sm"], [size="sm"]) {
|
|
7149
|
+
/** @token Spacing (padding) */
|
|
7150
|
+
--_pont2-card-spacing: var(--pont2-block-sm-spacing, var(--pont2-card-sm-spacing, 1rem));
|
|
7151
|
+
}
|
|
7152
|
+
|
|
7153
|
+
/* ------------------------------------------------------------------ */
|
|
7154
|
+
/* Recipe */
|
|
7155
|
+
/* ------------------------------------------------------------------ */
|
|
7156
|
+
|
|
7157
|
+
pont2-block {
|
|
7158
|
+
display: flex;
|
|
7159
|
+
flex-direction: column;
|
|
7160
|
+
gap: var(--_pont2-block-gap);
|
|
7161
|
+
width: 100%;
|
|
7162
|
+
max-width: var(--_pont2-block-max-width);
|
|
7163
|
+
margin-inline: auto;
|
|
7164
|
+
padding-inline: var(--_pont2-card-spacing);
|
|
7165
|
+
}
|
|
7166
|
+
pont2-block[data-align="stretch"] {
|
|
7167
|
+
align-items: stretch;
|
|
7168
|
+
}
|
|
7169
|
+
pont2-block[data-align="start"] {
|
|
7170
|
+
align-items: flex-start;
|
|
7171
|
+
}
|
|
7172
|
+
pont2-block[data-align="center"] {
|
|
7173
|
+
align-items: center;
|
|
7174
|
+
}
|
|
7175
|
+
pont2-block[data-align="end"] {
|
|
7176
|
+
align-items: flex-end;
|
|
7177
|
+
}
|
|
7178
|
+
pont2-block[data-justify="center"] {
|
|
7179
|
+
justify-content: center;
|
|
7180
|
+
}
|
|
7181
|
+
pont2-block[data-justify="end"] {
|
|
7182
|
+
justify-content: flex-end;
|
|
7183
|
+
}
|
|
7184
|
+
|
|
7185
|
+
@media (width < 40rem) {
|
|
7186
|
+
pont2-block {
|
|
7187
|
+
max-width: none;
|
|
7188
|
+
min-height: 100svh;
|
|
7189
|
+
border-radius: 0;
|
|
7190
|
+
}
|
|
7191
|
+
}
|
|
7192
|
+
|
|
7193
|
+
/* The watermark footer: full width, muted band, closes the card. */
|
|
7194
|
+
pont2-block > [data-block-footer] {
|
|
7195
|
+
align-self: stretch;
|
|
7196
|
+
justify-content: center;
|
|
7197
|
+
margin-inline: calc(-1 * var(--_pont2-card-spacing));
|
|
7198
|
+
margin-bottom: calc(-1 * var(--_pont2-card-spacing));
|
|
7199
|
+
padding-block: 0.75rem;
|
|
7200
|
+
background-color: var(--_pont2-block-footer-bg);
|
|
7201
|
+
}
|
|
7202
|
+
|
|
7203
|
+
/* Before upgrade: the card look comes from the tag-less recipe only after
|
|
7204
|
+
upgrade, so give the shell its width now to avoid a jump. */
|
|
7205
|
+
pont2-block:not([data-pont2-card]) {
|
|
7206
|
+
display: block;
|
|
7207
|
+
width: 100%;
|
|
7208
|
+
max-width: var(--_pont2-block-max-width);
|
|
7209
|
+
margin-inline: auto;
|
|
7210
|
+
}
|
|
7211
|
+
}
|
|
7212
|
+
|
|
7213
|
+
/* ../kit/watermark/watermark.css */
|
|
7214
|
+
/*
|
|
7215
|
+
* <pont2-watermark> (and the block footer's watermark part): "Powered by [Pontive]".
|
|
7216
|
+
* The legacy variables, in plain values: gap 1.5 (0.375rem), xs-sm text,
|
|
7217
|
+
* a 0.875rem-tall logo; the mark in Pontive indigo for `brand`.
|
|
7218
|
+
*
|
|
7219
|
+
* Tokens: the brand variant's mark colour and the muted variant's colour.
|
|
7220
|
+
* `theme` follows the surrounding text and has none.
|
|
7221
|
+
*/
|
|
7222
|
+
@layer pont2.kit {
|
|
7223
|
+
/* ------------------------------------------------------------------ */
|
|
7224
|
+
/* Tokens */
|
|
7225
|
+
/* ------------------------------------------------------------------ */
|
|
7226
|
+
|
|
7227
|
+
:is(pont2-watermark, [data-pont2-watermark]) {
|
|
7228
|
+
/** @token Mark */
|
|
7229
|
+
--_pont2-watermark-icon-color: var(--pont2-watermark-brand-icon-color, #6366f1);
|
|
7230
|
+
--_pont2-watermark-fg: currentColor;
|
|
7231
|
+
}
|
|
7232
|
+
[data-pont2-watermark][data-variant="theme"] {
|
|
7233
|
+
--_pont2-watermark-icon-color: currentColor;
|
|
7234
|
+
}
|
|
7235
|
+
[data-pont2-watermark][data-variant="muted"] {
|
|
7236
|
+
/** @token Text and mark */
|
|
7237
|
+
--_pont2-watermark-fg: var(--pont2-watermark-muted-fg, var(--pont2-sem-color-muted-foreground));
|
|
7238
|
+
--_pont2-watermark-icon-color: currentColor;
|
|
7239
|
+
}
|
|
7240
|
+
|
|
7241
|
+
/* ------------------------------------------------------------------ */
|
|
7242
|
+
/* Recipe */
|
|
7243
|
+
/* ------------------------------------------------------------------ */
|
|
7244
|
+
|
|
7245
|
+
:is(pont2-watermark, [data-pont2-watermark]) {
|
|
7246
|
+
display: inline-flex;
|
|
7247
|
+
flex-shrink: 0;
|
|
7248
|
+
align-items: center;
|
|
7249
|
+
gap: 0.375rem;
|
|
7250
|
+
color: var(--_pont2-watermark-fg);
|
|
7251
|
+
font-size: 0.8125rem;
|
|
7252
|
+
line-height: var(--pont2-sem-leading-none);
|
|
7253
|
+
}
|
|
7254
|
+
[data-pont2-watermark] > [data-slot="watermark-logo"] {
|
|
7255
|
+
flex-shrink: 0;
|
|
7256
|
+
width: auto;
|
|
7257
|
+
height: 0.875rem;
|
|
7258
|
+
}
|
|
7259
|
+
[data-pont2-watermark] [data-logo-mark] {
|
|
7260
|
+
fill: var(--_pont2-watermark-icon-color);
|
|
7261
|
+
}
|
|
7262
|
+
[data-pont2-watermark] [data-logo-wordmark] {
|
|
7263
|
+
fill: currentColor;
|
|
7264
|
+
}
|
|
7265
|
+
}
|
|
7266
|
+
|
|
7267
|
+
/* ../kit/container/container.css */
|
|
7268
|
+
/* <pont2-container>: the host is the flex box (legacy: an inner div). */
|
|
7269
|
+
@layer pont2.kit {
|
|
7270
|
+
/* Tokens */
|
|
7271
|
+
:is(pont2-container, [data-pont2-container]) {
|
|
7272
|
+
/** @token Gap between children */
|
|
7273
|
+
--_pont2-container-gap: var(--pont2-container-gap, 1rem);
|
|
7274
|
+
}
|
|
6000
7275
|
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
7276
|
+
/* Recipe */
|
|
7277
|
+
:is(pont2-container, [data-pont2-container]) {
|
|
7278
|
+
box-sizing: border-box;
|
|
7279
|
+
display: flex;
|
|
7280
|
+
flex-direction: column;
|
|
7281
|
+
gap: var(--_pont2-container-gap);
|
|
7282
|
+
width: 100%;
|
|
7283
|
+
}
|
|
7284
|
+
[data-pont2-container][data-type="flex_row"] {
|
|
7285
|
+
flex-direction: row;
|
|
7286
|
+
flex-wrap: wrap;
|
|
7287
|
+
}
|
|
7288
|
+
[data-pont2-container][data-align="start"] {
|
|
7289
|
+
align-items: flex-start;
|
|
7290
|
+
}
|
|
7291
|
+
[data-pont2-container][data-align="center"] {
|
|
7292
|
+
align-items: center;
|
|
7293
|
+
}
|
|
7294
|
+
[data-pont2-container][data-align="end"] {
|
|
7295
|
+
align-items: flex-end;
|
|
7296
|
+
}
|
|
7297
|
+
[data-pont2-container][data-type="flex_row"][data-align="stretch"] {
|
|
7298
|
+
align-items: center; /* a row's cross axis is vertical: don't stretch heights */
|
|
7299
|
+
}
|
|
7300
|
+
[data-pont2-container][data-justify="center"] {
|
|
7301
|
+
justify-content: center;
|
|
7302
|
+
}
|
|
7303
|
+
[data-pont2-container][data-justify="end"] {
|
|
7304
|
+
justify-content: flex-end;
|
|
7305
|
+
}
|
|
7306
|
+
[data-pont2-container][data-justify="between"] {
|
|
7307
|
+
justify-content: space-between;
|
|
7308
|
+
}
|
|
7309
|
+
|
|
7310
|
+
/*
|
|
7311
|
+
* Design mode (the designer's canvas only; core/design-mode.ts). An outline takes no space, so
|
|
7312
|
+
* showing the container doesn't reflow what the author is arranging. The inset does reflow, on
|
|
7313
|
+
* purpose: without it a nested container's outline lands on its parent's and the parent has no
|
|
7314
|
+
* surface left to click or drop onto. Served screens never get these attributes.
|
|
7315
|
+
*/
|
|
7316
|
+
[data-pont2-container][data-design] {
|
|
7317
|
+
outline: 1px dotted color-mix(in oklab, var(--pont2-sem-color-foreground) 35%, transparent);
|
|
7318
|
+
outline-offset: -1px;
|
|
7319
|
+
padding: 0.5rem;
|
|
7320
|
+
}
|
|
7321
|
+
[data-pont2-container][data-design-empty] {
|
|
7322
|
+
position: relative;
|
|
7323
|
+
min-height: 3.5rem;
|
|
7324
|
+
}
|
|
7325
|
+
/* Generated content: never part of the authored tree, never a drop target. */
|
|
7326
|
+
[data-pont2-container][data-design-empty]::after {
|
|
7327
|
+
content: "Container";
|
|
7328
|
+
position: absolute;
|
|
7329
|
+
inset: 0;
|
|
7330
|
+
display: flex;
|
|
7331
|
+
align-items: center;
|
|
7332
|
+
justify-content: center;
|
|
7333
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
7334
|
+
font-size: var(--pont2-sem-text-sm);
|
|
7335
|
+
pointer-events: none;
|
|
7336
|
+
}
|
|
7337
|
+
}
|
|
7338
|
+
|
|
7339
|
+
/* ../kit/header/header.css */
|
|
7340
|
+
/*
|
|
7341
|
+
* <pont2-header>. shadcn's login blocks: "flex flex-col items-center gap-2 text-center".
|
|
7342
|
+
* `align` sets both the boxes and the text, as the legacy header does.
|
|
7343
|
+
*/
|
|
7344
|
+
@layer pont2.kit {
|
|
7345
|
+
/* Tokens */
|
|
7346
|
+
:is(pont2-header, [data-pont2-header]) {
|
|
6016
7347
|
/** @token Gap between children */
|
|
6017
|
-
--_pont2-
|
|
6018
|
-
|
|
6019
|
-
|
|
7348
|
+
--_pont2-header-gap: var(--pont2-header-gap, 0.5rem);
|
|
7349
|
+
}
|
|
7350
|
+
|
|
7351
|
+
/* Recipe */
|
|
7352
|
+
:is(pont2-header, [data-pont2-header]) {
|
|
7353
|
+
box-sizing: border-box;
|
|
7354
|
+
display: flex;
|
|
7355
|
+
flex-direction: column;
|
|
7356
|
+
align-items: center;
|
|
7357
|
+
gap: var(--_pont2-header-gap);
|
|
7358
|
+
width: 100%;
|
|
7359
|
+
text-align: center;
|
|
7360
|
+
}
|
|
7361
|
+
[data-pont2-header][data-align="start"] {
|
|
7362
|
+
align-items: flex-start;
|
|
7363
|
+
text-align: start;
|
|
7364
|
+
}
|
|
7365
|
+
[data-pont2-header][data-align="end"] {
|
|
7366
|
+
align-items: flex-end;
|
|
7367
|
+
text-align: end;
|
|
7368
|
+
}
|
|
7369
|
+
}
|
|
7370
|
+
|
|
7371
|
+
/* ../kit/gap/gap.css */
|
|
7372
|
+
/* <pont2-gap>: the host is the spacer; its size comes from --pont2-gap-size. */
|
|
7373
|
+
@layer pont2.kit {
|
|
7374
|
+
:is(pont2-gap, [data-pont2-gap]) {
|
|
7375
|
+
display: block;
|
|
7376
|
+
flex-shrink: 0;
|
|
7377
|
+
width: 1px;
|
|
7378
|
+
height: var(--pont2-gap-size, 8px);
|
|
7379
|
+
}
|
|
7380
|
+
[data-pont2-gap][data-type="horizontal"] {
|
|
7381
|
+
width: var(--pont2-gap-size, 8px);
|
|
7382
|
+
height: 1px;
|
|
7383
|
+
}
|
|
7384
|
+
}
|
|
7385
|
+
|
|
7386
|
+
/* ../kit/logo/logo.css */
|
|
7387
|
+
/*
|
|
7388
|
+
* <pont2-logo>: one or two <img>s (light / dark), aligned on the inline axis.
|
|
7389
|
+
* The dark image is shown in dark mode, when present, through the sem mode
|
|
7390
|
+
* switches (sem-mode-light-display / -dark-display), so there is no dark rule here.
|
|
7391
|
+
*/
|
|
7392
|
+
@layer pont2.kit {
|
|
7393
|
+
:is(pont2-logo, [data-pont2-logo]) {
|
|
7394
|
+
display: flex;
|
|
7395
|
+
justify-content: center;
|
|
7396
|
+
width: 100%;
|
|
7397
|
+
}
|
|
7398
|
+
[data-pont2-logo][data-align="start"] {
|
|
7399
|
+
justify-content: flex-start;
|
|
7400
|
+
}
|
|
7401
|
+
[data-pont2-logo][data-align="end"] {
|
|
7402
|
+
justify-content: flex-end;
|
|
7403
|
+
}
|
|
7404
|
+
[data-pont2-logo] > img {
|
|
7405
|
+
display: block;
|
|
7406
|
+
max-width: 100%;
|
|
7407
|
+
height: auto;
|
|
7408
|
+
}
|
|
7409
|
+
[data-pont2-logo] > img[data-logo-theme="dark"] {
|
|
7410
|
+
display: var(--pont2-sem-mode-dark-display, none);
|
|
7411
|
+
}
|
|
7412
|
+
/* The light image is hidden in dark mode only when a dark image follows it. */
|
|
7413
|
+
[data-pont2-logo] > img[data-logo-theme="light"]:has(+ img[data-logo-theme="dark"]) {
|
|
7414
|
+
display: var(--pont2-sem-mode-light-display, block);
|
|
7415
|
+
}
|
|
7416
|
+
}
|
|
7417
|
+
|
|
7418
|
+
/* ../kit/countdown/countdown.css */
|
|
7419
|
+
/* <pont2-countdown>: small muted line, digits that do not jitter. */
|
|
7420
|
+
@layer pont2.kit {
|
|
7421
|
+
:is(pont2-countdown, [data-pont2-countdown]) {
|
|
7422
|
+
display: block;
|
|
7423
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
7424
|
+
font-size: var(--pont2-sem-text-sm);
|
|
7425
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
7426
|
+
font-variant-numeric: tabular-nums;
|
|
7427
|
+
text-align: center;
|
|
7428
|
+
}
|
|
7429
|
+
}
|
|
7430
|
+
|
|
7431
|
+
/* ../kit/edit-identifier/edit-identifier.css */
|
|
7432
|
+
/* <pont2-edit-identifier>: "ada@example.com ✎", centred, the value truncating. */
|
|
7433
|
+
@layer pont2.kit {
|
|
7434
|
+
:is(pont2-edit-identifier, [data-pont2-edit-identifier]) {
|
|
7435
|
+
display: flex;
|
|
7436
|
+
align-items: center;
|
|
7437
|
+
justify-content: center;
|
|
7438
|
+
gap: 0.25rem;
|
|
7439
|
+
min-width: 0;
|
|
7440
|
+
font-size: var(--pont2-sem-text-sm);
|
|
7441
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
7442
|
+
}
|
|
7443
|
+
[data-pont2-edit-identifier] > [data-slot="edit-identifier-value"] {
|
|
7444
|
+
overflow: hidden;
|
|
7445
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
7446
|
+
text-overflow: ellipsis;
|
|
7447
|
+
white-space: nowrap;
|
|
7448
|
+
}
|
|
7449
|
+
}
|
|
7450
|
+
|
|
7451
|
+
/* ../kit/secret/secret.css */
|
|
7452
|
+
/* <pont2-secret>: title, the secret in an input group, copied status, issuer/account. */
|
|
7453
|
+
@layer pont2.kit {
|
|
7454
|
+
:is(pont2-secret, [data-pont2-secret]) {
|
|
7455
|
+
display: flex;
|
|
7456
|
+
flex-direction: column;
|
|
7457
|
+
gap: 0.5rem;
|
|
7458
|
+
width: 100%;
|
|
7459
|
+
}
|
|
7460
|
+
[data-pont2-secret] > [data-slot="secret-title"] {
|
|
7461
|
+
margin: 0;
|
|
7462
|
+
font-size: var(--pont2-sem-text-sm);
|
|
7463
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
7464
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
7465
|
+
}
|
|
7466
|
+
[data-pont2-secret] [data-secret] {
|
|
7467
|
+
font-family: var(--pont2-sem-font-code);
|
|
7468
|
+
letter-spacing: var(--pont2-sem-tracking-wider);
|
|
7469
|
+
}
|
|
7470
|
+
/* Reserved line, so the status appearing does not shift the layout. */
|
|
7471
|
+
[data-pont2-secret] > [data-slot="secret-copied"] {
|
|
7472
|
+
min-height: 1rem;
|
|
7473
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
7474
|
+
font-size: var(--pont2-sem-text-xs);
|
|
7475
|
+
line-height: 1rem;
|
|
7476
|
+
}
|
|
7477
|
+
[data-pont2-secret] > [data-slot="secret-metadata"] {
|
|
7478
|
+
display: flex;
|
|
7479
|
+
flex-wrap: wrap;
|
|
7480
|
+
gap: 0.5rem 1.5rem;
|
|
7481
|
+
margin: 0;
|
|
7482
|
+
}
|
|
7483
|
+
[data-pont2-secret] > [data-slot="secret-metadata"] dt {
|
|
7484
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
7485
|
+
font-size: var(--pont2-sem-text-xs);
|
|
7486
|
+
line-height: 1rem;
|
|
7487
|
+
}
|
|
7488
|
+
[data-pont2-secret] > [data-slot="secret-metadata"] dd {
|
|
7489
|
+
margin: 0;
|
|
7490
|
+
font-size: var(--pont2-sem-text-sm);
|
|
7491
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
7492
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
7493
|
+
}
|
|
7494
|
+
}
|
|
7495
|
+
|
|
7496
|
+
/* ../kit/qr-code/qr-code.css */
|
|
7497
|
+
/*
|
|
7498
|
+
* <pont2-qr-code>: a dark-on-white code (scanners need the contrast and the quiet
|
|
7499
|
+
* zone, whatever the theme), fading behind a reveal button when obscured.
|
|
7500
|
+
*/
|
|
7501
|
+
@layer pont2.kit {
|
|
7502
|
+
/* Tokens (resolved on the host; the image inherits them) */
|
|
7503
|
+
:is(pont2-qr-code, [data-pont2-qr-code]) {
|
|
7504
|
+
/** @token Image width */
|
|
7505
|
+
--_pont2-qr-code-width: var(--pont2-qr-code-width, 12rem);
|
|
7506
|
+
}
|
|
7507
|
+
|
|
7508
|
+
/* Recipe */
|
|
7509
|
+
:is(pont2-qr-code, [data-pont2-qr-code]) {
|
|
7510
|
+
position: relative;
|
|
7511
|
+
display: grid;
|
|
7512
|
+
place-items: center;
|
|
7513
|
+
width: fit-content;
|
|
7514
|
+
margin-inline: auto;
|
|
6020
7515
|
}
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
7516
|
+
[data-pont2-qr-code] > [data-slot="qr-code-image"] {
|
|
7517
|
+
display: block;
|
|
7518
|
+
width: var(--_pont2-qr-code-width);
|
|
7519
|
+
height: auto;
|
|
7520
|
+
border-radius: var(--pont2-sem-radius-md);
|
|
7521
|
+
box-shadow: 0 0 0 var(--pont2-sem-border-width) var(--pont2-sem-color-border);
|
|
7522
|
+
transition: opacity 200ms ease;
|
|
7523
|
+
}
|
|
7524
|
+
[data-pont2-qr-code][data-obscured] > [data-slot="qr-code-image"] {
|
|
7525
|
+
opacity: 0.15;
|
|
6026
7526
|
}
|
|
7527
|
+
[data-pont2-qr-code] > [data-slot="qr-code-overlay"] {
|
|
7528
|
+
position: absolute;
|
|
7529
|
+
inset: 0;
|
|
7530
|
+
display: grid;
|
|
7531
|
+
place-items: center;
|
|
7532
|
+
}
|
|
7533
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7534
|
+
[data-pont2-qr-code] > [data-slot="qr-code-image"] {
|
|
7535
|
+
transition: none;
|
|
7536
|
+
}
|
|
7537
|
+
}
|
|
7538
|
+
}
|
|
6027
7539
|
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
7540
|
+
/* ../kit/recovery-codes/recovery-codes.css */
|
|
7541
|
+
/* <pont2-recovery-codes>: title, description, a monospace two-column code grid, actions. */
|
|
7542
|
+
@layer pont2.kit {
|
|
7543
|
+
/* Tokens: the code grid's surface (resolved on the host; the list inherits them). */
|
|
7544
|
+
:is(pont2-recovery-codes, [data-pont2-recovery-codes]) {
|
|
7545
|
+
/** @token Background (code list) */
|
|
7546
|
+
--_pont2-recovery-codes-list-bg: var(--pont2-recovery-codes-list-bg, var(--pont2-sem-color-muted));
|
|
7547
|
+
/** @token Corner radius (code list) */
|
|
7548
|
+
--_pont2-recovery-codes-list-radius: var(--pont2-recovery-codes-list-radius, var(--pont2-sem-radius-md));
|
|
7549
|
+
}
|
|
6031
7550
|
|
|
6032
|
-
|
|
7551
|
+
/* Recipe */
|
|
7552
|
+
:is(pont2-recovery-codes, [data-pont2-recovery-codes]) {
|
|
6033
7553
|
display: flex;
|
|
6034
7554
|
flex-direction: column;
|
|
6035
|
-
gap:
|
|
7555
|
+
gap: 0.75rem;
|
|
6036
7556
|
width: 100%;
|
|
6037
|
-
max-width: var(--_pont2-block-max-width);
|
|
6038
|
-
margin-inline: auto;
|
|
6039
|
-
padding-inline: var(--_pont2-card-spacing);
|
|
6040
7557
|
}
|
|
6041
|
-
pont2-
|
|
6042
|
-
|
|
7558
|
+
[data-pont2-recovery-codes] > [data-slot="recovery-codes-title"] {
|
|
7559
|
+
margin: 0;
|
|
7560
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
6043
7561
|
}
|
|
6044
|
-
pont2-
|
|
6045
|
-
|
|
7562
|
+
[data-pont2-recovery-codes] > :is([data-slot="recovery-codes-description"], [data-slot="recovery-codes-empty"]) {
|
|
7563
|
+
margin: 0;
|
|
7564
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
7565
|
+
font-size: var(--pont2-sem-text-sm);
|
|
7566
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
6046
7567
|
}
|
|
6047
|
-
pont2-
|
|
6048
|
-
|
|
7568
|
+
[data-pont2-recovery-codes] > [data-slot="recovery-codes-list"] {
|
|
7569
|
+
display: grid;
|
|
7570
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
7571
|
+
gap: 0.5rem 1rem;
|
|
7572
|
+
margin: 0;
|
|
7573
|
+
padding: 0.75rem 1rem;
|
|
7574
|
+
list-style: none;
|
|
7575
|
+
border-radius: var(--_pont2-recovery-codes-list-radius);
|
|
7576
|
+
background-color: var(--_pont2-recovery-codes-list-bg);
|
|
7577
|
+
font-family: var(--pont2-sem-font-code);
|
|
7578
|
+
font-size: var(--pont2-sem-text-sm);
|
|
7579
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
7580
|
+
text-align: center;
|
|
6049
7581
|
}
|
|
6050
|
-
pont2-
|
|
6051
|
-
|
|
7582
|
+
[data-pont2-recovery-codes] > [data-slot="recovery-codes-actions"] {
|
|
7583
|
+
display: flex;
|
|
7584
|
+
gap: 0.5rem;
|
|
6052
7585
|
}
|
|
6053
|
-
pont2-
|
|
6054
|
-
|
|
7586
|
+
[data-pont2-recovery-codes] > [data-slot="recovery-codes-actions"] > [data-pont2-button] {
|
|
7587
|
+
flex: 1;
|
|
6055
7588
|
}
|
|
6056
|
-
pont2-
|
|
6057
|
-
|
|
7589
|
+
[data-pont2-recovery-codes] > [data-slot="recovery-codes-copied"] {
|
|
7590
|
+
min-height: 1rem;
|
|
7591
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
7592
|
+
font-size: var(--pont2-sem-text-xs);
|
|
7593
|
+
line-height: 1rem;
|
|
7594
|
+
text-align: center;
|
|
6058
7595
|
}
|
|
7596
|
+
}
|
|
6059
7597
|
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
7598
|
+
/* ../kit/scope-list/scope-list.css */
|
|
7599
|
+
/* <pont2-scope-list>: one checkbox row per scope (shadcn's checkbox + label row: "flex items-center gap-3"). */
|
|
7600
|
+
@layer pont2.kit {
|
|
7601
|
+
:is(pont2-scope-list, [data-pont2-scope-list]) {
|
|
7602
|
+
display: flex;
|
|
7603
|
+
flex-direction: column;
|
|
7604
|
+
gap: 0.75rem;
|
|
6066
7605
|
}
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
padding-block: 0.75rem;
|
|
6075
|
-
background-color: var(--_pont2-block-footer-bg);
|
|
7606
|
+
[data-pont2-scope-list] [data-slot="scope-list-label"] {
|
|
7607
|
+
display: flex;
|
|
7608
|
+
align-items: center;
|
|
7609
|
+
gap: 0.75rem;
|
|
7610
|
+
font-size: var(--pont2-sem-text-sm);
|
|
7611
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
7612
|
+
cursor: pointer;
|
|
6076
7613
|
}
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
max-width: var(--_pont2-block-max-width);
|
|
6084
|
-
margin-inline: auto;
|
|
7614
|
+
[data-pont2-scope-list] [data-required] [data-slot="scope-list-label"],
|
|
7615
|
+
[data-pont2-scope-list][data-disabled] [data-slot="scope-list-label"] {
|
|
7616
|
+
cursor: default;
|
|
7617
|
+
}
|
|
7618
|
+
[data-pont2-scope-list][data-disabled] [data-slot="scope-list-text"] {
|
|
7619
|
+
opacity: var(--pont2-sem-opacity-disabled);
|
|
6085
7620
|
}
|
|
6086
7621
|
}
|
|
6087
7622
|
|
|
6088
|
-
/* ../kit/
|
|
7623
|
+
/* ../kit/layout/layout.css */
|
|
6089
7624
|
/*
|
|
6090
|
-
* <pont2-
|
|
6091
|
-
*
|
|
6092
|
-
*
|
|
6093
|
-
*
|
|
6094
|
-
* Tokens: the brand variant's mark colour and the muted variant's colour.
|
|
6095
|
-
* `theme` follows the surrounding text and has none.
|
|
7625
|
+
* <pont2-layout>: the flow host. The host and its form have no box of their own
|
|
7626
|
+
* (the screen's block is the visible shell); a pending request is signalled by
|
|
7627
|
+
* aria-busy on the form, which the elements' own busy states already show.
|
|
6096
7628
|
*/
|
|
6097
7629
|
@layer pont2.kit {
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
:is(pont2-watermark, [data-pont2-watermark]) {
|
|
6103
|
-
/** @token Mark */
|
|
6104
|
-
--_pont2-watermark-icon-color: var(--pont2-watermark-brand-icon-color, #6366f1);
|
|
6105
|
-
--_pont2-watermark-fg: currentColor;
|
|
7630
|
+
:is(pont2-layout, [data-pont2-layout]) {
|
|
7631
|
+
display: block;
|
|
7632
|
+
width: 100%;
|
|
6106
7633
|
}
|
|
6107
|
-
[data-pont2-
|
|
6108
|
-
|
|
7634
|
+
[data-pont2-layout] > [data-slot="layout-form"] {
|
|
7635
|
+
display: contents;
|
|
6109
7636
|
}
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
--_pont2-watermark-icon-color: currentColor;
|
|
7637
|
+
/* The error banner sits in the screen's flow (block gap); the restart button spans it. */
|
|
7638
|
+
[data-pont2-layout] pont2-button[data-flow-error] > [data-pont2-button] {
|
|
7639
|
+
width: 100%;
|
|
6114
7640
|
}
|
|
7641
|
+
}
|
|
6115
7642
|
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
flex-shrink: 0;
|
|
6123
|
-
align-items: center;
|
|
6124
|
-
gap: 0.375rem;
|
|
6125
|
-
color: var(--_pont2-watermark-fg);
|
|
6126
|
-
font-size: 0.8125rem;
|
|
6127
|
-
line-height: var(--pont2-sem-leading-none);
|
|
6128
|
-
}
|
|
6129
|
-
[data-pont2-watermark] > [data-slot="watermark-logo"] {
|
|
6130
|
-
flex-shrink: 0;
|
|
6131
|
-
width: auto;
|
|
6132
|
-
height: 0.875rem;
|
|
6133
|
-
}
|
|
6134
|
-
[data-pont2-watermark] [data-logo-mark] {
|
|
6135
|
-
fill: var(--_pont2-watermark-icon-color);
|
|
7643
|
+
/* ../kit/consent/consent.css */
|
|
7644
|
+
/* <pont2-consent>: a block-level host; a centred spinner until the screen loads (as the flow widgets). */
|
|
7645
|
+
@layer pont2.kit {
|
|
7646
|
+
:is(pont2-consent, [data-pont2-consent]) {
|
|
7647
|
+
display: block;
|
|
7648
|
+
width: 100%;
|
|
6136
7649
|
}
|
|
6137
|
-
[data-pont2-
|
|
6138
|
-
|
|
7650
|
+
[data-pont2-consent] > [data-slot="flow-widget-loading"] {
|
|
7651
|
+
display: grid;
|
|
7652
|
+
place-items: center;
|
|
7653
|
+
min-height: 12rem;
|
|
7654
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6139
7655
|
}
|
|
6140
7656
|
}
|
|
6141
7657
|
|
|
6142
|
-
/* ../kit/
|
|
6143
|
-
/* <pont2-
|
|
7658
|
+
/* ../kit/flow-widget/flow-widget.css */
|
|
7659
|
+
/* <pont2-signin> / <pont2-signup> / <pont2-invitation>: a block-level host; a centred spinner until the first screen. */
|
|
6144
7660
|
@layer pont2.kit {
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
/** @token Gap between children */
|
|
6148
|
-
--_pont2-container-gap: var(--pont2-container-gap, 1rem);
|
|
6149
|
-
}
|
|
6150
|
-
|
|
6151
|
-
/* Recipe */
|
|
6152
|
-
:is(pont2-container, [data-pont2-container]) {
|
|
6153
|
-
box-sizing: border-box;
|
|
6154
|
-
display: flex;
|
|
6155
|
-
flex-direction: column;
|
|
6156
|
-
gap: var(--_pont2-container-gap);
|
|
7661
|
+
:is(pont2-signin, pont2-signup, pont2-invitation, [data-pont2-flow-widget]) {
|
|
7662
|
+
display: block;
|
|
6157
7663
|
width: 100%;
|
|
6158
7664
|
}
|
|
6159
|
-
[data-pont2-
|
|
6160
|
-
|
|
6161
|
-
|
|
7665
|
+
[data-pont2-flow-widget] > [data-slot="flow-widget-loading"] {
|
|
7666
|
+
display: grid;
|
|
7667
|
+
place-items: center;
|
|
7668
|
+
min-height: 12rem;
|
|
7669
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6162
7670
|
}
|
|
6163
|
-
|
|
6164
|
-
|
|
7671
|
+
}
|
|
7672
|
+
|
|
7673
|
+
/* ../kit/provider/provider.css */
|
|
7674
|
+
/*
|
|
7675
|
+
* <pont2-provider>, <pont2-signed-in>, <pont2-signed-out>: control elements. They add no box, so
|
|
7676
|
+
* the page lays out as if their children were written in their place.
|
|
7677
|
+
*/
|
|
7678
|
+
@layer pont2.kit {
|
|
7679
|
+
:is(pont2-provider, pont2-signed-in, pont2-signed-out, [data-pont2-provider], [data-pont2-auth-gate]) {
|
|
7680
|
+
display: contents;
|
|
6165
7681
|
}
|
|
6166
|
-
|
|
6167
|
-
|
|
7682
|
+
}
|
|
7683
|
+
|
|
7684
|
+
/* ../kit/pagination/pagination.css */
|
|
7685
|
+
/*
|
|
7686
|
+
* <pont2-pagination>: the composite adds no styles of its own beyond the primitive
|
|
7687
|
+
* recipe (primitives/pagination/pagination.css), which styles the parts it renders.
|
|
7688
|
+
* While `disabled`, the whole pager reads as disabled.
|
|
7689
|
+
*/
|
|
7690
|
+
@layer pont2.kit {
|
|
7691
|
+
pont2-pagination[data-disabled] {
|
|
7692
|
+
cursor: not-allowed;
|
|
6168
7693
|
}
|
|
6169
|
-
|
|
6170
|
-
|
|
7694
|
+
}
|
|
7695
|
+
|
|
7696
|
+
/* ../kit/data-table/data-table.css */
|
|
7697
|
+
/*
|
|
7698
|
+
* <pont2-data-table>: the Table primitive's recipe styles the table it renders
|
|
7699
|
+
* (primitives/table/table.css). The composite adds shadcn's data-table guide
|
|
7700
|
+
* details:
|
|
7701
|
+
* sortable header: Button variant="ghost" with an ArrowUpDown icon, pulled to the
|
|
7702
|
+
* cell's edge ("-ml-3" in the guide's examples)
|
|
7703
|
+
* empty row: "<TableCell colSpan={columns.length} className="h-24 text-center">"
|
|
7704
|
+
* actions: a ghost icon button with a MoreHorizontal icon, the menu end-aligned
|
|
7705
|
+
* loading: Skeleton bars ("h-4 w-full")
|
|
7706
|
+
*/
|
|
7707
|
+
@layer pont2.kit {
|
|
7708
|
+
pont2-data-table th[data-sortable] {
|
|
7709
|
+
padding-inline-start: 0;
|
|
6171
7710
|
}
|
|
6172
|
-
[data-pont2-
|
|
6173
|
-
|
|
7711
|
+
pont2-data-table [data-pont2-data-table-sort] svg {
|
|
7712
|
+
width: 1rem;
|
|
7713
|
+
height: 1rem;
|
|
6174
7714
|
}
|
|
6175
|
-
[data-pont2-
|
|
6176
|
-
|
|
7715
|
+
pont2-data-table [data-pont2-data-table-sort]:not(:hover) svg[data-icon-name="arrow-up-down"] {
|
|
7716
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6177
7717
|
}
|
|
6178
|
-
|
|
6179
|
-
|
|
7718
|
+
pont2-data-table :is(th, td)[data-align="end"] {
|
|
7719
|
+
text-align: end;
|
|
6180
7720
|
}
|
|
6181
|
-
|
|
6182
|
-
|
|
7721
|
+
pont2-data-table :is(th, td)[data-align="center"] {
|
|
7722
|
+
text-align: center;
|
|
6183
7723
|
}
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
* Design mode (the designer's canvas only; core/design-mode.ts). An outline takes no space, so
|
|
6187
|
-
* showing the container doesn't reflow what the author is arranging. The inset does reflow, on
|
|
6188
|
-
* purpose: without it a nested container's outline lands on its parent's and the parent has no
|
|
6189
|
-
* surface left to click or drop onto. Served screens never get these attributes.
|
|
6190
|
-
*/
|
|
6191
|
-
[data-pont2-container][data-design] {
|
|
6192
|
-
outline: 1px dotted color-mix(in oklab, var(--pont2-sem-color-foreground) 35%, transparent);
|
|
6193
|
-
outline-offset: -1px;
|
|
6194
|
-
padding: 0.5rem;
|
|
7724
|
+
pont2-data-table th[data-sortable][data-align="end"] {
|
|
7725
|
+
padding-inline: 0;
|
|
6195
7726
|
}
|
|
6196
|
-
[data-pont2-
|
|
6197
|
-
|
|
6198
|
-
|
|
7727
|
+
pont2-data-table [data-pont2-data-table-actions] {
|
|
7728
|
+
width: 1px;
|
|
7729
|
+
text-align: end;
|
|
6199
7730
|
}
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
position: absolute;
|
|
6204
|
-
inset: 0;
|
|
6205
|
-
display: flex;
|
|
6206
|
-
align-items: center;
|
|
6207
|
-
justify-content: center;
|
|
7731
|
+
pont2-data-table [data-pont2-data-table-empty] > td {
|
|
7732
|
+
height: 6rem;
|
|
7733
|
+
text-align: center;
|
|
6208
7734
|
color: var(--pont2-sem-color-muted-foreground);
|
|
6209
|
-
|
|
6210
|
-
|
|
7735
|
+
}
|
|
7736
|
+
pont2-data-table [data-pont2-data-table-empty]:hover {
|
|
7737
|
+
background-color: transparent;
|
|
7738
|
+
}
|
|
7739
|
+
pont2-data-table [data-pont2-data-table-skeleton] {
|
|
7740
|
+
width: 100%;
|
|
7741
|
+
min-width: 3rem;
|
|
7742
|
+
height: 1rem;
|
|
6211
7743
|
}
|
|
6212
7744
|
}
|
|
6213
7745
|
|
|
6214
|
-
/* ../kit/
|
|
7746
|
+
/* ../kit/badge-selector/badge-selector.css */
|
|
6215
7747
|
/*
|
|
6216
|
-
* <pont2-
|
|
6217
|
-
*
|
|
7748
|
+
* <pont2-badge-selector>: the Combobox primitive's recipe styles everything it renders
|
|
7749
|
+
* (primitives/combobox/combobox.css: the chips input, the popup, the items). The
|
|
7750
|
+
* composite only makes the chips box fill its container, as the legacy selector did.
|
|
6218
7751
|
*/
|
|
6219
7752
|
@layer pont2.kit {
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
/** @token Gap between children */
|
|
6223
|
-
--_pont2-header-gap: var(--pont2-header-gap, 0.5rem);
|
|
7753
|
+
pont2-badge-selector > [data-pont2-combobox-chips] {
|
|
7754
|
+
width: 100%;
|
|
6224
7755
|
}
|
|
7756
|
+
}
|
|
6225
7757
|
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
7758
|
+
/* ../kit/multi-email-input/multi-email-input.css */
|
|
7759
|
+
/*
|
|
7760
|
+
* <pont2-multi-email-input>: the box, chips and input are the multiple Combobox's chips
|
|
7761
|
+
* recipe (primitives/combobox/combobox.css), rendered as parts; the message under it is a
|
|
7762
|
+
* Field description or error (primitives/field/field.css). Laid out like a Field: the box,
|
|
7763
|
+
* then the message, 0.5rem apart.
|
|
7764
|
+
*/
|
|
7765
|
+
@layer pont2.kit {
|
|
7766
|
+
pont2-multi-email-input {
|
|
7767
|
+
display: grid;
|
|
7768
|
+
gap: 0.5rem;
|
|
7769
|
+
min-width: 0;
|
|
6235
7770
|
}
|
|
6236
|
-
[data-pont2-
|
|
6237
|
-
|
|
6238
|
-
text-align: start;
|
|
7771
|
+
pont2-multi-email-input > [data-pont2-multi-email-box] {
|
|
7772
|
+
width: 100%;
|
|
6239
7773
|
}
|
|
6240
|
-
[data-pont2-
|
|
6241
|
-
|
|
7774
|
+
pont2-multi-email-input > [data-pont2-multi-email-count] {
|
|
7775
|
+
font-variant-numeric: tabular-nums;
|
|
6242
7776
|
text-align: end;
|
|
6243
7777
|
}
|
|
6244
7778
|
}
|
|
6245
7779
|
|
|
6246
|
-
/* ../kit/
|
|
6247
|
-
/*
|
|
7780
|
+
/* ../kit/multi-select-filter/multi-select-filter.css */
|
|
7781
|
+
/*
|
|
7782
|
+
* <pont2-multi-select-filter>: the trigger is a Button, the menu the Dropdown Menu
|
|
7783
|
+
* primitive, the count a Badge (their recipes style them). shadcn's faceted filter puts
|
|
7784
|
+
* the count in a secondary badge after a separator; here it sits after the label with
|
|
7785
|
+
* the button's gap, made compact as in shadcn's "rounded-sm px-1 font-normal".
|
|
7786
|
+
*/
|
|
6248
7787
|
@layer pont2.kit {
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
height: var(--pont2-gap-size, 8px);
|
|
6254
|
-
}
|
|
6255
|
-
[data-pont2-gap][data-type="horizontal"] {
|
|
6256
|
-
width: var(--pont2-gap-size, 8px);
|
|
6257
|
-
height: 1px;
|
|
7788
|
+
[data-pont2-multi-select-filter-trigger] [data-pont2-multi-select-filter-count] {
|
|
7789
|
+
padding-inline: 0.25rem;
|
|
7790
|
+
border-radius: var(--pont2-sem-radius-sm);
|
|
7791
|
+
font-weight: var(--pont2-sem-font-weight-normal);
|
|
6258
7792
|
}
|
|
6259
7793
|
}
|
|
6260
7794
|
|
|
6261
|
-
/* ../kit/
|
|
7795
|
+
/* ../kit/account-menu/account-menu.css */
|
|
6262
7796
|
/*
|
|
6263
|
-
* <pont2-
|
|
6264
|
-
*
|
|
6265
|
-
*
|
|
7797
|
+
* <pont2-account-menu>: shadcn's "nav user" (sidebar-07). The trigger is a ghost Button,
|
|
7798
|
+
* the menu the Dropdown Menu primitive, the pictures Avatars (their recipes style them).
|
|
7799
|
+
* Here: the user snippet (avatar, then name over email, truncated) in the trigger and the
|
|
7800
|
+
* menu header, as shadcn's "grid flex-1 text-left text-sm leading-tight".
|
|
6266
7801
|
*/
|
|
6267
7802
|
@layer pont2.kit {
|
|
6268
|
-
|
|
7803
|
+
[data-pont2-account-menu-trigger] {
|
|
7804
|
+
max-inline-size: 100%;
|
|
7805
|
+
}
|
|
7806
|
+
|
|
7807
|
+
[data-pont2-account-menu-user] {
|
|
6269
7808
|
display: flex;
|
|
6270
|
-
|
|
6271
|
-
|
|
7809
|
+
align-items: center;
|
|
7810
|
+
gap: 0.5rem;
|
|
7811
|
+
min-inline-size: 0;
|
|
7812
|
+
flex: 1 1 auto;
|
|
7813
|
+
text-align: start;
|
|
6272
7814
|
}
|
|
6273
|
-
|
|
6274
|
-
|
|
7815
|
+
|
|
7816
|
+
[data-pont2-account-menu-text] {
|
|
7817
|
+
display: grid;
|
|
7818
|
+
flex: 1 1 auto;
|
|
7819
|
+
min-inline-size: 0;
|
|
7820
|
+
font-size: var(--pont2-sem-text-sm);
|
|
7821
|
+
line-height: 1.25;
|
|
6275
7822
|
}
|
|
6276
|
-
|
|
6277
|
-
|
|
7823
|
+
|
|
7824
|
+
[data-pont2-account-menu-name] {
|
|
7825
|
+
overflow: hidden;
|
|
7826
|
+
text-overflow: ellipsis;
|
|
7827
|
+
white-space: nowrap;
|
|
7828
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
6278
7829
|
}
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
7830
|
+
|
|
7831
|
+
[data-pont2-account-menu-email] {
|
|
7832
|
+
overflow: hidden;
|
|
7833
|
+
text-overflow: ellipsis;
|
|
7834
|
+
white-space: nowrap;
|
|
7835
|
+
font-size: var(--pont2-sem-text-xs);
|
|
7836
|
+
font-weight: var(--pont2-sem-font-weight-normal);
|
|
7837
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6283
7838
|
}
|
|
6284
|
-
|
|
6285
|
-
|
|
7839
|
+
|
|
7840
|
+
/* The header is a group label: give it the snippet's normal weight and colour. */
|
|
7841
|
+
[data-pont2-account-menu-header] {
|
|
7842
|
+
font-weight: var(--pont2-sem-font-weight-normal);
|
|
7843
|
+
color: inherit;
|
|
6286
7844
|
}
|
|
6287
|
-
|
|
6288
|
-
[data-pont2-
|
|
6289
|
-
|
|
7845
|
+
|
|
7846
|
+
[data-pont2-account-menu-content] {
|
|
7847
|
+
min-inline-size: 14rem;
|
|
6290
7848
|
}
|
|
6291
7849
|
}
|
|
6292
7850
|
|
|
6293
|
-
/* ../kit/
|
|
6294
|
-
/*
|
|
7851
|
+
/* ../kit/organization-switcher/organization-switcher.css */
|
|
7852
|
+
/*
|
|
7853
|
+
* <pont2-organization-switcher>: an outline Button with the current organization (a small
|
|
7854
|
+
* Avatar of its initials and its name, truncated), opening a Dropdown Menu of radio items.
|
|
7855
|
+
* The recipes style the button, menu and avatar; here: truncation, the "Switching…" note
|
|
7856
|
+
* and the refusal under the list.
|
|
7857
|
+
*/
|
|
6295
7858
|
@layer pont2.kit {
|
|
6296
|
-
|
|
6297
|
-
|
|
7859
|
+
[data-pont2-organization-switcher-current] {
|
|
7860
|
+
overflow: hidden;
|
|
7861
|
+
text-overflow: ellipsis;
|
|
7862
|
+
white-space: nowrap;
|
|
7863
|
+
max-inline-size: 12rem;
|
|
7864
|
+
}
|
|
7865
|
+
|
|
7866
|
+
[data-pont2-organization-switcher-content] {
|
|
7867
|
+
min-inline-size: 14rem;
|
|
7868
|
+
}
|
|
7869
|
+
|
|
7870
|
+
[data-pont2-organization-switcher-switching] {
|
|
7871
|
+
margin-inline-start: auto;
|
|
7872
|
+
font-size: var(--pont2-sem-text-xs);
|
|
6298
7873
|
color: var(--pont2-sem-color-muted-foreground);
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
7874
|
+
}
|
|
7875
|
+
|
|
7876
|
+
[data-pont2-organization-switcher-error] {
|
|
7877
|
+
padding: 0.375rem 0.5rem;
|
|
7878
|
+
font-size: var(--pont2-sem-text-xs);
|
|
7879
|
+
color: var(--pont2-sem-color-destructive);
|
|
6303
7880
|
}
|
|
6304
7881
|
}
|
|
6305
7882
|
|
|
6306
|
-
/* ../kit/
|
|
6307
|
-
/*
|
|
7883
|
+
/* ../kit/account-settings/account-settings.css */
|
|
7884
|
+
/*
|
|
7885
|
+
* <pont2-account-settings>: the profile and security tabs, as cards. The recipes style the
|
|
7886
|
+
* tabs, cards, inputs, selects, buttons, alerts and the dialog; here: the layout (tabs beside or
|
|
7887
|
+
* above the cards, narrowing to one column), and the label / value rows, whose labels keep a gap
|
|
7888
|
+
* from the value and wrap instead of running into it (carry-over §4).
|
|
7889
|
+
*/
|
|
6308
7890
|
@layer pont2.kit {
|
|
6309
|
-
|
|
7891
|
+
pont2-account-settings {
|
|
7892
|
+
display: block;
|
|
7893
|
+
container: pont2-account-settings / inline-size;
|
|
7894
|
+
}
|
|
7895
|
+
|
|
7896
|
+
[data-pont2-account-settings-page] {
|
|
6310
7897
|
display: flex;
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
min-width: 0;
|
|
6315
|
-
font-size: var(--pont2-sem-text-sm);
|
|
6316
|
-
line-height: var(--pont2-sem-text-sm--line-height);
|
|
7898
|
+
flex-direction: column;
|
|
7899
|
+
gap: 1.5rem;
|
|
7900
|
+
inline-size: 100%;
|
|
6317
7901
|
}
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
7902
|
+
|
|
7903
|
+
[data-pont2-account-settings-title] {
|
|
7904
|
+
margin: 0;
|
|
7905
|
+
font-size: var(--pont2-sem-text-xl);
|
|
7906
|
+
font-weight: var(--pont2-sem-font-weight-semibold);
|
|
7907
|
+
line-height: 1.3;
|
|
6323
7908
|
}
|
|
6324
|
-
}
|
|
6325
7909
|
|
|
6326
|
-
/*
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
7910
|
+
/* The dialog is wider than a form dialog: the cards need room for a label column. */
|
|
7911
|
+
[data-pont2-account-settings-dialog] {
|
|
7912
|
+
max-inline-size: min(56rem, calc(100% - 2rem));
|
|
7913
|
+
inline-size: 100%;
|
|
7914
|
+
max-block-size: calc(100% - 2rem);
|
|
7915
|
+
overflow-y: auto;
|
|
7916
|
+
container: pont2-account-settings / inline-size;
|
|
7917
|
+
}
|
|
7918
|
+
|
|
7919
|
+
[data-pont2-account-settings-tabs] {
|
|
7920
|
+
gap: 1.5rem;
|
|
7921
|
+
}
|
|
7922
|
+
|
|
7923
|
+
[data-pont2-account-settings-tabs][data-orientation="vertical"] [data-pont2-account-settings-sidebar] {
|
|
7924
|
+
flex: 0 0 11rem;
|
|
7925
|
+
align-self: flex-start;
|
|
7926
|
+
}
|
|
7927
|
+
|
|
7928
|
+
[data-pont2-account-settings-panel] {
|
|
6330
7929
|
display: flex;
|
|
6331
7930
|
flex-direction: column;
|
|
7931
|
+
gap: 1.5rem;
|
|
7932
|
+
min-inline-size: 0;
|
|
7933
|
+
flex: 1 1 auto;
|
|
7934
|
+
}
|
|
7935
|
+
|
|
7936
|
+
[data-pont2-account-settings-panel][data-hidden] {
|
|
7937
|
+
display: none;
|
|
7938
|
+
}
|
|
7939
|
+
|
|
7940
|
+
[data-pont2-account-settings-card-title] {
|
|
7941
|
+
display: flex;
|
|
7942
|
+
align-items: center;
|
|
6332
7943
|
gap: 0.5rem;
|
|
6333
|
-
width: 100%;
|
|
6334
7944
|
}
|
|
6335
|
-
|
|
7945
|
+
|
|
7946
|
+
/* Label / value rows: a label column that keeps its gap and wraps (carry-over §4). */
|
|
7947
|
+
[data-pont2-account-settings-rows] {
|
|
7948
|
+
display: grid;
|
|
7949
|
+
gap: 1rem;
|
|
7950
|
+
margin: 0;
|
|
7951
|
+
}
|
|
7952
|
+
|
|
7953
|
+
[data-pont2-account-settings-row] {
|
|
7954
|
+
display: grid;
|
|
7955
|
+
grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
|
|
7956
|
+
column-gap: 1.5rem;
|
|
7957
|
+
row-gap: 0.375rem;
|
|
7958
|
+
align-items: baseline;
|
|
7959
|
+
}
|
|
7960
|
+
|
|
7961
|
+
[data-pont2-account-settings-rows][data-layout="column"] [data-pont2-account-settings-row] {
|
|
7962
|
+
grid-template-columns: minmax(0, 1fr);
|
|
7963
|
+
}
|
|
7964
|
+
|
|
7965
|
+
[data-pont2-account-settings-label] {
|
|
6336
7966
|
margin: 0;
|
|
6337
7967
|
font-size: var(--pont2-sem-text-sm);
|
|
6338
|
-
line-height: var(--pont2-sem-text-sm--line-height);
|
|
6339
7968
|
font-weight: var(--pont2-sem-font-weight-medium);
|
|
7969
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
7970
|
+
overflow-wrap: anywhere;
|
|
7971
|
+
hyphens: auto;
|
|
6340
7972
|
}
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
7973
|
+
|
|
7974
|
+
[data-pont2-account-settings-value] {
|
|
7975
|
+
margin: 0;
|
|
7976
|
+
min-inline-size: 0;
|
|
7977
|
+
font-size: var(--pont2-sem-text-sm);
|
|
7978
|
+
overflow-wrap: anywhere;
|
|
7979
|
+
display: grid;
|
|
7980
|
+
gap: 0.375rem;
|
|
6344
7981
|
}
|
|
6345
|
-
|
|
6346
|
-
[data-pont2-
|
|
6347
|
-
|
|
7982
|
+
|
|
7983
|
+
[data-pont2-account-settings-row][data-field="profile"] [data-pont2-account-settings-value] {
|
|
7984
|
+
white-space: pre-line;
|
|
7985
|
+
}
|
|
7986
|
+
|
|
7987
|
+
[data-pont2-account-settings-empty] {
|
|
6348
7988
|
color: var(--pont2-sem-color-muted-foreground);
|
|
6349
|
-
font-size: var(--pont2-sem-text-xs);
|
|
6350
|
-
line-height: 1rem;
|
|
6351
7989
|
}
|
|
6352
|
-
|
|
7990
|
+
|
|
7991
|
+
[data-pont2-account-settings-photo] {
|
|
6353
7992
|
display: flex;
|
|
6354
7993
|
flex-wrap: wrap;
|
|
6355
|
-
|
|
6356
|
-
|
|
7994
|
+
align-items: center;
|
|
7995
|
+
gap: 1rem;
|
|
6357
7996
|
}
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
7997
|
+
|
|
7998
|
+
[data-pont2-account-settings-photo-form] {
|
|
7999
|
+
display: grid;
|
|
8000
|
+
gap: 0.5rem;
|
|
8001
|
+
flex: 1 1 14rem;
|
|
8002
|
+
min-inline-size: 0;
|
|
6362
8003
|
}
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
font-weight: var(--pont2-sem-font-weight-medium);
|
|
8004
|
+
|
|
8005
|
+
[data-pont2-account-settings-form] {
|
|
8006
|
+
display: grid;
|
|
8007
|
+
gap: 1rem;
|
|
6368
8008
|
}
|
|
6369
|
-
}
|
|
6370
8009
|
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
@layer pont2.kit {
|
|
6377
|
-
/* Tokens (resolved on the host; the image inherits them) */
|
|
6378
|
-
:is(pont2-qr-code, [data-pont2-qr-code]) {
|
|
6379
|
-
/** @token Image width */
|
|
6380
|
-
--_pont2-qr-code-width: var(--pont2-qr-code-width, 12rem);
|
|
8010
|
+
[data-pont2-account-settings-actions] {
|
|
8011
|
+
display: flex;
|
|
8012
|
+
flex-wrap: wrap;
|
|
8013
|
+
justify-content: flex-end;
|
|
8014
|
+
gap: 0.5rem;
|
|
6381
8015
|
}
|
|
6382
8016
|
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
8017
|
+
[data-pont2-account-settings-problem] {
|
|
8018
|
+
display: flex;
|
|
8019
|
+
flex-direction: column;
|
|
8020
|
+
align-items: flex-start;
|
|
8021
|
+
gap: 1rem;
|
|
8022
|
+
}
|
|
8023
|
+
|
|
8024
|
+
[data-pont2-account-settings-loading] {
|
|
6386
8025
|
display: grid;
|
|
6387
|
-
|
|
6388
|
-
width: fit-content;
|
|
6389
|
-
margin-inline: auto;
|
|
8026
|
+
gap: 1rem;
|
|
6390
8027
|
}
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
border-radius: var(--pont2-sem-radius-md);
|
|
6396
|
-
box-shadow: 0 0 0 var(--pont2-sem-border-width) var(--pont2-sem-color-border);
|
|
6397
|
-
transition: opacity 200ms ease;
|
|
8028
|
+
|
|
8029
|
+
[data-pont2-account-settings-loading] [data-part="tab"] {
|
|
8030
|
+
block-size: 2.25rem;
|
|
8031
|
+
inline-size: 11rem;
|
|
6398
8032
|
}
|
|
6399
|
-
|
|
6400
|
-
|
|
8033
|
+
|
|
8034
|
+
[data-pont2-account-settings-loading] [data-part="card"] {
|
|
8035
|
+
block-size: 10rem;
|
|
6401
8036
|
}
|
|
6402
|
-
|
|
8037
|
+
|
|
8038
|
+
[data-pont2-account-settings-sr] {
|
|
6403
8039
|
position: absolute;
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
8040
|
+
inline-size: 1px;
|
|
8041
|
+
block-size: 1px;
|
|
8042
|
+
overflow: hidden;
|
|
8043
|
+
clip-path: inset(50%);
|
|
8044
|
+
white-space: nowrap;
|
|
6407
8045
|
}
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
8046
|
+
|
|
8047
|
+
[data-pont2-account-settings-footer] {
|
|
8048
|
+
display: flex;
|
|
8049
|
+
justify-content: flex-end;
|
|
8050
|
+
padding-block-start: 0.5rem;
|
|
8051
|
+
}
|
|
8052
|
+
|
|
8053
|
+
/* Narrow: the tabs go above the cards, and each label above its value. */
|
|
8054
|
+
@container pont2-account-settings (max-width: 40rem) {
|
|
8055
|
+
[data-pont2-account-settings-tabs][data-orientation="vertical"] {
|
|
8056
|
+
flex-direction: column;
|
|
8057
|
+
}
|
|
8058
|
+
|
|
8059
|
+
[data-pont2-account-settings-tabs][data-orientation="vertical"] [data-pont2-account-settings-sidebar] {
|
|
8060
|
+
flex: 0 0 auto;
|
|
8061
|
+
flex-direction: row;
|
|
8062
|
+
inline-size: 100%;
|
|
8063
|
+
overflow-x: auto;
|
|
8064
|
+
}
|
|
8065
|
+
}
|
|
8066
|
+
|
|
8067
|
+
@container pont2-account-settings (max-width: 30rem) {
|
|
8068
|
+
[data-pont2-account-settings-row] {
|
|
8069
|
+
grid-template-columns: minmax(0, 1fr);
|
|
6411
8070
|
}
|
|
6412
8071
|
}
|
|
6413
8072
|
}
|
|
6414
8073
|
|
|
6415
|
-
/* ../kit/
|
|
6416
|
-
/*
|
|
8074
|
+
/* ../kit/member-management/member-management.css */
|
|
8075
|
+
/*
|
|
8076
|
+
* <pont2-member-management>: a header, the Members / Invitations tabs (each a toolbar, a Data
|
|
8077
|
+
* Table and a pager) and its dialogs. The recipes style the tabs, table, inputs, buttons, badges,
|
|
8078
|
+
* alerts and dialogs; here: the layout, the person cell, the two-line dates, and the pager row.
|
|
8079
|
+
*/
|
|
6417
8080
|
@layer pont2.kit {
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
/** @token Background (code list) */
|
|
6421
|
-
--_pont2-recovery-codes-list-bg: var(--pont2-recovery-codes-list-bg, var(--pont2-sem-color-muted));
|
|
6422
|
-
/** @token Corner radius (code list) */
|
|
6423
|
-
--_pont2-recovery-codes-list-radius: var(--pont2-recovery-codes-list-radius, var(--pont2-sem-radius-md));
|
|
8081
|
+
pont2-member-management {
|
|
8082
|
+
display: block;
|
|
6424
8083
|
}
|
|
6425
8084
|
|
|
6426
|
-
|
|
6427
|
-
:is(pont2-recovery-codes, [data-pont2-recovery-codes]) {
|
|
8085
|
+
[data-pont2-member-management-page] {
|
|
6428
8086
|
display: flex;
|
|
6429
8087
|
flex-direction: column;
|
|
6430
|
-
gap:
|
|
6431
|
-
|
|
8088
|
+
gap: 1.5rem;
|
|
8089
|
+
inline-size: 100%;
|
|
6432
8090
|
}
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
8091
|
+
|
|
8092
|
+
[data-pont2-member-management-dialog] {
|
|
8093
|
+
max-inline-size: min(64rem, calc(100% - 2rem));
|
|
8094
|
+
inline-size: 100%;
|
|
6436
8095
|
}
|
|
6437
|
-
|
|
8096
|
+
|
|
8097
|
+
[data-pont2-member-management-header] {
|
|
8098
|
+
display: grid;
|
|
8099
|
+
gap: 0.25rem;
|
|
8100
|
+
}
|
|
8101
|
+
|
|
8102
|
+
[data-pont2-member-management-title] {
|
|
6438
8103
|
margin: 0;
|
|
6439
|
-
|
|
6440
|
-
font-
|
|
6441
|
-
line-height:
|
|
8104
|
+
font-size: var(--pont2-sem-text-xl);
|
|
8105
|
+
font-weight: var(--pont2-sem-font-weight-semibold);
|
|
8106
|
+
line-height: 1.3;
|
|
6442
8107
|
}
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
6446
|
-
gap: 0.5rem 1rem;
|
|
8108
|
+
|
|
8109
|
+
[data-pont2-member-management-subtitle] {
|
|
6447
8110
|
margin: 0;
|
|
6448
|
-
padding: 0.75rem 1rem;
|
|
6449
|
-
list-style: none;
|
|
6450
|
-
border-radius: var(--_pont2-recovery-codes-list-radius);
|
|
6451
|
-
background-color: var(--_pont2-recovery-codes-list-bg);
|
|
6452
|
-
font-family: var(--pont2-sem-font-code);
|
|
6453
8111
|
font-size: var(--pont2-sem-text-sm);
|
|
6454
|
-
|
|
6455
|
-
text-align: center;
|
|
8112
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6456
8113
|
}
|
|
6457
|
-
|
|
8114
|
+
|
|
8115
|
+
[data-pont2-member-management-tabs] {
|
|
8116
|
+
gap: 1rem;
|
|
8117
|
+
}
|
|
8118
|
+
|
|
8119
|
+
[data-pont2-member-management-bar] {
|
|
8120
|
+
display: flex;
|
|
8121
|
+
flex-wrap: wrap-reverse;
|
|
8122
|
+
align-items: center;
|
|
8123
|
+
justify-content: space-between;
|
|
8124
|
+
gap: 0.75rem;
|
|
8125
|
+
}
|
|
8126
|
+
|
|
8127
|
+
[data-pont2-member-management-panel] {
|
|
8128
|
+
display: flex;
|
|
8129
|
+
flex-direction: column;
|
|
8130
|
+
gap: 1rem;
|
|
8131
|
+
min-inline-size: 0;
|
|
8132
|
+
}
|
|
8133
|
+
|
|
8134
|
+
[data-pont2-member-management-panel][data-hidden] {
|
|
8135
|
+
display: none;
|
|
8136
|
+
}
|
|
8137
|
+
|
|
8138
|
+
[data-pont2-member-management-toolbar] {
|
|
6458
8139
|
display: flex;
|
|
8140
|
+
flex-wrap: wrap;
|
|
8141
|
+
align-items: center;
|
|
6459
8142
|
gap: 0.5rem;
|
|
6460
8143
|
}
|
|
6461
|
-
|
|
6462
|
-
|
|
8144
|
+
|
|
8145
|
+
[data-pont2-member-management-search] {
|
|
8146
|
+
flex: 1 1 14rem;
|
|
8147
|
+
max-inline-size: 22rem;
|
|
6463
8148
|
}
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
8149
|
+
|
|
8150
|
+
[data-pont2-member-management-person] {
|
|
8151
|
+
display: flex;
|
|
8152
|
+
align-items: center;
|
|
8153
|
+
gap: 0.625rem;
|
|
8154
|
+
min-inline-size: 0;
|
|
8155
|
+
}
|
|
8156
|
+
|
|
8157
|
+
[data-pont2-member-management-person-text] {
|
|
8158
|
+
display: grid;
|
|
8159
|
+
min-inline-size: 0;
|
|
8160
|
+
line-height: 1.25;
|
|
8161
|
+
}
|
|
8162
|
+
|
|
8163
|
+
[data-pont2-member-management-person-name] {
|
|
8164
|
+
overflow: hidden;
|
|
8165
|
+
text-overflow: ellipsis;
|
|
8166
|
+
white-space: nowrap;
|
|
8167
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
8168
|
+
}
|
|
8169
|
+
|
|
8170
|
+
[data-pont2-member-management-person-email] {
|
|
8171
|
+
overflow: hidden;
|
|
8172
|
+
text-overflow: ellipsis;
|
|
8173
|
+
white-space: nowrap;
|
|
6467
8174
|
font-size: var(--pont2-sem-text-xs);
|
|
6468
|
-
|
|
6469
|
-
text-align: center;
|
|
8175
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6470
8176
|
}
|
|
6471
|
-
}
|
|
6472
8177
|
|
|
6473
|
-
|
|
6474
|
-
/* <pont2-scope-list>: one checkbox row per scope (shadcn's checkbox + label row: "flex items-center gap-3"). */
|
|
6475
|
-
@layer pont2.kit {
|
|
6476
|
-
:is(pont2-scope-list, [data-pont2-scope-list]) {
|
|
8178
|
+
[data-pont2-member-management-roles] {
|
|
6477
8179
|
display: flex;
|
|
6478
|
-
flex-
|
|
6479
|
-
gap: 0.
|
|
8180
|
+
flex-wrap: wrap;
|
|
8181
|
+
gap: 0.25rem;
|
|
6480
8182
|
}
|
|
6481
|
-
|
|
8183
|
+
|
|
8184
|
+
[data-pont2-member-management-date] {
|
|
8185
|
+
display: grid;
|
|
8186
|
+
line-height: 1.25;
|
|
8187
|
+
}
|
|
8188
|
+
|
|
8189
|
+
[data-pont2-member-management-time] {
|
|
8190
|
+
font-size: var(--pont2-sem-text-xs);
|
|
8191
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
8192
|
+
}
|
|
8193
|
+
|
|
8194
|
+
[data-pont2-member-management-pager] {
|
|
6482
8195
|
display: flex;
|
|
8196
|
+
flex-wrap: wrap;
|
|
6483
8197
|
align-items: center;
|
|
6484
|
-
|
|
8198
|
+
justify-content: space-between;
|
|
8199
|
+
gap: 0.75rem 1.5rem;
|
|
6485
8200
|
font-size: var(--pont2-sem-text-sm);
|
|
6486
|
-
line-height: var(--pont2-sem-text-sm--line-height);
|
|
6487
|
-
cursor: pointer;
|
|
6488
8201
|
}
|
|
6489
|
-
|
|
6490
|
-
[data-pont2-
|
|
6491
|
-
|
|
8202
|
+
|
|
8203
|
+
[data-pont2-member-management-range] {
|
|
8204
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
8205
|
+
font-variant-numeric: tabular-nums;
|
|
6492
8206
|
}
|
|
6493
|
-
|
|
6494
|
-
|
|
8207
|
+
|
|
8208
|
+
[data-pont2-member-management-size] {
|
|
8209
|
+
display: inline-flex;
|
|
8210
|
+
align-items: center;
|
|
8211
|
+
gap: 0.5rem;
|
|
8212
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6495
8213
|
}
|
|
6496
|
-
}
|
|
6497
8214
|
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
* (the screen's block is the visible shell); a pending request is signalled by
|
|
6502
|
-
* aria-busy on the form, which the elements' own busy states already show.
|
|
6503
|
-
*/
|
|
6504
|
-
@layer pont2.kit {
|
|
6505
|
-
:is(pont2-layout, [data-pont2-layout]) {
|
|
6506
|
-
display: block;
|
|
6507
|
-
width: 100%;
|
|
8215
|
+
[data-pont2-member-management-pager] > :is(pont2-pagination, [data-pont2-pagination]) {
|
|
8216
|
+
margin-inline: 0;
|
|
8217
|
+
inline-size: auto;
|
|
6508
8218
|
}
|
|
6509
|
-
|
|
6510
|
-
|
|
8219
|
+
|
|
8220
|
+
[data-pont2-member-management-problem] {
|
|
8221
|
+
display: flex;
|
|
8222
|
+
flex-direction: column;
|
|
8223
|
+
align-items: flex-start;
|
|
8224
|
+
gap: 1rem;
|
|
6511
8225
|
}
|
|
6512
|
-
|
|
6513
|
-
[data-pont2-
|
|
6514
|
-
|
|
8226
|
+
|
|
8227
|
+
[data-pont2-member-management-loading] {
|
|
8228
|
+
display: flex;
|
|
8229
|
+
justify-content: center;
|
|
8230
|
+
padding-block: 2.5rem;
|
|
6515
8231
|
}
|
|
6516
|
-
}
|
|
6517
8232
|
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
:is(pont2-consent, [data-pont2-consent]) {
|
|
6522
|
-
display: block;
|
|
6523
|
-
width: 100%;
|
|
8233
|
+
[data-pont2-member-management-loading] > :is(pont2-prim-spinner, [data-pont2-spinner]) {
|
|
8234
|
+
inline-size: 1.5rem;
|
|
8235
|
+
block-size: 1.5rem;
|
|
6524
8236
|
}
|
|
6525
|
-
|
|
8237
|
+
|
|
8238
|
+
[data-pont2-member-management-form] {
|
|
6526
8239
|
display: grid;
|
|
6527
|
-
|
|
6528
|
-
|
|
8240
|
+
gap: 1.25rem;
|
|
8241
|
+
}
|
|
8242
|
+
|
|
8243
|
+
[data-pont2-member-management-who] {
|
|
8244
|
+
display: grid;
|
|
8245
|
+
gap: 0.25rem;
|
|
8246
|
+
margin: 0;
|
|
8247
|
+
}
|
|
8248
|
+
|
|
8249
|
+
[data-pont2-member-management-who] dt {
|
|
8250
|
+
font-size: var(--pont2-sem-text-sm);
|
|
8251
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
8252
|
+
}
|
|
8253
|
+
|
|
8254
|
+
[data-pont2-member-management-who] dd {
|
|
8255
|
+
margin: 0;
|
|
6529
8256
|
color: var(--pont2-sem-color-muted-foreground);
|
|
8257
|
+
overflow-wrap: anywhere;
|
|
6530
8258
|
}
|
|
6531
|
-
}
|
|
6532
8259
|
|
|
6533
|
-
|
|
6534
|
-
/* <pont2-signin> / <pont2-signup> / <pont2-invitation>: a block-level host; a centred spinner until the first screen. */
|
|
6535
|
-
@layer pont2.kit {
|
|
6536
|
-
:is(pont2-signin, pont2-signup, pont2-invitation, [data-pont2-flow-widget]) {
|
|
8260
|
+
[data-pont2-member-management-subject] {
|
|
6537
8261
|
display: block;
|
|
6538
|
-
|
|
8262
|
+
margin-block: 0.5rem;
|
|
8263
|
+
color: var(--pont2-sem-color-foreground);
|
|
8264
|
+
overflow-wrap: anywhere;
|
|
6539
8265
|
}
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
8266
|
+
|
|
8267
|
+
[data-pont2-member-management-warning] {
|
|
8268
|
+
display: block;
|
|
8269
|
+
}
|
|
8270
|
+
|
|
8271
|
+
[data-pont2-member-management-footer] {
|
|
8272
|
+
display: flex;
|
|
8273
|
+
justify-content: flex-end;
|
|
6545
8274
|
}
|
|
6546
8275
|
}
|