@ethlete/components 1.0.0-next.69 → 1.0.0-next.71
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 +35 -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 +830 -108
- 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
package/package.json
CHANGED
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethlete/components",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.71",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/ethlete-io/ethdk",
|
|
7
|
+
"directory": "libs/components"
|
|
8
|
+
},
|
|
4
9
|
"license": "MIT",
|
|
5
10
|
"sideEffects": false,
|
|
11
|
+
"exports": {
|
|
12
|
+
"./design/*": "./design/*.ts",
|
|
13
|
+
"./package.json": {
|
|
14
|
+
"default": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./types/ethlete-components.d.ts",
|
|
18
|
+
"default": "./fesm2022/ethlete-components.mjs"
|
|
19
|
+
},
|
|
20
|
+
"./testing": {
|
|
21
|
+
"types": "./types/ethlete-components-testing.d.ts",
|
|
22
|
+
"default": "./fesm2022/ethlete-components-testing.mjs"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
6
25
|
"dependencies": {
|
|
7
26
|
"@ethlete/bracket": "^1.0.0-next.3",
|
|
8
27
|
"tslib": "^2.3.0"
|
|
@@ -40,18 +59,5 @@
|
|
|
40
59
|
"generators": "./generators/generators.json",
|
|
41
60
|
"module": "fesm2022/ethlete-components.mjs",
|
|
42
61
|
"typings": "types/ethlete-components.d.ts",
|
|
43
|
-
"exports": {
|
|
44
|
-
"./package.json": {
|
|
45
|
-
"default": "./package.json"
|
|
46
|
-
},
|
|
47
|
-
".": {
|
|
48
|
-
"types": "./types/ethlete-components.d.ts",
|
|
49
|
-
"default": "./fesm2022/ethlete-components.mjs"
|
|
50
|
-
},
|
|
51
|
-
"./testing": {
|
|
52
|
-
"types": "./types/ethlete-components-testing.d.ts",
|
|
53
|
-
"default": "./fesm2022/ethlete-components-testing.mjs"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
62
|
"type": "module"
|
|
57
63
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-accordion-group {
|
|
3
|
+
display: block;
|
|
4
|
+
|
|
5
|
+
/* Hairlines between the items, not around the stack: every accordion brings its own bottom border,
|
|
6
|
+
so the group only has to drop the trailing one. A boxed group is then a border + radius away, on
|
|
7
|
+
the consumer's side, without having to undo anything first. */
|
|
8
|
+
> .et-accordion:last-child {
|
|
9
|
+
border-block-end: 0;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-accordion-padding-block {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 14px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-accordion-padding-inline {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 0px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-accordion-gap {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 12px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-accordion-chevron-size {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 14px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-accordion-radius {
|
|
27
|
+
syntax: '<length>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 0px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@property --et-accordion-duration {
|
|
33
|
+
syntax: '<time>';
|
|
34
|
+
inherits: true;
|
|
35
|
+
initial-value: 240ms;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@property --et-accordion-color-duration {
|
|
39
|
+
syntax: '<time>';
|
|
40
|
+
inherits: true;
|
|
41
|
+
initial-value: 120ms;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.et-accordion {
|
|
45
|
+
--_et-accordion-border-color: var(--et-surface-border-solid, rgb(128 128 128 / 0.25));
|
|
46
|
+
|
|
47
|
+
display: block;
|
|
48
|
+
color: var(--et-surface-color-solid, CanvasText);
|
|
49
|
+
border-block-end: 1px solid var(--_et-accordion-border-color);
|
|
50
|
+
transition: border-color var(--et-accordion-color-duration) ease;
|
|
51
|
+
|
|
52
|
+
/* The hover lives on the trigger and the border on the host, so this has to reach back up with
|
|
53
|
+
`:has()` - moving the rule onto `.et-accordion-trigger` would silently stop it applying. */
|
|
54
|
+
@media (hover: hover) {
|
|
55
|
+
&:has(.et-accordion-trigger:hover:not([aria-disabled='true'])) {
|
|
56
|
+
--_et-accordion-border-color: color-mix(
|
|
57
|
+
in srgb,
|
|
58
|
+
var(--et-surface-interaction-solid, gray) 35%,
|
|
59
|
+
var(--et-surface-border-solid, rgb(128 128 128 / 0.25))
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.et-accordion-heading {
|
|
66
|
+
display: block;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.et-accordion-trigger {
|
|
70
|
+
--_et-accordion-secondary-color: var(--et-surface-color-muted-solid, GrayText);
|
|
71
|
+
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: var(--et-accordion-gap);
|
|
75
|
+
inline-size: 100%;
|
|
76
|
+
padding: var(--et-accordion-padding-block) var(--et-accordion-padding-inline);
|
|
77
|
+
border: 0;
|
|
78
|
+
border-radius: var(--et-accordion-radius);
|
|
79
|
+
background: transparent;
|
|
80
|
+
color: inherit;
|
|
81
|
+
font: inherit;
|
|
82
|
+
font-weight: 500;
|
|
83
|
+
text-align: start;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
transition: background-color var(--et-accordion-color-duration) ease;
|
|
86
|
+
|
|
87
|
+
@media (hover: hover) {
|
|
88
|
+
&:hover {
|
|
89
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, gray) 7%, transparent);
|
|
90
|
+
|
|
91
|
+
&:not([aria-disabled='true']) {
|
|
92
|
+
--_et-accordion-secondary-color: var(--et-surface-color-solid, CanvasText);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:active {
|
|
98
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, gray) 14%, transparent);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&:focus-visible {
|
|
102
|
+
outline: 2px solid var(--et-theme-color-primary-solid, currentColor);
|
|
103
|
+
outline-offset: -2px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:where([aria-disabled='true']) {
|
|
107
|
+
color: var(--et-surface-color-muted-solid, GrayText);
|
|
108
|
+
cursor: default;
|
|
109
|
+
|
|
110
|
+
&:hover,
|
|
111
|
+
&:active {
|
|
112
|
+
background: transparent;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.et-accordion-label {
|
|
117
|
+
flex: 1;
|
|
118
|
+
min-inline-size: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.et-accordion-hint {
|
|
122
|
+
flex: none;
|
|
123
|
+
color: var(--_et-accordion-secondary-color);
|
|
124
|
+
font-weight: 400;
|
|
125
|
+
transition: color var(--et-accordion-color-duration) ease;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.et-accordion-chevron {
|
|
129
|
+
flex: none;
|
|
130
|
+
inline-size: var(--et-accordion-chevron-size);
|
|
131
|
+
block-size: var(--et-accordion-chevron-size);
|
|
132
|
+
color: var(--_et-accordion-secondary-color);
|
|
133
|
+
rotate: 180deg;
|
|
134
|
+
transition:
|
|
135
|
+
rotate var(--et-accordion-duration) cubic-bezier(0.25, 0, 0.1, 1),
|
|
136
|
+
color var(--et-accordion-color-duration) ease;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&[aria-expanded='true'] .et-accordion-chevron {
|
|
140
|
+
rotate: 0deg;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.et-accordion-panel {
|
|
145
|
+
display: grid;
|
|
146
|
+
grid-template-rows: 0fr;
|
|
147
|
+
visibility: hidden;
|
|
148
|
+
transition:
|
|
149
|
+
grid-template-rows var(--et-accordion-duration) cubic-bezier(0.25, 0, 0.1, 1),
|
|
150
|
+
visibility 0s linear var(--et-accordion-duration);
|
|
151
|
+
|
|
152
|
+
&:where([data-open]) {
|
|
153
|
+
grid-template-rows: 1fr;
|
|
154
|
+
visibility: visible;
|
|
155
|
+
transition:
|
|
156
|
+
grid-template-rows var(--et-accordion-duration) cubic-bezier(0.25, 0, 0.1, 1),
|
|
157
|
+
visibility 0s linear 0s;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Stretched to a track that is 0 tall for part of the animation, so it has to be allowed to shrink
|
|
162
|
+
past its content and clip what doesn't fit. It must also carry no padding or border of its own:
|
|
163
|
+
under `box-sizing: border-box` those would set a floor under its height, and the panel would pop
|
|
164
|
+
open to that floor before the animation started. That is what the body below is separated out for. */
|
|
165
|
+
.et-accordion-panel-clip {
|
|
166
|
+
min-block-size: 0;
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.et-accordion-panel-body {
|
|
171
|
+
padding-block-end: var(--et-accordion-padding-block);
|
|
172
|
+
padding-inline: var(--et-accordion-padding-inline);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@media (prefers-reduced-motion: reduce) {
|
|
176
|
+
.et-accordion-panel,
|
|
177
|
+
.et-accordion-panel:where([data-open]) {
|
|
178
|
+
transition: none;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.et-accordion-trigger .et-accordion-chevron {
|
|
182
|
+
transition: color var(--et-accordion-color-duration) ease;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-avatar-group-overlap {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 8px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-avatar-group-ring-width {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 2px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.et-avatar-group {
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
|
|
17
|
+
/* `hidden` alone loses to the avatar's own `display`, and the avatars past `maxVisible` have to
|
|
18
|
+
leave the row entirely - a hidden-but-laid-out avatar would still take its overlap slot. */
|
|
19
|
+
.et-avatar[hidden] {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.et-avatar {
|
|
24
|
+
box-shadow: 0 0 0 var(--et-avatar-group-ring-width) var(--et-surface-background-solid, Canvas);
|
|
25
|
+
|
|
26
|
+
&:not(:first-child) {
|
|
27
|
+
margin-inline-start: calc(-1 * var(--et-avatar-group-overlap));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-avatar-font-size {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 14px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-avatar-font-weight {
|
|
9
|
+
syntax: '<number>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 600;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-avatar-border-radius {
|
|
15
|
+
syntax: '<length-percentage>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 999px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.et-avatar {
|
|
21
|
+
--_et-avatar-size: 40px;
|
|
22
|
+
--et-theme-color-primary-opacity: 1;
|
|
23
|
+
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
inline-size: var(--_et-avatar-size);
|
|
28
|
+
block-size: var(--_et-avatar-size);
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
border-radius: var(--et-avatar-border-radius);
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
background: var(
|
|
34
|
+
--et-avatar-background,
|
|
35
|
+
rgb(var(--et-theme-color-primary-rgb) / var(--et-theme-color-primary-opacity))
|
|
36
|
+
);
|
|
37
|
+
color: var(--et-avatar-color, var(--et-theme-color-on-primary));
|
|
38
|
+
font-size: var(--et-avatar-font-size);
|
|
39
|
+
font-weight: var(--et-avatar-font-weight);
|
|
40
|
+
line-height: 1;
|
|
41
|
+
-webkit-user-select: none;
|
|
42
|
+
user-select: none;
|
|
43
|
+
|
|
44
|
+
&:where([data-size='xs']) {
|
|
45
|
+
--_et-avatar-size: 24px;
|
|
46
|
+
--et-avatar-font-size: 10px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:where([data-size='sm']) {
|
|
50
|
+
--_et-avatar-size: 32px;
|
|
51
|
+
--et-avatar-font-size: 12px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:where([data-size='lg']) {
|
|
55
|
+
--_et-avatar-size: 48px;
|
|
56
|
+
--et-avatar-font-size: 16px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:where([data-size='xl']) {
|
|
60
|
+
--_et-avatar-size: 64px;
|
|
61
|
+
--et-avatar-font-size: 20px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:where([data-shape='square']) {
|
|
65
|
+
--et-avatar-border-radius: 8px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.et-avatar-image {
|
|
70
|
+
display: block;
|
|
71
|
+
inline-size: 100%;
|
|
72
|
+
block-size: 100%;
|
|
73
|
+
object-fit: cover;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-badge-gap {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 4px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-badge-padding-inline {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-badge-min-block-size {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 20px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-badge-border-radius {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 999px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-badge-font-size {
|
|
27
|
+
syntax: '<length>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 11px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@property --et-badge-font-weight {
|
|
33
|
+
syntax: '<number>';
|
|
34
|
+
inherits: true;
|
|
35
|
+
initial-value: 600;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.et-badge {
|
|
39
|
+
--_et-badge-background: rgb(var(--et-theme-color-primary-rgb) / var(--et-theme-color-primary-opacity));
|
|
40
|
+
--_et-badge-color: var(--et-theme-color-ink-solid);
|
|
41
|
+
--_et-badge-border-color: transparent;
|
|
42
|
+
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
align-self: start;
|
|
45
|
+
justify-self: start;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
gap: var(--et-badge-gap);
|
|
49
|
+
padding-inline: var(--et-badge-padding-inline);
|
|
50
|
+
min-block-size: var(--et-badge-min-block-size);
|
|
51
|
+
border-radius: var(--et-badge-border-radius);
|
|
52
|
+
font-size: var(--et-badge-font-size);
|
|
53
|
+
font-weight: var(--et-badge-font-weight);
|
|
54
|
+
line-height: 1.4;
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
max-inline-size: 100%;
|
|
57
|
+
background: var(--_et-badge-background);
|
|
58
|
+
color: var(--_et-badge-color);
|
|
59
|
+
border: 1px solid var(--_et-badge-border-color);
|
|
60
|
+
white-space: nowrap;
|
|
61
|
+
-webkit-user-select: none;
|
|
62
|
+
user-select: none;
|
|
63
|
+
|
|
64
|
+
&:where([data-variant='filled']) {
|
|
65
|
+
--et-theme-color-primary-opacity: 1;
|
|
66
|
+
--_et-badge-color: var(--et-theme-color-on-primary);
|
|
67
|
+
--_et-badge-border-color: transparent;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:where([data-variant='tonal']) {
|
|
71
|
+
--et-theme-color-primary-opacity: 0.16;
|
|
72
|
+
--_et-badge-border-color: transparent;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:where([data-variant='outline']) {
|
|
76
|
+
--et-theme-color-primary-opacity: 0;
|
|
77
|
+
--_et-badge-border-color: var(--et-theme-color-ink-solid);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* `md` is the token initial values above, left unset so an ancestor token override still reaches it. */
|
|
81
|
+
&:where([data-size='sm']) {
|
|
82
|
+
--et-badge-gap: 3px;
|
|
83
|
+
--et-badge-padding-inline: 6px;
|
|
84
|
+
--et-badge-min-block-size: 16px;
|
|
85
|
+
--et-badge-font-size: 10px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:where([data-size='lg']) {
|
|
89
|
+
--et-badge-gap: 5px;
|
|
90
|
+
--et-badge-padding-inline: 10px;
|
|
91
|
+
--et-badge-min-block-size: 24px;
|
|
92
|
+
--et-badge-font-size: 12px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.et-badge-icon {
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
flex-shrink: 0;
|
|
100
|
+
|
|
101
|
+
&:empty {
|
|
102
|
+
display: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.et-icon {
|
|
106
|
+
inline-size: 1em;
|
|
107
|
+
block-size: 1em;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-banner-gap {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 12px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-banner-padding {
|
|
9
|
+
syntax: '*';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 16px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-banner-border-radius {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 12px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-banner-icon-size {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 20px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-banner-heading-size {
|
|
27
|
+
syntax: '<length>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 14px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@property --et-banner-heading-weight {
|
|
33
|
+
syntax: '<number>';
|
|
34
|
+
inherits: true;
|
|
35
|
+
initial-value: 600;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@property --et-banner-description-size {
|
|
39
|
+
syntax: '<length>';
|
|
40
|
+
inherits: true;
|
|
41
|
+
initial-value: 14px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.et-banner {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: flex-start;
|
|
47
|
+
gap: var(--et-banner-gap);
|
|
48
|
+
padding: var(--et-banner-padding);
|
|
49
|
+
border-radius: var(--et-banner-border-radius);
|
|
50
|
+
/* The tint is whatever type/color resolved onto this host's color scope, so the banner reads as its
|
|
51
|
+
type without a hardcoded color - including a neutral `currentColor` tint for `info` with nothing forced. */
|
|
52
|
+
background: color-mix(in srgb, var(--et-theme-color-primary-solid, currentColor) 8%, transparent);
|
|
53
|
+
border: 1px solid color-mix(in srgb, var(--et-theme-color-primary-solid, currentColor) 24%, transparent);
|
|
54
|
+
|
|
55
|
+
> .et-icon {
|
|
56
|
+
flex-shrink: 0;
|
|
57
|
+
inline-size: var(--et-banner-icon-size);
|
|
58
|
+
block-size: var(--et-banner-icon-size);
|
|
59
|
+
color: var(--et-theme-color-ink-solid, currentColor);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.et-banner-content {
|
|
63
|
+
flex: 1;
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
align-items: flex-start;
|
|
67
|
+
gap: 4px;
|
|
68
|
+
min-inline-size: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.et-banner-heading,
|
|
72
|
+
[etBannerHeading] {
|
|
73
|
+
margin: 0;
|
|
74
|
+
font-size: var(--et-banner-heading-size);
|
|
75
|
+
font-weight: var(--et-banner-heading-weight);
|
|
76
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.et-banner-description,
|
|
80
|
+
[etBannerBody] {
|
|
81
|
+
margin: 0;
|
|
82
|
+
font-size: var(--et-banner-description-size);
|
|
83
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[etBannerAction] {
|
|
87
|
+
margin-block-start: 4px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.et-banner-dismiss-btn {
|
|
91
|
+
flex-shrink: 0;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
/* Dashed to match its connector, which the engine also dashes: this column is a hand-off, not a match. */
|
|
3
|
+
.et-bracket-default-continue-host {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
gap: 6px;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
inline-size: 100%;
|
|
11
|
+
block-size: 100%;
|
|
12
|
+
padding: 10px;
|
|
13
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
14
|
+
border: 1px dashed var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
|
|
15
|
+
border-radius: var(--et-match-card-border-radius, 10px);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.et-bracket-default-continue-icon {
|
|
19
|
+
display: block;
|
|
20
|
+
inline-size: 18px;
|
|
21
|
+
block-size: 18px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.et-bracket-default-continue-text {
|
|
25
|
+
font-size: 12px;
|
|
26
|
+
line-height: 1.3;
|
|
27
|
+
text-align: center;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
/* The frame is the whole distinction: an accent border and a soft glow in the color theme in scope, so a
|
|
3
|
+
bracket rendered inside a branded scope crowns its winner in that brand rather than in a colour this
|
|
4
|
+
file picked. Everything else is the standard card. */
|
|
5
|
+
.et-bracket-final-host {
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-rows: auto 1fr auto;
|
|
8
|
+
align-content: center;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
inline-size: 100%;
|
|
11
|
+
block-size: 100%;
|
|
12
|
+
gap: 6px;
|
|
13
|
+
padding: 10px;
|
|
14
|
+
background: color-mix(in srgb, var(--et-theme-color-primary-solid, transparent) 6%, transparent);
|
|
15
|
+
border: 1px solid color-mix(in srgb, var(--et-theme-color-primary-solid, currentColor) 45%, transparent);
|
|
16
|
+
border-radius: calc(var(--et-match-card-border-radius, 10px) + 4px);
|
|
17
|
+
box-shadow: 0 0 24px -8px color-mix(in srgb, var(--et-theme-color-primary-solid, transparent) 50%, transparent);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.et-bracket-final-header {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
gap: 6px;
|
|
25
|
+
min-inline-size: 0;
|
|
26
|
+
color: var(--et-theme-color-ink-solid, currentColor);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.et-bracket-final-trophy {
|
|
30
|
+
display: block;
|
|
31
|
+
flex: none;
|
|
32
|
+
inline-size: 14px;
|
|
33
|
+
block-size: 14px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.et-bracket-final-round {
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
font-size: 11px;
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
letter-spacing: 0.06em;
|
|
41
|
+
line-height: 1.3;
|
|
42
|
+
text-overflow: ellipsis;
|
|
43
|
+
text-transform: uppercase;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Transparent inside the frame: two stacked borders around the same match reads as a mistake. */
|
|
48
|
+
.et-bracket-final-host .et-bracket-final-card {
|
|
49
|
+
display: grid;
|
|
50
|
+
block-size: 100%;
|
|
51
|
+
min-inline-size: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.et-bracket-final-host .et-bracket-final-card .et-match-card-content {
|
|
55
|
+
padding-inline: 0;
|
|
56
|
+
background: transparent;
|
|
57
|
+
border-color: transparent;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.et-bracket-final-champion {
|
|
61
|
+
margin: 0;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
font-size: 11px;
|
|
64
|
+
line-height: 1.3;
|
|
65
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
66
|
+
text-align: center;
|
|
67
|
+
text-overflow: ellipsis;
|
|
68
|
+
white-space: nowrap;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Decided: the champion line is the answer everyone came for, so it stops being a caption. */
|
|
72
|
+
.et-bracket-final-host:where([data-decided]) .et-bracket-final-champion {
|
|
73
|
+
font-weight: 600;
|
|
74
|
+
color: var(--et-theme-color-ink-solid, currentColor);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
/* The cell is sized by the grid engine (`columnWidth` × `matchHeight`); the card fills it, and the
|
|
3
|
+
card's own container query then picks the density that width affords. */
|
|
4
|
+
.et-bracket-default-match-host {
|
|
5
|
+
display: block;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
inline-size: 100%;
|
|
8
|
+
block-size: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.et-bracket-default-match-host .et-bracket-default-match-card {
|
|
12
|
+
/* The engine's `matchHeight` is the contract for how tall a cell is, so the card takes all of it
|
|
13
|
+
rather than sizing to its own content and leaving the connectors pointing at nothing. `grid` over
|
|
14
|
+
the card's own `block` so its single child stretches with it. */
|
|
15
|
+
display: grid;
|
|
16
|
+
block-size: 100%;
|
|
17
|
+
/* Overridden from the card's own 180px floor: a bracket column may legitimately be narrower, and here
|
|
18
|
+
the column width is deliberate rather than accidental. */
|
|
19
|
+
min-inline-size: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|