@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,52 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
et-cascader {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 4px;
|
|
6
|
+
flex: 1;
|
|
7
|
+
min-inline-size: 0;
|
|
8
|
+
color: inherit;
|
|
9
|
+
|
|
10
|
+
.et-cascader-trigger {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: 4px;
|
|
14
|
+
flex: 1;
|
|
15
|
+
min-inline-size: 0;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
outline: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&[data-disabled] .et-cascader-trigger {
|
|
21
|
+
cursor: not-allowed;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&[data-readonly] .et-cascader-trigger {
|
|
25
|
+
cursor: default;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.et-cascader-value {
|
|
29
|
+
flex: 1;
|
|
30
|
+
min-inline-size: 0;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
text-overflow: ellipsis;
|
|
34
|
+
color: inherit;
|
|
35
|
+
|
|
36
|
+
&[data-placeholder] {
|
|
37
|
+
color: var(--et-surface-color-muted-solid, color-mix(in srgb, currentColor 46%, transparent));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&[data-mixed] .et-cascader-value {
|
|
42
|
+
font-style: italic;
|
|
43
|
+
color: color-mix(in srgb, currentColor 72%, transparent);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* outside the `et-cascader` block on purpose: the chevron renders in the form field's suffix slot,
|
|
48
|
+
which is not a descendant of the host */
|
|
49
|
+
.et-cascader-arrow .et-icon {
|
|
50
|
+
rotate: 180deg;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-checkbox-size {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 20px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-checkbox-border-radius {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 4px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-checkbox-border-width {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 2px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-checkbox-transition-duration {
|
|
21
|
+
syntax: '<time>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 150ms;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-checkbox-opacity-disabled {
|
|
27
|
+
syntax: '<number>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 0.5;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
et-checkbox {
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
|
|
37
|
+
/* view-only: keeps the normal look, drops the interactive affordance (distinct from
|
|
38
|
+
the dimmed disabled state) */
|
|
39
|
+
&[data-readonly] {
|
|
40
|
+
cursor: default;
|
|
41
|
+
}
|
|
42
|
+
border-radius: var(--et-checkbox-border-radius);
|
|
43
|
+
/* Transitions live under `&[data-can-animate]` (added after first render) so nothing animates
|
|
44
|
+
on mount — otherwise `outline-color` transitions from its resolved value and the focus ring
|
|
45
|
+
flashes briefly on first paint. */
|
|
46
|
+
|
|
47
|
+
&[aria-disabled='true'] {
|
|
48
|
+
opacity: var(--et-checkbox-opacity-disabled);
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
cursor: default;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.et-checkbox-box {
|
|
54
|
+
position: relative;
|
|
55
|
+
display: grid;
|
|
56
|
+
place-items: center;
|
|
57
|
+
width: var(--et-checkbox-size);
|
|
58
|
+
height: var(--et-checkbox-size);
|
|
59
|
+
border: var(--et-checkbox-border-width) solid var(--et-surface-border-solid, currentColor);
|
|
60
|
+
border-radius: var(--et-checkbox-border-radius);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* hover-capable pointers only — on touch, :hover sticks after a tap.
|
|
64
|
+
Checked/mixed are excluded: their border is the theme color, and this rule outweighs the
|
|
65
|
+
`&[aria-checked='true']` block below on specificity, so without the exclusion a checked box
|
|
66
|
+
would flip to the neutral hover border. */
|
|
67
|
+
@media (hover: hover) {
|
|
68
|
+
&:hover:not([aria-disabled='true']):not([data-readonly]):not([aria-checked='true']):not([aria-checked='mixed'])
|
|
69
|
+
.et-checkbox-box,
|
|
70
|
+
:where(et-choice-field:has(.et-choice-field-label-area:hover))
|
|
71
|
+
&:not([aria-disabled='true']):not([data-readonly]):not([aria-checked='true']):not([aria-checked='mixed'])
|
|
72
|
+
.et-checkbox-box {
|
|
73
|
+
border-color: var(--et-surface-interaction-hover-solid, currentColor);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:where(et-choice-field[data-error]) &:not([aria-disabled='true']) .et-checkbox-box {
|
|
78
|
+
border-color: var(--et-theme-color-primary-solid);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media (hover: hover) {
|
|
82
|
+
:where(et-choice-field[data-error]) &:hover:not([aria-disabled='true']):not([data-readonly]) .et-checkbox-box,
|
|
83
|
+
:where(et-choice-field[data-error]:has(.et-choice-field-label-area:hover))
|
|
84
|
+
&:not([aria-disabled='true']):not([data-readonly])
|
|
85
|
+
.et-checkbox-box {
|
|
86
|
+
border-color: var(--et-theme-color-primary-solid);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:focus-visible:not([aria-checked='true']):not([aria-checked='mixed']) {
|
|
91
|
+
--_et-focus-ring-color: var(--et-surface-color-solid, currentColor);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&:focus-visible:not([aria-checked='true']):not([aria-checked='mixed']) .et-checkbox-box {
|
|
95
|
+
border-color: var(--et-surface-color-solid, currentColor);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:focus-visible:is([aria-checked='true'], [aria-checked='mixed']) .et-checkbox-box {
|
|
99
|
+
border-color: var(--et-theme-color-primary-solid);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
et-choice-field[data-error] &:focus-visible:not([aria-checked='true']):not([aria-checked='mixed']) {
|
|
103
|
+
--_et-focus-ring-color: var(--et-theme-color-primary-solid);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
et-choice-field[data-error]
|
|
107
|
+
&:focus-visible:not([aria-checked='true']):not([aria-checked='mixed'])
|
|
108
|
+
.et-checkbox-box {
|
|
109
|
+
border-color: var(--et-theme-color-primary-solid);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Inside a card, focus is answered by the panel's accent ring and border. The plain variant's neutral
|
|
113
|
+
box border would sit inside that ring in a different colour, reading as two signals for one state —
|
|
114
|
+
so the box follows the accent here, the way `et-radio`'s circle does in the same preset. Repeats the
|
|
115
|
+
`:not()` guards above to match their weight, then wins on source order. */
|
|
116
|
+
:where(et-choice-field[data-variant='card'])
|
|
117
|
+
&:focus-visible:not([aria-checked='true']):not([aria-checked='mixed'])
|
|
118
|
+
.et-checkbox-box {
|
|
119
|
+
border-color: var(--et-theme-color-primary-solid);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:active:not([aria-disabled='true']):not([data-readonly]):not([aria-checked='true']):not([aria-checked='mixed'])
|
|
123
|
+
.et-checkbox-box,
|
|
124
|
+
&.et-focus-ring--active:not([aria-disabled='true']):not([data-readonly]):not([aria-checked='true']):not(
|
|
125
|
+
[aria-checked='mixed']
|
|
126
|
+
)
|
|
127
|
+
.et-checkbox-box,
|
|
128
|
+
:where(et-choice-field:has(.et-choice-field-label-area:active))
|
|
129
|
+
&:not([aria-disabled='true']):not([data-readonly]):not([aria-checked='true']):not([aria-checked='mixed'])
|
|
130
|
+
.et-checkbox-box {
|
|
131
|
+
border-color: var(--et-surface-interaction-hover-solid, currentColor);
|
|
132
|
+
transform: scale(0.95);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&:active:not([aria-disabled='true']):not([data-readonly]):is([aria-checked='true'], [aria-checked='mixed'])
|
|
136
|
+
.et-checkbox-box,
|
|
137
|
+
&.et-focus-ring--active:not([aria-disabled='true']):not([data-readonly]):is(
|
|
138
|
+
[aria-checked='true'],
|
|
139
|
+
[aria-checked='mixed']
|
|
140
|
+
)
|
|
141
|
+
.et-checkbox-box,
|
|
142
|
+
:where(et-choice-field:has(.et-choice-field-label-area:active))
|
|
143
|
+
&:not([aria-disabled='true']):not([data-readonly]):is([aria-checked='true'], [aria-checked='mixed'])
|
|
144
|
+
.et-checkbox-box {
|
|
145
|
+
transform: scale(0.95);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.et-checkbox-checkmark {
|
|
149
|
+
position: absolute;
|
|
150
|
+
inset: 0;
|
|
151
|
+
width: 100%;
|
|
152
|
+
height: 100%;
|
|
153
|
+
color: var(--et-theme-color-on-primary-solid, white);
|
|
154
|
+
opacity: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.et-checkbox-checkmark-path {
|
|
158
|
+
stroke-dasharray: 18;
|
|
159
|
+
stroke-dashoffset: 18;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.et-checkbox-indeterminate {
|
|
163
|
+
position: absolute;
|
|
164
|
+
inset: 0;
|
|
165
|
+
width: 100%;
|
|
166
|
+
height: 100%;
|
|
167
|
+
color: var(--et-theme-color-on-primary-solid, white);
|
|
168
|
+
opacity: 0;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.et-checkbox-indeterminate-path {
|
|
172
|
+
stroke-dasharray: 8;
|
|
173
|
+
stroke-dashoffset: 8;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&[aria-checked='true'] {
|
|
177
|
+
.et-checkbox-box {
|
|
178
|
+
background-color: var(--et-theme-color-primary-solid, currentColor);
|
|
179
|
+
border-color: var(--et-theme-color-primary-solid, currentColor);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.et-checkbox-checkmark {
|
|
183
|
+
opacity: 1;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.et-checkbox-checkmark-path {
|
|
187
|
+
stroke-dashoffset: 0;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&[aria-checked='mixed'] {
|
|
192
|
+
.et-checkbox-box {
|
|
193
|
+
background-color: var(--et-theme-color-primary-solid, currentColor);
|
|
194
|
+
border-color: var(--et-theme-color-primary-solid, currentColor);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.et-checkbox-indeterminate {
|
|
198
|
+
opacity: 1;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.et-checkbox-indeterminate-path {
|
|
202
|
+
stroke-dashoffset: 0;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&[data-can-animate] {
|
|
207
|
+
transition:
|
|
208
|
+
opacity var(--et-checkbox-transition-duration) ease,
|
|
209
|
+
outline-color var(--et-checkbox-transition-duration) ease;
|
|
210
|
+
|
|
211
|
+
.et-checkbox-box {
|
|
212
|
+
transition:
|
|
213
|
+
background-color var(--et-checkbox-transition-duration) ease,
|
|
214
|
+
border-color var(--et-checkbox-transition-duration) ease,
|
|
215
|
+
transform var(--et-checkbox-transition-duration) ease;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.et-checkbox-checkmark {
|
|
219
|
+
transition: opacity 0s calc(var(--et-checkbox-transition-duration) * 1.5);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.et-checkbox-checkmark-path {
|
|
223
|
+
transition: stroke-dashoffset calc(var(--et-checkbox-transition-duration) * 1.5) ease;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.et-checkbox-indeterminate {
|
|
227
|
+
transition: opacity 0s calc(var(--et-checkbox-transition-duration) * 1.5);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.et-checkbox-indeterminate-path {
|
|
231
|
+
transition: stroke-dashoffset calc(var(--et-checkbox-transition-duration) * 1.5) ease;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&[aria-checked='true'] {
|
|
235
|
+
.et-checkbox-checkmark {
|
|
236
|
+
transition: opacity 0s 0s;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&[aria-checked='mixed'] {
|
|
241
|
+
.et-checkbox-indeterminate {
|
|
242
|
+
transition: opacity 0s 0s;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
et-choice-field:where([data-variant='card']) {
|
|
3
|
+
width: auto;
|
|
4
|
+
|
|
5
|
+
/* The panel dims as one unit while disabled, so the control must not dim a second time on top of it. */
|
|
6
|
+
--et-checkbox-opacity-disabled: 1;
|
|
7
|
+
--et-switch-opacity-disabled: 1;
|
|
8
|
+
|
|
9
|
+
.et-choice-field-control {
|
|
10
|
+
position: relative;
|
|
11
|
+
|
|
12
|
+
&:where(:has([aria-disabled='true'])) {
|
|
13
|
+
cursor: not-allowed;
|
|
14
|
+
opacity: var(--et-selection-card-disabled-opacity);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* The control's own hit area is stretched over the card instead of forwarding clicks, which would
|
|
19
|
+
double-toggle through the label. The inset is negative by the border width because `inset` resolves
|
|
20
|
+
against the padding box, which leaves the border ring dead. */
|
|
21
|
+
.et-choice-field-control-slot > *::after {
|
|
22
|
+
content: '';
|
|
23
|
+
position: absolute;
|
|
24
|
+
inset: calc(-1 * var(--et-selection-card-border-width));
|
|
25
|
+
/* so the hit area is the card's shape, not a rectangle poking out past its rounded corners */
|
|
26
|
+
border-radius: var(--et-selection-card-border-radius);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Lifts interactive content above the stretched hit area, or a click on it toggles the control. */
|
|
30
|
+
:is(.et-selection-card-content, [etSelectionCardTrailing]) :is(a, button, input, select, textarea, [tabindex]),
|
|
31
|
+
[etSelectionCardTrailing]:is(a, button, input, select, textarea, [tabindex]) {
|
|
32
|
+
position: relative;
|
|
33
|
+
z-index: 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* `outline-color`, not `outline: none`: `et-checkbox` transitions `outline-color`, so resetting the
|
|
37
|
+
shorthand flashes a `currentColor` ring on blur. */
|
|
38
|
+
.et-choice-field-control-slot > :focus-visible {
|
|
39
|
+
outline-color: transparent;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Inside `:where()` so the disabled label colour still wins. */
|
|
43
|
+
.et-choice-field-label-area {
|
|
44
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:where(:has(:is([aria-checked='true'], [aria-checked='mixed']))) .et-choice-field-label-area {
|
|
48
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Opacity on top of the shared border/background transition, for the one-unit dim above. */
|
|
52
|
+
&[data-can-animate] .et-choice-field-control {
|
|
53
|
+
transition:
|
|
54
|
+
border-color var(--et-selection-card-transition-duration) ease,
|
|
55
|
+
background-color var(--et-selection-card-transition-duration) ease,
|
|
56
|
+
opacity var(--et-selection-card-transition-duration) ease;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-choice-field-gap {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 8px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-choice-field-support-duration {
|
|
9
|
+
syntax: '<time>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 180ms;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-choice-field-label-font-size {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 14px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-choice-field-error-font-size {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 12px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-choice-field-warning-font-size {
|
|
27
|
+
syntax: '<length>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 12px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@property --et-choice-field-hint-font-size {
|
|
33
|
+
syntax: '<length>';
|
|
34
|
+
inherits: true;
|
|
35
|
+
initial-value: 12px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
et-choice-field {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
width: fit-content;
|
|
42
|
+
gap: 4px;
|
|
43
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
44
|
+
|
|
45
|
+
--et-form-support-duration: var(--et-choice-field-support-duration);
|
|
46
|
+
--et-form-support-error-font-size: var(--et-choice-field-error-font-size);
|
|
47
|
+
--et-form-support-warning-font-size: var(--et-choice-field-warning-font-size);
|
|
48
|
+
--et-form-support-hint-font-size: var(--et-choice-field-hint-font-size);
|
|
49
|
+
|
|
50
|
+
.et-choice-field-control {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
gap: var(--et-choice-field-gap);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* The row carries the state cursor, not the control: a disabled checkbox/radio/switch sets
|
|
57
|
+
`pointer-events: none` on itself, so its own cursor never reaches the pointer. */
|
|
58
|
+
&:where(:has([aria-disabled='true'])) .et-choice-field-control {
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:where(:has([data-readonly])) .et-choice-field-control {
|
|
63
|
+
cursor: default;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.et-choice-field-control-slot {
|
|
67
|
+
flex: 0 0 auto;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:where([data-size='sm']) {
|
|
71
|
+
--et-choice-field-label-font-size: 12px;
|
|
72
|
+
|
|
73
|
+
et-checkbox {
|
|
74
|
+
--et-checkbox-size: 16px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
et-switch {
|
|
78
|
+
--et-switch-track-width: 34px;
|
|
79
|
+
--et-switch-track-height: 19px;
|
|
80
|
+
--et-switch-thumb-size: 13px;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:where([data-size='lg']) {
|
|
85
|
+
--et-choice-field-label-font-size: 16px;
|
|
86
|
+
|
|
87
|
+
et-checkbox {
|
|
88
|
+
--et-checkbox-size: 24px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
et-switch {
|
|
92
|
+
--et-switch-track-width: 46px;
|
|
93
|
+
--et-switch-track-height: 25px;
|
|
94
|
+
--et-switch-thumb-size: 19px;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.et-choice-field-label-area {
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: baseline;
|
|
101
|
+
font-size: var(--et-choice-field-label-font-size);
|
|
102
|
+
font-weight: 500;
|
|
103
|
+
line-height: 1.2;
|
|
104
|
+
letter-spacing: -0.01em;
|
|
105
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
-webkit-user-select: none;
|
|
108
|
+
user-select: none;
|
|
109
|
+
min-inline-size: 0;
|
|
110
|
+
flex: 1;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
transition:
|
|
113
|
+
color 150ms ease,
|
|
114
|
+
opacity 150ms ease;
|
|
115
|
+
|
|
116
|
+
et-label {
|
|
117
|
+
display: inline;
|
|
118
|
+
min-inline-size: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&:where(:has(et-description)) {
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
align-items: flex-start;
|
|
124
|
+
gap: 2px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
et-description {
|
|
128
|
+
font-weight: 400;
|
|
129
|
+
letter-spacing: normal;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* view-only controls keep the resting look — no hover/active brighten (matches the
|
|
134
|
+
[data-readonly] gating inside checkbox/radio/switch) */
|
|
135
|
+
@media (hover: hover) {
|
|
136
|
+
&:where(:has(.et-choice-field-control:hover)):where(:not(:has([data-readonly]))) .et-choice-field-label-area {
|
|
137
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&:where(:has(.et-choice-field-control:active)):where(:not(:has([data-readonly]))) .et-choice-field-label-area {
|
|
142
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&:where(:has([data-readonly])) .et-choice-field-label-area {
|
|
146
|
+
cursor: default;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&:where(:has(:focus-visible)) .et-choice-field-label-area {
|
|
150
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&:has([aria-disabled='true']) .et-choice-field-label-area,
|
|
154
|
+
&:has(:disabled) .et-choice-field-label-area {
|
|
155
|
+
cursor: not-allowed;
|
|
156
|
+
color: var(--et-surface-interaction-disabled-solid, currentColor);
|
|
157
|
+
pointer-events: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&:has([aria-disabled='true']) .et-form-support-hint,
|
|
161
|
+
&:has(:disabled) .et-form-support-hint {
|
|
162
|
+
color: var(--et-surface-interaction-disabled-solid, currentColor);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.et-form-support {
|
|
166
|
+
-webkit-user-select: none;
|
|
167
|
+
user-select: none;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.et-form-support-errors,
|
|
171
|
+
.et-form-support-warnings,
|
|
172
|
+
.et-form-support-hint {
|
|
173
|
+
padding-block-start: 0;
|
|
174
|
+
padding-inline-start: calc(var(--et-choice-field-gap) + var(--et-checkbox-size, 20px));
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* Must stay after the rule above: same specificity, so source order is what makes it win. */
|
|
178
|
+
&:where([data-variant='card']) {
|
|
179
|
+
.et-form-support-errors,
|
|
180
|
+
.et-form-support-warnings,
|
|
181
|
+
.et-form-support-hint {
|
|
182
|
+
padding-inline-start: 0;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-color-input-swatch-size {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 20px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-color-input-swatch-radius {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 4px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
et-color-input {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex: 1;
|
|
17
|
+
align-items: center;
|
|
18
|
+
min-inline-size: 0;
|
|
19
|
+
color: inherit;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.et-color-input-trigger {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex: 1;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
min-inline-size: 0;
|
|
28
|
+
margin: 0;
|
|
29
|
+
padding: 0;
|
|
30
|
+
border: none;
|
|
31
|
+
background: none;
|
|
32
|
+
color: inherit;
|
|
33
|
+
font: inherit;
|
|
34
|
+
text-align: start;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
|
|
37
|
+
&:disabled {
|
|
38
|
+
cursor: not-allowed;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&[data-readonly] {
|
|
42
|
+
cursor: default;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.et-color-input-swatch {
|
|
47
|
+
--_et-color-input-checker: color-mix(in srgb, currentColor 18%, transparent);
|
|
48
|
+
--_et-color-input-swatch-color: transparent;
|
|
49
|
+
|
|
50
|
+
inline-size: var(--et-color-input-swatch-size);
|
|
51
|
+
block-size: var(--et-color-input-swatch-size);
|
|
52
|
+
border-radius: var(--et-color-input-swatch-radius);
|
|
53
|
+
border: 1px solid var(--et-surface-border-solid, currentColor);
|
|
54
|
+
flex: none;
|
|
55
|
+
background-image:
|
|
56
|
+
linear-gradient(var(--_et-color-input-swatch-color), var(--_et-color-input-swatch-color)),
|
|
57
|
+
linear-gradient(
|
|
58
|
+
45deg,
|
|
59
|
+
var(--_et-color-input-checker) 25%,
|
|
60
|
+
transparent 25% 75%,
|
|
61
|
+
var(--_et-color-input-checker) 75%
|
|
62
|
+
),
|
|
63
|
+
linear-gradient(
|
|
64
|
+
45deg,
|
|
65
|
+
var(--_et-color-input-checker) 25%,
|
|
66
|
+
transparent 25% 75%,
|
|
67
|
+
var(--_et-color-input-checker) 75%
|
|
68
|
+
);
|
|
69
|
+
background-size:
|
|
70
|
+
100% 100%,
|
|
71
|
+
6px 6px,
|
|
72
|
+
6px 6px;
|
|
73
|
+
background-position:
|
|
74
|
+
0 0,
|
|
75
|
+
0 0,
|
|
76
|
+
3px 3px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.et-color-input-value {
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
text-overflow: ellipsis;
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.et-color-input-trigger:focus-visible {
|
|
86
|
+
outline: none;
|
|
87
|
+
|
|
88
|
+
.et-color-input-swatch {
|
|
89
|
+
outline: 2px solid var(--et-theme-color-primary-solid, currentColor);
|
|
90
|
+
outline-offset: 2px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
et-color-input[data-mixed] .et-color-input-swatch {
|
|
95
|
+
background: linear-gradient(
|
|
96
|
+
to top right,
|
|
97
|
+
transparent calc(50% - 1px),
|
|
98
|
+
color-mix(in srgb, currentColor 25%, transparent) calc(50% - 1px),
|
|
99
|
+
color-mix(in srgb, currentColor 25%, transparent) calc(50% + 1px),
|
|
100
|
+
transparent calc(50% + 1px)
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
et-color-input[data-mixed] .et-color-input-value {
|
|
105
|
+
font-style: italic;
|
|
106
|
+
color: color-mix(in srgb, currentColor 72%, transparent);
|
|
107
|
+
}
|
|
108
|
+
}
|