@ghostvue/themes 0.0.0-stage → 0.2.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/LICENSE +22 -0
- package/README.md +59 -2
- package/THIRD_PARTY_NOTICES.md +30 -0
- package/dist/base.css +341 -0
- package/dist/calm.css +1909 -0
- package/dist/components.d.ts +153 -0
- package/dist/components.js +148 -0
- package/dist/default.css +11271 -0
- package/dist/define.d.ts +75 -0
- package/dist/define.js +5952 -0
- package/dist/flagship-themes.d.ts +5 -0
- package/dist/flagship-themes.js +3 -0
- package/dist/generated/tokens.d.ts +5286 -0
- package/dist/generated/tokens.js +5283 -0
- package/dist/ghost-accordion-content.d.ts +26 -0
- package/dist/ghost-accordion-content.js +22 -0
- package/dist/ghost-accordion-item.d.ts +24 -0
- package/dist/ghost-accordion-item.js +16 -0
- package/dist/ghost-accordion-trigger.d.ts +17 -0
- package/dist/ghost-accordion-trigger.js +33 -0
- package/dist/ghost-accordion.d.ts +72 -0
- package/dist/ghost-accordion.js +56 -0
- package/dist/ghost-avatar.d.ts +60 -0
- package/dist/ghost-avatar.js +39 -0
- package/dist/ghost-badge.d.ts +46 -0
- package/dist/ghost-badge.js +33 -0
- package/dist/ghost-breadcrumb-ellipsis.d.ts +16 -0
- package/dist/ghost-breadcrumb-ellipsis.js +20 -0
- package/dist/ghost-breadcrumb-item.d.ts +18 -0
- package/dist/ghost-breadcrumb-item.js +20 -0
- package/dist/ghost-breadcrumb-link.d.ts +18 -0
- package/dist/ghost-breadcrumb-link.js +33 -0
- package/dist/ghost-breadcrumb-list.d.ts +18 -0
- package/dist/ghost-breadcrumb-list.js +27 -0
- package/dist/ghost-breadcrumb-page.d.ts +18 -0
- package/dist/ghost-breadcrumb-page.js +20 -0
- package/dist/ghost-breadcrumb-separator.d.ts +18 -0
- package/dist/ghost-breadcrumb-separator.js +20 -0
- package/dist/ghost-breadcrumb.d.ts +34 -0
- package/dist/ghost-breadcrumb.js +27 -0
- package/dist/ghost-button.d.ts +102 -0
- package/dist/ghost-button.js +66 -0
- package/dist/ghost-calendar-cell.d.ts +15 -0
- package/dist/ghost-calendar-cell.js +12 -0
- package/dist/ghost-calendar-grid.d.ts +5 -0
- package/dist/ghost-calendar-grid.js +21 -0
- package/dist/ghost-calendar-header.d.ts +3 -0
- package/dist/ghost-calendar-header.js +9 -0
- package/dist/ghost-calendar-heading.d.ts +3 -0
- package/dist/ghost-calendar-heading.js +9 -0
- package/dist/ghost-calendar-next-button.d.ts +9 -0
- package/dist/ghost-calendar-next-button.js +18 -0
- package/dist/ghost-calendar-prev-button.d.ts +9 -0
- package/dist/ghost-calendar-prev-button.js +18 -0
- package/dist/ghost-calendar.d.ts +119 -0
- package/dist/ghost-calendar.js +101 -0
- package/dist/ghost-card.d.ts +33 -0
- package/dist/ghost-card.js +36 -0
- package/dist/ghost-checkbox-group.d.ts +50 -0
- package/dist/ghost-checkbox-group.js +56 -0
- package/dist/ghost-checkbox.d.ts +76 -0
- package/dist/ghost-checkbox.js +59 -0
- package/dist/ghost-collapsible-content.d.ts +28 -0
- package/dist/ghost-collapsible-content.js +41 -0
- package/dist/ghost-collapsible-trigger.d.ts +28 -0
- package/dist/ghost-collapsible-trigger.js +41 -0
- package/dist/ghost-collapsible.d.ts +44 -0
- package/dist/ghost-collapsible.js +38 -0
- package/dist/ghost-combobox-content.d.ts +82 -0
- package/dist/ghost-combobox-content.js +58 -0
- package/dist/ghost-combobox-input.d.ts +28 -0
- package/dist/ghost-combobox-input.js +36 -0
- package/dist/ghost-combobox-trigger.d.ts +28 -0
- package/dist/ghost-combobox-trigger.js +36 -0
- package/dist/ghost-combobox.d.ts +179 -0
- package/dist/ghost-combobox.js +98 -0
- package/dist/ghost-command-palette-content.d.ts +86 -0
- package/dist/ghost-command-palette-content.js +55 -0
- package/dist/ghost-command-palette-overlay.d.ts +40 -0
- package/dist/ghost-command-palette-overlay.js +40 -0
- package/dist/ghost-command-palette.d.ts +114 -0
- package/dist/ghost-command-palette.js +93 -0
- package/dist/ghost-context-menu-checkbox-item.d.ts +50 -0
- package/dist/ghost-context-menu-checkbox-item.js +57 -0
- package/dist/ghost-context-menu-content.d.ts +85 -0
- package/dist/ghost-context-menu-content.js +75 -0
- package/dist/ghost-context-menu-group.d.ts +19 -0
- package/dist/ghost-context-menu-group.js +23 -0
- package/dist/ghost-context-menu-item.d.ts +32 -0
- package/dist/ghost-context-menu-item.js +43 -0
- package/dist/ghost-context-menu-label.d.ts +19 -0
- package/dist/ghost-context-menu-label.js +23 -0
- package/dist/ghost-context-menu-radio-group.d.ts +50 -0
- package/dist/ghost-context-menu-radio-group.js +46 -0
- package/dist/ghost-context-menu-radio-item.d.ts +40 -0
- package/dist/ghost-context-menu-radio-item.js +53 -0
- package/dist/ghost-context-menu-separator.d.ts +28 -0
- package/dist/ghost-context-menu-separator.js +28 -0
- package/dist/ghost-context-menu-trigger.d.ts +28 -0
- package/dist/ghost-context-menu-trigger.js +41 -0
- package/dist/ghost-context-menu.d.ts +35 -0
- package/dist/ghost-context-menu.js +33 -0
- package/dist/ghost-data-table-preset.d.ts +31 -0
- package/dist/ghost-data-table-preset.js +12 -0
- package/dist/ghost-data-table-table.d.ts +30 -0
- package/dist/ghost-data-table-table.js +9 -0
- package/dist/ghost-data-table.d.ts +94 -0
- package/dist/ghost-data-table.js +105 -0
- package/dist/ghost-date-picker-calendar.d.ts +9 -0
- package/dist/ghost-date-picker-calendar.js +30 -0
- package/dist/ghost-date-picker-content.d.ts +95 -0
- package/dist/ghost-date-picker-content.js +58 -0
- package/dist/ghost-date-picker-input.d.ts +46 -0
- package/dist/ghost-date-picker-input.js +39 -0
- package/dist/ghost-date-picker-trigger.d.ts +6 -0
- package/dist/ghost-date-picker-trigger.js +22 -0
- package/dist/ghost-date-picker.d.ts +245 -0
- package/dist/ghost-date-picker.js +68 -0
- package/dist/ghost-dialog-close.d.ts +28 -0
- package/dist/ghost-dialog-close.js +37 -0
- package/dist/ghost-dialog-content.d.ts +95 -0
- package/dist/ghost-dialog-content.js +78 -0
- package/dist/ghost-dialog-description.d.ts +19 -0
- package/dist/ghost-dialog-description.js +37 -0
- package/dist/ghost-dialog-overlay.d.ts +40 -0
- package/dist/ghost-dialog-overlay.js +46 -0
- package/dist/ghost-dialog-title.d.ts +19 -0
- package/dist/ghost-dialog-title.js +33 -0
- package/dist/ghost-dialog-trigger.d.ts +28 -0
- package/dist/ghost-dialog-trigger.js +37 -0
- package/dist/ghost-dialog.d.ts +44 -0
- package/dist/ghost-dialog.js +38 -0
- package/dist/ghost-drawer-close.d.ts +28 -0
- package/dist/ghost-drawer-close.js +37 -0
- package/dist/ghost-drawer-content.d.ts +87 -0
- package/dist/ghost-drawer-content.js +73 -0
- package/dist/ghost-drawer-description.d.ts +19 -0
- package/dist/ghost-drawer-description.js +36 -0
- package/dist/ghost-drawer-overlay.d.ts +40 -0
- package/dist/ghost-drawer-overlay.js +46 -0
- package/dist/ghost-drawer-title.d.ts +19 -0
- package/dist/ghost-drawer-title.js +32 -0
- package/dist/ghost-drawer-trigger.d.ts +28 -0
- package/dist/ghost-drawer-trigger.js +37 -0
- package/dist/ghost-drawer.d.ts +62 -0
- package/dist/ghost-drawer.js +48 -0
- package/dist/ghost-dropdown-menu-checkbox-item.d.ts +50 -0
- package/dist/ghost-dropdown-menu-checkbox-item.js +57 -0
- package/dist/ghost-dropdown-menu-content.d.ts +85 -0
- package/dist/ghost-dropdown-menu-content.js +75 -0
- package/dist/ghost-dropdown-menu-group.d.ts +19 -0
- package/dist/ghost-dropdown-menu-group.js +23 -0
- package/dist/ghost-dropdown-menu-item.d.ts +32 -0
- package/dist/ghost-dropdown-menu-item.js +47 -0
- package/dist/ghost-dropdown-menu-label.d.ts +19 -0
- package/dist/ghost-dropdown-menu-label.js +23 -0
- package/dist/ghost-dropdown-menu-radio-group.d.ts +50 -0
- package/dist/ghost-dropdown-menu-radio-group.js +46 -0
- package/dist/ghost-dropdown-menu-radio-item.d.ts +40 -0
- package/dist/ghost-dropdown-menu-radio-item.js +53 -0
- package/dist/ghost-dropdown-menu-separator.d.ts +28 -0
- package/dist/ghost-dropdown-menu-separator.js +28 -0
- package/dist/ghost-dropdown-menu-trigger.d.ts +28 -0
- package/dist/ghost-dropdown-menu-trigger.js +41 -0
- package/dist/ghost-dropdown-menu.d.ts +35 -0
- package/dist/ghost-dropdown-menu.js +33 -0
- package/dist/ghost-empty-state.d.ts +31 -0
- package/dist/ghost-empty-state.js +35 -0
- package/dist/ghost-field.d.ts +53 -0
- package/dist/ghost-field.js +49 -0
- package/dist/ghost-file-upload-dropzone.d.ts +9 -0
- package/dist/ghost-file-upload-dropzone.js +23 -0
- package/dist/ghost-file-upload-item-remove.d.ts +10 -0
- package/dist/ghost-file-upload-item-remove.js +30 -0
- package/dist/ghost-file-upload-list.d.ts +10 -0
- package/dist/ghost-file-upload-list.js +24 -0
- package/dist/ghost-file-upload-trigger.d.ts +18 -0
- package/dist/ghost-file-upload-trigger.js +30 -0
- package/dist/ghost-file-upload.d.ts +147 -0
- package/dist/ghost-file-upload.js +98 -0
- package/dist/ghost-hover-card-content.d.ts +85 -0
- package/dist/ghost-hover-card-content.js +75 -0
- package/dist/ghost-hover-card-trigger.d.ts +28 -0
- package/dist/ghost-hover-card-trigger.js +41 -0
- package/dist/ghost-hover-card.d.ts +62 -0
- package/dist/ghost-hover-card.js +48 -0
- package/dist/ghost-inline-alert.d.ts +62 -0
- package/dist/ghost-inline-alert.js +50 -0
- package/dist/ghost-input.d.ts +100 -0
- package/dist/ghost-input.js +60 -0
- package/dist/ghost-interactive-surface.d.ts +31 -0
- package/dist/ghost-interactive-surface.js +36 -0
- package/dist/ghost-kbd.d.ts +42 -0
- package/dist/ghost-kbd.js +32 -0
- package/dist/ghost-link.d.ts +94 -0
- package/dist/ghost-link.js +59 -0
- package/dist/ghost-menubar-checkbox-item.d.ts +50 -0
- package/dist/ghost-menubar-checkbox-item.js +57 -0
- package/dist/ghost-menubar-content.d.ts +85 -0
- package/dist/ghost-menubar-content.js +71 -0
- package/dist/ghost-menubar-group.d.ts +19 -0
- package/dist/ghost-menubar-group.js +19 -0
- package/dist/ghost-menubar-item.d.ts +32 -0
- package/dist/ghost-menubar-item.js +43 -0
- package/dist/ghost-menubar-label.d.ts +19 -0
- package/dist/ghost-menubar-label.js +19 -0
- package/dist/ghost-menubar-menu.d.ts +35 -0
- package/dist/ghost-menubar-menu.js +33 -0
- package/dist/ghost-menubar-radio-group.d.ts +50 -0
- package/dist/ghost-menubar-radio-group.js +46 -0
- package/dist/ghost-menubar-radio-item.d.ts +40 -0
- package/dist/ghost-menubar-radio-item.js +53 -0
- package/dist/ghost-menubar-separator.d.ts +28 -0
- package/dist/ghost-menubar-separator.js +28 -0
- package/dist/ghost-menubar-trigger.d.ts +28 -0
- package/dist/ghost-menubar-trigger.js +37 -0
- package/dist/ghost-menubar.d.ts +28 -0
- package/dist/ghost-menubar.js +33 -0
- package/dist/ghost-number-input.d.ts +153 -0
- package/dist/ghost-number-input.js +87 -0
- package/dist/ghost-pagination.d.ts +151 -0
- package/dist/ghost-pagination.js +71 -0
- package/dist/ghost-popover-close.d.ts +28 -0
- package/dist/ghost-popover-close.js +37 -0
- package/dist/ghost-popover-content.d.ts +86 -0
- package/dist/ghost-popover-content.js +72 -0
- package/dist/ghost-popover-trigger.d.ts +28 -0
- package/dist/ghost-popover-trigger.js +37 -0
- package/dist/ghost-popover.d.ts +35 -0
- package/dist/ghost-popover.js +33 -0
- package/dist/ghost-progress.d.ts +69 -0
- package/dist/ghost-progress.js +37 -0
- package/dist/ghost-radio-group-item.d.ts +37 -0
- package/dist/ghost-radio-group-item.js +33 -0
- package/dist/ghost-radio-group.d.ts +91 -0
- package/dist/ghost-radio-group.js +65 -0
- package/dist/ghost-scroll-area.d.ts +49 -0
- package/dist/ghost-scroll-area.js +32 -0
- package/dist/ghost-scroll-spy-item.d.ts +27 -0
- package/dist/ghost-scroll-spy-item.js +29 -0
- package/dist/ghost-scroll-spy-link.d.ts +44 -0
- package/dist/ghost-scroll-spy-link.js +39 -0
- package/dist/ghost-scroll-spy-list.d.ts +18 -0
- package/dist/ghost-scroll-spy-list.js +27 -0
- package/dist/ghost-scroll-spy.d.ts +121 -0
- package/dist/ghost-scroll-spy.js +83 -0
- package/dist/ghost-segmented-control-item.d.ts +36 -0
- package/dist/ghost-segmented-control-item.js +47 -0
- package/dist/ghost-segmented-control.d.ts +77 -0
- package/dist/ghost-segmented-control.js +73 -0
- package/dist/ghost-select-content.d.ts +82 -0
- package/dist/ghost-select-content.js +58 -0
- package/dist/ghost-select-trigger.d.ts +28 -0
- package/dist/ghost-select-trigger.js +36 -0
- package/dist/ghost-select.d.ts +54 -0
- package/dist/ghost-select.js +51 -0
- package/dist/ghost-separator.d.ts +41 -0
- package/dist/ghost-separator.js +34 -0
- package/dist/ghost-skeleton.d.ts +34 -0
- package/dist/ghost-skeleton.js +31 -0
- package/dist/ghost-slider.d.ts +150 -0
- package/dist/ghost-slider.js +83 -0
- package/dist/ghost-spinner.d.ts +42 -0
- package/dist/ghost-spinner.js +26 -0
- package/dist/ghost-submenu-content.d.ts +22 -0
- package/dist/ghost-submenu-content.js +17 -0
- package/dist/ghost-submenu-trigger.d.ts +11 -0
- package/dist/ghost-submenu-trigger.js +11 -0
- package/dist/ghost-submenu.d.ts +1 -0
- package/dist/ghost-submenu.js +1 -0
- package/dist/ghost-switch.d.ts +102 -0
- package/dist/ghost-switch.js +68 -0
- package/dist/ghost-table.d.ts +30 -0
- package/dist/ghost-table.js +36 -0
- package/dist/ghost-tabs-content.d.ts +27 -0
- package/dist/ghost-tabs-content.js +38 -0
- package/dist/ghost-tabs-list.d.ts +19 -0
- package/dist/ghost-tabs-list.js +33 -0
- package/dist/ghost-tabs-trigger.d.ts +36 -0
- package/dist/ghost-tabs-trigger.js +43 -0
- package/dist/ghost-tabs.d.ts +59 -0
- package/dist/ghost-tabs.js +45 -0
- package/dist/ghost-tags-input.d.ts +75 -0
- package/dist/ghost-tags-input.js +54 -0
- package/dist/ghost-textarea.d.ts +109 -0
- package/dist/ghost-textarea.js +66 -0
- package/dist/ghost-toast-viewport.d.ts +43 -0
- package/dist/ghost-toast-viewport.js +74 -0
- package/dist/ghost-toast.d.ts +54 -0
- package/dist/ghost-toast.js +48 -0
- package/dist/ghost-toggle-group-item.d.ts +36 -0
- package/dist/ghost-toggle-group-item.js +43 -0
- package/dist/ghost-toggle-group.d.ts +77 -0
- package/dist/ghost-toggle-group.js +69 -0
- package/dist/ghost-toolbar.d.ts +6 -0
- package/dist/ghost-toolbar.js +24 -0
- package/dist/ghost-tooltip-content.d.ts +86 -0
- package/dist/ghost-tooltip-content.js +72 -0
- package/dist/ghost-tooltip-trigger.d.ts +28 -0
- package/dist/ghost-tooltip-trigger.js +37 -0
- package/dist/ghost-tooltip.d.ts +62 -0
- package/dist/ghost-tooltip.js +50 -0
- package/dist/ghost-tree-group.d.ts +32 -0
- package/dist/ghost-tree-group.js +39 -0
- package/dist/ghost-tree-item.d.ts +45 -0
- package/dist/ghost-tree-item.js +42 -0
- package/dist/ghost-tree-trigger.d.ts +40 -0
- package/dist/ghost-tree-trigger.js +43 -0
- package/dist/ghost-tree.d.ts +122 -0
- package/dist/ghost-tree.js +98 -0
- package/dist/index.d.ts +153 -0
- package/dist/index.js +149 -0
- package/dist/manifest.json +6835 -0
- package/dist/mono.css +1874 -0
- package/dist/recipes/accordion.css +42 -0
- package/dist/recipes/avatar.css +87 -0
- package/dist/recipes/badge.css +170 -0
- package/dist/recipes/breadcrumb.css +149 -0
- package/dist/recipes/button.css +632 -0
- package/dist/recipes/calendar.css +292 -0
- package/dist/recipes/card.css +54 -0
- package/dist/recipes/checkbox-group.css +30 -0
- package/dist/recipes/checkbox.css +262 -0
- package/dist/recipes/collapsible.css +304 -0
- package/dist/recipes/combobox.css +276 -0
- package/dist/recipes/command-palette.css +296 -0
- package/dist/recipes/context-menu.css +138 -0
- package/dist/recipes/data-table.css +462 -0
- package/dist/recipes/date-picker.css +292 -0
- package/dist/recipes/dialog.css +199 -0
- package/dist/recipes/drawer.css +436 -0
- package/dist/recipes/dropdown-menu.css +138 -0
- package/dist/recipes/empty-state.css +66 -0
- package/dist/recipes/field.css +63 -0
- package/dist/recipes/file-upload.css +260 -0
- package/dist/recipes/hover-card.css +83 -0
- package/dist/recipes/inline-alert.css +172 -0
- package/dist/recipes/input.css +176 -0
- package/dist/recipes/kbd.css +113 -0
- package/dist/recipes/link.css +158 -0
- package/dist/recipes/menubar.css +161 -0
- package/dist/recipes/number-input.css +222 -0
- package/dist/recipes/pagination.css +143 -0
- package/dist/recipes/popover.css +102 -0
- package/dist/recipes/progress.css +124 -0
- package/dist/recipes/radio-group.css +200 -0
- package/dist/recipes/scroll-area.css +72 -0
- package/dist/recipes/scroll-spy.css +72 -0
- package/dist/recipes/segmented-control.css +237 -0
- package/dist/recipes/select.css +299 -0
- package/dist/recipes/separator.css +41 -0
- package/dist/recipes/skeleton.css +132 -0
- package/dist/recipes/slider.css +239 -0
- package/dist/recipes/spinner.css +93 -0
- package/dist/recipes/switch.css +314 -0
- package/dist/recipes/table.css +120 -0
- package/dist/recipes/tabs.css +139 -0
- package/dist/recipes/tags-input.css +120 -0
- package/dist/recipes/textarea.css +148 -0
- package/dist/recipes/toast.css +321 -0
- package/dist/recipes/toggle-group.css +92 -0
- package/dist/recipes/toolbar.css +25 -0
- package/dist/recipes/tooltip.css +48 -0
- package/dist/recipes/tree.css +231 -0
- package/dist/start-theme-transition.d.ts +9 -0
- package/dist/start-theme-transition.js +27 -0
- package/dist/tokens/primitives.json +612 -0
- package/dist/tokens/seeds.json +23 -0
- package/dist/tokens/semantic.compact.json +175 -0
- package/dist/tokens/semantic.dark.json +583 -0
- package/dist/tokens/semantic.json +1656 -0
- package/dist/tokens/semantic.spacious.json +175 -0
- package/dist/tokens.css +1874 -0
- package/dist/tokens.json +6152 -0
- package/dist/vibrant.css +1874 -0
- package/package.json +75 -4
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Themed GhostPagination. Reuses action control tokens for page buttons.
|
|
3
|
+
*/
|
|
4
|
+
@layer ghostvue-theme {
|
|
5
|
+
:where(
|
|
6
|
+
.ghost-theme .ghost-pagination,
|
|
7
|
+
.ghost-themed-scope .ghost-pagination
|
|
8
|
+
) {
|
|
9
|
+
--_ghost-pagination-gap: var(--ghost-space-gap-xs);
|
|
10
|
+
--_ghost-pagination-min-size: var(--ghost-control-size-md-min);
|
|
11
|
+
--_ghost-pagination-font-size: var(--ghost-control-size-md-font);
|
|
12
|
+
--_ghost-pagination-padding-block: var(
|
|
13
|
+
--ghost-control-size-md-padding-block
|
|
14
|
+
);
|
|
15
|
+
--_ghost-pagination-padding-inline: var(
|
|
16
|
+
--ghost-control-size-md-padding-inline
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(
|
|
21
|
+
.ghost-theme .ghost-pagination__list,
|
|
22
|
+
.ghost-themed-scope .ghost-pagination__list
|
|
23
|
+
) {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
gap: var(--_ghost-pagination-gap);
|
|
27
|
+
list-style: none;
|
|
28
|
+
margin: 0;
|
|
29
|
+
padding: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where(
|
|
33
|
+
.ghost-theme .ghost-pagination button,
|
|
34
|
+
.ghost-themed-scope .ghost-pagination button
|
|
35
|
+
) {
|
|
36
|
+
align-items: center;
|
|
37
|
+
appearance: none;
|
|
38
|
+
background-color: var(--ghost-surface-muted-bg);
|
|
39
|
+
border: var(--ghost-border-hairline-width) solid var(--ghost-border-default);
|
|
40
|
+
border-radius: var(--ghost-action-radius);
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
color: var(--ghost-surface-fg);
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
font-family: var(--ghost-action-label-family);
|
|
46
|
+
font-size: var(--_ghost-pagination-font-size);
|
|
47
|
+
font-weight: var(--ghost-action-label-weight);
|
|
48
|
+
justify-content: center;
|
|
49
|
+
line-height: var(--ghost-action-label-line);
|
|
50
|
+
min-block-size: var(--_ghost-pagination-min-size);
|
|
51
|
+
min-inline-size: var(--_ghost-pagination-min-size);
|
|
52
|
+
padding-block: var(--_ghost-pagination-padding-block);
|
|
53
|
+
padding-inline: var(--_ghost-pagination-padding-inline);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:where(
|
|
57
|
+
.ghost-theme .ghost-pagination button[aria-current='page'],
|
|
58
|
+
.ghost-themed-scope .ghost-pagination button[aria-current='page']
|
|
59
|
+
) {
|
|
60
|
+
background-color: var(--ghost-action-primary-bg);
|
|
61
|
+
border-color: var(--ghost-action-primary-border);
|
|
62
|
+
color: var(--ghost-action-primary-fg);
|
|
63
|
+
cursor: default;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:where(
|
|
67
|
+
.ghost-theme .ghost-pagination button:disabled,
|
|
68
|
+
.ghost-themed-scope .ghost-pagination button:disabled,
|
|
69
|
+
.ghost-theme .ghost-pagination button[aria-disabled='true'],
|
|
70
|
+
.ghost-themed-scope .ghost-pagination button[aria-disabled='true']
|
|
71
|
+
) {
|
|
72
|
+
cursor: not-allowed;
|
|
73
|
+
opacity: var(--ghost-action-disabled-opacity);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:where(
|
|
77
|
+
.ghost-theme .ghost-pagination [data-part='ellipsis'],
|
|
78
|
+
.ghost-themed-scope .ghost-pagination [data-part='ellipsis']
|
|
79
|
+
) {
|
|
80
|
+
align-items: center;
|
|
81
|
+
color: var(--ghost-text-muted);
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
min-block-size: var(--_ghost-pagination-min-size);
|
|
84
|
+
min-inline-size: var(--_ghost-pagination-min-size);
|
|
85
|
+
justify-content: center;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:where(
|
|
89
|
+
.ghost-theme .ghost-pagination[data-size='sm'],
|
|
90
|
+
.ghost-themed-scope .ghost-pagination[data-size='sm']
|
|
91
|
+
) {
|
|
92
|
+
--_ghost-pagination-min-size: var(--ghost-control-size-sm-min);
|
|
93
|
+
--_ghost-pagination-font-size: var(--ghost-control-size-sm-font);
|
|
94
|
+
--_ghost-pagination-padding-block: var(
|
|
95
|
+
--ghost-control-size-sm-padding-block
|
|
96
|
+
);
|
|
97
|
+
--_ghost-pagination-padding-inline: var(
|
|
98
|
+
--ghost-control-size-sm-padding-inline
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:where(
|
|
103
|
+
.ghost-theme .ghost-pagination[data-size='lg'],
|
|
104
|
+
.ghost-themed-scope .ghost-pagination[data-size='lg']
|
|
105
|
+
) {
|
|
106
|
+
--_ghost-pagination-min-size: var(--ghost-control-size-lg-min);
|
|
107
|
+
--_ghost-pagination-font-size: var(--ghost-control-size-lg-font);
|
|
108
|
+
--_ghost-pagination-padding-block: var(
|
|
109
|
+
--ghost-control-size-lg-padding-block
|
|
110
|
+
);
|
|
111
|
+
--_ghost-pagination-padding-inline: var(
|
|
112
|
+
--ghost-control-size-lg-padding-inline
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/*
|
|
117
|
+
* In forced colors every page button shares ButtonFace and ButtonText, so
|
|
118
|
+
* the current page is painted Highlight (opted out of adjustment) and
|
|
119
|
+
* disabled controls use GrayText instead of opacity.
|
|
120
|
+
*/
|
|
121
|
+
@media (forced-colors: active) {
|
|
122
|
+
:where(
|
|
123
|
+
.ghost-theme .ghost-pagination button[aria-current='page'],
|
|
124
|
+
.ghost-themed-scope .ghost-pagination button[aria-current='page']
|
|
125
|
+
) {
|
|
126
|
+
background-color: Highlight;
|
|
127
|
+
border-color: Highlight;
|
|
128
|
+
color: HighlightText;
|
|
129
|
+
forced-color-adjust: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:where(
|
|
133
|
+
.ghost-theme .ghost-pagination button:disabled,
|
|
134
|
+
.ghost-themed-scope .ghost-pagination button:disabled,
|
|
135
|
+
.ghost-theme .ghost-pagination button[aria-disabled='true'],
|
|
136
|
+
.ghost-themed-scope .ghost-pagination button[aria-disabled='true']
|
|
137
|
+
) {
|
|
138
|
+
border-color: GrayText;
|
|
139
|
+
color: GrayText;
|
|
140
|
+
opacity: 1;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Themed GhostPopover surface. Visual values come from semantic --ghost-*
|
|
3
|
+
* tokens with no component-specific tokens or hard-coded colors/lengths.
|
|
4
|
+
*/
|
|
5
|
+
@layer ghostvue-theme {
|
|
6
|
+
:where(
|
|
7
|
+
.ghost-theme .ghost-popover-content,
|
|
8
|
+
.ghost-themed-scope .ghost-popover-content,
|
|
9
|
+
.ghost-popover-content[data-themed]
|
|
10
|
+
) {
|
|
11
|
+
background-color: var(--ghost-elevation-3-bg);
|
|
12
|
+
border: var(--ghost-border-hairline-width) solid
|
|
13
|
+
var(--ghost-elevation-3-border);
|
|
14
|
+
border-radius: var(--ghost-radius-lg);
|
|
15
|
+
box-shadow:
|
|
16
|
+
var(--ghost-elevation-3-shadow), var(--ghost-elevation-3-highlight);
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
color: var(--ghost-surface-fg);
|
|
19
|
+
font-family: var(--ghost-type-family-sans);
|
|
20
|
+
font-feature-settings: var(--ghost-type-feature-default);
|
|
21
|
+
padding: var(--ghost-space-inset-md);
|
|
22
|
+
z-index: 50;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where(
|
|
26
|
+
.ghost-theme .ghost-popover-content:focus-visible,
|
|
27
|
+
.ghost-themed-scope .ghost-popover-content:focus-visible,
|
|
28
|
+
.ghost-popover-content[data-themed]:focus-visible
|
|
29
|
+
) {
|
|
30
|
+
box-shadow:
|
|
31
|
+
var(--ghost-elevation-3-shadow),
|
|
32
|
+
var(--ghost-elevation-3-highlight),
|
|
33
|
+
0 0 0 var(--ghost-focus-ring-offset) var(--ghost-focus-ring-contrast);
|
|
34
|
+
outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
|
|
35
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:where(
|
|
39
|
+
.ghost-theme .ghost-popover-content[data-state='open'],
|
|
40
|
+
.ghost-themed-scope .ghost-popover-content[data-state='open'],
|
|
41
|
+
.ghost-popover-content[data-themed][data-state='open']
|
|
42
|
+
) {
|
|
43
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
44
|
+
var(--ghost-motion-easing-standard);
|
|
45
|
+
|
|
46
|
+
@starting-style {
|
|
47
|
+
opacity: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
51
|
+
transition:
|
|
52
|
+
opacity var(--ghost-motion-duration-fast)
|
|
53
|
+
var(--ghost-motion-enter-easing),
|
|
54
|
+
scale var(--ghost-motion-duration-fast) var(--ghost-motion-enter-easing);
|
|
55
|
+
|
|
56
|
+
@starting-style {
|
|
57
|
+
scale: 0.98;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Exit: reduced motion keeps scale at 1 and only fades. */
|
|
63
|
+
:where(
|
|
64
|
+
.ghost-theme .ghost-popover-content[data-state='closed'],
|
|
65
|
+
.ghost-themed-scope .ghost-popover-content[data-state='closed'],
|
|
66
|
+
.ghost-popover-content[data-themed][data-state='closed']
|
|
67
|
+
) {
|
|
68
|
+
opacity: 0;
|
|
69
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
70
|
+
var(--ghost-motion-easing-standard);
|
|
71
|
+
|
|
72
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
73
|
+
scale: 0.98;
|
|
74
|
+
transition:
|
|
75
|
+
opacity var(--ghost-motion-exit-duration)
|
|
76
|
+
var(--ghost-motion-exit-easing),
|
|
77
|
+
scale var(--ghost-motion-exit-duration) var(--ghost-motion-exit-easing);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media (forced-colors: active) {
|
|
82
|
+
:where(
|
|
83
|
+
.ghost-theme .ghost-popover-content,
|
|
84
|
+
.ghost-themed-scope .ghost-popover-content,
|
|
85
|
+
.ghost-popover-content[data-themed]
|
|
86
|
+
) {
|
|
87
|
+
background-color: Canvas;
|
|
88
|
+
border-color: CanvasText;
|
|
89
|
+
box-shadow: none;
|
|
90
|
+
color: CanvasText;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:where(
|
|
94
|
+
.ghost-theme .ghost-popover-content:focus-visible,
|
|
95
|
+
.ghost-themed-scope .ghost-popover-content:focus-visible,
|
|
96
|
+
.ghost-popover-content[data-themed]:focus-visible
|
|
97
|
+
) {
|
|
98
|
+
box-shadow: none;
|
|
99
|
+
outline-color: Highlight;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Themed GhostProgress. Visual values come from semantic --ghost-* tokens.
|
|
3
|
+
* Private --_ghost-progress-* properties are per-instance wiring, not a public
|
|
4
|
+
* API. Indeterminate translation is CSS-only so reduced-motion can swap it for
|
|
5
|
+
* a pulse without a client motion query.
|
|
6
|
+
*
|
|
7
|
+
* Thickness reads --ghost-track-thickness-*, not --ghost-space-gap-*: gaps are
|
|
8
|
+
* layout spacing that density may collapse to zero (Calm defaults to compact),
|
|
9
|
+
* while painted thickness must stay visible at every density and theme.
|
|
10
|
+
*/
|
|
11
|
+
@layer ghostvue-theme {
|
|
12
|
+
:where(.ghost-theme .ghost-progress, .ghost-themed-scope .ghost-progress) {
|
|
13
|
+
--_ghost-progress-track: var(--ghost-border-default);
|
|
14
|
+
--_ghost-progress-fill: var(--ghost-action-primary-bg);
|
|
15
|
+
--_ghost-progress-size: var(--ghost-track-thickness-md);
|
|
16
|
+
|
|
17
|
+
background-color: var(--_ghost-progress-track);
|
|
18
|
+
block-size: var(--_ghost-progress-size);
|
|
19
|
+
border-radius: var(--ghost-radius-pill);
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
display: block;
|
|
22
|
+
inline-size: 100%;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where(
|
|
27
|
+
.ghost-theme .ghost-progress > [data-part='indicator'],
|
|
28
|
+
.ghost-themed-scope .ghost-progress > [data-part='indicator']
|
|
29
|
+
) {
|
|
30
|
+
--_ghost-progress-update-baseline: var(
|
|
31
|
+
--_ghost-progress-intensity-baseline,
|
|
32
|
+
1
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
background-color: var(--_ghost-progress-fill);
|
|
36
|
+
block-size: 100%;
|
|
37
|
+
border-radius: inherit;
|
|
38
|
+
transition: inline-size var(--ghost-motion-duration-fast)
|
|
39
|
+
var(--ghost-motion-easing-standard);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where(
|
|
43
|
+
.ghost-theme .ghost-progress[data-tone='neutral'],
|
|
44
|
+
.ghost-themed-scope .ghost-progress[data-tone='neutral']
|
|
45
|
+
) {
|
|
46
|
+
--_ghost-progress-fill: var(--ghost-action-neutral-bg);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:where(
|
|
50
|
+
.ghost-theme .ghost-progress[data-tone='danger'],
|
|
51
|
+
.ghost-themed-scope .ghost-progress[data-tone='danger']
|
|
52
|
+
) {
|
|
53
|
+
--_ghost-progress-fill: var(--ghost-action-danger-bg);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:where(
|
|
57
|
+
.ghost-theme .ghost-progress[data-size='sm'],
|
|
58
|
+
.ghost-themed-scope .ghost-progress[data-size='sm']
|
|
59
|
+
) {
|
|
60
|
+
--_ghost-progress-size: var(--ghost-track-thickness-sm);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:where(
|
|
64
|
+
.ghost-theme .ghost-progress[data-size='lg'],
|
|
65
|
+
.ghost-themed-scope .ghost-progress[data-size='lg']
|
|
66
|
+
) {
|
|
67
|
+
--_ghost-progress-size: var(--ghost-track-thickness-lg);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:where(
|
|
71
|
+
.ghost-theme
|
|
72
|
+
.ghost-progress[data-state='indeterminate']
|
|
73
|
+
[data-part='indicator'],
|
|
74
|
+
.ghost-themed-scope
|
|
75
|
+
.ghost-progress[data-state='indeterminate']
|
|
76
|
+
[data-part='indicator']
|
|
77
|
+
) {
|
|
78
|
+
/* Looping duration matches GhostSpinner so the two do not drift. */
|
|
79
|
+
animation: ghost-progress-indeterminate var(--ghost-action-spinner-duration)
|
|
80
|
+
var(--ghost-motion-easing-standard) infinite;
|
|
81
|
+
/* Width is a fraction of the track; keyframes translate in units of this fill. */
|
|
82
|
+
inline-size: 40%;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@media (prefers-reduced-motion: reduce) {
|
|
86
|
+
:where(
|
|
87
|
+
.ghost-theme
|
|
88
|
+
.ghost-progress[data-state='indeterminate']
|
|
89
|
+
[data-part='indicator'],
|
|
90
|
+
.ghost-themed-scope
|
|
91
|
+
.ghost-progress[data-state='indeterminate']
|
|
92
|
+
[data-part='indicator']
|
|
93
|
+
) {
|
|
94
|
+
animation: ghost-progress-pulse var(--ghost-action-spinner-duration)
|
|
95
|
+
var(--ghost-motion-easing-standard) infinite;
|
|
96
|
+
inline-size: 100%;
|
|
97
|
+
transform: none;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media (forced-colors: active) {
|
|
102
|
+
:where(.ghost-theme .ghost-progress, .ghost-themed-scope .ghost-progress) {
|
|
103
|
+
--_ghost-progress-track: Canvas;
|
|
104
|
+
--_ghost-progress-fill: Highlight;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@keyframes ghost-progress-indeterminate {
|
|
109
|
+
0% {
|
|
110
|
+
transform: translateX(-100%);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
100% {
|
|
114
|
+
/* 40% fill: -100% of self starts off-start, 250% crosses the track, +100% exits. */
|
|
115
|
+
transform: translateX(350%);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@keyframes ghost-progress-pulse {
|
|
120
|
+
50% {
|
|
121
|
+
opacity: var(--ghost-action-spinner-opacity);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
@layer ghostvue-theme {
|
|
2
|
+
:where(
|
|
3
|
+
.ghost-theme .ghost-radio-group,
|
|
4
|
+
.ghost-themed-scope .ghost-radio-group
|
|
5
|
+
) {
|
|
6
|
+
--_ghost-radio-hit: var(--ghost-control-size-md-min);
|
|
7
|
+
|
|
8
|
+
border: none;
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: var(--ghost-space-gap-sm);
|
|
11
|
+
margin: 0;
|
|
12
|
+
min-inline-size: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where(
|
|
17
|
+
.ghost-theme .ghost-radio-group[data-size='sm'],
|
|
18
|
+
.ghost-themed-scope .ghost-radio-group[data-size='sm']
|
|
19
|
+
) {
|
|
20
|
+
--_ghost-radio-hit: var(--ghost-control-size-sm-min);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where(
|
|
24
|
+
.ghost-theme .ghost-radio-group[data-size='lg'],
|
|
25
|
+
.ghost-themed-scope .ghost-radio-group[data-size='lg']
|
|
26
|
+
) {
|
|
27
|
+
--_ghost-radio-hit: var(--ghost-control-size-lg-min);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where(
|
|
31
|
+
.ghost-theme .ghost-radio-group[data-orientation='vertical'],
|
|
32
|
+
.ghost-themed-scope .ghost-radio-group[data-orientation='vertical']
|
|
33
|
+
) {
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:where(
|
|
38
|
+
.ghost-theme .ghost-radio-group[data-orientation='horizontal'],
|
|
39
|
+
.ghost-themed-scope .ghost-radio-group[data-orientation='horizontal']
|
|
40
|
+
) {
|
|
41
|
+
align-items: center;
|
|
42
|
+
flex-direction: row;
|
|
43
|
+
flex-wrap: wrap;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:where(
|
|
47
|
+
.ghost-theme .ghost-radio-group-item,
|
|
48
|
+
.ghost-themed-scope .ghost-radio-group-item
|
|
49
|
+
) {
|
|
50
|
+
--_ghost-radio-dot: calc(var(--ghost-action-icon-size) * 0.45);
|
|
51
|
+
--_ghost-radio-ring: var(--ghost-action-primary-border);
|
|
52
|
+
--_ghost-radio-fill: var(--ghost-surface-bg);
|
|
53
|
+
|
|
54
|
+
appearance: none;
|
|
55
|
+
background-color: transparent;
|
|
56
|
+
block-size: var(--_ghost-radio-hit, var(--ghost-control-size-md-min));
|
|
57
|
+
border: none;
|
|
58
|
+
box-sizing: border-box;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
display: inline-grid;
|
|
61
|
+
flex: none;
|
|
62
|
+
/* Keep the painted radio circle at 1rem so compact parent text (13px) does
|
|
63
|
+
not shrink the indicator and focus ring deep inside the 36px hit box. */
|
|
64
|
+
font-size: 1rem;
|
|
65
|
+
inline-size: var(--_ghost-radio-hit, var(--ghost-control-size-md-min));
|
|
66
|
+
margin: 0;
|
|
67
|
+
padding: 0;
|
|
68
|
+
place-items: center;
|
|
69
|
+
position: relative;
|
|
70
|
+
vertical-align: middle;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where(
|
|
74
|
+
.ghost-theme .ghost-radio-group-item,
|
|
75
|
+
.ghost-themed-scope .ghost-radio-group-item
|
|
76
|
+
)::before {
|
|
77
|
+
background-color: var(--_ghost-radio-fill);
|
|
78
|
+
border: var(--ghost-border-hairline-width) solid var(--_ghost-radio-ring);
|
|
79
|
+
border-radius: var(--ghost-radius-pill);
|
|
80
|
+
box-sizing: border-box;
|
|
81
|
+
content: '';
|
|
82
|
+
display: block;
|
|
83
|
+
/*
|
|
84
|
+
* The ring and the checked dot share the item's single grid cell. Without
|
|
85
|
+
* an explicit area, auto-placement moves the ring to a second row once the
|
|
86
|
+
* dot claims 1 / 1, which draws the dot above the ring.
|
|
87
|
+
*/
|
|
88
|
+
grid-area: 1 / 1;
|
|
89
|
+
block-size: var(--ghost-action-icon-size);
|
|
90
|
+
inline-size: var(--ghost-action-icon-size);
|
|
91
|
+
transition:
|
|
92
|
+
background-color var(--ghost-action-duration)
|
|
93
|
+
var(--ghost-motion-easing-standard),
|
|
94
|
+
border-color var(--ghost-action-duration)
|
|
95
|
+
var(--ghost-motion-easing-standard);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
:where(
|
|
99
|
+
.ghost-theme .ghost-radio-group-item[data-state='checked'],
|
|
100
|
+
.ghost-themed-scope .ghost-radio-group-item[data-state='checked']
|
|
101
|
+
)::after {
|
|
102
|
+
background-color: var(--ghost-action-primary-bg);
|
|
103
|
+
block-size: var(--_ghost-radio-dot);
|
|
104
|
+
border-radius: var(--ghost-radius-pill);
|
|
105
|
+
content: '';
|
|
106
|
+
grid-area: 1 / 1;
|
|
107
|
+
inline-size: var(--_ghost-radio-dot);
|
|
108
|
+
place-self: center;
|
|
109
|
+
pointer-events: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:where(
|
|
113
|
+
.ghost-theme
|
|
114
|
+
.ghost-radio-group-item:is(
|
|
115
|
+
:focus-visible,
|
|
116
|
+
[data-visual-state='focus-visible']
|
|
117
|
+
),
|
|
118
|
+
.ghost-themed-scope
|
|
119
|
+
.ghost-radio-group-item:is(
|
|
120
|
+
:focus-visible,
|
|
121
|
+
[data-visual-state='focus-visible']
|
|
122
|
+
)
|
|
123
|
+
)::before {
|
|
124
|
+
box-shadow: 0 0 0 var(--ghost-focus-ring-offset)
|
|
125
|
+
var(--ghost-focus-ring-contrast);
|
|
126
|
+
outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
|
|
127
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:where(
|
|
131
|
+
.ghost-theme .ghost-radio-group-item:disabled,
|
|
132
|
+
.ghost-themed-scope .ghost-radio-group-item:disabled
|
|
133
|
+
) {
|
|
134
|
+
cursor: not-allowed;
|
|
135
|
+
opacity: var(--ghost-action-disabled-opacity);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/*
|
|
139
|
+
* Forced colors repaint backgrounds as Canvas, which erased the checked dot.
|
|
140
|
+
* Mirror the checkbox: system-color ring, a Highlight dot kept by opting the
|
|
141
|
+
* item out of adjustment, GrayText when disabled, and an outline-only ring.
|
|
142
|
+
*/
|
|
143
|
+
@media (forced-colors: active) {
|
|
144
|
+
:where(
|
|
145
|
+
.ghost-theme .ghost-radio-group-item,
|
|
146
|
+
.ghost-themed-scope .ghost-radio-group-item
|
|
147
|
+
) {
|
|
148
|
+
--_ghost-radio-fill: ButtonFace;
|
|
149
|
+
--_ghost-radio-ring: ButtonText;
|
|
150
|
+
|
|
151
|
+
forced-color-adjust: none;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:where(
|
|
155
|
+
.ghost-theme .ghost-radio-group-item[data-state='checked'],
|
|
156
|
+
.ghost-themed-scope .ghost-radio-group-item[data-state='checked']
|
|
157
|
+
) {
|
|
158
|
+
--_ghost-radio-ring: Highlight;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
:where(
|
|
162
|
+
.ghost-theme .ghost-radio-group-item[data-state='checked'],
|
|
163
|
+
.ghost-themed-scope .ghost-radio-group-item[data-state='checked']
|
|
164
|
+
)::after {
|
|
165
|
+
background-color: Highlight;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:where(
|
|
169
|
+
.ghost-theme .ghost-radio-group-item:disabled,
|
|
170
|
+
.ghost-themed-scope .ghost-radio-group-item:disabled
|
|
171
|
+
) {
|
|
172
|
+
--_ghost-radio-ring: GrayText;
|
|
173
|
+
|
|
174
|
+
opacity: 1;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
:where(
|
|
178
|
+
.ghost-theme .ghost-radio-group-item[data-state='checked']:disabled,
|
|
179
|
+
.ghost-themed-scope .ghost-radio-group-item[data-state='checked']:disabled
|
|
180
|
+
)::after {
|
|
181
|
+
background-color: GrayText;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
:where(
|
|
185
|
+
.ghost-theme
|
|
186
|
+
.ghost-radio-group-item:is(
|
|
187
|
+
:focus-visible,
|
|
188
|
+
[data-visual-state='focus-visible']
|
|
189
|
+
),
|
|
190
|
+
.ghost-themed-scope
|
|
191
|
+
.ghost-radio-group-item:is(
|
|
192
|
+
:focus-visible,
|
|
193
|
+
[data-visual-state='focus-visible']
|
|
194
|
+
)
|
|
195
|
+
)::before {
|
|
196
|
+
box-shadow: none;
|
|
197
|
+
outline-color: Highlight;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Themed GhostScrollArea. Native scrolling only; no custom scrollbar parts.
|
|
3
|
+
* Logical sizing is left to the consumer; this recipe adds containment,
|
|
4
|
+
* scrollbar clearance, and platform scrollbar affordances under --ghost-*
|
|
5
|
+
* tokens.
|
|
6
|
+
*/
|
|
7
|
+
@layer ghostvue-theme {
|
|
8
|
+
:where(.ghost-theme .ghost-scroll-area, .ghost-scroll-area[data-themed]) {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
overscroll-behavior: contain;
|
|
11
|
+
-webkit-overflow-scrolling: touch;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* Scrollbar clearance. Overlay scrollbars (macOS, iOS, Android, Chromium
|
|
16
|
+
* overlay mode) draw over the scrollport and ignore scrollbar-gutter, so
|
|
17
|
+
* content needs its own room on the edge where each enabled axis's
|
|
18
|
+
* scrollbar sits: inline-end for vertical scrolling, block-end for
|
|
19
|
+
* horizontal scrolling. Keyed on data-orientation rather than
|
|
20
|
+
* data-overflow so the padding is present before content overflows and
|
|
21
|
+
* no layout shift happens when it starts to. Classic scrollbars take their
|
|
22
|
+
* own track beside this padding, so content clears them too.
|
|
23
|
+
* Logical properties keep the clearance on the scrollbar side in RTL.
|
|
24
|
+
*/
|
|
25
|
+
:where(
|
|
26
|
+
.ghost-theme
|
|
27
|
+
.ghost-scroll-area:is(
|
|
28
|
+
[data-orientation='vertical'],
|
|
29
|
+
[data-orientation='both']
|
|
30
|
+
),
|
|
31
|
+
.ghost-scroll-area[data-themed]:is(
|
|
32
|
+
[data-orientation='vertical'],
|
|
33
|
+
[data-orientation='both']
|
|
34
|
+
)
|
|
35
|
+
) {
|
|
36
|
+
padding-inline-end: var(--ghost-space-inset-scrollbar);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:where(
|
|
40
|
+
.ghost-theme
|
|
41
|
+
.ghost-scroll-area:is(
|
|
42
|
+
[data-orientation='horizontal'],
|
|
43
|
+
[data-orientation='both']
|
|
44
|
+
),
|
|
45
|
+
.ghost-scroll-area[data-themed]:is(
|
|
46
|
+
[data-orientation='horizontal'],
|
|
47
|
+
[data-orientation='both']
|
|
48
|
+
)
|
|
49
|
+
) {
|
|
50
|
+
padding-block-end: var(--ghost-space-inset-scrollbar);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Classic scrollbars: reserve the track up front when it always shows. */
|
|
54
|
+
:where(
|
|
55
|
+
.ghost-theme .ghost-scroll-area[data-type='scroll'],
|
|
56
|
+
.ghost-scroll-area[data-themed][data-type='scroll']
|
|
57
|
+
) {
|
|
58
|
+
scrollbar-gutter: stable;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media (prefers-reduced-motion: reduce) {
|
|
62
|
+
:where(.ghost-theme .ghost-scroll-area, .ghost-scroll-area[data-themed]) {
|
|
63
|
+
scroll-behavior: auto;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@supports (scrollbar-color: CanvasText Canvas) {
|
|
68
|
+
:where(.ghost-theme .ghost-scroll-area, .ghost-scroll-area[data-themed]) {
|
|
69
|
+
scrollbar-color: var(--ghost-border-strong) transparent;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|