@ethlete/components 1.0.0-next.69 → 1.0.0-next.70
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 +29 -0
- package/design/button.ts +57 -0
- package/design/form-field.ts +210 -0
- package/design/select.ts +110 -0
- package/fesm2022/ethlete-components-testing.mjs +3 -1
- package/fesm2022/ethlete-components-testing.mjs.map +1 -1
- package/fesm2022/ethlete-components.mjs +823 -105
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/package.json +20 -14
- package/src/lib/accordion/accordion-group.component.css +12 -0
- package/src/lib/accordion/accordion.component.css +185 -0
- package/src/lib/avatar/avatar-group.component.css +31 -0
- package/src/lib/avatar/avatar.component.css +75 -0
- package/src/lib/badge/badge.component.css +111 -0
- package/src/lib/banner/banner.component.css +94 -0
- package/src/lib/bracket/bracket-default-continue.component.css +29 -0
- package/src/lib/bracket/bracket-default-final-match.component.css +76 -0
- package/src/lib/bracket/bracket-default-match.component.css +21 -0
- package/src/lib/bracket/bracket-default-round-header.component.css +36 -0
- package/src/lib/bracket/bracket-participants.component.css +13 -0
- package/src/lib/bracket/bracket-pick-card.component.css +232 -0
- package/src/lib/bracket/bracket-rounds-list.component.css +75 -0
- package/src/lib/bracket/bracket-skeleton.component.css +55 -0
- package/src/lib/bracket/bracket.component.css +102 -0
- package/src/lib/bracket/layouts/swiss/bracket-swiss-styles.component.css +10 -0
- package/src/lib/breadcrumb/breadcrumb-overflow.component.css +38 -0
- package/src/lib/breadcrumb/breadcrumb.component.css +120 -0
- package/src/lib/button/button-properties-styles.component.css +143 -0
- package/src/lib/button/button.component.css +196 -0
- package/src/lib/button/fab.component.css +252 -0
- package/src/lib/button/icon-button.component.css +143 -0
- package/src/lib/button/split-button.component.css +77 -0
- package/src/lib/button/text-button.component.css +140 -0
- package/src/lib/button/window-control-button.component.css +158 -0
- package/src/lib/calendar/calendar-coarse-grid-styles.component.css +29 -0
- package/src/lib/calendar/calendar-comparison-band-styles.component.css +36 -0
- package/src/lib/calendar/calendar-week-numbers-styles.component.css +32 -0
- package/src/lib/calendar/calendar.component.css +366 -0
- package/src/lib/card/card.component.css +39 -0
- package/src/lib/carousel/carousel-autoplay-styles.component.css +166 -0
- package/src/lib/carousel/carousel-transition-styles.component.css +179 -0
- package/src/lib/carousel/carousel.component.css +142 -0
- package/src/lib/chart/bar-chart.component.css +176 -0
- package/src/lib/chart/chart-axis.component.css +40 -0
- package/src/lib/chart/chart-grid.component.css +6 -0
- package/src/lib/chart/chart-legend.component.css +46 -0
- package/src/lib/chart/chart-tooltip.component.css +34 -0
- package/src/lib/chart/line-chart-tooltip.component.css +51 -0
- package/src/lib/chart/line-chart.component.css +234 -0
- package/src/lib/chart/pie-chart.component.css +176 -0
- package/src/lib/chart/sankey-chart.component.css +221 -0
- package/src/lib/chip/chip.component.css +155 -0
- package/src/lib/command-palette/command-palette-item.component.css +94 -0
- package/src/lib/command-palette/command-palette.component.css +100 -0
- package/src/lib/description-list/description-list.component.css +77 -0
- package/src/lib/divider/divider.component.css +36 -0
- package/src/lib/empty-state/empty-state.component.css +73 -0
- package/src/lib/floating-action/floating-action-styles.component.css +78 -0
- package/src/lib/focus-ring/focus-ring-styles.component.css +13 -0
- package/src/lib/forms/cascader/cascader-breadcrumb-styles.component.css +98 -0
- package/src/lib/forms/cascader/cascader-panel.component.css +386 -0
- package/src/lib/forms/cascader/cascader-sheet-styles.component.css +241 -0
- package/src/lib/forms/cascader/cascader.component.css +52 -0
- package/src/lib/forms/checkbox/checkbox.component.css +247 -0
- package/src/lib/forms/choice-field/choice-field-card-styles.component.css +59 -0
- package/src/lib/forms/choice-field/choice-field.component.css +186 -0
- package/src/lib/forms/color-input/color-input.component.css +108 -0
- package/src/lib/forms/color-input/color-picker-panel.component.css +349 -0
- package/src/lib/forms/date-time/date-input/date-input.component.css +35 -0
- package/src/lib/forms/date-time/date-picker-panel.component.css +115 -0
- package/src/lib/forms/date-time/date-range-input/date-range-input.component.css +16 -0
- package/src/lib/forms/date-time/date-range-presets.component.css +60 -0
- package/src/lib/forms/date-time/date-time-input/date-time-input.component.css +151 -0
- package/src/lib/forms/date-time/date-time-range-input/date-time-range-input.component.css +121 -0
- package/src/lib/forms/date-time/duration-input/duration-input.component.css +88 -0
- package/src/lib/forms/date-time/range-input-shell-styles.component.css +55 -0
- package/src/lib/forms/date-time/time-input/time-input.component.css +35 -0
- package/src/lib/forms/date-time/time-range-input/time-range-input.component.css +16 -0
- package/src/lib/forms/dropzone/dropzone-item.component.css +51 -0
- package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +67 -0
- package/src/lib/forms/dropzone/dropzone-readonly-styles.component.css +34 -0
- package/src/lib/forms/dropzone/dropzone.component.css +267 -0
- package/src/lib/forms/form-field/counter.component.css +25 -0
- package/src/lib/forms/form-field/form-field-control-suffix-styles.component.css +116 -0
- package/src/lib/forms/form-field/form-field-rich-text-styles.component.css +31 -0
- package/src/lib/forms/form-field/form-field-suffix-overlap-styles.component.css +66 -0
- package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +312 -0
- package/src/lib/forms/form-field/form-field-textarea-styles.component.css +32 -0
- package/src/lib/forms/form-field/form-field.component.css +328 -0
- package/src/lib/forms/form-field/form-support-styles.component.css +102 -0
- package/src/lib/forms/form-field/headless/label.directive.css +25 -0
- package/src/lib/forms/form-field/hint.component.css +20 -0
- package/src/lib/forms/input/input.component.css +49 -0
- package/src/lib/forms/input/number-input.component.css +128 -0
- package/src/lib/forms/input/password-input.component.css +103 -0
- package/src/lib/forms/multi-language-rich-text-editor/multi-language-rich-text-editor.component.css +8 -0
- package/src/lib/forms/multi-language-rich-text-editor/tools/multi-language-rich-text-editor-language-tool.component.css +104 -0
- package/src/lib/forms/otp-input/otp-input.component.css +194 -0
- package/src/lib/forms/phone-input/phone-input.component.css +126 -0
- package/src/lib/forms/rating/rating.component.css +197 -0
- package/src/lib/forms/rich-text-editor/rich-text-content-styles.component.css +234 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-floating-toolbar.component.css +90 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-image-editor.component.css +172 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-link-editor.component.css +149 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-token-palette.component.css +18 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-token-popup.component.css +199 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor.component.css +175 -0
- package/src/lib/forms/rich-text-editor/rich-text-viewer.component.css +6 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-align-tool.component.css +5 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-heading-tool.component.css +5 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-image-styles.component.css +109 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-styles.component.css +21 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-tool.component.css +44 -0
- package/src/lib/forms/select/select-all-option.component.css +14 -0
- package/src/lib/forms/select/select-extras-styles.component.css +143 -0
- package/src/lib/forms/select/select-option-group.component.css +35 -0
- package/src/lib/forms/select/select-option-styles.component.css +137 -0
- package/src/lib/forms/select/select-panel.component.css +112 -0
- package/src/lib/forms/select/select.component.css +180 -0
- package/src/lib/forms/selection-card-styles.component.css +136 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +89 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group.component.css +142 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +153 -0
- package/src/lib/forms/selection-list/radio-group/radio-group.component.css +134 -0
- package/src/lib/forms/selection-list/radio-group/radio.component.css +137 -0
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +149 -0
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +180 -0
- package/src/lib/forms/slider/range-slider.component.css +348 -0
- package/src/lib/forms/slider/slider.component.css +342 -0
- package/src/lib/forms/switch/switch.component.css +187 -0
- package/src/lib/forms/tag-input/tag-input.component.css +54 -0
- package/src/lib/forms/textarea/textarea-autosize-styles.component.css +17 -0
- package/src/lib/forms/textarea/textarea.component.css +40 -0
- package/src/lib/grid/grid-debug.component.css +130 -0
- package/src/lib/grid/grid-item-default-actions.component.css +11 -0
- package/src/lib/grid/grid-item.component.css +172 -0
- package/src/lib/grid/grid.component.css +56 -0
- package/src/lib/icon/headless/icon-styles.component.css +7 -0
- package/src/lib/kbd/kbd.component.css +62 -0
- package/src/lib/loader/brand-loader/brand-loader.component.css +130 -0
- package/src/lib/loader/progress-bar/progress-bar.component.css +176 -0
- package/src/lib/loader/spinner/spinner.component.css +216 -0
- package/src/lib/masonry/masonry-styles.component.css +84 -0
- package/src/lib/match/match-card.component.css +441 -0
- package/src/lib/match/match-participant.component.css +137 -0
- package/src/lib/match/match-score.component.css +74 -0
- package/src/lib/menu/menu-group-label.component.css +12 -0
- package/src/lib/menu/menu-item-shortcut.component.css +10 -0
- package/src/lib/menu/menu-item-submenu-icon.component.css +18 -0
- package/src/lib/menu/menu-item.component.css +32 -0
- package/src/lib/menu/menu-search-styles.component.css +56 -0
- package/src/lib/menu/menu-selection-item.component.css +88 -0
- package/src/lib/menu/menu-separator.component.css +9 -0
- package/src/lib/menu/menu.component.css +296 -0
- package/src/lib/notification/notification-stack.component.css +114 -0
- package/src/lib/notification/notification.component.css +271 -0
- package/src/lib/overlay/alert-dialog/alert-dialog.component.css +45 -0
- package/src/lib/overlay/floating-panel-styles.component.css +71 -0
- package/src/lib/overlay/floating-tip-styles.component.css +78 -0
- package/src/lib/overlay/overlay-container.component.css +167 -0
- package/src/lib/overlay/overlay-main-styles.component.css +105 -0
- package/src/lib/overlay/overlay-template-host.component.css +7 -0
- package/src/lib/overlay/routing/overlay-route-header-template-outlet.component.css +36 -0
- package/src/lib/overlay/routing/overlay-router-outlet.component.css +207 -0
- package/src/lib/overlay/routing/overlay-shared-route-template-outlet.component.css +5 -0
- package/src/lib/overlay/sidebar/overlay-sidebar.component.css +16 -0
- package/src/lib/overlay/strategies/anchored-dialog-styles.component.css +51 -0
- package/src/lib/overlay/strategies/dialog-styles.component.css +50 -0
- package/src/lib/overlay/strategies/full-screen-dialog-styles.component.css +83 -0
- package/src/lib/overlay/strategies/overlay-arrow-styles.component.css +112 -0
- package/src/lib/overlay/strategies/overlay-origin-clone.component.css +63 -0
- package/src/lib/overlay/strategies/sheet-styles.component.css +143 -0
- package/src/lib/pagination/page-size-select.component.css +102 -0
- package/src/lib/pagination/pagination.component.css +192 -0
- package/src/lib/picture/picture.component.css +66 -0
- package/src/lib/progress-steps/progress-step.component.css +187 -0
- package/src/lib/progress-steps/progress-steps.component.css +26 -0
- package/src/lib/query-error/query-error.component.css +21 -0
- package/src/lib/scheduler/scheduler-agenda-view.component.css +97 -0
- package/src/lib/scheduler/scheduler-appointment-drag-styles.component.css +56 -0
- package/src/lib/scheduler/scheduler-appointment-styles.component.css +111 -0
- package/src/lib/scheduler/scheduler-edit-color.component.css +16 -0
- package/src/lib/scheduler/scheduler-edit-surface-actions.component.css +14 -0
- package/src/lib/scheduler/scheduler-edit-surface-breadcrumb.component.css +26 -0
- package/src/lib/scheduler/scheduler-edit-surface-children.component.css +57 -0
- package/src/lib/scheduler/scheduler-edit-surface-fields.component.css +11 -0
- package/src/lib/scheduler/scheduler-edit-surface-footer.component.css +7 -0
- package/src/lib/scheduler/scheduler-edit-surface-header.component.css +15 -0
- package/src/lib/scheduler/scheduler-edit-time-range.component.css +11 -0
- package/src/lib/scheduler/scheduler-month-view.component.css +143 -0
- package/src/lib/scheduler/scheduler-time-grid-view.component.css +260 -0
- package/src/lib/scheduler/scheduler.component.css +87 -0
- package/src/lib/scrollable/headless/scrollable-buttons.component.css +122 -0
- package/src/lib/scrollable/headless/scrollable-footer.css +25 -0
- package/src/lib/scrollable/headless/scrollable-masks.component.css +112 -0
- package/src/lib/scrollable/headless/scrollable-navigation.component.css +94 -0
- package/src/lib/scrollable/scrollable.component.css +192 -0
- package/src/lib/scrollbar/scrollbar.component.css +110 -0
- package/src/lib/skeleton/skeleton.component.css +108 -0
- package/src/lib/standings/standings-pick.component.css +172 -0
- package/src/lib/standings/standings.component.css +201 -0
- package/src/lib/stat-tile/stat-tile-sparkline.component.css +49 -0
- package/src/lib/stat-tile/stat-tile.component.css +111 -0
- package/src/lib/stream/pip/pip-chrome.component.css +96 -0
- package/src/lib/stream/pip/pip-player.component.css +40 -0
- package/src/lib/stream/pip/pip-window.component.css +222 -0
- package/src/lib/stream/stream-manager-styles.component.css +10 -0
- package/src/lib/stream/stream-overlay-card-styles.component.css +43 -0
- package/src/lib/stream/stream-player-slot-styles.component.css +14 -0
- package/src/lib/table/table-column-chooser.component.css +17 -0
- package/src/lib/table/table-column-menu-trigger.component.css +31 -0
- package/src/lib/table/table-detail-styles.component.css +103 -0
- package/src/lib/table/table-drag-scroll-styles.component.css +18 -0
- package/src/lib/table/table-expander-cell.component.css +58 -0
- package/src/lib/table/table-filter-trigger.component.css +44 -0
- package/src/lib/table/table-group-header-row.component.css +38 -0
- package/src/lib/table/table-inline-edit-styles.component.css +20 -0
- package/src/lib/table/table-page-sticky-header-styles.component.css +77 -0
- package/src/lib/table/table-reorder-overlay.component.css +42 -0
- package/src/lib/table/table-resize-grip.component.css +65 -0
- package/src/lib/table/table-row-box-styles.component.css +260 -0
- package/src/lib/table/table-select-cell.component.css +89 -0
- package/src/lib/table/table-skeleton-rows.component.css +19 -0
- package/src/lib/table/table-sort-priority-styles.component.css +15 -0
- package/src/lib/table/table-sticky-columns-styles.component.css +80 -0
- package/src/lib/table/table-virtual-scroll-styles.component.css +9 -0
- package/src/lib/table/table.component.css +829 -0
- package/src/lib/tabs/nav-tabs/nav-tab-link-styles.component.css +33 -0
- package/src/lib/tabs/tab-bar-styles.component.css +173 -0
- package/src/lib/tabs/tab-scale-styles.component.css +61 -0
- package/src/lib/time-picker/time-picker.component.css +220 -0
- package/src/lib/timeline/timeline-item.component.css +116 -0
- package/src/lib/timeline/timeline.component.css +7 -0
- package/src/lib/toggletip/toggletip.component.css +83 -0
- package/src/lib/toolbar/toolbar.component.css +40 -0
- package/src/lib/tooltip/tooltip.component.css +64 -0
- package/src/lib/tree/tree.component.css +221 -0
- package/types/ethlete-components-testing.d.ts +1 -1
- package/types/ethlete-components.d.ts +172 -7
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-switch-track-width {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 40px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-switch-track-height {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 22px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-switch-thumb-size {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 16px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-switch-thumb-offset {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 3px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-switch-transition-duration {
|
|
27
|
+
syntax: '<time>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 150ms;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@property --et-switch-opacity-disabled {
|
|
33
|
+
syntax: '<number>';
|
|
34
|
+
inherits: true;
|
|
35
|
+
initial-value: 0.5;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
et-switch {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
|
|
43
|
+
/* view-only: keeps the normal look, drops the interactive affordance (distinct from
|
|
44
|
+
the dimmed disabled state) */
|
|
45
|
+
&[data-readonly] {
|
|
46
|
+
cursor: default;
|
|
47
|
+
}
|
|
48
|
+
outline: none;
|
|
49
|
+
|
|
50
|
+
&[aria-disabled='true'] {
|
|
51
|
+
opacity: var(--et-switch-opacity-disabled);
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
cursor: default;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.et-switch-track {
|
|
57
|
+
position: relative;
|
|
58
|
+
width: var(--et-switch-track-width);
|
|
59
|
+
height: var(--et-switch-track-height);
|
|
60
|
+
border-radius: calc(var(--et-switch-track-height) / 2);
|
|
61
|
+
background-color: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 22%, transparent);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* hover-capable pointers only — on touch, :hover sticks after a tap */
|
|
65
|
+
@media (hover: hover) {
|
|
66
|
+
&:hover:not([aria-disabled='true']):not([data-readonly]):not([aria-checked='true']):not([data-indeterminate])
|
|
67
|
+
.et-switch-track,
|
|
68
|
+
:where(et-choice-field:has(.et-choice-field-label-area:hover))
|
|
69
|
+
&:not([aria-disabled='true']):not([data-readonly]):not([aria-checked='true']):not([data-indeterminate])
|
|
70
|
+
.et-switch-track {
|
|
71
|
+
background-color: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 30%, transparent);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:where(et-choice-field[data-error])
|
|
76
|
+
&:not([aria-disabled='true']):not([aria-checked='true']):not([data-indeterminate])
|
|
77
|
+
.et-switch-track {
|
|
78
|
+
background-color: color-mix(in srgb, var(--et-theme-color-primary-solid) 40%, transparent);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:focus-visible .et-switch-track {
|
|
82
|
+
outline: 2px solid var(--et-theme-color-primary-solid);
|
|
83
|
+
outline-offset: 2px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Inside a card the focus ring belongs to the whole panel (the choice field draws it), so the track
|
|
87
|
+
must not draw a second one nested inside it. */
|
|
88
|
+
:where(et-choice-field[data-variant='card']) &:focus-visible .et-switch-track {
|
|
89
|
+
outline: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.et-switch-thumb {
|
|
93
|
+
/* Off state: a smaller, muted thumb centered in the track. It grows to
|
|
94
|
+
--et-switch-thumb-size and takes the on-primary color when checked. */
|
|
95
|
+
position: absolute;
|
|
96
|
+
top: calc((var(--et-switch-track-height) - var(--et-switch-thumb-size) + 4px) / 2);
|
|
97
|
+
left: calc((var(--et-switch-track-height) - var(--et-switch-thumb-size) + 4px) / 2);
|
|
98
|
+
width: calc(var(--et-switch-thumb-size) - 4px);
|
|
99
|
+
height: calc(var(--et-switch-thumb-size) - 4px);
|
|
100
|
+
border-radius: calc(var(--et-switch-thumb-size) / 2);
|
|
101
|
+
background-color: var(--et-surface-color-muted-solid, currentColor);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@media (hover: hover) {
|
|
105
|
+
&:hover:not([aria-disabled='true']):not([data-readonly]) .et-switch-thumb,
|
|
106
|
+
:where(et-choice-field:has(.et-choice-field-label-area:hover))
|
|
107
|
+
&:not([aria-disabled='true']):not([data-readonly])
|
|
108
|
+
.et-switch-thumb {
|
|
109
|
+
background-color: var(--et-surface-color-solid, currentColor);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&:active:not([aria-disabled='true']):not([data-readonly]) .et-switch-thumb {
|
|
114
|
+
width: var(--et-switch-thumb-size);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&[aria-checked='true'] {
|
|
118
|
+
.et-switch-track {
|
|
119
|
+
background-color: var(--et-theme-color-primary-solid, currentColor);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.et-switch-thumb {
|
|
123
|
+
top: calc((var(--et-switch-track-height) - var(--et-switch-thumb-size)) / 2);
|
|
124
|
+
left: calc(var(--et-switch-track-width) - var(--et-switch-thumb-size) - var(--et-switch-thumb-offset));
|
|
125
|
+
width: var(--et-switch-thumb-size);
|
|
126
|
+
height: var(--et-switch-thumb-size);
|
|
127
|
+
background-color: var(--et-theme-color-on-primary-solid, white);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@media (hover: hover) {
|
|
131
|
+
&:hover:not([aria-disabled='true']):not([data-readonly]) .et-switch-thumb,
|
|
132
|
+
:where(et-choice-field:has(.et-choice-field-label-area:hover))
|
|
133
|
+
&:not([aria-disabled='true']):not([data-readonly])
|
|
134
|
+
.et-switch-thumb {
|
|
135
|
+
background-color: var(--et-theme-color-on-primary-solid, white);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&:active:not([aria-disabled='true']):not([data-readonly]) .et-switch-thumb {
|
|
140
|
+
width: calc(var(--et-switch-thumb-size) + 3px);
|
|
141
|
+
left: calc(var(--et-switch-track-width) - var(--et-switch-thumb-size) - 3px - var(--et-switch-thumb-offset));
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* bulk-edit indeterminate: the thumb parks mid-track and the track goes to a dashed accent
|
|
146
|
+
outline (not a muted/grey one, which would read as disabled) — neither off nor on.
|
|
147
|
+
Mirrors the checkbox indeterminate state; the first toggle resolves it to on. Consumers
|
|
148
|
+
restyle via [data-indeterminate]. */
|
|
149
|
+
&[data-indeterminate] {
|
|
150
|
+
.et-switch-track {
|
|
151
|
+
background-color: transparent;
|
|
152
|
+
|
|
153
|
+
&::before {
|
|
154
|
+
content: '';
|
|
155
|
+
position: absolute;
|
|
156
|
+
inset: 0;
|
|
157
|
+
border-radius: inherit;
|
|
158
|
+
border: 1px dashed var(--et-theme-color-primary-solid, currentColor);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.et-switch-thumb {
|
|
163
|
+
left: calc((var(--et-switch-track-width) - (var(--et-switch-thumb-size) - 4px)) / 2);
|
|
164
|
+
background-color: var(--et-theme-color-primary-solid, currentColor);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&[data-can-animate] {
|
|
169
|
+
.et-switch-track {
|
|
170
|
+
transition: background-color var(--et-switch-transition-duration) ease;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.et-switch-thumb {
|
|
174
|
+
transition:
|
|
175
|
+
top var(--et-switch-transition-duration) ease,
|
|
176
|
+
left var(--et-switch-transition-duration) ease,
|
|
177
|
+
width var(--et-switch-transition-duration) ease,
|
|
178
|
+
height var(--et-switch-transition-duration) ease,
|
|
179
|
+
background-color var(--et-switch-transition-duration) ease;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@media (prefers-reduced-motion: reduce) {
|
|
184
|
+
--et-switch-transition-duration: 1ms;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
et-tag-input {
|
|
3
|
+
display: block;
|
|
4
|
+
flex: 1;
|
|
5
|
+
min-inline-size: 0;
|
|
6
|
+
color: inherit;
|
|
7
|
+
cursor: text;
|
|
8
|
+
|
|
9
|
+
&[data-disabled] {
|
|
10
|
+
cursor: not-allowed;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* no tag can be typed here - an I-beam over the row would promise one */
|
|
14
|
+
&[data-readonly] {
|
|
15
|
+
cursor: default;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.et-tag-input-row {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: 6px;
|
|
23
|
+
min-inline-size: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.et-tag-input-field {
|
|
27
|
+
flex: 1 1 60px;
|
|
28
|
+
min-inline-size: 60px;
|
|
29
|
+
border: none;
|
|
30
|
+
outline: none;
|
|
31
|
+
background: transparent;
|
|
32
|
+
font: inherit;
|
|
33
|
+
color: inherit;
|
|
34
|
+
padding: 0;
|
|
35
|
+
caret-color: var(--et-theme-color-primary-solid, currentColor);
|
|
36
|
+
|
|
37
|
+
&::placeholder {
|
|
38
|
+
color: color-mix(in srgb, currentColor 46%, transparent);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:disabled {
|
|
42
|
+
cursor: not-allowed;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* an unresolved bulk-edit value reads as provisional — the mixedLabel placeholder sits
|
|
47
|
+
between committed text (full strength) and the regular placeholder (46%). Consumers
|
|
48
|
+
restyle via [data-mixed]. */
|
|
49
|
+
&[data-mixed] .et-tag-input-field::placeholder {
|
|
50
|
+
font-style: italic;
|
|
51
|
+
color: color-mix(in srgb, currentColor 72%, transparent);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
/* The browser sizes the textarea itself where `field-sizing` exists; `TextareaDirective`'s
|
|
3
|
+
measurement path stays as the fallback for engines that ignore this block. Both must never
|
|
4
|
+
run at once - the directive skips measuring exactly when this `@supports` condition holds.
|
|
5
|
+
Delete the fallback once Firefox ESR and iOS Safari 26 both support `field-sizing`.
|
|
6
|
+
|
|
7
|
+
The row bounds hold only while the native textarea has no block padding: it is a border box,
|
|
8
|
+
so any padding on it eats into the clamp, and CSS cannot add the padding back. Pad the form
|
|
9
|
+
field's frame instead. */
|
|
10
|
+
@supports (field-sizing: content) {
|
|
11
|
+
textarea[data-et-textarea-autosize] {
|
|
12
|
+
field-sizing: content;
|
|
13
|
+
min-block-size: calc(var(--et-textarea-min-rows, 1) * 1lh);
|
|
14
|
+
max-block-size: var(--et-textarea-max-block-size, none);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
et-textarea {
|
|
3
|
+
display: block;
|
|
4
|
+
flex: 1;
|
|
5
|
+
min-inline-size: 0;
|
|
6
|
+
color: inherit;
|
|
7
|
+
|
|
8
|
+
.et-textarea-native {
|
|
9
|
+
display: block;
|
|
10
|
+
inline-size: 100%;
|
|
11
|
+
border: none;
|
|
12
|
+
outline: none;
|
|
13
|
+
background: transparent;
|
|
14
|
+
font: inherit;
|
|
15
|
+
color: inherit;
|
|
16
|
+
caret-color: var(--et-theme-color-primary-solid, currentColor);
|
|
17
|
+
padding: 0;
|
|
18
|
+
min-width: 0;
|
|
19
|
+
|
|
20
|
+
&::placeholder {
|
|
21
|
+
color: color-mix(in srgb, currentColor 46%, transparent);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&[data-resize='none'] {
|
|
25
|
+
resize: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&[data-resize='vertical'] {
|
|
29
|
+
resize: vertical;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* an unresolved bulk-edit value reads as provisional — the mixed label shows as the
|
|
34
|
+
placeholder, between a committed value (full strength) and a real placeholder (46%) */
|
|
35
|
+
&[data-mixed] .et-textarea-native::placeholder {
|
|
36
|
+
font-style: italic;
|
|
37
|
+
color: color-mix(in srgb, currentColor 72%, transparent);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-grid-debug-panel {
|
|
3
|
+
font-family: monospace;
|
|
4
|
+
font-size: 11px;
|
|
5
|
+
border: 1px solid var(--et-surface-border-solid, #d1d5db);
|
|
6
|
+
border-radius: 4px;
|
|
7
|
+
margin-top: 8px;
|
|
8
|
+
background: var(--et-surface-background-solid, #f9fafb);
|
|
9
|
+
color: var(--et-surface-color-solid, #111);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.et-grid-debug-summary {
|
|
13
|
+
padding: 6px 10px;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
list-style: none;
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: 10px;
|
|
19
|
+
-webkit-user-select: none;
|
|
20
|
+
user-select: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.et-grid-debug-title {
|
|
24
|
+
font-weight: 700;
|
|
25
|
+
color: var(--et-surface-color-muted-solid, #6b7280);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.et-grid-debug-muted {
|
|
29
|
+
color: var(--et-surface-color-muted-solid, #6b7280);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.et-grid-debug-strong {
|
|
33
|
+
color: var(--et-surface-color-solid, #111827);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.et-grid-debug-warning {
|
|
37
|
+
color: var(--et-grid-debug-warning-color, #d97706);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.et-grid-debug-error {
|
|
41
|
+
color: var(--et-grid-debug-error-color, #dc2626);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.et-grid-debug-issues {
|
|
45
|
+
color: var(--et-grid-debug-error-color, #dc2626);
|
|
46
|
+
font-weight: 700;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.et-grid-debug-copy {
|
|
50
|
+
margin-left: auto;
|
|
51
|
+
padding: 2px 8px;
|
|
52
|
+
border: 1px solid var(--et-surface-border-solid, #d1d5db);
|
|
53
|
+
border-radius: 3px;
|
|
54
|
+
background: var(--et-surface-interaction-solid, #fff);
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
font-size: 11px;
|
|
57
|
+
color: var(--et-surface-color-solid, #374151);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.et-grid-debug-copied {
|
|
61
|
+
color: var(--et-grid-debug-success-color, #16a34a);
|
|
62
|
+
font-size: 10px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.et-grid-debug-body {
|
|
66
|
+
padding: 8px 10px;
|
|
67
|
+
overflow-x: auto;
|
|
68
|
+
border-top: 1px solid var(--et-surface-border-solid, #e5e7eb);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.et-grid-debug-legend {
|
|
72
|
+
display: flex;
|
|
73
|
+
gap: 6px;
|
|
74
|
+
margin-bottom: 8px;
|
|
75
|
+
flex-wrap: wrap;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.et-grid-debug-breakpoint {
|
|
79
|
+
padding: 1px 7px;
|
|
80
|
+
border: 1px solid currentColor;
|
|
81
|
+
border-radius: 99px;
|
|
82
|
+
color: var(--et-surface-color-subtle-solid, #9ca3af);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.et-grid-debug-breakpoint--active {
|
|
86
|
+
font-weight: 700;
|
|
87
|
+
color: var(--et-theme-color-primary-solid, #1d4ed8);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.et-grid-debug-table {
|
|
91
|
+
border-collapse: collapse;
|
|
92
|
+
white-space: nowrap;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.et-grid-debug-head-row {
|
|
96
|
+
background: var(--et-surface-interaction-solid, #f3f4f6);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.et-grid-debug-cell {
|
|
100
|
+
padding: 3px 8px;
|
|
101
|
+
border: 1px solid var(--et-surface-border-solid, #e5e7eb);
|
|
102
|
+
text-align: center;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.et-grid-debug-cell--active {
|
|
106
|
+
background: color-mix(in srgb, var(--et-theme-color-primary-solid, #1d4ed8) 15%, transparent);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.et-grid-debug-cell-start {
|
|
110
|
+
text-align: left;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.et-grid-debug-cell-ext {
|
|
114
|
+
opacity: 0.65;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.et-grid-debug-id {
|
|
118
|
+
color: var(--et-surface-color-muted-solid, #6b7280);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.et-grid-debug-type {
|
|
122
|
+
color: var(--et-surface-color-subtle-solid, #9ca3af);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.et-grid-debug-note {
|
|
126
|
+
margin-top: 6px;
|
|
127
|
+
color: var(--et-surface-color-subtle-solid, #9ca3af);
|
|
128
|
+
font-size: 10px;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-grid-item {
|
|
3
|
+
/* Never past half the gap: adjacent items are siblings at one z-index, so overlapping strips
|
|
4
|
+
would be resolved by DOM order and the later item would swallow its neighbour's handle. */
|
|
5
|
+
--et-resize-handles-outset: min(8px, calc(var(--et-grid-gap, 16px) / 2));
|
|
6
|
+
|
|
7
|
+
/* Core stops the e/w strips short of the bottom for the pip window's title bar; a grid item has
|
|
8
|
+
none, and the full-height strip is what keeps the hover bar centred on the item. */
|
|
9
|
+
--et-resize-handles-side-bottom: 0px;
|
|
10
|
+
|
|
11
|
+
--et-grid-item-resize-bar-inset: calc(var(--et-resize-handles-outset) + 2px);
|
|
12
|
+
--et-grid-item-resize-pip-inset: calc(var(--et-resize-handles-outset) + 3px);
|
|
13
|
+
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 0;
|
|
16
|
+
left: 0;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
outline: none;
|
|
21
|
+
will-change: translate;
|
|
22
|
+
border-radius: var(--et-grid-item-radius, 0);
|
|
23
|
+
background: var(--et-grid-item-bg, var(--et-surface-background-solid));
|
|
24
|
+
|
|
25
|
+
&:focus-visible {
|
|
26
|
+
outline: 2px solid var(--et-theme-color-primary-solid, currentColor);
|
|
27
|
+
outline-offset: -2px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:is(.et-grid-item--dragging, .et-grid-item--resizing, .et-grid-item--direct, .et-grid-item--settling) {
|
|
31
|
+
z-index: 100;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:is(.et-grid-item--dragging) {
|
|
35
|
+
cursor: grabbing;
|
|
36
|
+
-webkit-user-select: none;
|
|
37
|
+
user-select: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:is(.et-grid-item--resizing) {
|
|
41
|
+
-webkit-user-select: none;
|
|
42
|
+
user-select: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:is(.et-grid-item--entering, .et-grid-item--leaving) {
|
|
46
|
+
scale: 0.9;
|
|
47
|
+
opacity: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:is(.et-grid-item--leaving) {
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.et-grid-item:hover .et-resize-handle--e::after,
|
|
56
|
+
.et-grid-item:hover .et-resize-handle--s::after,
|
|
57
|
+
.et-grid-item:hover .et-resize-handle--w::after,
|
|
58
|
+
.et-grid-item:hover .et-resize-handle--n::after,
|
|
59
|
+
.et-grid-item:hover .et-resize-handle--se::after,
|
|
60
|
+
.et-grid-item:hover .et-resize-handle--sw::after,
|
|
61
|
+
.et-grid-item:hover .et-resize-handle--ne::after,
|
|
62
|
+
.et-grid-item:hover .et-resize-handle--nw::after,
|
|
63
|
+
.et-grid-item--resizing .et-resize-handle--e::after,
|
|
64
|
+
.et-grid-item--resizing .et-resize-handle--s::after,
|
|
65
|
+
.et-grid-item--resizing .et-resize-handle--w::after,
|
|
66
|
+
.et-grid-item--resizing .et-resize-handle--n::after,
|
|
67
|
+
.et-grid-item--resizing .et-resize-handle--se::after,
|
|
68
|
+
.et-grid-item--resizing .et-resize-handle--sw::after,
|
|
69
|
+
.et-grid-item--resizing .et-resize-handle--ne::after,
|
|
70
|
+
.et-grid-item--resizing .et-resize-handle--nw::after {
|
|
71
|
+
content: '';
|
|
72
|
+
position: absolute;
|
|
73
|
+
border-radius: 2px;
|
|
74
|
+
background: var(--et-grid-item-resize-handle-color, var(--et-surface-color-solid));
|
|
75
|
+
opacity: 0.2;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.et-grid-item:hover .et-resize-handle--e::after,
|
|
79
|
+
.et-grid-item--resizing .et-resize-handle--e::after {
|
|
80
|
+
right: var(--et-grid-item-resize-bar-inset);
|
|
81
|
+
top: 50%;
|
|
82
|
+
transform: translateY(-50%);
|
|
83
|
+
width: 3px;
|
|
84
|
+
height: 24px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.et-grid-item:hover .et-resize-handle--w::after,
|
|
88
|
+
.et-grid-item--resizing .et-resize-handle--w::after {
|
|
89
|
+
left: var(--et-grid-item-resize-bar-inset);
|
|
90
|
+
top: 50%;
|
|
91
|
+
transform: translateY(-50%);
|
|
92
|
+
width: 3px;
|
|
93
|
+
height: 24px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.et-grid-item:hover .et-resize-handle--s::after,
|
|
97
|
+
.et-grid-item--resizing .et-resize-handle--s::after {
|
|
98
|
+
bottom: var(--et-grid-item-resize-bar-inset);
|
|
99
|
+
left: 50%;
|
|
100
|
+
transform: translateX(-50%);
|
|
101
|
+
height: 3px;
|
|
102
|
+
width: 24px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.et-grid-item:hover .et-resize-handle--n::after,
|
|
106
|
+
.et-grid-item--resizing .et-resize-handle--n::after {
|
|
107
|
+
top: var(--et-grid-item-resize-bar-inset);
|
|
108
|
+
left: 50%;
|
|
109
|
+
transform: translateX(-50%);
|
|
110
|
+
height: 3px;
|
|
111
|
+
width: 24px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.et-grid-item:hover .et-resize-handle--se::after,
|
|
115
|
+
.et-grid-item--resizing .et-resize-handle--se::after {
|
|
116
|
+
bottom: var(--et-grid-item-resize-pip-inset);
|
|
117
|
+
right: var(--et-grid-item-resize-pip-inset);
|
|
118
|
+
width: 8px;
|
|
119
|
+
height: 8px;
|
|
120
|
+
border-radius: 1px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.et-grid-item:hover .et-resize-handle--sw::after,
|
|
124
|
+
.et-grid-item--resizing .et-resize-handle--sw::after {
|
|
125
|
+
bottom: var(--et-grid-item-resize-pip-inset);
|
|
126
|
+
left: var(--et-grid-item-resize-pip-inset);
|
|
127
|
+
width: 8px;
|
|
128
|
+
height: 8px;
|
|
129
|
+
border-radius: 1px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.et-grid-item:hover .et-resize-handle--ne::after,
|
|
133
|
+
.et-grid-item--resizing .et-resize-handle--ne::after {
|
|
134
|
+
top: var(--et-grid-item-resize-pip-inset);
|
|
135
|
+
right: var(--et-grid-item-resize-pip-inset);
|
|
136
|
+
width: 8px;
|
|
137
|
+
height: 8px;
|
|
138
|
+
border-radius: 1px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.et-grid-item:hover .et-resize-handle--nw::after,
|
|
142
|
+
.et-grid-item--resizing .et-resize-handle--nw::after {
|
|
143
|
+
top: var(--et-grid-item-resize-pip-inset);
|
|
144
|
+
left: var(--et-grid-item-resize-pip-inset);
|
|
145
|
+
width: 8px;
|
|
146
|
+
height: 8px;
|
|
147
|
+
border-radius: 1px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.et-grid-item__content {
|
|
151
|
+
flex: 1;
|
|
152
|
+
min-height: 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.et-grid:not(.et-grid--readonly) .et-grid-item__content {
|
|
156
|
+
cursor: grab;
|
|
157
|
+
user-select: none;
|
|
158
|
+
-webkit-user-select: none;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.et-grid-item--dragging .et-grid-item__content {
|
|
162
|
+
cursor: grabbing;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.et-grid-item__actions {
|
|
166
|
+
position: absolute;
|
|
167
|
+
top: 4px;
|
|
168
|
+
right: 4px;
|
|
169
|
+
display: flex;
|
|
170
|
+
gap: 4px;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-grid-padding {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: false;
|
|
5
|
+
initial-value: 0px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.et-grid {
|
|
9
|
+
display: block;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
padding: var(--et-grid-padding);
|
|
12
|
+
position: relative;
|
|
13
|
+
min-height: 0;
|
|
14
|
+
|
|
15
|
+
&:has(.et-grid-item--dragging, .et-grid-item--resizing) {
|
|
16
|
+
-webkit-user-select: none;
|
|
17
|
+
user-select: none;
|
|
18
|
+
cursor: grabbing;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:has(.et-grid-item--resizing) {
|
|
22
|
+
cursor: nwse-resize;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.et-grid-ghost {
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 0;
|
|
29
|
+
left: 0;
|
|
30
|
+
z-index: 0;
|
|
31
|
+
border-radius: 8px;
|
|
32
|
+
background: color-mix(in srgb, var(--et-surface-color-solid, rgb(23 23 23)) 8%, transparent);
|
|
33
|
+
border: 2px dashed color-mix(in srgb, var(--et-surface-color-solid, rgb(23 23 23)) 20%, transparent);
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.et-grid--readonly {
|
|
39
|
+
.et-grid-item__actions {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.et-grid-item:hover {
|
|
44
|
+
.et-resize-handle--e::after,
|
|
45
|
+
.et-resize-handle--s::after,
|
|
46
|
+
.et-resize-handle--w::after,
|
|
47
|
+
.et-resize-handle--n::after,
|
|
48
|
+
.et-resize-handle--se::after,
|
|
49
|
+
.et-resize-handle--sw::after,
|
|
50
|
+
.et-resize-handle--ne::after,
|
|
51
|
+
.et-resize-handle--nw::after {
|
|
52
|
+
content: unset;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|