@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/vokality.css
CHANGED
|
@@ -269,6 +269,8 @@
|
|
|
269
269
|
--sidebar-width: 15rem;
|
|
270
270
|
--topbar-height: 56px;
|
|
271
271
|
--control-height: 44px;
|
|
272
|
+
--control-font-size: 1rem;
|
|
273
|
+
--control-padding-block: 0.6rem;
|
|
272
274
|
--button-height: 40px;
|
|
273
275
|
--button-height-sm: 32px;
|
|
274
276
|
--font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
|
|
@@ -382,7 +384,7 @@ body {
|
|
|
382
384
|
gap: 0;
|
|
383
385
|
box-sizing: border-box;
|
|
384
386
|
max-width: 100%;
|
|
385
|
-
min-height: 40px;
|
|
387
|
+
min-height: var(--button-height, 40px);
|
|
386
388
|
padding: 0;
|
|
387
389
|
font: inherit;
|
|
388
390
|
font-family: var(--font-sans);
|
|
@@ -421,7 +423,7 @@ body {
|
|
|
421
423
|
}
|
|
422
424
|
.vk-btn-ghost:hover { background: var(--primary-tint); }
|
|
423
425
|
.vk-btn-outline:disabled, .vk-btn-ghost:disabled { cursor: not-allowed; opacity: 0.5; }
|
|
424
|
-
.vk-btn-sm { min-height: 32px; font-size: 0.6875rem; }
|
|
426
|
+
.vk-btn-sm { min-height: var(--button-height-sm, 32px); font-size: 0.6875rem; }
|
|
425
427
|
.vk-btn-sm .vk-btn-label { padding: 0.4rem 0.75rem 0.4rem 0.85rem; }
|
|
426
428
|
.vk-btn-sm .vk-btn-label:only-child { padding-right: 0.85rem; }
|
|
427
429
|
.vk-btn-sm .vk-btn-glyph { width: 1.85rem; }
|
|
@@ -458,7 +460,6 @@ body {
|
|
|
458
460
|
.vk-btn-text .vk-btn-label, .vk-btn-text .vk-btn-label:only-child { padding: var(--space-xs) 0; }
|
|
459
461
|
.vk-btn-text:hover { color: var(--primary); text-decoration: underline; text-underline-offset: var(--space-xs); }
|
|
460
462
|
.vk-btn-text:disabled { cursor: not-allowed; opacity: 0.5; }
|
|
461
|
-
@media (any-pointer: coarse) { .vk-btn-text { min-height: var(--control-height); } }
|
|
462
463
|
|
|
463
464
|
/* Square glyph */
|
|
464
465
|
@keyframes vk-glyph-blink {
|
|
@@ -705,9 +706,8 @@ body {
|
|
|
705
706
|
}
|
|
706
707
|
|
|
707
708
|
.vk-badge-icon { gap: var(--space-xs); }
|
|
708
|
-
.vk-badge[tabindex] { box-sizing: border-box; min-height: var(--button-height-sm); }
|
|
709
|
+
.vk-badge[tabindex]:not([tabindex="-1"]) { box-sizing: border-box; min-height: var(--button-height-sm); }
|
|
709
710
|
.vk-badge:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
710
|
-
@media (any-pointer: coarse) { .vk-badge[tabindex] { min-height: var(--control-height); } }
|
|
711
711
|
|
|
712
712
|
/* Quote */
|
|
713
713
|
.vk-quote {
|
|
@@ -833,8 +833,8 @@ body {
|
|
|
833
833
|
align-items: center;
|
|
834
834
|
justify-content: center;
|
|
835
835
|
box-sizing: border-box;
|
|
836
|
-
width: 40px;
|
|
837
|
-
height: 40px;
|
|
836
|
+
width: var(--button-height, 40px);
|
|
837
|
+
height: var(--button-height, 40px);
|
|
838
838
|
padding: 0;
|
|
839
839
|
color: var(--foreground);
|
|
840
840
|
background: transparent;
|
|
@@ -885,9 +885,11 @@ input.vk-input:read-only, textarea.vk-input:read-only { background: transparent;
|
|
|
885
885
|
box-sizing: border-box;
|
|
886
886
|
width: 100%;
|
|
887
887
|
min-height: var(--control-height, 44px);
|
|
888
|
-
padding: 0.6rem 0.75rem;
|
|
888
|
+
padding: var(--control-padding-block, 0.6rem) 0.75rem;
|
|
889
889
|
font: inherit;
|
|
890
|
-
font-size: var(--
|
|
890
|
+
font-size: var(--control-font-size, 1rem);
|
|
891
|
+
/* One line fits inside --control-height; the inherited body line-height would make fields taller than the token. */
|
|
892
|
+
line-height: 1.25;
|
|
891
893
|
color: var(--foreground);
|
|
892
894
|
background: var(--card);
|
|
893
895
|
border: 1px solid var(--input-border);
|
|
@@ -896,7 +898,7 @@ input.vk-input:read-only, textarea.vk-input:read-only { background: transparent;
|
|
|
896
898
|
.vk-input::placeholder { color: var(--muted-subtle); }
|
|
897
899
|
.vk-input:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; border-color: var(--primary); }
|
|
898
900
|
.vk-input[aria-invalid="true"] { border-color: var(--primary); }
|
|
899
|
-
textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }
|
|
901
|
+
textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-block: 0.6rem; line-height: 1.6; }
|
|
900
902
|
.vk-select { position: relative; display: grid; min-width: 0; }
|
|
901
903
|
.vk-select-trigger {
|
|
902
904
|
display: flex;
|
|
@@ -912,7 +914,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
912
914
|
.vk-select-placeholder { color: var(--muted-subtle); }
|
|
913
915
|
.vk-select-icon {
|
|
914
916
|
position: absolute;
|
|
915
|
-
top:
|
|
917
|
+
top: calc(var(--control-height, 44px) / 2);
|
|
916
918
|
right: 0.75rem;
|
|
917
919
|
translate: 0 -50%;
|
|
918
920
|
color: var(--muted-foreground);
|
|
@@ -944,7 +946,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
944
946
|
justify-content: space-between;
|
|
945
947
|
gap: 0.75rem;
|
|
946
948
|
padding: 0.6rem 0.75rem;
|
|
947
|
-
font-size: var(--
|
|
949
|
+
font-size: var(--control-font-size, 1rem);
|
|
948
950
|
line-height: 1.4;
|
|
949
951
|
color: var(--foreground);
|
|
950
952
|
cursor: pointer;
|
|
@@ -961,13 +963,14 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
961
963
|
.vk-fieldset { min-width: 0; margin: 0; padding: var(--space-md); border: 1px solid var(--border-subtle); }
|
|
962
964
|
.vk-fieldset-legend { padding-inline: var(--space-xs); font-size: var(--text-xs); font-weight: 600; color: var(--foreground); }
|
|
963
965
|
.vk-fieldset-controls { display: grid; gap: var(--space-sm); }
|
|
964
|
-
|
|
965
|
-
.vk-fieldset-hint { margin
|
|
966
|
-
.vk-fieldset-error { margin
|
|
966
|
+
/* Hint and error take the shared field styles; only their spacing within the group is set here. */
|
|
967
|
+
.vk-fieldset-hint { margin: 0 0 var(--space-sm); }
|
|
968
|
+
.vk-fieldset-error { margin: var(--space-sm) 0 0; }
|
|
967
969
|
/* Select (Radix Select, popper position). The shared .vk-select-* rules live in styles/fields.css;
|
|
968
970
|
these cover the Radix parts: state comes from data-state, data-highlighted and data-disabled,
|
|
969
971
|
and the list is portalled and placed by Radix's popper wrapper. */
|
|
970
972
|
.vk-select-trigger { margin: 0; letter-spacing: inherit; }
|
|
973
|
+
.vk-select-trigger[data-placeholder] .vk-select-value { color: var(--muted-subtle); }
|
|
971
974
|
.vk-select-trigger[data-state="open"] { border-color: var(--primary); }
|
|
972
975
|
.vk-select-trigger[data-state="open"] .vk-select-icon { rotate: 180deg; }
|
|
973
976
|
.vk-select-content {
|
|
@@ -997,7 +1000,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
997
1000
|
.vk-select-content .vk-select-option[data-highlighted] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
|
|
998
1001
|
}
|
|
999
1002
|
@media (prefers-reduced-motion: reduce) {
|
|
1000
|
-
.vk-select-content { animation: none; }
|
|
1003
|
+
.vk-select-content[data-state="open"] { animation: none; }
|
|
1001
1004
|
}
|
|
1002
1005
|
/* Checkbox, radio, switch. The box and the switch track are Radix controls (buttons with data-state);
|
|
1003
1006
|
a standalone Radio draws the same box after a native radio (.vk-choice-input). */
|
|
@@ -1077,6 +1080,10 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1077
1080
|
.vk-choice-group > legend { padding: 0; margin-bottom: 0.6rem; }
|
|
1078
1081
|
.vk-choice-list { display: grid; gap: 0.6rem; }
|
|
1079
1082
|
.vk-choice-group-inline .vk-choice-list { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
|
|
1083
|
+
|
|
1084
|
+
/* Checkbox glyphs follow the state supplied by Radix. */
|
|
1085
|
+
.vk-choice-box:not([data-state="indeterminate"]) .vk-choice-dash,
|
|
1086
|
+
.vk-choice-box[data-state="indeterminate"] .vk-choice-check { display: none; }
|
|
1080
1087
|
/* Tag */
|
|
1081
1088
|
.vk-tag {
|
|
1082
1089
|
display: inline-flex;
|
|
@@ -1113,13 +1120,13 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1113
1120
|
|
|
1114
1121
|
/* Search and clear */
|
|
1115
1122
|
.vk-search, .vk-combobox-field { position: relative; display: grid; min-width: 0; }
|
|
1116
|
-
.vk-search-icon { position: absolute; top:
|
|
1123
|
+
.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; }
|
|
1117
1124
|
.vk-search-input, .vk-has-lead { padding-left: 2.25rem; }
|
|
1118
1125
|
.vk-search-input { padding-right: 2.5rem; }
|
|
1119
1126
|
.vk-search-input::-webkit-search-cancel-button, .vk-search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
|
|
1120
1127
|
.vk-field-clear {
|
|
1121
1128
|
position: absolute;
|
|
1122
|
-
top:
|
|
1129
|
+
top: calc(var(--control-height, 44px) / 2);
|
|
1123
1130
|
right: 0.35rem;
|
|
1124
1131
|
translate: 0 -50%;
|
|
1125
1132
|
display: inline-flex;
|
|
@@ -1147,7 +1154,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1147
1154
|
flex-wrap: wrap;
|
|
1148
1155
|
align-items: center;
|
|
1149
1156
|
gap: 0.35rem;
|
|
1150
|
-
padding:
|
|
1157
|
+
padding: calc((var(--control-height, 44px) - 28px) / 2) 2.5rem calc((var(--control-height, 44px) - 28px) / 2) 0.5rem;
|
|
1151
1158
|
cursor: text;
|
|
1152
1159
|
}
|
|
1153
1160
|
.vk-multiselect-field:focus-within { outline: 2px solid var(--ring); outline-offset: 1px; border-color: var(--primary); }
|
|
@@ -1159,7 +1166,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1159
1166
|
height: 26px;
|
|
1160
1167
|
padding: 0 0.25rem;
|
|
1161
1168
|
font: inherit;
|
|
1162
|
-
font-size: var(--
|
|
1169
|
+
font-size: var(--control-font-size, 1rem);
|
|
1163
1170
|
color: var(--foreground);
|
|
1164
1171
|
background: transparent;
|
|
1165
1172
|
border: 0;
|
|
@@ -1176,7 +1183,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1176
1183
|
.vk-multi-option[aria-disabled="true"] .vk-choice-box { border-style: dashed; background: transparent; }
|
|
1177
1184
|
|
|
1178
1185
|
/* Date picker and popover */
|
|
1179
|
-
.vk-date-trigger { gap: 0.6rem; padding-right: 0.75rem;
|
|
1186
|
+
.vk-date-trigger { gap: 0.6rem; padding-right: 0.75rem; }
|
|
1180
1187
|
.vk-date-trigger:disabled { cursor: not-allowed; }
|
|
1181
1188
|
.vk-date-trigger[data-state="open"] { border-color: var(--primary); }
|
|
1182
1189
|
.vk-date-icon { flex-shrink: 0; color: var(--muted-foreground); }
|
|
@@ -1193,6 +1200,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1193
1200
|
border: 1px solid var(--border);
|
|
1194
1201
|
border-radius: var(--radius, 0);
|
|
1195
1202
|
}
|
|
1203
|
+
.vk-popover-footer .vk-btn { width: auto; }
|
|
1196
1204
|
.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); }
|
|
1197
1205
|
|
|
1198
1206
|
/* 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 */
|
|
@@ -1255,6 +1263,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1255
1263
|
.vk-day-range-end { background: linear-gradient(90deg, var(--primary-tint) 50%, transparent 50%); }
|
|
1256
1264
|
.vk-day[aria-disabled="true"] { color: var(--muted-subtle); text-decoration: line-through; cursor: not-allowed; border-color: transparent; }
|
|
1257
1265
|
.vk-day[aria-disabled="true"]:hover { border-color: transparent; }
|
|
1266
|
+
.vk-day-selected[aria-disabled="true"] { color: var(--primary-foreground); border-color: var(--primary); }
|
|
1258
1267
|
|
|
1259
1268
|
/* Badge tones */
|
|
1260
1269
|
.vk-badge-neutral { color: var(--muted-foreground); border-color: var(--border); }
|
|
@@ -1262,7 +1271,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1262
1271
|
.vk-badge-success { color: var(--success); border-color: var(--success-line); }
|
|
1263
1272
|
.vk-badge-warning { color: var(--warning); border-color: var(--warning-line); }
|
|
1264
1273
|
.vk-badge-danger { color: var(--danger); border-color: var(--danger-line); }
|
|
1265
|
-
.vk-table .vk-icon-btn { width: 32px; height: 32px; }
|
|
1274
|
+
.vk-table .vk-icon-btn { width: var(--button-height-sm, 32px); height: var(--button-height-sm, 32px); }
|
|
1266
1275
|
.vk-table td:has(.vk-menu-root) { padding-top: 0.25rem; padding-bottom: 0.25rem; }
|
|
1267
1276
|
|
|
1268
1277
|
/* Utilities */
|
|
@@ -1368,6 +1377,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1368
1377
|
.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); }
|
|
1369
1378
|
.vk-popover-panel { min-width: 16rem; outline: none; }
|
|
1370
1379
|
.vk-popover-title { margin: 0 0 0.75rem; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--foreground); }
|
|
1380
|
+
.vk-popover-panel > .vk-popover-footer { margin-top: var(--space-md); }
|
|
1371
1381
|
|
|
1372
1382
|
|
|
1373
1383
|
/* Radix sets pointer-events on each layer from the order layers registered in. Inside a modal
|
|
@@ -1438,6 +1448,21 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1438
1448
|
|
|
1439
1449
|
/* Tabs (Radix Tabs: data-state=active|inactive and data-disabled set by Radix) */
|
|
1440
1450
|
.vk-tablist { display: flex; gap: 1.75rem; overflow-x: auto; border-bottom: 1px solid var(--border-subtle); scrollbar-width: none; }
|
|
1451
|
+
/* A tab list that scrolls fades the edge with more tabs behind it, since its scrollbar is hidden. */
|
|
1452
|
+
@property --vk-tab-fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
|
|
1453
|
+
@property --vk-tab-fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }
|
|
1454
|
+
@keyframes vk-tablist-fade {
|
|
1455
|
+
0% { --vk-tab-fade-start: 0px; --vk-tab-fade-end: 2.5rem; }
|
|
1456
|
+
8%, 92% { --vk-tab-fade-start: 2.5rem; --vk-tab-fade-end: 2.5rem; }
|
|
1457
|
+
100% { --vk-tab-fade-start: 2.5rem; --vk-tab-fade-end: 0px; }
|
|
1458
|
+
}
|
|
1459
|
+
@supports (animation-timeline: scroll()) {
|
|
1460
|
+
.vk-tablist {
|
|
1461
|
+
mask-image: linear-gradient(to right, transparent, #000 var(--vk-tab-fade-start), #000 calc(100% - var(--vk-tab-fade-end)), transparent);
|
|
1462
|
+
animation: vk-tablist-fade linear both;
|
|
1463
|
+
animation-timeline: scroll(self inline);
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1441
1466
|
.vk-tab {
|
|
1442
1467
|
position: relative;
|
|
1443
1468
|
display: inline-flex;
|
|
@@ -1466,12 +1491,16 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1466
1491
|
.vk-tabpanel { padding-top: 1.25rem; outline: none; }
|
|
1467
1492
|
.vk-tabpanel:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
1468
1493
|
|
|
1494
|
+
|
|
1495
|
+
/* Radix forceMount preserves content; inactive panels remain visually and accessibly hidden. */
|
|
1496
|
+
.vk-tabpanel[data-state="inactive"] { display: none; }
|
|
1469
1497
|
/* Segmented control (Radix RadioGroup: each segment is an item with data-state) */
|
|
1470
|
-
.vk-segmented { display: inline-flex; border: 1px solid var(--border-subtle); border-radius: var(--radius, 0); }
|
|
1498
|
+
.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); }
|
|
1471
1499
|
.vk-segment {
|
|
1472
1500
|
display: inline-flex;
|
|
1473
1501
|
align-items: center;
|
|
1474
1502
|
gap: 0.4rem;
|
|
1503
|
+
min-width: 0;
|
|
1475
1504
|
min-height: 38px;
|
|
1476
1505
|
padding: 0 0.9rem;
|
|
1477
1506
|
font: inherit;
|
|
@@ -1490,6 +1519,10 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1490
1519
|
.vk-segment:disabled { color: var(--muted-subtle); cursor: not-allowed; }
|
|
1491
1520
|
.vk-segmented-sm .vk-segment { min-height: 30px; padding: 0 0.65rem; font-size: 0.8125rem; }
|
|
1492
1521
|
|
|
1522
|
+
@media (max-width: 28rem) {
|
|
1523
|
+
.vk-segment { padding-inline: 0.65rem; }
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1493
1526
|
/* Breadcrumbs */
|
|
1494
1527
|
.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); }
|
|
1495
1528
|
.vk-breadcrumbs li { display: inline-flex; align-items: center; }
|
|
@@ -1655,7 +1688,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1655
1688
|
.vk-spinner-label { font-size: var(--text-sm); color: var(--muted-foreground); }
|
|
1656
1689
|
.vk-skeleton {
|
|
1657
1690
|
display: block;
|
|
1658
|
-
background: var(--
|
|
1691
|
+
background: var(--border-subtle);
|
|
1659
1692
|
background-image: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--foreground) 5%, transparent) 50%, transparent 100%);
|
|
1660
1693
|
background-size: 200% 100%;
|
|
1661
1694
|
animation: vk-shimmer 1.4s linear infinite;
|
|
@@ -1703,6 +1736,13 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1703
1736
|
.vk-steps-vertical .vk-step { flex-direction: row; gap: 0.85rem; }
|
|
1704
1737
|
.vk-steps-vertical .vk-step::before { top: 34px; bottom: -14px; left: 14px; right: auto; width: 1px; height: auto; }
|
|
1705
1738
|
|
|
1739
|
+
/* Keep step labels distinct when a phone viewport cannot fit a horizontal sequence. */
|
|
1740
|
+
@media (max-width: 28rem) {
|
|
1741
|
+
.vk-steps { flex-direction: column; gap: 1.25rem; }
|
|
1742
|
+
.vk-steps .vk-step { flex-direction: row; gap: 0.85rem; }
|
|
1743
|
+
.vk-steps .vk-step::before { top: 34px; bottom: -14px; left: 14px; right: auto; width: 1px; height: auto; }
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1706
1746
|
/* Kbd, description list, stat */
|
|
1707
1747
|
.vk-kbd {
|
|
1708
1748
|
display: inline-flex;
|
|
@@ -1764,6 +1804,10 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1764
1804
|
.vk-layout-stack { display: flex; flex-direction: column; min-width: 0; }
|
|
1765
1805
|
.vk-layout-inline { display: flex; min-width: 0; }
|
|
1766
1806
|
.vk-layout-grid { display: grid; min-width: 0; }
|
|
1807
|
+
/* A row that holds a field sizes its buttons to the field, so toolbars and inline forms sit flush at --control-height. */
|
|
1808
|
+
.vk-layout-inline:has(.vk-input) > .vk-btn { min-height: var(--control-height, 44px); }
|
|
1809
|
+
.vk-layout-inline:has(.vk-input) > .vk-icon-btn { width: var(--control-height, 44px); height: var(--control-height, 44px); }
|
|
1810
|
+
.vk-layout-inline:has(.vk-input) > .vk-segmented .vk-segment { min-height: calc(var(--control-height, 44px) - 2px); }
|
|
1767
1811
|
@media (max-width: 40rem) { .vk-layout-grid-fixed { grid-template-columns: 1fr !important; } }
|
|
1768
1812
|
.vk-container { box-sizing: border-box; width: 100%; max-width: var(--content-max); margin-inline: auto; }
|
|
1769
1813
|
.vk-container-prose { max-width: calc(var(--prose-max) + 2 * var(--section-gutter)); }
|
|
@@ -1829,6 +1873,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1829
1873
|
/* Charts */
|
|
1830
1874
|
.vk-chart { display: grid; gap: 0.75rem; margin: 0; min-width: 0; }
|
|
1831
1875
|
.vk-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
|
|
1876
|
+
/* The table toggle keeps its width beside the title on narrow screens, where buttons otherwise fill the column. */
|
|
1877
|
+
.vk-chart-head .vk-btn { width: auto; flex-shrink: 0; }
|
|
1832
1878
|
.vk-chart-title { margin: 0; font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; color: var(--foreground); }
|
|
1833
1879
|
.vk-chart-description { margin: 0.2rem 0 0; font-size: var(--text-sm); color: var(--muted-foreground); }
|
|
1834
1880
|
.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); }
|
|
@@ -1919,7 +1965,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1919
1965
|
|
|
1920
1966
|
/* Slider (Radix Slider: the track is its root, the fill its range; Radix positions the thumb's wrapper) */
|
|
1921
1967
|
.vk-slider { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; align-items: center; min-width: 0; }
|
|
1922
|
-
.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); }
|
|
1968
|
+
.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; }
|
|
1923
1969
|
/* A flex box, so the absolutely positioned thumb wrapper is centred vertically. */
|
|
1924
1970
|
.vk-slider-track { grid-column: 1; grid-row: 1; position: relative; display: flex; align-items: center; height: 28px; cursor: pointer; touch-action: none; }
|
|
1925
1971
|
.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; }
|
|
@@ -1932,7 +1978,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1932
1978
|
.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); }
|
|
1933
1979
|
/* One-time code */
|
|
1934
1980
|
.vk-otp { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
|
1935
|
-
.vk-otp-box { width: 44px; padding: 0; text-align: center; font-family: var(--font-numeric); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
|
|
1981
|
+
.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; }
|
|
1936
1982
|
|
|
1937
1983
|
/* Error summary */
|
|
1938
1984
|
.vk-error-summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
@@ -1971,13 +2017,15 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1971
2017
|
position: relative;
|
|
1972
2018
|
inset: auto;
|
|
1973
2019
|
z-index: var(--z-popover);
|
|
2020
|
+
min-width: min(13rem, var(--radix-popper-available-width, 13rem));
|
|
2021
|
+
max-width: var(--radix-popper-available-width);
|
|
1974
2022
|
max-height: var(--radix-popper-available-height);
|
|
1975
2023
|
overflow-y: auto;
|
|
1976
2024
|
outline: none;
|
|
1977
2025
|
}
|
|
1978
2026
|
.vk-menu[data-state="open"] { animation: vk-menu-in var(--motion-normal) var(--ease-standard); }
|
|
1979
2027
|
@keyframes vk-menu-in { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
|
|
1980
|
-
.vk-menu .vk-menu-item { user-select: none; }
|
|
2028
|
+
.vk-menu .vk-menu-item { flex-wrap: wrap; user-select: none; }
|
|
1981
2029
|
.vk-menu .vk-menu-item[data-highlighted],
|
|
1982
2030
|
.vk-menu .vk-menu-item[data-state="open"] { background: var(--primary-tint); }
|
|
1983
2031
|
.vk-menu .vk-menu-item-danger[data-highlighted] { background: var(--danger-tint); }
|
|
@@ -1990,6 +2038,10 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
1990
2038
|
.vk-menu-dot { display: block; opacity: 1; }
|
|
1991
2039
|
.vk-menu-item[data-disabled] .vk-menu-dot { background: var(--muted-subtle); }
|
|
1992
2040
|
.vk-menu-sub-icon { color: var(--muted-subtle); }
|
|
2041
|
+
.vk-menu .vk-menu-item-label { min-width: 2em; overflow-wrap: anywhere; }
|
|
2042
|
+
.vk-menu .vk-menu-label { overflow-wrap: anywhere; }
|
|
2043
|
+
.vk-menu .vk-menu-shortcut { min-width: 2ch; max-width: 45%; overflow-wrap: anywhere; }
|
|
2044
|
+
.vk-menu .vk-menu-sub-icon { flex-shrink: 0; }
|
|
1993
2045
|
|
|
1994
2046
|
@media (forced-colors: active) {
|
|
1995
2047
|
.vk-menu .vk-menu-item[data-highlighted],
|
|
@@ -2007,25 +2059,33 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
2007
2059
|
.vk-list-divided > .vk-list-item + .vk-list-item { border-top: 1px solid var(--border-subtle); }
|
|
2008
2060
|
.vk-list-bordered { border: 1px solid var(--border-subtle); }
|
|
2009
2061
|
.vk-list-bordered .vk-list-main { padding-inline: 1rem; }
|
|
2062
|
+
.vk-list-bordered .vk-list-trailing { padding-right: 1rem; }
|
|
2010
2063
|
.vk-list-item { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
|
|
2011
2064
|
.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; }
|
|
2012
2065
|
.vk-list-interactive { cursor: pointer; }
|
|
2013
2066
|
.vk-list-interactive:hover { background: var(--card-fill); }
|
|
2014
2067
|
.vk-list-interactive:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
|
|
2015
|
-
.vk-list-item-selected
|
|
2068
|
+
.vk-list-item-selected { background: var(--primary-tint); }
|
|
2016
2069
|
.vk-list-leading { display: inline-flex; flex-shrink: 0; color: var(--muted-foreground); }
|
|
2017
|
-
.vk-list-text { display: grid; gap: 0.1rem; flex: 1; min-width: 0; }
|
|
2070
|
+
.vk-list-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.1rem; flex: 1; min-width: 0; }
|
|
2018
2071
|
.vk-list-title { font-size: var(--text-sm); font-weight: 500; color: var(--foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2019
|
-
.vk-list-description { font-size: 0.8125rem; color: var(--muted-foreground); }
|
|
2072
|
+
.vk-list-description { font-size: 0.8125rem; color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
2020
2073
|
.vk-list-meta { flex-shrink: 0; font-family: var(--font-numeric); font-variant-numeric: tabular-nums; font-size: 0.75rem; color: var(--muted-subtle); }
|
|
2021
2074
|
.vk-list-trailing { display: inline-flex; align-items: center; gap: 0.25rem; flex-shrink: 0; padding-right: 0.25rem; }
|
|
2075
|
+
@media (max-width: 40rem) {
|
|
2076
|
+
.vk-list-main { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0.1rem; }
|
|
2077
|
+
.vk-list-main:has(.vk-list-leading) { grid-template-columns: auto minmax(0, 1fr); }
|
|
2078
|
+
.vk-list-leading { grid-column: 1; grid-row: 1 / span 2; }
|
|
2079
|
+
.vk-list-text { grid-column: -2 / -1; grid-row: 1; }
|
|
2080
|
+
.vk-list-meta { grid-column: -2 / -1; grid-row: 2; }
|
|
2081
|
+
}
|
|
2022
2082
|
|
|
2023
2083
|
/* Avatar group */
|
|
2024
2084
|
.vk-avatar-group { display: inline-flex; align-items: center; }
|
|
2025
2085
|
.vk-avatar-group-item { display: inline-flex; margin-left: -6px; }
|
|
2026
2086
|
.vk-avatar-group-item:first-child { margin-left: 0; }
|
|
2027
2087
|
.vk-avatar-group-item .vk-avatar { outline: 2px solid var(--background); }
|
|
2028
|
-
.vk-avatar-more { background: var(--card); color: var(--muted-foreground); font-
|
|
2088
|
+
.vk-avatar-more { background: var(--card); color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
|
|
2029
2089
|
|
|
2030
2090
|
/* Timeline */
|
|
2031
2091
|
.vk-timeline { margin: 0; padding: 0; list-style: none; }
|
|
@@ -2113,11 +2173,59 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
2113
2173
|
.vk-codeblock-copy:hover { color: var(--foreground); background: var(--primary-tint); }
|
|
2114
2174
|
.vk-codeblock-copy:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
|
|
2115
2175
|
.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; }
|
|
2176
|
+
.vk-codeblock-pre code { font: inherit; }
|
|
2116
2177
|
.vk-codeblock-pre:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
|
|
2117
2178
|
.vk-codeblock-numbered code { counter-reset: vk-line; }
|
|
2118
2179
|
.vk-code-line { display: block; }
|
|
2119
2180
|
.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; }
|
|
2120
2181
|
|
|
2182
|
+
/* CommonMark editor: the editable surface and every toolbar action use system tokens. */
|
|
2183
|
+
.vk-rich { border: 1px solid var(--input-border); background: var(--card); color: var(--foreground); min-width: 0; }
|
|
2184
|
+
.vk-rich:focus-within { border-color: var(--primary); }
|
|
2185
|
+
.vk-rich[data-invalid="true"] { border-color: var(--danger); }
|
|
2186
|
+
.vk-rich[data-disabled] { border-style: dashed; color: var(--muted-subtle); background: transparent; }
|
|
2187
|
+
.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); }
|
|
2188
|
+
.vk-rich-minimal { border-top: 1px solid var(--border-subtle); }
|
|
2189
|
+
.vk-rich-minimal .vk-rich-toolbar { border-bottom: 0; }
|
|
2190
|
+
.vk-rich-minimal-formatting { border-top: 1px solid var(--border-subtle); }
|
|
2191
|
+
.vk-rich-minimal .vk-rich-tool[data-state="open"] { color: var(--primary); background: var(--primary-tint); }
|
|
2192
|
+
.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; }
|
|
2193
|
+
.vk-rich-tool:hover { background: var(--primary-tint); }
|
|
2194
|
+
.vk-rich-tool[aria-pressed="true"] { color: var(--primary); background: var(--primary-tint); border-color: var(--primary-line); }
|
|
2195
|
+
.vk-rich-tool:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
|
|
2196
|
+
.vk-rich-tool:disabled { color: var(--muted-subtle); cursor: not-allowed; background: transparent; }
|
|
2197
|
+
.vk-rich-separator { width: 1px; align-self: stretch; margin: var(--space-xs); background: var(--border-subtle); }
|
|
2198
|
+
.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); }
|
|
2199
|
+
.vk-rich-content:focus-visible { outline: 2px solid var(--ring); outline-offset: -3px; }
|
|
2200
|
+
.vk-rich-content[data-empty="true"]::before { content: attr(data-placeholder); position: absolute; color: var(--muted-subtle); pointer-events: none; }
|
|
2201
|
+
.vk-rich-content p:last-child { margin-bottom: 0; }
|
|
2202
|
+
.vk-rich-content li { position: relative; }
|
|
2203
|
+
.vk-rich-content pre { white-space: pre-wrap; }
|
|
2204
|
+
.vk-rich-content .ProseMirror-selectednode { outline: 2px solid var(--ring); }
|
|
2205
|
+
.vk-rich-content.ProseMirror-hideselection *::selection { background: transparent; }
|
|
2206
|
+
.vk-rich-content.ProseMirror-hideselection *::-moz-selection { background: transparent; }
|
|
2207
|
+
.vk-rich-content.ProseMirror-hideselection { caret-color: transparent; }
|
|
2208
|
+
.vk-rich-content img { max-width: 100%; height: auto; }
|
|
2209
|
+
.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); }
|
|
2210
|
+
.vk-rich-panel-field { display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
|
|
2211
|
+
.vk-rich-panel-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }
|
|
2212
|
+
.vk-rich-panel-actions .vk-btn { width: auto; }
|
|
2213
|
+
.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; }
|
|
2214
|
+
.vk-rich-upload .vk-link:disabled { color: var(--muted-subtle); cursor: not-allowed; }
|
|
2215
|
+
.vk-rich-emoji { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-xs); }
|
|
2216
|
+
.vk-rich-emoji .vk-rich-tool { font-size: var(--text-xl); }
|
|
2217
|
+
.vk-rich-uploads { margin: 0; padding: var(--space-sm) var(--space-md); list-style: none; border-top: 1px solid var(--border-subtle); }
|
|
2218
|
+
.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; }
|
|
2219
|
+
.vk-rich-upload-status { color: var(--muted-foreground); }
|
|
2220
|
+
.vk-rich-upload .vk-link { min-height: 24px; }
|
|
2221
|
+
@media (any-pointer: coarse) {
|
|
2222
|
+
.vk-rich-tool, .vk-rich-upload .vk-link { min-width: var(--control-height); min-height: var(--control-height); }
|
|
2223
|
+
}
|
|
2224
|
+
@media (forced-colors: active) {
|
|
2225
|
+
.vk-rich-tool[aria-pressed="true"] { forced-color-adjust: none; color: HighlightText; background: Highlight; border-color: Highlight; }
|
|
2226
|
+
.vk-rich-content:focus-visible, .vk-rich-tool:focus-visible { outline-color: Highlight; }
|
|
2227
|
+
.vk-rich[data-disabled] { border-color: GrayText; }
|
|
2228
|
+
}
|
|
2121
2229
|
/* Figure */
|
|
2122
2230
|
.vk-figure { margin: 0; min-width: 0; }
|
|
2123
2231
|
.vk-figure-media { max-width: 100%; overflow: hidden; background: var(--media-placeholder); border: 1px solid var(--border-subtle); }
|
|
@@ -2137,30 +2245,125 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; line-heigh
|
|
|
2137
2245
|
.vk-cmd-item-active { background: var(--primary-tint); }
|
|
2138
2246
|
.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); }
|
|
2139
2247
|
|
|
2140
|
-
/*
|
|
2141
|
-
|
|
2248
|
+
/* Shared chat presentation. Applications supply the rendered content and delivery state. */
|
|
2249
|
+
.vk-chat-panel { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; color: var(--foreground); }
|
|
2250
|
+
.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); }
|
|
2251
|
+
.vk-chat-heading { display: grid; gap: var(--space-xs); min-width: 0; }
|
|
2252
|
+
.vk-chat-title { min-width: 0; margin: 0; font: 600 var(--text-base)/1.4 var(--font-display); color: var(--foreground); overflow-wrap: anywhere; }
|
|
2253
|
+
.vk-chat-title:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
2254
|
+
.vk-chat-description { font-size: var(--text-sm); line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
2255
|
+
.vk-chat-header > .vk-icon-btn { flex-shrink: 0; }
|
|
2256
|
+
.vk-chat-transcript { flex: 1; min-width: 0; min-height: 4rem; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-md); scrollbar-gutter: stable; }
|
|
2257
|
+
.vk-chat-transcript:focus-visible { outline: 2px solid var(--ring); outline-offset: -3px; }
|
|
2258
|
+
.vk-chat-messages { display: grid; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
|
|
2259
|
+
.vk-chat-message { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm); min-width: 0; max-width: 94%; }
|
|
2260
|
+
.vk-chat-message-outgoing { margin-inline-start: auto; }
|
|
2261
|
+
.vk-chat-message-avatar { display: inline-flex; padding-top: var(--space-xs); }
|
|
2262
|
+
.vk-chat-message-body { min-width: 0; padding: var(--space-sm) var(--space-md); border: 1px solid var(--border-subtle); background: var(--card-fill); }
|
|
2263
|
+
.vk-chat-message-outgoing .vk-chat-message-body { border-color: var(--primary-line); background: var(--primary-tint); }
|
|
2264
|
+
.vk-chat-message-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-sm); margin-bottom: var(--space-xs); }
|
|
2265
|
+
.vk-chat-message-author { font-size: var(--text-xs); font-weight: 600; color: var(--foreground); overflow-wrap: anywhere; }
|
|
2266
|
+
.vk-chat-message-time { font: var(--text-xs)/1.5 var(--font-numeric); font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
|
|
2267
|
+
.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; }
|
|
2268
|
+
.vk-chat-message-content > :last-child { margin-bottom: 0; }
|
|
2269
|
+
.vk-chat-message-content pre { max-width: 100%; box-sizing: border-box; white-space: pre; }
|
|
2270
|
+
.vk-chat-message-content img { max-width: 100%; height: auto; }
|
|
2271
|
+
.vk-chat-message-content .vk-rich[data-readonly] { border: 0; background: transparent; }
|
|
2272
|
+
.vk-chat-message-content .vk-rich[data-readonly] .vk-rich-content { min-height: 0; padding: 0; font-size: inherit; }
|
|
2273
|
+
.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; }
|
|
2274
|
+
.vk-chat-delivery-failed { color: var(--danger); }
|
|
2275
|
+
.vk-chat-delivery .vk-btn { width: auto; }
|
|
2276
|
+
.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; }
|
|
2277
|
+
.vk-chat-pending { padding-block: var(--space-md); font-size: var(--text-sm); color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
2278
|
+
.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; }
|
|
2279
|
+
.vk-chat-feedback > div { flex: 1; min-width: 0; }
|
|
2280
|
+
.vk-chat-feedback .vk-btn { width: auto; }
|
|
2281
|
+
.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); }
|
|
2282
|
+
.vk-chat-composer > .vk-field { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
|
|
2283
|
+
.vk-chat-composer .vk-rich-content { min-height: 4rem; max-height: 8rem; overflow-y: auto; padding: var(--space-sm); }
|
|
2284
|
+
.vk-chat-composer-actions { display: flex; justify-content: flex-end; }
|
|
2285
|
+
.vk-chat-composer-actions .vk-btn { width: auto; }
|
|
2286
|
+
@media (max-width: 40rem) {
|
|
2287
|
+
.vk-chat-header, .vk-chat-transcript, .vk-chat-composer { padding: var(--space-sm); }
|
|
2288
|
+
.vk-chat-message { max-width: 100%; }
|
|
2289
|
+
.vk-chat-message-body { padding: var(--space-sm); }
|
|
2290
|
+
}
|
|
2291
|
+
@media (forced-colors: active) {
|
|
2292
|
+
.vk-chat-message-outgoing .vk-chat-message-body { border-color: Highlight; }
|
|
2293
|
+
.vk-chat-delivery-failed, .vk-chat-feedback { color: CanvasText; }
|
|
2294
|
+
}
|
|
2295
|
+
.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)); }
|
|
2296
|
+
.vk-chat-widget-start { inset-inline-end: auto; inset-inline-start: calc(var(--space-lg) + env(safe-area-inset-left, 0px)); }
|
|
2297
|
+
.vk-chat-widget-trigger { width: 52px; height: 52px; border-color: var(--primary); background: var(--background); color: var(--primary); }
|
|
2298
|
+
.vk-chat-widget-trigger:hover, .vk-chat-widget-trigger[data-state="open"] { background: var(--primary-tint); }
|
|
2299
|
+
.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; }
|
|
2300
|
+
.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); }
|
|
2301
|
+
.vk-chat-widget-panel .vk-chat-header { background: var(--surface-elevated); }
|
|
2302
|
+
.vk-chat-widget-panel { transform-origin: var(--radix-popover-content-transform-origin); }
|
|
2303
|
+
.vk-chat-widget-panel[data-state="closed"] { pointer-events: none; }
|
|
2304
|
+
@media (max-height: 32rem) {
|
|
2305
|
+
.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); }
|
|
2306
|
+
.vk-chat-widget-panel .vk-chat-transcript { flex: 0 1 4rem; min-height: 0; max-height: 25%; }
|
|
2307
|
+
.vk-chat-widget-panel .vk-chat-composer { flex: 1; max-height: none; }
|
|
2308
|
+
.vk-chat-widget-panel .vk-chat-composer .vk-rich-content { min-height: 2rem; padding-block: var(--space-xs); }
|
|
2309
|
+
}
|
|
2310
|
+
@media (forced-colors: active) {
|
|
2311
|
+
.vk-chat-widget-trigger { border-color: ButtonText; color: ButtonText; }
|
|
2312
|
+
.vk-chat-unread { background: Highlight; color: HighlightText; }
|
|
2313
|
+
}
|
|
2314
|
+
.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); }
|
|
2315
|
+
.vk-chat-inbox-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-inline-end: 1px solid var(--border-subtle); }
|
|
2316
|
+
.vk-chat-threads { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0; list-style: none; }
|
|
2317
|
+
.vk-chat-threads > li + li { border-top: 1px solid var(--border-subtle); }
|
|
2318
|
+
.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; }
|
|
2319
|
+
.vk-chat-thread:hover { background: var(--card-fill); }
|
|
2320
|
+
.vk-chat-thread[aria-current="true"] { background: var(--primary-tint); }
|
|
2321
|
+
.vk-chat-thread:focus-visible { outline: 2px solid var(--ring); outline-offset: -3px; }
|
|
2322
|
+
.vk-chat-thread:disabled { color: var(--muted-subtle); cursor: not-allowed; }
|
|
2323
|
+
.vk-chat-thread-text { display: grid; gap: var(--space-xs); flex: 1; min-width: 0; }
|
|
2324
|
+
.vk-chat-thread-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); font-weight: 600; }
|
|
2325
|
+
.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; }
|
|
2326
|
+
.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); }
|
|
2327
|
+
.vk-chat-thread-count { padding-inline: var(--space-xs); border: 1px solid var(--primary-line); background: var(--primary-tint); color: var(--foreground); }
|
|
2328
|
+
.vk-chat-inbox-detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
|
|
2329
|
+
.vk-chat-no-selection { flex: 1; }
|
|
2330
|
+
.vk-chat-back { display: none; }
|
|
2331
|
+
@container (max-width: 40rem) {
|
|
2332
|
+
.vk-chat-inbox-list { border-inline-end: 0; }
|
|
2333
|
+
.vk-chat-inbox:not(.vk-chat-inbox-selected) .vk-chat-inbox-detail, .vk-chat-inbox-selected .vk-chat-inbox-list { display: none; }
|
|
2334
|
+
.vk-chat-inbox-detail, .vk-chat-inbox-list { grid-column: 1 / -1; }
|
|
2335
|
+
.vk-chat-back { display: inline-flex; }
|
|
2336
|
+
.vk-chat-inbox-detail > .vk-chat-header { justify-content: flex-start; }
|
|
2337
|
+
}
|
|
2338
|
+
/* Opt in on html so portalled controls use the same density as their triggers.
|
|
2339
|
+
Components size controls from the control and button tokens, so density redefines those; component-specific sizes still win.
|
|
2340
|
+
On fine pointers the control height is 32px; with any coarse pointer it stays 44px, and buttons follow it either way. */
|
|
2341
|
+
[data-density="compact"] { --button-height: var(--control-height); --button-height-sm: var(--control-height); }
|
|
2142
2342
|
html[data-density="compact"] body { font-size: var(--text-sm); }
|
|
2143
|
-
[data-density="compact"] .vk-page-header { container-type: inline-size; gap: var(--space-sm); padding-block: 0; }
|
|
2343
|
+
[data-density="compact"] .vk-page-header { container-type: inline-size; box-sizing: border-box; width: 100%; gap: var(--space-sm); padding-block: 0; }
|
|
2144
2344
|
[data-density="compact"] .vk-page-header-divider { padding-bottom: var(--space-md); margin-bottom: 0; }
|
|
2145
2345
|
[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); }
|
|
2146
2346
|
[data-density="compact"] .vk-page-header-text { display: contents; }
|
|
2147
2347
|
[data-density="compact"] .vk-page-header-title { grid-column: 1; grid-row: 1; }
|
|
2148
2348
|
[data-density="compact"] .vk-page-header-description { grid-column: 1; grid-row: 2; max-width: var(--prose-max); }
|
|
2149
|
-
[data-density="compact"] .vk-page-header-actions { grid-column: 2; grid-row: 1; min-width: 0; }
|
|
2349
|
+
[data-density="compact"] .vk-page-header-actions { grid-column: 2; grid-row: 1; justify-self: start; min-width: 0; }
|
|
2150
2350
|
[data-density="compact"] .vk-page-header-eyebrow { grid-column: 1; grid-row: 1; }
|
|
2151
2351
|
[data-density="compact"] .vk-page-header-row:has(.vk-page-header-eyebrow) .vk-page-header-title,
|
|
2152
2352
|
[data-density="compact"] .vk-page-header-row:has(.vk-page-header-eyebrow) .vk-page-header-actions { grid-row: 2; }
|
|
2153
2353
|
[data-density="compact"] .vk-page-header-row:has(.vk-page-header-eyebrow) .vk-page-header-description { grid-row: 3; }
|
|
2154
2354
|
[data-density="compact"] .vk-page-header-title, [data-density="compact"] .vk-text-heading-1 { font-size: var(--text-xl); line-height: 1.3; }
|
|
2155
|
-
[data-density="compact"] .vk-page-header-description, [data-density="compact"] .vk-text-body
|
|
2355
|
+
[data-density="compact"] .vk-page-header-description, [data-density="compact"] .vk-text-body { font-size: var(--text-sm); }
|
|
2356
|
+
[data-density="compact"] .vk-text-body-sm { font-size: 0.8125rem; }
|
|
2357
|
+
[data-density="compact"] .vk-text-small { font-size: var(--text-xs); }
|
|
2358
|
+
[data-density="compact"] .vk-text-lead, [data-density="compact"] .vk-section-lead { font-size: var(--text-base); }
|
|
2156
2359
|
[data-density="compact"] .vk-section-header { margin-bottom: 0; }
|
|
2157
|
-
[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
|
|
2360
|
+
[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,
|
|
2361
|
+
[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; }
|
|
2158
2362
|
[data-density="compact"] .vk-section-heading { font-weight: 600; text-transform: none; letter-spacing: normal; }
|
|
2159
|
-
[data-density="compact"] .vk-text-meta { font-size: var(--text-xs); }
|
|
2160
2363
|
[data-density="compact"] .vk-stat-value { font-size: var(--text-2xl); }
|
|
2161
2364
|
[data-density="compact"] .vk-shell-main { padding: var(--space-lg); }
|
|
2162
2365
|
[data-density="compact"] .vk-shell-topbar > .vk-icon-btn { flex-shrink: 0; }
|
|
2163
|
-
[data-density="compact"] .vk-shell-brand { flex:
|
|
2366
|
+
[data-density="compact"] .vk-shell-brand { flex: 0 1 auto; min-width: 0; }
|
|
2164
2367
|
[data-density="compact"] .vk-shell-brand > * { min-width: 0; max-width: 100%; }
|
|
2165
2368
|
[data-density="compact"] .vk-shell-actions { flex: 0 1 auto; min-width: 0; }
|
|
2166
2369
|
[data-density="compact"] .vk-shell-actions > * { min-width: 0; max-width: 100%; }
|
|
@@ -2168,35 +2371,55 @@ html[data-density="compact"] body { font-size: var(--text-sm); }
|
|
|
2168
2371
|
[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; }
|
|
2169
2372
|
[data-density="compact"] .vk-dialog-title { font-size: var(--text-base); }
|
|
2170
2373
|
[data-density="compact"] .vk-accordion-trigger { font-size: var(--text-sm); padding-block: var(--space-sm); }
|
|
2171
|
-
[data-density="compact"] .vk-input { min-height: var(--density-control-height); padding-block: var(--space-xs); line-height: 1.4; }
|
|
2172
|
-
[data-density="compact"] .vk-affix-row { min-height: var(--density-control-height); }
|
|
2173
|
-
[data-density="compact"] .vk-affix-row > .vk-input { min-height: 0; }
|
|
2174
|
-
[data-density="compact"] .vk-btn { min-height: var(--density-control-height); font-size: var(--text-xs); }
|
|
2175
2374
|
[data-density="compact"] .vk-btn-text { font-size: var(--text-sm); }
|
|
2176
|
-
[data-density="compact"] .vk-btn .vk-btn-label { padding: var(--space-xs) var(--space-sm); }
|
|
2177
|
-
[data-density="compact"] .vk-btn-text .vk-btn-label { padding-inline: 0; }
|
|
2178
|
-
[data-density="compact"] .vk-icon-btn { width: var(--density-control-height); height: var(--density-control-height); }
|
|
2179
|
-
[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); }
|
|
2180
|
-
[data-density="compact"] .vk-field-clear { width: var(--density-control-height); height: var(--density-control-height); right: 0; }
|
|
2181
|
-
[data-density="compact"] .vk-badge[tabindex] { min-height: var(--density-control-height); }
|
|
2375
|
+
[data-density="compact"] .vk-btn:not(.vk-btn-sm, .vk-btn-text) .vk-btn-label { padding: var(--space-xs) var(--space-sm); }
|
|
2182
2376
|
[data-density="compact"] .vk-segmented { min-width: 0; max-width: 100%; align-self: flex-start; }
|
|
2183
|
-
[data-density="compact"] .vk-segment { min-width: 0; min-height: var(--
|
|
2377
|
+
[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; }
|
|
2184
2378
|
@container (max-width: 40rem) {
|
|
2185
2379
|
[data-density="compact"] .vk-page-header-row { grid-template-columns: minmax(0, 1fr); }
|
|
2186
|
-
[data-density="compact"] .vk-page-header-row .vk-page-header-actions
|
|
2380
|
+
[data-density="compact"] .vk-page-header-row .vk-page-header-actions,
|
|
2381
|
+
[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); }
|
|
2187
2382
|
}
|
|
2188
2383
|
@media (max-width: 48rem) {
|
|
2189
2384
|
[data-density="compact"] .vk-shell-actions { max-width: 45%; }
|
|
2190
2385
|
}
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
}
|
|
2386
|
+
/* Data-dense components: tighter rows, cells and cards. Touch keeps 44px rows through accessibility.css. */
|
|
2387
|
+
[data-density="compact"] .vk-table td, [data-density="compact"] .vk-table tbody th { padding: var(--space-sm) var(--space-md); }
|
|
2388
|
+
[data-density="compact"] .vk-table thead th { padding: var(--space-xs) var(--space-md); }
|
|
2389
|
+
[data-density="compact"] .vk-list-main { padding-block: var(--space-sm); }
|
|
2390
|
+
[data-density="compact"] .vk-navlist-item, [data-density="compact"] .vk-menu-item { min-height: var(--control-height); padding-block: var(--space-xs); }
|
|
2391
|
+
[data-density="compact"] .vk-card { gap: var(--space-sm); padding: var(--space-md); }
|
|
2392
|
+
[data-density="compact"] .vk-card-body { font-size: var(--text-sm); }
|
|
2393
|
+
[data-density="compact"] .vk-page { min-width: var(--control-height); height: var(--control-height); }
|
|
2394
|
+
/* Fine pointers only: with any coarse pointer, controls keep 44px targets and 16px text (iOS zooms smaller inputs on focus). */
|
|
2395
|
+
@media (pointer: fine) and (not (any-pointer: coarse)) {
|
|
2396
|
+
[data-density="compact"] { --control-height: 32px; --control-font-size: var(--text-sm); --control-padding-block: var(--space-xs); }
|
|
2397
|
+
}
|
|
2398
|
+
/* Touch: buttons and rows meet a 44px target in every density (WCAG 2.5.5, Apple HIG); density only tightens fine-pointer layouts. */
|
|
2399
|
+
@media (any-pointer: coarse) {
|
|
2400
|
+
:root { --button-height: var(--control-height); --button-height-sm: var(--control-height); }
|
|
2401
|
+
.vk-navlist-item, .vk-menu-item, .vk-tree-row, .vk-accordion-trigger, .vk-choice { min-height: var(--control-height); }
|
|
2402
|
+
.vk-page { min-width: var(--control-height); height: var(--control-height); }
|
|
2403
|
+
.vk-day { height: var(--control-height); }
|
|
2404
|
+
.vk-segmented .vk-segment { min-height: calc(var(--control-height) - 2px); }
|
|
2405
|
+
.vk-calendar-header .vk-icon-btn { width: var(--control-height); height: var(--control-height); }
|
|
2406
|
+
.vk-stepper-btn, .vk-tab { min-width: var(--control-height); justify-content: center; }
|
|
2407
|
+
.vk-codeblock-copy { min-height: var(--control-height); }
|
|
2408
|
+
.vk-field-clear { width: var(--control-height); height: var(--control-height); right: 0; }
|
|
2409
|
+
.vk-search-input, .vk-date-input { padding-right: calc(var(--control-height) + var(--space-xs)); }
|
|
2410
|
+
/* Single-line choices centre the box in their 44px row; with a description the box stays on the first line. */
|
|
2411
|
+
.vk-choice:not(:has(.vk-choice-description)) { align-items: center; }
|
|
2412
|
+
.vk-choice:not(:has(.vk-choice-description)) :is(.vk-choice-box, .vk-switch-track) { margin-top: 0; }
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
/* Small controls keep their look and extend their hit area: at least 24px (WCAG 2.5.8), 44px on touch where neighbours allow. */
|
|
2416
|
+
.vk-tag-remove, .vk-th-sort, .vk-alert-close, .vk-slider-thumb { position: relative; }
|
|
2417
|
+
.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%; }
|
|
2194
2418
|
@media (any-pointer: coarse) {
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
[data-density="compact"] .vk-choice { min-height: var(--control-height); align-items: center; }
|
|
2198
|
-
[data-density="compact"] .vk-choice-box, [data-density="compact"] .vk-switch-track { margin-top: 0; }
|
|
2419
|
+
.vk-th-sort::after { height: 44px; }
|
|
2420
|
+
.vk-alert-close::after, .vk-slider-thumb::after { width: 44px; height: 44px; }
|
|
2199
2421
|
}
|
|
2422
|
+
|
|
2200
2423
|
/* Windows high-contrast (forced colors): restore state that relied on fills */
|
|
2201
2424
|
@media (forced-colors: active) {
|
|
2202
2425
|
.vk-choice .vk-choice-box:is([data-state="checked"], [data-state="indeterminate"]),
|
|
@@ -2209,7 +2432,7 @@ html[data-density="compact"] body { font-size: var(--text-sm); }
|
|
|
2209
2432
|
.vk-tab[aria-selected="true"]::after, .vk-slider-fill, .vk-progress-fill, .vk-slider-thumb { forced-color-adjust: none; background: Highlight; }
|
|
2210
2433
|
.vk-progress-track[data-state="indeterminate"] { forced-color-adjust: none; background: repeating-linear-gradient(-45deg, Canvas, Canvas 4px, Highlight 4px, Highlight 6px); }
|
|
2211
2434
|
.vk-select-option-active, .vk-menu-item:focus, .vk-cmd-item-active, .vk-tree-row-selected, .vk-navlist-item-active,
|
|
2212
|
-
.vk-list-item-selected
|
|
2435
|
+
.vk-list-item-selected, .vk-table .vk-tr-selected, .vk-day-selected, .vk-segment[aria-checked="true"], .vk-page[aria-current="page"],
|
|
2213
2436
|
.vk-tile-active { forced-color-adjust: none; background: Highlight; color: HighlightText; }
|
|
2214
2437
|
.vk-day-in-range { forced-color-adjust: none; background: transparent; outline: 1px dashed Highlight; outline-offset: -3px; }
|
|
2215
2438
|
.vk-spinner { border-color: CanvasText; border-top-color: Highlight; }
|
|
@@ -2220,7 +2443,7 @@ html[data-density="compact"] body { font-size: var(--text-sm); }
|
|
|
2220
2443
|
}
|
|
2221
2444
|
|
|
2222
2445
|
@media (prefers-reduced-motion: reduce) {
|
|
2223
|
-
.vk-btn-spinner { animation
|
|
2446
|
+
.vk-btn-spinner { animation: none; }
|
|
2224
2447
|
.vk-tree-caret { transition: none; }
|
|
2225
2448
|
.vk-toast, .vk-overlay, .vk-dialog, .vk-progress-track[data-state="indeterminate"], .vk-spinner, .vk-skeleton { animation: none; }
|
|
2226
2449
|
.vk-accordion-icon, .vk-progress-fill, .vk-dropzone { transition: none; }
|