@vokality/design-system 1.3.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/README.md +51 -5
- package/dist/browser.d.ts +13 -0
- package/dist/browser.js +7 -0
- package/dist/charts/chart.d.ts +6 -5
- package/dist/charts/chart.js +44 -25
- package/dist/chat.d.ts +54 -0
- package/dist/chat.js +1 -0
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Alert/Alert.js +5 -2
- package/dist/components/AppShell/AppShell.js +10 -14
- package/dist/components/Avatar/Avatar.js +2 -2
- package/dist/components/AvatarGroup/AvatarGroup.js +2 -2
- package/dist/components/BarChart/BarChart.js +17 -15
- package/dist/components/Breadcrumbs/Breadcrumbs.js +6 -3
- package/dist/components/Calendar/Calendar.js +6 -5
- package/dist/components/Card/Card.js +2 -3
- package/dist/components/ChatInbox/ChatInbox.d.ts +11 -0
- package/dist/components/ChatInbox/ChatInbox.js +49 -0
- package/dist/components/ChatPanel/ChatPanel.d.ts +3 -0
- package/dist/components/ChatPanel/ChatPanel.js +13 -0
- package/dist/components/ChatPanel/composer.d.ts +5 -0
- package/dist/components/ChatPanel/composer.js +32 -0
- package/dist/components/ChatPanel/transcript.d.ts +13 -0
- package/dist/components/ChatPanel/transcript.js +39 -0
- package/dist/components/ChatWidget/ChatWidget.d.ts +12 -0
- package/dist/components/ChatWidget/ChatWidget.js +42 -0
- package/dist/components/Checkbox/Checkbox.d.ts +5 -10
- package/dist/components/Checkbox/Checkbox.js +5 -19
- package/dist/components/CodeBlock/CodeBlock.js +19 -5
- package/dist/components/Combobox/Combobox.js +22 -15
- package/dist/components/Combobox/ListPanel.js +20 -9
- package/dist/components/CommandPalette/CommandPalette.js +33 -14
- package/dist/components/ContextMenu/ContextMenu.d.ts +2 -2
- package/dist/components/ContextMenu/ContextMenu.js +5 -50
- package/dist/components/DatePicker/DatePicker.js +35 -29
- package/dist/components/DescriptionList/DescriptionList.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +24 -7
- package/dist/components/Dialog/Dialog.js +30 -41
- package/dist/components/Drawer/Drawer.d.ts +4 -2
- package/dist/components/EmptyState/EmptyState.js +2 -2
- package/dist/components/ErrorSummary/ErrorSummary.js +5 -3
- package/dist/components/FaqList/FaqList.js +1 -1
- package/dist/components/Field/Field.js +4 -4
- package/dist/components/Fieldset/Fieldset.js +3 -3
- package/dist/components/FileUpload/FileUpload.js +17 -9
- package/dist/components/Grid/Grid.d.ts +867 -5
- package/dist/components/Grid/Grid.js +3 -4
- package/dist/components/Heading/Heading.js +2 -1
- package/dist/components/Icon/Icon.js +4 -2
- package/dist/components/Inline/Inline.d.ts +867 -5
- package/dist/components/Inline/Inline.js +2 -3
- package/dist/components/LineChart/LineChart.js +17 -15
- package/dist/components/LinkProvider/LinkProvider.d.ts +1 -1
- package/dist/components/LinkProvider/LinkProvider.js +6 -2
- package/dist/components/List/List.js +1 -1
- package/dist/components/MediaCard/MediaCard.js +2 -2
- package/dist/components/Menu/Menu.js +6 -43
- package/dist/components/Menu/entries.d.ts +1 -30
- package/dist/components/Menu/entries.js +16 -100
- package/dist/components/MultiSelect/MultiSelect.js +43 -34
- package/dist/components/NumberInput/NumberInput.js +17 -18
- package/dist/components/OtpInput/OtpInput.d.ts +1 -1
- package/dist/components/OtpInput/OtpInput.js +10 -67
- package/dist/components/PageHeader/PageHeader.js +2 -2
- package/dist/components/Pagination/Pagination.js +3 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +9 -4
- package/dist/components/Popover/Popover.d.ts +6 -7
- package/dist/components/Popover/Popover.js +2 -19
- package/dist/components/Progress/Progress.d.ts +1 -1
- package/dist/components/Progress/Progress.js +7 -11
- package/dist/components/Radio/Radio.d.ts +4 -2
- package/dist/components/RadioGroup/RadioGroup.d.ts +5 -12
- package/dist/components/RadioGroup/RadioGroup.js +6 -33
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +63 -0
- package/dist/components/RichTextEditor/RichTextEditor.js +175 -0
- package/dist/components/RichTextEditor/toolbar.d.ts +15 -0
- package/dist/components/RichTextEditor/toolbar.js +142 -0
- package/dist/components/RichTextEditor/uploads.d.ts +41 -0
- package/dist/components/RichTextEditor/uploads.js +124 -0
- package/dist/components/SearchInput/SearchInput.js +4 -2
- package/dist/components/SectionHeader/SectionHeader.js +1 -3
- package/dist/components/SegmentedControl/SegmentedControl.js +2 -12
- package/dist/components/Select/Select.d.ts +15 -16
- package/dist/components/Select/Select.js +11 -252
- package/dist/components/Slider/Slider.js +11 -21
- package/dist/components/Sparkline/Sparkline.js +8 -3
- package/dist/components/Spinner/Spinner.js +5 -2
- package/dist/components/Stack/Stack.d.ts +867 -5
- package/dist/components/Stack/Stack.js +2 -3
- package/dist/components/Stat/Stat.js +6 -3
- package/dist/components/Steps/Steps.js +6 -3
- package/dist/components/Switch/Switch.d.ts +7 -7
- package/dist/components/Switch/Switch.js +4 -10
- package/dist/components/Table/Table.js +38 -19
- package/dist/components/Tabs/Tabs.js +2 -22
- package/dist/components/Tag/Tag.js +3 -1
- package/dist/components/Text/Text.d.ts +9 -5
- package/dist/components/Text/Text.js +3 -4
- package/dist/components/TileGrid/TileGrid.js +1 -1
- package/dist/components/TimePicker/TimePicker.js +35 -33
- package/dist/components/Timeline/Timeline.js +5 -4
- package/dist/components/Toaster/Toaster.js +21 -17
- package/dist/components/Tooltip/Tooltip.d.ts +6 -6
- package/dist/components/Tooltip/Tooltip.js +3 -17
- package/dist/components/TreeView/TreeView.js +15 -12
- package/dist/components.css +281 -60
- package/dist/hooks/useTheme.js +6 -6
- package/dist/icons/message-circle.svg +1 -0
- package/dist/internal/CharCount.js +3 -1
- package/dist/internal/choice.d.ts +10 -48
- package/dist/internal/choice.js +8 -96
- package/dist/internal/describedBy.d.ts +3 -0
- package/dist/internal/describedBy.js +4 -0
- package/dist/internal/options.d.ts +10 -5
- package/dist/internal/options.js +25 -11
- package/dist/internal/status.d.ts +3 -2
- package/dist/internal/status.js +10 -2
- package/dist/internal/useScrollActive.js +2 -2
- package/dist/internal/useToday.d.ts +3 -0
- package/dist/internal/useToday.js +42 -0
- package/dist/lib/dates.js +25 -15
- package/dist/lib/format.js +11 -8
- package/dist/lib/icons.d.ts +5 -0
- package/dist/lib/icons.js +2 -0
- package/dist/lib/math.js +17 -5
- package/dist/lib/rich-text.d.ts +13 -0
- package/dist/lib/rich-text.js +62 -0
- package/dist/lib/space.d.ts +1 -2
- package/dist/lib/space.js +4 -1
- package/dist/lib/text.js +1 -1
- package/dist/lib/theme.js +1 -1
- package/dist/localization.d.ts +166 -0
- package/dist/localization.js +142 -0
- package/dist/tokens.css +2 -0
- package/dist/tokens.dtcg.json +10 -0
- package/dist/tokens.json +10 -0
- package/dist/types.d.ts +6 -1
- package/dist/vokality.css +283 -60
- package/dist/vokality.iife.js +35981 -9698
- package/docs/brand.md +8 -5
- package/docs/components/AppShell/README.md +1 -1
- package/docs/components/Badge/README.md +1 -1
- package/docs/components/BarChart/README.md +1 -0
- package/docs/components/Button/README.md +4 -2
- package/docs/components/ChatInbox/README.md +41 -0
- package/docs/components/ChatWidget/README.md +47 -0
- package/docs/components/Checkbox/README.md +7 -3
- package/docs/components/ContextMenu/README.md +7 -3
- package/docs/components/Dialog/README.md +9 -4
- package/docs/components/Drawer/README.md +1 -1
- package/docs/components/Field/README.md +1 -1
- package/docs/components/Fieldset/README.md +2 -2
- package/docs/components/Inline/README.md +1 -1
- package/docs/components/LineChart/README.md +1 -0
- package/docs/components/LocaleProvider/README.md +48 -0
- package/docs/components/Menu/README.md +13 -8
- package/docs/components/OtpInput/README.md +9 -5
- package/docs/components/PasswordInput/README.md +11 -2
- package/docs/components/Popover/README.md +6 -3
- package/docs/components/Progress/README.md +3 -1
- package/docs/components/RadioGroup/README.md +5 -2
- package/docs/components/RichTextEditor/README.md +84 -0
- package/docs/components/SegmentedControl/README.md +2 -0
- package/docs/components/Select/README.md +13 -17
- package/docs/components/Skeleton/README.md +1 -1
- package/docs/components/Slider/README.md +4 -2
- package/docs/components/Steps/README.md +1 -1
- package/docs/components/Switch/README.md +5 -2
- package/docs/components/Tabs/README.md +4 -2
- package/docs/components/Text/README.md +1 -1
- package/docs/components/Toaster/README.md +3 -1
- package/docs/components/Tooltip/README.md +5 -3
- package/package.json +49 -5
package/dist/components.css
CHANGED
|
@@ -41,7 +41,7 @@ body {
|
|
|
41
41
|
gap: 0;
|
|
42
42
|
box-sizing: border-box;
|
|
43
43
|
max-width: 100%;
|
|
44
|
-
min-height: 40px;
|
|
44
|
+
min-height: var(--button-height, 40px);
|
|
45
45
|
padding: 0;
|
|
46
46
|
font: inherit;
|
|
47
47
|
font-family: var(--font-sans);
|
|
@@ -80,7 +80,7 @@ body {
|
|
|
80
80
|
}
|
|
81
81
|
.vk-btn-ghost:hover { background: var(--primary-tint); }
|
|
82
82
|
.vk-btn-outline:disabled, .vk-btn-ghost:disabled { cursor: not-allowed; opacity: 0.5; }
|
|
83
|
-
.vk-btn-sm { min-height: 32px; font-size: 0.6875rem; }
|
|
83
|
+
.vk-btn-sm { min-height: var(--button-height-sm, 32px); font-size: 0.6875rem; }
|
|
84
84
|
.vk-btn-sm .vk-btn-label { padding: 0.4rem 0.75rem 0.4rem 0.85rem; }
|
|
85
85
|
.vk-btn-sm .vk-btn-label:only-child { padding-right: 0.85rem; }
|
|
86
86
|
.vk-btn-sm .vk-btn-glyph { width: 1.85rem; }
|
|
@@ -117,7 +117,6 @@ body {
|
|
|
117
117
|
.vk-btn-text .vk-btn-label, .vk-btn-text .vk-btn-label:only-child { padding: var(--space-xs) 0; }
|
|
118
118
|
.vk-btn-text:hover { color: var(--primary); text-decoration: underline; text-underline-offset: var(--space-xs); }
|
|
119
119
|
.vk-btn-text:disabled { cursor: not-allowed; opacity: 0.5; }
|
|
120
|
-
@media (any-pointer: coarse) { .vk-btn-text { min-height: var(--control-height); } }
|
|
121
120
|
|
|
122
121
|
/* Square glyph */
|
|
123
122
|
@keyframes vk-glyph-blink {
|
|
@@ -364,9 +363,8 @@ body {
|
|
|
364
363
|
}
|
|
365
364
|
|
|
366
365
|
.vk-badge-icon { gap: var(--space-xs); }
|
|
367
|
-
.vk-badge[tabindex] { box-sizing: border-box; min-height: var(--button-height-sm); }
|
|
366
|
+
.vk-badge[tabindex]:not([tabindex="-1"]) { box-sizing: border-box; min-height: var(--button-height-sm); }
|
|
368
367
|
.vk-badge:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
369
|
-
@media (any-pointer: coarse) { .vk-badge[tabindex] { min-height: var(--control-height); } }
|
|
370
368
|
|
|
371
369
|
/* Quote */
|
|
372
370
|
.vk-quote {
|
|
@@ -492,8 +490,8 @@ body {
|
|
|
492
490
|
align-items: center;
|
|
493
491
|
justify-content: center;
|
|
494
492
|
box-sizing: border-box;
|
|
495
|
-
width: 40px;
|
|
496
|
-
height: 40px;
|
|
493
|
+
width: var(--button-height, 40px);
|
|
494
|
+
height: var(--button-height, 40px);
|
|
497
495
|
padding: 0;
|
|
498
496
|
color: var(--foreground);
|
|
499
497
|
background: transparent;
|
|
@@ -544,9 +542,11 @@ input.vk-input:read-only, textarea.vk-input:read-only { background: transparent;
|
|
|
544
542
|
box-sizing: border-box;
|
|
545
543
|
width: 100%;
|
|
546
544
|
min-height: var(--control-height, 44px);
|
|
547
|
-
padding: 0.6rem 0.75rem;
|
|
545
|
+
padding: var(--control-padding-block, 0.6rem) 0.75rem;
|
|
548
546
|
font: inherit;
|
|
549
|
-
font-size: var(--
|
|
547
|
+
font-size: var(--control-font-size, 1rem);
|
|
548
|
+
/* One line fits inside --control-height; the inherited body line-height would make fields taller than the token. */
|
|
549
|
+
line-height: 1.25;
|
|
550
550
|
color: var(--foreground);
|
|
551
551
|
background: var(--card);
|
|
552
552
|
border: 1px solid var(--input-border);
|
|
@@ -555,7 +555,7 @@ input.vk-input:read-only, textarea.vk-input:read-only { background: transparent;
|
|
|
555
555
|
.vk-input::placeholder { color: var(--muted-subtle); }
|
|
556
556
|
.vk-input:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; border-color: var(--primary); }
|
|
557
557
|
.vk-input[aria-invalid="true"] { border-color: var(--primary); }
|
|
558
|
-
textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }
|
|
558
|
+
textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-block: 0.6rem; line-height: 1.6; }
|
|
559
559
|
.vk-select { position: relative; display: grid; min-width: 0; }
|
|
560
560
|
.vk-select-trigger {
|
|
561
561
|
display: flex;
|
|
@@ -571,7 +571,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
571
571
|
.vk-select-placeholder { color: var(--muted-subtle); }
|
|
572
572
|
.vk-select-icon {
|
|
573
573
|
position: absolute;
|
|
574
|
-
top:
|
|
574
|
+
top: calc(var(--control-height, 44px) / 2);
|
|
575
575
|
right: 0.75rem;
|
|
576
576
|
translate: 0 -50%;
|
|
577
577
|
color: var(--muted-foreground);
|
|
@@ -603,7 +603,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
603
603
|
justify-content: space-between;
|
|
604
604
|
gap: 0.75rem;
|
|
605
605
|
padding: 0.6rem 0.75rem;
|
|
606
|
-
font-size: var(--
|
|
606
|
+
font-size: var(--control-font-size, 1rem);
|
|
607
607
|
line-height: 1.4;
|
|
608
608
|
color: var(--foreground);
|
|
609
609
|
cursor: pointer;
|
|
@@ -620,13 +620,14 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
620
620
|
.vk-fieldset { min-width: 0; margin: 0; padding: var(--space-md); border: 1px solid var(--border-subtle); }
|
|
621
621
|
.vk-fieldset-legend { padding-inline: var(--space-xs); font-size: var(--text-xs); font-weight: 600; color: var(--foreground); }
|
|
622
622
|
.vk-fieldset-controls { display: grid; gap: var(--space-sm); }
|
|
623
|
-
|
|
624
|
-
.vk-fieldset-hint { margin
|
|
625
|
-
.vk-fieldset-error { margin
|
|
623
|
+
/* Hint and error take the shared field styles; only their spacing within the group is set here. */
|
|
624
|
+
.vk-fieldset-hint { margin: 0 0 var(--space-sm); }
|
|
625
|
+
.vk-fieldset-error { margin: var(--space-sm) 0 0; }
|
|
626
626
|
/* Select (Radix Select, popper position). The shared .vk-select-* rules live in styles/fields.css;
|
|
627
627
|
these cover the Radix parts: state comes from data-state, data-highlighted and data-disabled,
|
|
628
628
|
and the list is portalled and placed by Radix's popper wrapper. */
|
|
629
629
|
.vk-select-trigger { margin: 0; letter-spacing: inherit; }
|
|
630
|
+
.vk-select-trigger[data-placeholder] .vk-select-value { color: var(--muted-subtle); }
|
|
630
631
|
.vk-select-trigger[data-state="open"] { border-color: var(--primary); }
|
|
631
632
|
.vk-select-trigger[data-state="open"] .vk-select-icon { rotate: 180deg; }
|
|
632
633
|
.vk-select-content {
|
|
@@ -656,7 +657,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
656
657
|
.vk-select-content .vk-select-option[data-highlighted] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
|
|
657
658
|
}
|
|
658
659
|
@media (prefers-reduced-motion: reduce) {
|
|
659
|
-
.vk-select-content { animation: none; }
|
|
660
|
+
.vk-select-content[data-state="open"] { animation: none; }
|
|
660
661
|
}
|
|
661
662
|
/* Checkbox, radio, switch. The box and the switch track are Radix controls (buttons with data-state);
|
|
662
663
|
a standalone Radio draws the same box after a native radio (.vk-choice-input). */
|
|
@@ -736,6 +737,10 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
736
737
|
.vk-choice-group > legend { padding: 0; margin-bottom: 0.6rem; }
|
|
737
738
|
.vk-choice-list { display: grid; gap: 0.6rem; }
|
|
738
739
|
.vk-choice-group-inline .vk-choice-list { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
|
|
740
|
+
|
|
741
|
+
/* Checkbox glyphs follow the state supplied by Radix. */
|
|
742
|
+
.vk-choice-box:not([data-state="indeterminate"]) .vk-choice-dash,
|
|
743
|
+
.vk-choice-box[data-state="indeterminate"] .vk-choice-check { display: none; }
|
|
739
744
|
/* Tag */
|
|
740
745
|
.vk-tag {
|
|
741
746
|
display: inline-flex;
|
|
@@ -772,13 +777,13 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
772
777
|
|
|
773
778
|
/* Search and clear */
|
|
774
779
|
.vk-search, .vk-combobox-field { position: relative; display: grid; min-width: 0; }
|
|
775
|
-
.vk-search-icon { position: absolute; top:
|
|
780
|
+
.vk-search-icon { position: absolute; top: calc(var(--control-height, 44px) / 2); left: 0.75rem; translate: 0 -50%; color: var(--muted-foreground); pointer-events: none; }
|
|
776
781
|
.vk-search-input, .vk-has-lead { padding-left: 2.25rem; }
|
|
777
782
|
.vk-search-input { padding-right: 2.5rem; }
|
|
778
783
|
.vk-search-input::-webkit-search-cancel-button, .vk-search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
|
|
779
784
|
.vk-field-clear {
|
|
780
785
|
position: absolute;
|
|
781
|
-
top:
|
|
786
|
+
top: calc(var(--control-height, 44px) / 2);
|
|
782
787
|
right: 0.35rem;
|
|
783
788
|
translate: 0 -50%;
|
|
784
789
|
display: inline-flex;
|
|
@@ -806,7 +811,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
806
811
|
flex-wrap: wrap;
|
|
807
812
|
align-items: center;
|
|
808
813
|
gap: 0.35rem;
|
|
809
|
-
padding:
|
|
814
|
+
padding: calc((var(--control-height, 44px) - 28px) / 2) 2.5rem calc((var(--control-height, 44px) - 28px) / 2) 0.5rem;
|
|
810
815
|
cursor: text;
|
|
811
816
|
}
|
|
812
817
|
.vk-multiselect-field:focus-within { outline: 2px solid var(--ring); outline-offset: 1px; border-color: var(--primary); }
|
|
@@ -818,7 +823,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
818
823
|
height: 26px;
|
|
819
824
|
padding: 0 0.25rem;
|
|
820
825
|
font: inherit;
|
|
821
|
-
font-size: var(--
|
|
826
|
+
font-size: var(--control-font-size, 1rem);
|
|
822
827
|
color: var(--foreground);
|
|
823
828
|
background: transparent;
|
|
824
829
|
border: 0;
|
|
@@ -835,7 +840,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
835
840
|
.vk-multi-option[aria-disabled="true"] .vk-choice-box { border-style: dashed; background: transparent; }
|
|
836
841
|
|
|
837
842
|
/* Date picker and popover */
|
|
838
|
-
.vk-date-trigger { gap: 0.6rem; padding-right: 0.75rem;
|
|
843
|
+
.vk-date-trigger { gap: 0.6rem; padding-right: 0.75rem; }
|
|
839
844
|
.vk-date-trigger:disabled { cursor: not-allowed; }
|
|
840
845
|
.vk-date-trigger[data-state="open"] { border-color: var(--primary); }
|
|
841
846
|
.vk-date-icon { flex-shrink: 0; color: var(--muted-foreground); }
|
|
@@ -852,6 +857,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
852
857
|
border: 1px solid var(--border);
|
|
853
858
|
border-radius: var(--radius, 0);
|
|
854
859
|
}
|
|
860
|
+
.vk-popover-footer .vk-btn { width: auto; }
|
|
855
861
|
.vk-popover-footer { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border-subtle); }
|
|
856
862
|
|
|
857
863
|
/* The calendar panel (Radix Popover): placed by its popper wrapper, which takes the z-index from here; data-state and data-side set by Radix */
|
|
@@ -914,6 +920,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
914
920
|
.vk-day-range-end { background: linear-gradient(90deg, var(--primary-tint) 50%, transparent 50%); }
|
|
915
921
|
.vk-day[aria-disabled="true"] { color: var(--muted-subtle); text-decoration: line-through; cursor: not-allowed; border-color: transparent; }
|
|
916
922
|
.vk-day[aria-disabled="true"]:hover { border-color: transparent; }
|
|
923
|
+
.vk-day-selected[aria-disabled="true"] { color: var(--primary-foreground); border-color: var(--primary); }
|
|
917
924
|
|
|
918
925
|
/* Badge tones */
|
|
919
926
|
.vk-badge-neutral { color: var(--muted-foreground); border-color: var(--border); }
|
|
@@ -921,7 +928,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
921
928
|
.vk-badge-success { color: var(--success); border-color: var(--success-line); }
|
|
922
929
|
.vk-badge-warning { color: var(--warning); border-color: var(--warning-line); }
|
|
923
930
|
.vk-badge-danger { color: var(--danger); border-color: var(--danger-line); }
|
|
924
|
-
.vk-table .vk-icon-btn { width: 32px; height: 32px; }
|
|
931
|
+
.vk-table .vk-icon-btn { width: var(--button-height-sm, 32px); height: var(--button-height-sm, 32px); }
|
|
925
932
|
.vk-table td:has(.vk-menu-root) { padding-top: 0.25rem; padding-bottom: 0.25rem; }
|
|
926
933
|
|
|
927
934
|
/* Utilities */
|
|
@@ -1027,6 +1034,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1027
1034
|
.vk-menu-label { padding: 0.5rem 0.75rem 0.25rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-subtle); }
|
|
1028
1035
|
.vk-popover-panel { min-width: 16rem; outline: none; }
|
|
1029
1036
|
.vk-popover-title { margin: 0 0 0.75rem; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--foreground); }
|
|
1037
|
+
.vk-popover-panel > .vk-popover-footer { margin-top: var(--space-md); }
|
|
1030
1038
|
|
|
1031
1039
|
|
|
1032
1040
|
/* Radix sets pointer-events on each layer from the order layers registered in. Inside a modal
|
|
@@ -1097,6 +1105,21 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1097
1105
|
|
|
1098
1106
|
/* Tabs (Radix Tabs: data-state=active|inactive and data-disabled set by Radix) */
|
|
1099
1107
|
.vk-tablist { display: flex; gap: 1.75rem; overflow-x: auto; border-bottom: 1px solid var(--border-subtle); scrollbar-width: none; }
|
|
1108
|
+
/* A tab list that scrolls fades the edge with more tabs behind it, since its scrollbar is hidden. */
|
|
1109
|
+
@property --vk-tab-fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
|
|
1110
|
+
@property --vk-tab-fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }
|
|
1111
|
+
@keyframes vk-tablist-fade {
|
|
1112
|
+
0% { --vk-tab-fade-start: 0px; --vk-tab-fade-end: 2.5rem; }
|
|
1113
|
+
8%, 92% { --vk-tab-fade-start: 2.5rem; --vk-tab-fade-end: 2.5rem; }
|
|
1114
|
+
100% { --vk-tab-fade-start: 2.5rem; --vk-tab-fade-end: 0px; }
|
|
1115
|
+
}
|
|
1116
|
+
@supports (animation-timeline: scroll()) {
|
|
1117
|
+
.vk-tablist {
|
|
1118
|
+
mask-image: linear-gradient(to right, transparent, #000 var(--vk-tab-fade-start), #000 calc(100% - var(--vk-tab-fade-end)), transparent);
|
|
1119
|
+
animation: vk-tablist-fade linear both;
|
|
1120
|
+
animation-timeline: scroll(self inline);
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1100
1123
|
.vk-tab {
|
|
1101
1124
|
position: relative;
|
|
1102
1125
|
display: inline-flex;
|
|
@@ -1125,12 +1148,16 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1125
1148
|
.vk-tabpanel { padding-top: 1.25rem; outline: none; }
|
|
1126
1149
|
.vk-tabpanel:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
1127
1150
|
|
|
1151
|
+
|
|
1152
|
+
/* Radix forceMount preserves content; inactive panels remain visually and accessibly hidden. */
|
|
1153
|
+
.vk-tabpanel[data-state="inactive"] { display: none; }
|
|
1128
1154
|
/* Segmented control (Radix RadioGroup: each segment is an item with data-state) */
|
|
1129
|
-
.vk-segmented { display: inline-flex; border: 1px solid var(--border-subtle); border-radius: var(--radius, 0); }
|
|
1155
|
+
.vk-segmented { display: inline-flex; box-sizing: border-box; width: fit-content; min-width: 0; max-width: 100%; border: 1px solid var(--border-subtle); border-radius: var(--radius, 0); }
|
|
1130
1156
|
.vk-segment {
|
|
1131
1157
|
display: inline-flex;
|
|
1132
1158
|
align-items: center;
|
|
1133
1159
|
gap: 0.4rem;
|
|
1160
|
+
min-width: 0;
|
|
1134
1161
|
min-height: 38px;
|
|
1135
1162
|
padding: 0 0.9rem;
|
|
1136
1163
|
font: inherit;
|
|
@@ -1149,6 +1176,10 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1149
1176
|
.vk-segment:disabled { color: var(--muted-subtle); cursor: not-allowed; }
|
|
1150
1177
|
.vk-segmented-sm .vk-segment { min-height: 30px; padding: 0 0.65rem; font-size: 0.8125rem; }
|
|
1151
1178
|
|
|
1179
|
+
@media (max-width: 28rem) {
|
|
1180
|
+
.vk-segment { padding-inline: 0.65rem; }
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1152
1183
|
/* Breadcrumbs */
|
|
1153
1184
|
.vk-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0; margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
|
|
1154
1185
|
.vk-breadcrumbs li { display: inline-flex; align-items: center; }
|
|
@@ -1314,7 +1345,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1314
1345
|
.vk-spinner-label { font-size: var(--text-sm); color: var(--muted-foreground); }
|
|
1315
1346
|
.vk-skeleton {
|
|
1316
1347
|
display: block;
|
|
1317
|
-
background: var(--
|
|
1348
|
+
background: var(--border-subtle);
|
|
1318
1349
|
background-image: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--foreground) 5%, transparent) 50%, transparent 100%);
|
|
1319
1350
|
background-size: 200% 100%;
|
|
1320
1351
|
animation: vk-shimmer 1.4s linear infinite;
|
|
@@ -1362,6 +1393,13 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1362
1393
|
.vk-steps-vertical .vk-step { flex-direction: row; gap: 0.85rem; }
|
|
1363
1394
|
.vk-steps-vertical .vk-step::before { top: 34px; bottom: -14px; left: 14px; right: auto; width: 1px; height: auto; }
|
|
1364
1395
|
|
|
1396
|
+
/* Keep step labels distinct when a phone viewport cannot fit a horizontal sequence. */
|
|
1397
|
+
@media (max-width: 28rem) {
|
|
1398
|
+
.vk-steps { flex-direction: column; gap: 1.25rem; }
|
|
1399
|
+
.vk-steps .vk-step { flex-direction: row; gap: 0.85rem; }
|
|
1400
|
+
.vk-steps .vk-step::before { top: 34px; bottom: -14px; left: 14px; right: auto; width: 1px; height: auto; }
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1365
1403
|
/* Kbd, description list, stat */
|
|
1366
1404
|
.vk-kbd {
|
|
1367
1405
|
display: inline-flex;
|
|
@@ -1423,6 +1461,10 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1423
1461
|
.vk-layout-stack { display: flex; flex-direction: column; min-width: 0; }
|
|
1424
1462
|
.vk-layout-inline { display: flex; min-width: 0; }
|
|
1425
1463
|
.vk-layout-grid { display: grid; min-width: 0; }
|
|
1464
|
+
/* A row that holds a field sizes its buttons to the field, so toolbars and inline forms sit flush at --control-height. */
|
|
1465
|
+
.vk-layout-inline:has(.vk-input) > .vk-btn { min-height: var(--control-height, 44px); }
|
|
1466
|
+
.vk-layout-inline:has(.vk-input) > .vk-icon-btn { width: var(--control-height, 44px); height: var(--control-height, 44px); }
|
|
1467
|
+
.vk-layout-inline:has(.vk-input) > .vk-segmented .vk-segment { min-height: calc(var(--control-height, 44px) - 2px); }
|
|
1426
1468
|
@media (max-width: 40rem) { .vk-layout-grid-fixed { grid-template-columns: 1fr !important; } }
|
|
1427
1469
|
.vk-container { box-sizing: border-box; width: 100%; max-width: var(--content-max); margin-inline: auto; }
|
|
1428
1470
|
.vk-container-prose { max-width: calc(var(--prose-max) + 2 * var(--section-gutter)); }
|
|
@@ -1488,6 +1530,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1488
1530
|
/* Charts */
|
|
1489
1531
|
.vk-chart { display: grid; gap: 0.75rem; margin: 0; min-width: 0; }
|
|
1490
1532
|
.vk-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
|
|
1533
|
+
/* The table toggle keeps its width beside the title on narrow screens, where buttons otherwise fill the column. */
|
|
1534
|
+
.vk-chart-head .vk-btn { width: auto; flex-shrink: 0; }
|
|
1491
1535
|
.vk-chart-title { margin: 0; font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; color: var(--foreground); }
|
|
1492
1536
|
.vk-chart-description { margin: 0.2rem 0 0; font-size: var(--text-sm); color: var(--muted-foreground); }
|
|
1493
1537
|
.vk-chart-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--muted-foreground); }
|
|
@@ -1578,7 +1622,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1578
1622
|
|
|
1579
1623
|
/* Slider (Radix Slider: the track is its root, the fill its range; Radix positions the thumb's wrapper) */
|
|
1580
1624
|
.vk-slider { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; align-items: center; min-width: 0; }
|
|
1581
|
-
.vk-slider-value { grid-column: 2; grid-row: 1; font-family: var(--font-numeric); font-variant-numeric: tabular-nums; font-size: var(--text-sm); color: var(--foreground); }
|
|
1625
|
+
.vk-slider-value { grid-column: 2; grid-row: 1; font-family: var(--font-numeric); font-variant-numeric: tabular-nums; font-size: var(--text-sm); color: var(--foreground); min-width: 6ch; text-align: right; }
|
|
1582
1626
|
/* A flex box, so the absolutely positioned thumb wrapper is centred vertically. */
|
|
1583
1627
|
.vk-slider-track { grid-column: 1; grid-row: 1; position: relative; display: flex; align-items: center; height: 28px; cursor: pointer; touch-action: none; }
|
|
1584
1628
|
.vk-slider-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; translate: 0 -50%; background: var(--card); border: 1px solid var(--input-border); box-sizing: border-box; }
|
|
@@ -1591,7 +1635,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1591
1635
|
.vk-slider-limits { grid-column: 1; display: flex; justify-content: space-between; font-family: var(--font-numeric); font-size: 0.6875rem; color: var(--muted-subtle); }
|
|
1592
1636
|
/* One-time code */
|
|
1593
1637
|
.vk-otp { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
|
1594
|
-
.vk-otp-box { width: 44px; padding: 0; text-align: center; font-family: var(--font-numeric); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
|
|
1638
|
+
.vk-otp-box { width: clamp(24px, calc((100% + 0.5rem) / var(--vk-otp-length, 6) - 0.5rem), 44px); padding: 0; text-align: center; font-family: var(--font-numeric); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
|
|
1595
1639
|
|
|
1596
1640
|
/* Error summary */
|
|
1597
1641
|
.vk-error-summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
@@ -1630,13 +1674,15 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1630
1674
|
position: relative;
|
|
1631
1675
|
inset: auto;
|
|
1632
1676
|
z-index: var(--z-popover);
|
|
1677
|
+
min-width: min(13rem, var(--radix-popper-available-width, 13rem));
|
|
1678
|
+
max-width: var(--radix-popper-available-width);
|
|
1633
1679
|
max-height: var(--radix-popper-available-height);
|
|
1634
1680
|
overflow-y: auto;
|
|
1635
1681
|
outline: none;
|
|
1636
1682
|
}
|
|
1637
1683
|
.vk-menu[data-state="open"] { animation: vk-menu-in var(--motion-normal) var(--ease-standard); }
|
|
1638
1684
|
@keyframes vk-menu-in { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
|
|
1639
|
-
.vk-menu .vk-menu-item { user-select: none; }
|
|
1685
|
+
.vk-menu .vk-menu-item { flex-wrap: wrap; user-select: none; }
|
|
1640
1686
|
.vk-menu .vk-menu-item[data-highlighted],
|
|
1641
1687
|
.vk-menu .vk-menu-item[data-state="open"] { background: var(--primary-tint); }
|
|
1642
1688
|
.vk-menu .vk-menu-item-danger[data-highlighted] { background: var(--danger-tint); }
|
|
@@ -1649,6 +1695,10 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1649
1695
|
.vk-menu-dot { display: block; opacity: 1; }
|
|
1650
1696
|
.vk-menu-item[data-disabled] .vk-menu-dot { background: var(--muted-subtle); }
|
|
1651
1697
|
.vk-menu-sub-icon { color: var(--muted-subtle); }
|
|
1698
|
+
.vk-menu .vk-menu-item-label { min-width: 2em; overflow-wrap: anywhere; }
|
|
1699
|
+
.vk-menu .vk-menu-label { overflow-wrap: anywhere; }
|
|
1700
|
+
.vk-menu .vk-menu-shortcut { min-width: 2ch; max-width: 45%; overflow-wrap: anywhere; }
|
|
1701
|
+
.vk-menu .vk-menu-sub-icon { flex-shrink: 0; }
|
|
1652
1702
|
|
|
1653
1703
|
@media (forced-colors: active) {
|
|
1654
1704
|
.vk-menu .vk-menu-item[data-highlighted],
|
|
@@ -1666,25 +1716,33 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1666
1716
|
.vk-list-divided > .vk-list-item + .vk-list-item { border-top: 1px solid var(--border-subtle); }
|
|
1667
1717
|
.vk-list-bordered { border: 1px solid var(--border-subtle); }
|
|
1668
1718
|
.vk-list-bordered .vk-list-main { padding-inline: 1rem; }
|
|
1719
|
+
.vk-list-bordered .vk-list-trailing { padding-right: 1rem; }
|
|
1669
1720
|
.vk-list-item { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
|
|
1670
1721
|
.vk-list-main { flex: 1; display: flex; align-items: center; gap: 0.85rem; min-width: 0; padding: 0.75rem 0.25rem; font: inherit; text-align: left; color: inherit; text-decoration: none; background: none; border: 0; }
|
|
1671
1722
|
.vk-list-interactive { cursor: pointer; }
|
|
1672
1723
|
.vk-list-interactive:hover { background: var(--card-fill); }
|
|
1673
1724
|
.vk-list-interactive:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
|
|
1674
|
-
.vk-list-item-selected
|
|
1725
|
+
.vk-list-item-selected { background: var(--primary-tint); }
|
|
1675
1726
|
.vk-list-leading { display: inline-flex; flex-shrink: 0; color: var(--muted-foreground); }
|
|
1676
|
-
.vk-list-text { display: grid; gap: 0.1rem; flex: 1; min-width: 0; }
|
|
1727
|
+
.vk-list-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.1rem; flex: 1; min-width: 0; }
|
|
1677
1728
|
.vk-list-title { font-size: var(--text-sm); font-weight: 500; color: var(--foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1678
|
-
.vk-list-description { font-size: 0.8125rem; color: var(--muted-foreground); }
|
|
1729
|
+
.vk-list-description { font-size: 0.8125rem; color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
1679
1730
|
.vk-list-meta { flex-shrink: 0; font-family: var(--font-numeric); font-variant-numeric: tabular-nums; font-size: 0.75rem; color: var(--muted-subtle); }
|
|
1680
1731
|
.vk-list-trailing { display: inline-flex; align-items: center; gap: 0.25rem; flex-shrink: 0; padding-right: 0.25rem; }
|
|
1732
|
+
@media (max-width: 40rem) {
|
|
1733
|
+
.vk-list-main { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0.1rem; }
|
|
1734
|
+
.vk-list-main:has(.vk-list-leading) { grid-template-columns: auto minmax(0, 1fr); }
|
|
1735
|
+
.vk-list-leading { grid-column: 1; grid-row: 1 / span 2; }
|
|
1736
|
+
.vk-list-text { grid-column: -2 / -1; grid-row: 1; }
|
|
1737
|
+
.vk-list-meta { grid-column: -2 / -1; grid-row: 2; }
|
|
1738
|
+
}
|
|
1681
1739
|
|
|
1682
1740
|
/* Avatar group */
|
|
1683
1741
|
.vk-avatar-group { display: inline-flex; align-items: center; }
|
|
1684
1742
|
.vk-avatar-group-item { display: inline-flex; margin-left: -6px; }
|
|
1685
1743
|
.vk-avatar-group-item:first-child { margin-left: 0; }
|
|
1686
1744
|
.vk-avatar-group-item .vk-avatar { outline: 2px solid var(--background); }
|
|
1687
|
-
.vk-avatar-more { background: var(--card); color: var(--muted-foreground); font-
|
|
1745
|
+
.vk-avatar-more { background: var(--card); color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
|
|
1688
1746
|
|
|
1689
1747
|
/* Timeline */
|
|
1690
1748
|
.vk-timeline { margin: 0; padding: 0; list-style: none; }
|
|
@@ -1772,11 +1830,59 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1772
1830
|
.vk-codeblock-copy:hover { color: var(--foreground); background: var(--primary-tint); }
|
|
1773
1831
|
.vk-codeblock-copy:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
|
|
1774
1832
|
.vk-codeblock-pre { margin: 0; overflow-x: auto; padding: 0.9rem 1rem; font-family: var(--font-mono); font-size: 13px; line-height: 1.65; color: var(--foreground); tab-size: 2; }
|
|
1833
|
+
.vk-codeblock-pre code { font: inherit; }
|
|
1775
1834
|
.vk-codeblock-pre:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
|
|
1776
1835
|
.vk-codeblock-numbered code { counter-reset: vk-line; }
|
|
1777
1836
|
.vk-code-line { display: block; }
|
|
1778
1837
|
.vk-code-line::before { counter-increment: vk-line; content: counter(vk-line); display: inline-block; width: 2ch; margin-right: 1.25rem; text-align: right; color: var(--muted-subtle); user-select: none; }
|
|
1779
1838
|
|
|
1839
|
+
/* CommonMark editor: the editable surface and every toolbar action use system tokens. */
|
|
1840
|
+
.vk-rich { border: 1px solid var(--input-border); background: var(--card); color: var(--foreground); min-width: 0; }
|
|
1841
|
+
.vk-rich:focus-within { border-color: var(--primary); }
|
|
1842
|
+
.vk-rich[data-invalid="true"] { border-color: var(--danger); }
|
|
1843
|
+
.vk-rich[data-disabled] { border-style: dashed; color: var(--muted-subtle); background: transparent; }
|
|
1844
|
+
.vk-rich-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); padding: var(--space-xs); border-bottom: 1px solid var(--border-subtle); }
|
|
1845
|
+
.vk-rich-minimal { border-top: 1px solid var(--border-subtle); }
|
|
1846
|
+
.vk-rich-minimal .vk-rich-toolbar { border-bottom: 0; }
|
|
1847
|
+
.vk-rich-minimal-formatting { border-top: 1px solid var(--border-subtle); }
|
|
1848
|
+
.vk-rich-minimal .vk-rich-tool[data-state="open"] { color: var(--primary); background: var(--primary-tint); }
|
|
1849
|
+
.vk-rich-tool { display: inline-flex; justify-content: center; align-items: center; min-width: 32px; min-height: 32px; padding: var(--space-xs); border: 1px solid transparent; border-radius: 0; background: transparent; color: var(--foreground); font: 500 var(--text-sm)/1 var(--font-sans); cursor: pointer; }
|
|
1850
|
+
.vk-rich-tool:hover { background: var(--primary-tint); }
|
|
1851
|
+
.vk-rich-tool[aria-pressed="true"] { color: var(--primary); background: var(--primary-tint); border-color: var(--primary-line); }
|
|
1852
|
+
.vk-rich-tool:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
|
|
1853
|
+
.vk-rich-tool:disabled { color: var(--muted-subtle); cursor: not-allowed; background: transparent; }
|
|
1854
|
+
.vk-rich-separator { width: 1px; align-self: stretch; margin: var(--space-xs); background: var(--border-subtle); }
|
|
1855
|
+
.vk-rich-content { position: relative; max-width: none; min-height: 10rem; padding: var(--space-md); outline: none; white-space: pre-wrap; overflow-wrap: anywhere; word-wrap: break-word; font-size: var(--control-font-size); }
|
|
1856
|
+
.vk-rich-content:focus-visible { outline: 2px solid var(--ring); outline-offset: -3px; }
|
|
1857
|
+
.vk-rich-content[data-empty="true"]::before { content: attr(data-placeholder); position: absolute; color: var(--muted-subtle); pointer-events: none; }
|
|
1858
|
+
.vk-rich-content p:last-child { margin-bottom: 0; }
|
|
1859
|
+
.vk-rich-content li { position: relative; }
|
|
1860
|
+
.vk-rich-content pre { white-space: pre-wrap; }
|
|
1861
|
+
.vk-rich-content .ProseMirror-selectednode { outline: 2px solid var(--ring); }
|
|
1862
|
+
.vk-rich-content.ProseMirror-hideselection *::selection { background: transparent; }
|
|
1863
|
+
.vk-rich-content.ProseMirror-hideselection *::-moz-selection { background: transparent; }
|
|
1864
|
+
.vk-rich-content.ProseMirror-hideselection { caret-color: transparent; }
|
|
1865
|
+
.vk-rich-content img { max-width: 100%; height: auto; }
|
|
1866
|
+
.vk-rich-panel { position: relative; inset: auto; display: grid; gap: var(--space-md); box-sizing: border-box; width: min(22rem, calc(100vw - 2 * var(--space-md))); max-width: var(--radix-popover-content-available-width); max-height: var(--radix-popover-content-available-height); overflow-y: auto; padding: var(--space-md); }
|
|
1867
|
+
.vk-rich-panel-field { display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
|
|
1868
|
+
.vk-rich-panel-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }
|
|
1869
|
+
.vk-rich-panel-actions .vk-btn { width: auto; }
|
|
1870
|
+
.vk-rich-upload .vk-link { appearance: none; align-items: center; padding: var(--space-xs) 0; border: 0; border-radius: 0; background: transparent; font: inherit; cursor: pointer; }
|
|
1871
|
+
.vk-rich-upload .vk-link:disabled { color: var(--muted-subtle); cursor: not-allowed; }
|
|
1872
|
+
.vk-rich-emoji { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-xs); }
|
|
1873
|
+
.vk-rich-emoji .vk-rich-tool { font-size: var(--text-xl); }
|
|
1874
|
+
.vk-rich-uploads { margin: 0; padding: var(--space-sm) var(--space-md); list-style: none; border-top: 1px solid var(--border-subtle); }
|
|
1875
|
+
.vk-rich-upload { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); padding-block: var(--space-xs); font-size: var(--text-sm); overflow-wrap: anywhere; }
|
|
1876
|
+
.vk-rich-upload-status { color: var(--muted-foreground); }
|
|
1877
|
+
.vk-rich-upload .vk-link { min-height: 24px; }
|
|
1878
|
+
@media (any-pointer: coarse) {
|
|
1879
|
+
.vk-rich-tool, .vk-rich-upload .vk-link { min-width: var(--control-height); min-height: var(--control-height); }
|
|
1880
|
+
}
|
|
1881
|
+
@media (forced-colors: active) {
|
|
1882
|
+
.vk-rich-tool[aria-pressed="true"] { forced-color-adjust: none; color: HighlightText; background: Highlight; border-color: Highlight; }
|
|
1883
|
+
.vk-rich-content:focus-visible, .vk-rich-tool:focus-visible { outline-color: Highlight; }
|
|
1884
|
+
.vk-rich[data-disabled] { border-color: GrayText; }
|
|
1885
|
+
}
|
|
1780
1886
|
/* Figure */
|
|
1781
1887
|
.vk-figure { margin: 0; min-width: 0; }
|
|
1782
1888
|
.vk-figure-media { max-width: 100%; overflow: hidden; background: var(--media-placeholder); border: 1px solid var(--border-subtle); }
|
|
@@ -1796,30 +1902,125 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1796
1902
|
.vk-cmd-item-active { background: var(--primary-tint); }
|
|
1797
1903
|
.vk-cmd-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; padding: 0.55rem 0.85rem; font-size: 0.75rem; color: var(--muted-subtle); border-top: 1px solid var(--border-subtle); }
|
|
1798
1904
|
|
|
1799
|
-
/*
|
|
1800
|
-
|
|
1905
|
+
/* Shared chat presentation. Applications supply the rendered content and delivery state. */
|
|
1906
|
+
.vk-chat-panel { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; color: var(--foreground); }
|
|
1907
|
+
.vk-chat-header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: var(--space-sm); min-width: 0; padding: var(--space-md); border-bottom: 1px solid var(--border-subtle); }
|
|
1908
|
+
.vk-chat-heading { display: grid; gap: var(--space-xs); min-width: 0; }
|
|
1909
|
+
.vk-chat-title { min-width: 0; margin: 0; font: 600 var(--text-base)/1.4 var(--font-display); color: var(--foreground); overflow-wrap: anywhere; }
|
|
1910
|
+
.vk-chat-title:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
1911
|
+
.vk-chat-description { font-size: var(--text-sm); line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
1912
|
+
.vk-chat-header > .vk-icon-btn { flex-shrink: 0; }
|
|
1913
|
+
.vk-chat-transcript { flex: 1; min-width: 0; min-height: 4rem; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-md); scrollbar-gutter: stable; }
|
|
1914
|
+
.vk-chat-transcript:focus-visible { outline: 2px solid var(--ring); outline-offset: -3px; }
|
|
1915
|
+
.vk-chat-messages { display: grid; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
|
|
1916
|
+
.vk-chat-message { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm); min-width: 0; max-width: 94%; }
|
|
1917
|
+
.vk-chat-message-outgoing { margin-inline-start: auto; }
|
|
1918
|
+
.vk-chat-message-avatar { display: inline-flex; padding-top: var(--space-xs); }
|
|
1919
|
+
.vk-chat-message-body { min-width: 0; padding: var(--space-sm) var(--space-md); border: 1px solid var(--border-subtle); background: var(--card-fill); }
|
|
1920
|
+
.vk-chat-message-outgoing .vk-chat-message-body { border-color: var(--primary-line); background: var(--primary-tint); }
|
|
1921
|
+
.vk-chat-message-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-sm); margin-bottom: var(--space-xs); }
|
|
1922
|
+
.vk-chat-message-author { font-size: var(--text-xs); font-weight: 600; color: var(--foreground); overflow-wrap: anywhere; }
|
|
1923
|
+
.vk-chat-message-time { font: var(--text-xs)/1.5 var(--font-numeric); font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
|
|
1924
|
+
.vk-chat-message-content { min-width: 0; max-width: none; font-size: var(--text-sm); color: var(--foreground); white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
1925
|
+
.vk-chat-message-content > :last-child { margin-bottom: 0; }
|
|
1926
|
+
.vk-chat-message-content pre { max-width: 100%; box-sizing: border-box; white-space: pre; }
|
|
1927
|
+
.vk-chat-message-content img { max-width: 100%; height: auto; }
|
|
1928
|
+
.vk-chat-message-content .vk-rich[data-readonly] { border: 0; background: transparent; }
|
|
1929
|
+
.vk-chat-message-content .vk-rich[data-readonly] .vk-rich-content { min-height: 0; padding: 0; font-size: inherit; }
|
|
1930
|
+
.vk-chat-delivery { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
1931
|
+
.vk-chat-delivery-failed { color: var(--danger); }
|
|
1932
|
+
.vk-chat-delivery .vk-btn { width: auto; }
|
|
1933
|
+
.vk-chat-empty { display: grid; align-content: center; min-width: 0; padding: var(--space-xl) var(--space-md); font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
1934
|
+
.vk-chat-pending { padding-block: var(--space-md); font-size: var(--text-sm); color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
1935
|
+
.vk-chat-feedback { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-top: 1px solid var(--danger-line); color: var(--danger); font-size: var(--text-sm); overflow-wrap: anywhere; }
|
|
1936
|
+
.vk-chat-feedback > div { flex: 1; min-width: 0; }
|
|
1937
|
+
.vk-chat-feedback .vk-btn { width: auto; }
|
|
1938
|
+
.vk-chat-composer { display: grid; grid-template-rows: minmax(0, 1fr) auto; flex: 0 1 auto; gap: var(--space-sm); box-sizing: border-box; min-width: 0; min-height: 0; max-height: 65%; overflow: hidden; padding: var(--space-md); border-top: 1px solid var(--border-subtle); background: var(--background); }
|
|
1939
|
+
.vk-chat-composer > .vk-field { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
|
|
1940
|
+
.vk-chat-composer .vk-rich-content { min-height: 4rem; max-height: 8rem; overflow-y: auto; padding: var(--space-sm); }
|
|
1941
|
+
.vk-chat-composer-actions { display: flex; justify-content: flex-end; }
|
|
1942
|
+
.vk-chat-composer-actions .vk-btn { width: auto; }
|
|
1943
|
+
@media (max-width: 40rem) {
|
|
1944
|
+
.vk-chat-header, .vk-chat-transcript, .vk-chat-composer { padding: var(--space-sm); }
|
|
1945
|
+
.vk-chat-message { max-width: 100%; }
|
|
1946
|
+
.vk-chat-message-body { padding: var(--space-sm); }
|
|
1947
|
+
}
|
|
1948
|
+
@media (forced-colors: active) {
|
|
1949
|
+
.vk-chat-message-outgoing .vk-chat-message-body { border-color: Highlight; }
|
|
1950
|
+
.vk-chat-delivery-failed, .vk-chat-feedback { color: CanvasText; }
|
|
1951
|
+
}
|
|
1952
|
+
.vk-chat-widget-launcher { position: fixed; z-index: var(--z-fixed); inset-block-end: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px)); inset-inline-end: calc(var(--space-lg) + env(safe-area-inset-right, 0px)); }
|
|
1953
|
+
.vk-chat-widget-start { inset-inline-end: auto; inset-inline-start: calc(var(--space-lg) + env(safe-area-inset-left, 0px)); }
|
|
1954
|
+
.vk-chat-widget-trigger { width: 52px; height: 52px; border-color: var(--primary); background: var(--background); color: var(--primary); }
|
|
1955
|
+
.vk-chat-widget-trigger:hover, .vk-chat-widget-trigger[data-state="open"] { background: var(--primary-tint); }
|
|
1956
|
+
.vk-chat-unread { position: absolute; inset-block-start: -0.4rem; inset-inline-end: -0.4rem; display: grid; place-items: center; min-width: 1.25rem; padding: 0.1rem 0.25rem; border: 1px solid var(--background); background: var(--primary); color: var(--primary-foreground); font: 600 var(--text-xs)/1.4 var(--font-numeric); pointer-events: none; }
|
|
1957
|
+
.vk-chat-widget-panel { display: flex; flex-direction: column; box-sizing: border-box; width: min(26rem, calc(100vw - 1.5rem)); height: min(38rem, calc(100dvh - 7rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))); max-height: var(--radix-popover-content-available-height); min-height: 0; overflow: hidden; background: var(--background); color: var(--foreground); border: 1px solid var(--border); outline: none; z-index: var(--z-popover); }
|
|
1958
|
+
.vk-chat-widget-panel .vk-chat-header { background: var(--surface-elevated); }
|
|
1959
|
+
.vk-chat-widget-panel { transform-origin: var(--radix-popover-content-transform-origin); }
|
|
1960
|
+
.vk-chat-widget-panel[data-state="closed"] { pointer-events: none; }
|
|
1961
|
+
@media (max-height: 32rem) {
|
|
1962
|
+
.vk-chat-widget-panel .vk-chat-header, .vk-chat-widget-panel .vk-chat-transcript, .vk-chat-widget-panel .vk-chat-composer { padding: var(--space-sm); }
|
|
1963
|
+
.vk-chat-widget-panel .vk-chat-transcript { flex: 0 1 4rem; min-height: 0; max-height: 25%; }
|
|
1964
|
+
.vk-chat-widget-panel .vk-chat-composer { flex: 1; max-height: none; }
|
|
1965
|
+
.vk-chat-widget-panel .vk-chat-composer .vk-rich-content { min-height: 2rem; padding-block: var(--space-xs); }
|
|
1966
|
+
}
|
|
1967
|
+
@media (forced-colors: active) {
|
|
1968
|
+
.vk-chat-widget-trigger { border-color: ButtonText; color: ButtonText; }
|
|
1969
|
+
.vk-chat-unread { background: Highlight; color: HighlightText; }
|
|
1970
|
+
}
|
|
1971
|
+
.vk-chat-inbox { container-type: inline-size; display: grid; grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr); box-sizing: border-box; width: 100%; height: min(42rem, calc(100dvh - 2 * var(--space-md))); min-width: 0; min-height: 0; border: 1px solid var(--border-subtle); background: var(--background); color: var(--foreground); }
|
|
1972
|
+
.vk-chat-inbox-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-inline-end: 1px solid var(--border-subtle); }
|
|
1973
|
+
.vk-chat-threads { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0; list-style: none; }
|
|
1974
|
+
.vk-chat-threads > li + li { border-top: 1px solid var(--border-subtle); }
|
|
1975
|
+
.vk-chat-thread { display: flex; align-items: flex-start; gap: var(--space-sm); box-sizing: border-box; width: 100%; min-height: var(--control-height); padding: var(--space-md); border: 0; background: transparent; color: var(--foreground); text-align: start; font: inherit; cursor: pointer; }
|
|
1976
|
+
.vk-chat-thread:hover { background: var(--card-fill); }
|
|
1977
|
+
.vk-chat-thread[aria-current="true"] { background: var(--primary-tint); }
|
|
1978
|
+
.vk-chat-thread:focus-visible { outline: 2px solid var(--ring); outline-offset: -3px; }
|
|
1979
|
+
.vk-chat-thread:disabled { color: var(--muted-subtle); cursor: not-allowed; }
|
|
1980
|
+
.vk-chat-thread-text { display: grid; gap: var(--space-xs); flex: 1; min-width: 0; }
|
|
1981
|
+
.vk-chat-thread-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); font-weight: 600; }
|
|
1982
|
+
.vk-chat-thread-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--text-sm); color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
1983
|
+
.vk-chat-thread-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs); font: var(--text-xs)/1.5 var(--font-numeric); color: var(--muted-foreground); }
|
|
1984
|
+
.vk-chat-thread-count { padding-inline: var(--space-xs); border: 1px solid var(--primary-line); background: var(--primary-tint); color: var(--foreground); }
|
|
1985
|
+
.vk-chat-inbox-detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
|
|
1986
|
+
.vk-chat-no-selection { flex: 1; }
|
|
1987
|
+
.vk-chat-back { display: none; }
|
|
1988
|
+
@container (max-width: 40rem) {
|
|
1989
|
+
.vk-chat-inbox-list { border-inline-end: 0; }
|
|
1990
|
+
.vk-chat-inbox:not(.vk-chat-inbox-selected) .vk-chat-inbox-detail, .vk-chat-inbox-selected .vk-chat-inbox-list { display: none; }
|
|
1991
|
+
.vk-chat-inbox-detail, .vk-chat-inbox-list { grid-column: 1 / -1; }
|
|
1992
|
+
.vk-chat-back { display: inline-flex; }
|
|
1993
|
+
.vk-chat-inbox-detail > .vk-chat-header { justify-content: flex-start; }
|
|
1994
|
+
}
|
|
1995
|
+
/* Opt in on html so portalled controls use the same density as their triggers.
|
|
1996
|
+
Components size controls from the control and button tokens, so density redefines those; component-specific sizes still win.
|
|
1997
|
+
On fine pointers the control height is 32px; with any coarse pointer it stays 44px, and buttons follow it either way. */
|
|
1998
|
+
[data-density="compact"] { --button-height: var(--control-height); --button-height-sm: var(--control-height); }
|
|
1801
1999
|
html[data-density="compact"] body { font-size: var(--text-sm); }
|
|
1802
|
-
[data-density="compact"] .vk-page-header { container-type: inline-size; gap: var(--space-sm); padding-block: 0; }
|
|
2000
|
+
[data-density="compact"] .vk-page-header { container-type: inline-size; box-sizing: border-box; width: 100%; gap: var(--space-sm); padding-block: 0; }
|
|
1803
2001
|
[data-density="compact"] .vk-page-header-divider { padding-bottom: var(--space-md); margin-bottom: 0; }
|
|
1804
2002
|
[data-density="compact"] .vk-page-header-row { display: grid; grid-template-columns: minmax(min-content, 1fr) minmax(0, auto); align-items: center; gap: var(--space-xs) var(--space-md); }
|
|
1805
2003
|
[data-density="compact"] .vk-page-header-text { display: contents; }
|
|
1806
2004
|
[data-density="compact"] .vk-page-header-title { grid-column: 1; grid-row: 1; }
|
|
1807
2005
|
[data-density="compact"] .vk-page-header-description { grid-column: 1; grid-row: 2; max-width: var(--prose-max); }
|
|
1808
|
-
[data-density="compact"] .vk-page-header-actions { grid-column: 2; grid-row: 1; min-width: 0; }
|
|
2006
|
+
[data-density="compact"] .vk-page-header-actions { grid-column: 2; grid-row: 1; justify-self: start; min-width: 0; }
|
|
1809
2007
|
[data-density="compact"] .vk-page-header-eyebrow { grid-column: 1; grid-row: 1; }
|
|
1810
2008
|
[data-density="compact"] .vk-page-header-row:has(.vk-page-header-eyebrow) .vk-page-header-title,
|
|
1811
2009
|
[data-density="compact"] .vk-page-header-row:has(.vk-page-header-eyebrow) .vk-page-header-actions { grid-row: 2; }
|
|
1812
2010
|
[data-density="compact"] .vk-page-header-row:has(.vk-page-header-eyebrow) .vk-page-header-description { grid-row: 3; }
|
|
1813
2011
|
[data-density="compact"] .vk-page-header-title, [data-density="compact"] .vk-text-heading-1 { font-size: var(--text-xl); line-height: 1.3; }
|
|
1814
|
-
[data-density="compact"] .vk-page-header-description, [data-density="compact"] .vk-text-body
|
|
2012
|
+
[data-density="compact"] .vk-page-header-description, [data-density="compact"] .vk-text-body { font-size: var(--text-sm); }
|
|
2013
|
+
[data-density="compact"] .vk-text-body-sm { font-size: 0.8125rem; }
|
|
2014
|
+
[data-density="compact"] .vk-text-small { font-size: var(--text-xs); }
|
|
2015
|
+
[data-density="compact"] .vk-text-lead, [data-density="compact"] .vk-section-lead { font-size: var(--text-base); }
|
|
1815
2016
|
[data-density="compact"] .vk-section-header { margin-bottom: 0; }
|
|
1816
|
-
[data-density="compact"] .vk-section-heading, [data-density="compact"] .vk-text-heading-2, [data-density="compact"] .vk-text-title, [data-density="compact"] .vk-text-title-sm
|
|
2017
|
+
[data-density="compact"] .vk-section-heading, [data-density="compact"] .vk-text-heading-2, [data-density="compact"] .vk-text-title, [data-density="compact"] .vk-text-title-sm,
|
|
2018
|
+
[data-density="compact"] .vk-card-title, [data-density="compact"] .vk-empty-title, [data-density="compact"] .vk-media-card-title { font-size: var(--text-base); line-height: 1.4; }
|
|
1817
2019
|
[data-density="compact"] .vk-section-heading { font-weight: 600; text-transform: none; letter-spacing: normal; }
|
|
1818
|
-
[data-density="compact"] .vk-text-meta { font-size: var(--text-xs); }
|
|
1819
2020
|
[data-density="compact"] .vk-stat-value { font-size: var(--text-2xl); }
|
|
1820
2021
|
[data-density="compact"] .vk-shell-main { padding: var(--space-lg); }
|
|
1821
2022
|
[data-density="compact"] .vk-shell-topbar > .vk-icon-btn { flex-shrink: 0; }
|
|
1822
|
-
[data-density="compact"] .vk-shell-brand { flex:
|
|
2023
|
+
[data-density="compact"] .vk-shell-brand { flex: 0 1 auto; min-width: 0; }
|
|
1823
2024
|
[data-density="compact"] .vk-shell-brand > * { min-width: 0; max-width: 100%; }
|
|
1824
2025
|
[data-density="compact"] .vk-shell-actions { flex: 0 1 auto; min-width: 0; }
|
|
1825
2026
|
[data-density="compact"] .vk-shell-actions > * { min-width: 0; max-width: 100%; }
|
|
@@ -1827,35 +2028,55 @@ html[data-density="compact"] body { font-size: var(--text-sm); }
|
|
|
1827
2028
|
[data-density="compact"] .vk-shell-actions .vk-btn-label { display: block; min-width: 0; align-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
1828
2029
|
[data-density="compact"] .vk-dialog-title { font-size: var(--text-base); }
|
|
1829
2030
|
[data-density="compact"] .vk-accordion-trigger { font-size: var(--text-sm); padding-block: var(--space-sm); }
|
|
1830
|
-
[data-density="compact"] .vk-input { min-height: var(--density-control-height); padding-block: var(--space-xs); line-height: 1.4; }
|
|
1831
|
-
[data-density="compact"] .vk-affix-row { min-height: var(--density-control-height); }
|
|
1832
|
-
[data-density="compact"] .vk-affix-row > .vk-input { min-height: 0; }
|
|
1833
|
-
[data-density="compact"] .vk-btn { min-height: var(--density-control-height); font-size: var(--text-xs); }
|
|
1834
2031
|
[data-density="compact"] .vk-btn-text { font-size: var(--text-sm); }
|
|
1835
|
-
[data-density="compact"] .vk-btn .vk-btn-label { padding: var(--space-xs) var(--space-sm); }
|
|
1836
|
-
[data-density="compact"] .vk-btn-text .vk-btn-label { padding-inline: 0; }
|
|
1837
|
-
[data-density="compact"] .vk-icon-btn { width: var(--density-control-height); height: var(--density-control-height); }
|
|
1838
|
-
[data-density="compact"] .vk-search-icon, [data-density="compact"] .vk-select-icon, [data-density="compact"] .vk-field-clear { top: calc(var(--density-control-height) / 2); }
|
|
1839
|
-
[data-density="compact"] .vk-field-clear { width: var(--density-control-height); height: var(--density-control-height); right: 0; }
|
|
1840
|
-
[data-density="compact"] .vk-badge[tabindex] { min-height: var(--density-control-height); }
|
|
2032
|
+
[data-density="compact"] .vk-btn:not(.vk-btn-sm, .vk-btn-text) .vk-btn-label { padding: var(--space-xs) var(--space-sm); }
|
|
1841
2033
|
[data-density="compact"] .vk-segmented { min-width: 0; max-width: 100%; align-self: flex-start; }
|
|
1842
|
-
[data-density="compact"] .vk-segment { min-width: 0; min-height: var(--
|
|
2034
|
+
[data-density="compact"] .vk-segment { min-width: 0; min-height: calc(var(--control-height) - 2px); padding: var(--space-xs) var(--space-sm); font-size: var(--text-sm); overflow-wrap: anywhere; }
|
|
1843
2035
|
@container (max-width: 40rem) {
|
|
1844
2036
|
[data-density="compact"] .vk-page-header-row { grid-template-columns: minmax(0, 1fr); }
|
|
1845
|
-
[data-density="compact"] .vk-page-header-row .vk-page-header-actions
|
|
2037
|
+
[data-density="compact"] .vk-page-header-row .vk-page-header-actions,
|
|
2038
|
+
[data-density="compact"] .vk-page-header-row:has(.vk-page-header-eyebrow) .vk-page-header-actions { grid-column: 1; grid-row: auto; margin-top: var(--space-xs); }
|
|
1846
2039
|
}
|
|
1847
2040
|
@media (max-width: 48rem) {
|
|
1848
2041
|
[data-density="compact"] .vk-shell-actions { max-width: 45%; }
|
|
1849
2042
|
}
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
}
|
|
2043
|
+
/* Data-dense components: tighter rows, cells and cards. Touch keeps 44px rows through accessibility.css. */
|
|
2044
|
+
[data-density="compact"] .vk-table td, [data-density="compact"] .vk-table tbody th { padding: var(--space-sm) var(--space-md); }
|
|
2045
|
+
[data-density="compact"] .vk-table thead th { padding: var(--space-xs) var(--space-md); }
|
|
2046
|
+
[data-density="compact"] .vk-list-main { padding-block: var(--space-sm); }
|
|
2047
|
+
[data-density="compact"] .vk-navlist-item, [data-density="compact"] .vk-menu-item { min-height: var(--control-height); padding-block: var(--space-xs); }
|
|
2048
|
+
[data-density="compact"] .vk-card { gap: var(--space-sm); padding: var(--space-md); }
|
|
2049
|
+
[data-density="compact"] .vk-card-body { font-size: var(--text-sm); }
|
|
2050
|
+
[data-density="compact"] .vk-page { min-width: var(--control-height); height: var(--control-height); }
|
|
2051
|
+
/* Fine pointers only: with any coarse pointer, controls keep 44px targets and 16px text (iOS zooms smaller inputs on focus). */
|
|
2052
|
+
@media (pointer: fine) and (not (any-pointer: coarse)) {
|
|
2053
|
+
[data-density="compact"] { --control-height: 32px; --control-font-size: var(--text-sm); --control-padding-block: var(--space-xs); }
|
|
2054
|
+
}
|
|
2055
|
+
/* Touch: buttons and rows meet a 44px target in every density (WCAG 2.5.5, Apple HIG); density only tightens fine-pointer layouts. */
|
|
2056
|
+
@media (any-pointer: coarse) {
|
|
2057
|
+
:root { --button-height: var(--control-height); --button-height-sm: var(--control-height); }
|
|
2058
|
+
.vk-navlist-item, .vk-menu-item, .vk-tree-row, .vk-accordion-trigger, .vk-choice { min-height: var(--control-height); }
|
|
2059
|
+
.vk-page { min-width: var(--control-height); height: var(--control-height); }
|
|
2060
|
+
.vk-day { height: var(--control-height); }
|
|
2061
|
+
.vk-segmented .vk-segment { min-height: calc(var(--control-height) - 2px); }
|
|
2062
|
+
.vk-calendar-header .vk-icon-btn { width: var(--control-height); height: var(--control-height); }
|
|
2063
|
+
.vk-stepper-btn, .vk-tab { min-width: var(--control-height); justify-content: center; }
|
|
2064
|
+
.vk-codeblock-copy { min-height: var(--control-height); }
|
|
2065
|
+
.vk-field-clear { width: var(--control-height); height: var(--control-height); right: 0; }
|
|
2066
|
+
.vk-search-input, .vk-date-input { padding-right: calc(var(--control-height) + var(--space-xs)); }
|
|
2067
|
+
/* Single-line choices centre the box in their 44px row; with a description the box stays on the first line. */
|
|
2068
|
+
.vk-choice:not(:has(.vk-choice-description)) { align-items: center; }
|
|
2069
|
+
.vk-choice:not(:has(.vk-choice-description)) :is(.vk-choice-box, .vk-switch-track) { margin-top: 0; }
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
/* Small controls keep their look and extend their hit area: at least 24px (WCAG 2.5.8), 44px on touch where neighbours allow. */
|
|
2073
|
+
.vk-tag-remove, .vk-th-sort, .vk-alert-close, .vk-slider-thumb { position: relative; }
|
|
2074
|
+
.vk-tag-remove::after, .vk-th-sort::after, .vk-alert-close::after, .vk-slider-thumb::after { content: ""; position: absolute; top: 50%; left: 50%; width: max(100%, 24px); height: max(100%, 24px); translate: -50% -50%; }
|
|
1853
2075
|
@media (any-pointer: coarse) {
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
[data-density="compact"] .vk-choice { min-height: var(--control-height); align-items: center; }
|
|
1857
|
-
[data-density="compact"] .vk-choice-box, [data-density="compact"] .vk-switch-track { margin-top: 0; }
|
|
2076
|
+
.vk-th-sort::after { height: 44px; }
|
|
2077
|
+
.vk-alert-close::after, .vk-slider-thumb::after { width: 44px; height: 44px; }
|
|
1858
2078
|
}
|
|
2079
|
+
|
|
1859
2080
|
/* Windows high-contrast (forced colors): restore state that relied on fills */
|
|
1860
2081
|
@media (forced-colors: active) {
|
|
1861
2082
|
.vk-choice .vk-choice-box:is([data-state="checked"], [data-state="indeterminate"]),
|
|
@@ -1868,7 +2089,7 @@ html[data-density="compact"] body { font-size: var(--text-sm); }
|
|
|
1868
2089
|
.vk-tab[aria-selected="true"]::after, .vk-slider-fill, .vk-progress-fill, .vk-slider-thumb { forced-color-adjust: none; background: Highlight; }
|
|
1869
2090
|
.vk-progress-track[data-state="indeterminate"] { forced-color-adjust: none; background: repeating-linear-gradient(-45deg, Canvas, Canvas 4px, Highlight 4px, Highlight 6px); }
|
|
1870
2091
|
.vk-select-option-active, .vk-menu-item:focus, .vk-cmd-item-active, .vk-tree-row-selected, .vk-navlist-item-active,
|
|
1871
|
-
.vk-list-item-selected
|
|
2092
|
+
.vk-list-item-selected, .vk-table .vk-tr-selected, .vk-day-selected, .vk-segment[aria-checked="true"], .vk-page[aria-current="page"],
|
|
1872
2093
|
.vk-tile-active { forced-color-adjust: none; background: Highlight; color: HighlightText; }
|
|
1873
2094
|
.vk-day-in-range { forced-color-adjust: none; background: transparent; outline: 1px dashed Highlight; outline-offset: -3px; }
|
|
1874
2095
|
.vk-spinner { border-color: CanvasText; border-top-color: Highlight; }
|
|
@@ -1879,7 +2100,7 @@ html[data-density="compact"] body { font-size: var(--text-sm); }
|
|
|
1879
2100
|
}
|
|
1880
2101
|
|
|
1881
2102
|
@media (prefers-reduced-motion: reduce) {
|
|
1882
|
-
.vk-btn-spinner { animation
|
|
2103
|
+
.vk-btn-spinner { animation: none; }
|
|
1883
2104
|
.vk-tree-caret { transition: none; }
|
|
1884
2105
|
.vk-toast, .vk-overlay, .vk-dialog, .vk-progress-track[data-state="indeterminate"], .vk-spinner, .vk-skeleton { animation: none; }
|
|
1885
2106
|
.vk-accordion-icon, .vk-progress-fill, .vk-dropzone { transition: none; }
|