@ethlete/components 1.0.0-next.93 → 1.0.0-next.95
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 +30 -0
- package/design/sdk/components/bracket/bracket.ts +51 -15
- package/design/sdk/components/button/button.css +0 -12
- package/design/sdk/components/carousel/carousel.ts +61 -28
- package/design/sdk/components/checkbox/checkbox.css +0 -55
- package/design/sdk/components/checkbox/checkbox.ts +1 -1
- package/design/sdk/components/match/match.ts +1 -0
- package/design/sdk/components/radio-group/radio-group.css +0 -36
- package/design/sdk/components/radio-group/radio-group.ts +1 -1
- package/design/sdk/components/scrollable/scrollable.ts +23 -9
- package/design/sdk/components/select/select.css +6 -0
- package/design/sdk/components/table/table.ts +80 -37
- package/design/sdk/ready.json +160 -56
- package/design/select.ts +2 -2
- package/fesm2022/ethlete-components.mjs +331 -95
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/button/button.component.css +1 -1
- package/src/lib/carousel/carousel.component.css +9 -3
- package/src/lib/forms/checkbox/checkbox.component.css +19 -6
- package/src/lib/forms/form-field/form-field.component.css +6 -0
- package/src/lib/forms/selection-card-styles.component.css +3 -4
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +14 -2
- package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +17 -7
- package/src/lib/forms/selection-list/radio-group/radio-group.component.css +1 -1
- package/src/lib/forms/selection-list/radio-group/radio.component.css +11 -4
- package/src/lib/match/match-card.component.css +10 -1
- package/src/lib/match/match-participant.component.css +36 -0
- package/src/lib/picture/picture.component.css +15 -0
- package/src/lib/scrollable/headless/scrollable-buttons.component.css +33 -5
- package/src/lib/scrollable/headless/scrollable-masks.component.css +18 -3
- package/src/lib/scrollable/scrollable.component.css +0 -1
- package/src/lib/table/table-expander-cell.component.css +6 -0
- package/types/ethlete-components.d.ts +145 -16
package/package.json
CHANGED
|
@@ -195,6 +195,13 @@
|
|
|
195
195
|
);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
&:active::before {
|
|
199
|
+
background: var(
|
|
200
|
+
--et-carousel-dot-pressed-color,
|
|
201
|
+
color-mix(in srgb, var(--et-surface-interaction-solid, gray) 85%, transparent)
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
|
|
198
205
|
&:where([data-active])::before {
|
|
199
206
|
background: var(
|
|
200
207
|
--et-carousel-dot-active-color,
|
|
@@ -202,9 +209,8 @@
|
|
|
202
209
|
);
|
|
203
210
|
}
|
|
204
211
|
|
|
205
|
-
/*
|
|
206
|
-
|
|
207
|
-
&:where([data-active]):hover::before {
|
|
212
|
+
/* `:hover`/`:active` above outrank the `:where()` rule, so the selected dot needs its own state selector. */
|
|
213
|
+
&:where([data-active]):is(:hover, :active)::before {
|
|
208
214
|
background: var(
|
|
209
215
|
--et-carousel-dot-active-color,
|
|
210
216
|
light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid))
|
|
@@ -115,8 +115,12 @@
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
&.et-focus-ring {
|
|
119
|
+
--_et-focus-ring-color: var(--et-theme-color-ink-solid);
|
|
120
|
+
}
|
|
121
|
+
|
|
118
122
|
&:focus-visible:not([aria-checked='true']):not([aria-checked='mixed']) {
|
|
119
|
-
--_et-focus-ring-color: var(--et-
|
|
123
|
+
--_et-focus-ring-color: var(--et-theme-color-ink-solid);
|
|
120
124
|
}
|
|
121
125
|
|
|
122
126
|
&:focus-visible:not([aria-checked='true']):not([aria-checked='mixed']) .et-checkbox-box {
|
|
@@ -128,10 +132,7 @@
|
|
|
128
132
|
}
|
|
129
133
|
|
|
130
134
|
et-choice-field[data-error] &:focus-visible:not([aria-checked='true']):not([aria-checked='mixed']) {
|
|
131
|
-
--_et-focus-ring-color:
|
|
132
|
-
var(--et-theme-color-ink-solid, currentColor),
|
|
133
|
-
var(--et-theme-color-primary-solid, currentColor)
|
|
134
|
-
);
|
|
135
|
+
--_et-focus-ring-color: var(--et-theme-color-ink-solid);
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
et-choice-field[data-error]
|
|
@@ -147,7 +148,7 @@
|
|
|
147
148
|
:where(et-choice-field[data-variant='card'])
|
|
148
149
|
&:focus-visible:not([aria-checked='true']):not([aria-checked='mixed'])
|
|
149
150
|
.et-checkbox-box {
|
|
150
|
-
border-color: var(--et-theme-color-primary-solid);
|
|
151
|
+
border-color: light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
|
|
151
152
|
}
|
|
152
153
|
|
|
153
154
|
&:active:not([aria-disabled='true']):not([data-readonly]):not([aria-checked='true']):not([aria-checked='mixed'])
|
|
@@ -234,6 +235,18 @@
|
|
|
234
235
|
}
|
|
235
236
|
}
|
|
236
237
|
|
|
238
|
+
&:is([aria-checked='true'], [aria-checked='mixed']) .et-checkbox-box {
|
|
239
|
+
outline: 1px solid light-dark(var(--et-theme-color-ink-solid), transparent);
|
|
240
|
+
outline-offset: -1px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@media (hover: hover) {
|
|
244
|
+
&:is([aria-checked='true'], [aria-checked='mixed']):hover,
|
|
245
|
+
.et-color-interactive-container:hover &:is([aria-checked='true'], [aria-checked='mixed']) {
|
|
246
|
+
--et-theme-color-primary-rgb: var(--et-color-primary-active);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
237
250
|
&[data-can-animate] {
|
|
238
251
|
transition:
|
|
239
252
|
opacity var(--et-checkbox-transition-duration) ease,
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
@layer components.sdk {
|
|
2
|
+
et-form-field:where([data-variant='ghost']) {
|
|
3
|
+
--et-form-field-control-border-color: transparent;
|
|
4
|
+
--et-form-field-value-color: var(--et-surface-color-muted-solid, currentColor);
|
|
5
|
+
--et-form-field-value-color-active: var(--et-surface-color-solid, currentColor);
|
|
6
|
+
}
|
|
7
|
+
|
|
2
8
|
@property --et-form-field-gap {
|
|
3
9
|
syntax: '<length>';
|
|
4
10
|
inherits: true;
|
|
@@ -64,14 +64,13 @@
|
|
|
64
64
|
|
|
65
65
|
/* After hover/active so a chosen card keeps its accent under the cursor. */
|
|
66
66
|
&:where([aria-checked='true'], :has(:is([aria-checked='true'], [aria-checked='mixed']))) {
|
|
67
|
-
border-color: var(--et-theme-color-
|
|
67
|
+
border-color: light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
/* Each host resets its own control's focus ring, so the card shows one ring. */
|
|
71
71
|
&:where(:focus-visible, :has(:focus-visible)) {
|
|
72
|
-
border-color: var(--et-theme-color-
|
|
73
|
-
outline: 2px solid
|
|
74
|
-
light-dark(var(--et-theme-color-ink-solid, currentColor), var(--et-theme-color-primary-solid, currentColor));
|
|
72
|
+
border-color: light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
|
|
73
|
+
outline: 2px solid var(--et-theme-color-ink-solid, currentColor);
|
|
75
74
|
outline-offset: 2px;
|
|
76
75
|
}
|
|
77
76
|
|
|
@@ -74,11 +74,23 @@
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.et-checkbox-group-select-all:focus-visible .et-checkbox-group-select-all-box {
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
border-color: light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
|
|
78
|
+
outline: 2px solid var(--et-theme-color-ink-solid, currentColor);
|
|
79
79
|
outline-offset: 2px;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
.et-checkbox-group-select-all:is([aria-checked='true'], [aria-checked='mixed']):not(:focus-visible)
|
|
83
|
+
.et-checkbox-group-select-all-box {
|
|
84
|
+
outline: 1px solid light-dark(var(--et-theme-color-ink-solid), transparent);
|
|
85
|
+
outline-offset: -1px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media (hover: hover) {
|
|
89
|
+
.et-checkbox-group-select-all:is([aria-checked='true'], [aria-checked='mixed']):hover {
|
|
90
|
+
--et-theme-color-primary-rgb: var(--et-color-primary-active);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
82
94
|
.et-checkbox-group-select-all:active:not([aria-disabled='true']):not([aria-readonly='true'])
|
|
83
95
|
.et-checkbox-group-select-all-box {
|
|
84
96
|
transform: scale(0.92);
|
|
@@ -100,13 +100,6 @@
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
&:focus-visible .et-checkbox-option-box {
|
|
104
|
-
border-color: var(--et-theme-color-primary-solid);
|
|
105
|
-
outline: 2px solid
|
|
106
|
-
light-dark(var(--et-theme-color-ink-solid, currentColor), var(--et-theme-color-primary-solid, currentColor));
|
|
107
|
-
outline-offset: 2px;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
103
|
&:active:not([aria-disabled='true']):not([data-readonly]) .et-checkbox-option-box {
|
|
111
104
|
transform: scale(0.92);
|
|
112
105
|
}
|
|
@@ -121,6 +114,17 @@
|
|
|
121
114
|
}
|
|
122
115
|
}
|
|
123
116
|
|
|
117
|
+
&[aria-checked='true']:not(:focus-visible) .et-checkbox-option-box {
|
|
118
|
+
outline: 1px solid light-dark(var(--et-theme-color-ink-solid), transparent);
|
|
119
|
+
outline-offset: -1px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@media (hover: hover) {
|
|
123
|
+
&[aria-checked='true']:hover {
|
|
124
|
+
--et-theme-color-primary-rgb: var(--et-color-primary-active);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
124
128
|
&[aria-checked='true'] .et-checkbox-option-box {
|
|
125
129
|
background-color: var(--et-theme-color-primary-solid, currentColor);
|
|
126
130
|
border-color: var(--et-theme-color-primary-solid, currentColor);
|
|
@@ -134,6 +138,12 @@
|
|
|
134
138
|
}
|
|
135
139
|
}
|
|
136
140
|
|
|
141
|
+
&:focus-visible .et-checkbox-option-box {
|
|
142
|
+
border-color: light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
|
|
143
|
+
outline: 2px solid var(--et-theme-color-ink-solid, currentColor);
|
|
144
|
+
outline-offset: 2px;
|
|
145
|
+
}
|
|
146
|
+
|
|
137
147
|
&[data-can-animate] {
|
|
138
148
|
.et-checkbox-option-box {
|
|
139
149
|
transition:
|
|
@@ -98,9 +98,8 @@
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
&:focus-visible .et-radio-circle {
|
|
101
|
-
border-color: var(--et-theme-color-primary-solid);
|
|
102
|
-
outline: 2px solid
|
|
103
|
-
light-dark(var(--et-theme-color-ink-solid, currentColor), var(--et-theme-color-primary-solid, currentColor));
|
|
101
|
+
border-color: light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
|
|
102
|
+
outline: 2px solid var(--et-theme-color-ink-solid, currentColor);
|
|
104
103
|
outline-offset: 2px;
|
|
105
104
|
}
|
|
106
105
|
|
|
@@ -119,11 +118,19 @@
|
|
|
119
118
|
}
|
|
120
119
|
|
|
121
120
|
&[aria-checked='true'] .et-radio-circle {
|
|
122
|
-
border-color: var(--et-theme-color-
|
|
121
|
+
border-color: light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
|
|
123
122
|
background-color: transparent;
|
|
124
123
|
|
|
125
124
|
&::after {
|
|
126
125
|
transform: scale(1);
|
|
126
|
+
outline: 1px solid light-dark(var(--et-theme-color-ink-solid), transparent);
|
|
127
|
+
outline-offset: -1px;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@media (hover: hover) {
|
|
132
|
+
&[aria-checked='true']:hover {
|
|
133
|
+
--et-theme-color-primary-rgb: var(--et-color-primary-active);
|
|
127
134
|
}
|
|
128
135
|
}
|
|
129
136
|
|
|
@@ -187,6 +187,13 @@
|
|
|
187
187
|
border-radius: inherit;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
/* Brings back the kick-off alone: the meta row returns, but its label and badges stay out. */
|
|
191
|
+
.et-match-card:where([data-show-start-time]) .et-match-card-content {
|
|
192
|
+
--_et-match-card-meta-display: flex;
|
|
193
|
+
--_et-match-card-time-display: block;
|
|
194
|
+
--_et-match-card-badges-display: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
190
197
|
/* Past the first threshold the card is the featured one; past the second the two sides stop stacking
|
|
191
198
|
and face each other across the middle. The thresholds are constants, not tokens: a container query
|
|
192
199
|
condition may not contain `var()`, so there is nothing to point a custom property at. Pin the layout
|
|
@@ -220,6 +227,7 @@
|
|
|
220
227
|
--_et-match-card-label-display: block;
|
|
221
228
|
--_et-match-card-meta-display: flex;
|
|
222
229
|
--_et-match-card-time-display: block;
|
|
230
|
+
--_et-match-card-badges-display: flex;
|
|
223
231
|
}
|
|
224
232
|
}
|
|
225
233
|
|
|
@@ -250,6 +258,7 @@
|
|
|
250
258
|
--_et-match-card-label-display: block;
|
|
251
259
|
--_et-match-card-meta-display: flex;
|
|
252
260
|
--_et-match-card-time-display: block;
|
|
261
|
+
--_et-match-card-badges-display: flex;
|
|
253
262
|
}
|
|
254
263
|
|
|
255
264
|
/* The dense row is two rows and nothing else — its round is named by the column it sits in and its
|
|
@@ -293,7 +302,7 @@
|
|
|
293
302
|
}
|
|
294
303
|
|
|
295
304
|
.et-match-card-badges {
|
|
296
|
-
display: flex;
|
|
305
|
+
display: var(--_et-match-card-badges-display, flex);
|
|
297
306
|
flex: none;
|
|
298
307
|
align-items: center;
|
|
299
308
|
gap: 4px;
|
|
@@ -107,6 +107,42 @@
|
|
|
107
107
|
content: attr(data-mark);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
.et-match-participant-emblem:has(> .et-match-participant-emblem-mark[data-fallback='shield']),
|
|
111
|
+
.et-match-participant-emblem:has(
|
|
112
|
+
> .et-match-participant-picture .et-match-participant-emblem-mark[data-fallback='shield']
|
|
113
|
+
) {
|
|
114
|
+
border-color: transparent;
|
|
115
|
+
background: none;
|
|
116
|
+
border-radius: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.et-match-participant-emblem-mark[data-fallback='shield'] {
|
|
120
|
+
position: relative;
|
|
121
|
+
display: grid;
|
|
122
|
+
place-items: center;
|
|
123
|
+
inline-size: 100%;
|
|
124
|
+
block-size: 100%;
|
|
125
|
+
padding-block-end: 6%;
|
|
126
|
+
box-sizing: border-box;
|
|
127
|
+
font-size: calc(var(--et-match-participant-emblem-size) * 0.38);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.et-match-participant-shield {
|
|
131
|
+
position: absolute;
|
|
132
|
+
inset: 0;
|
|
133
|
+
inline-size: 100%;
|
|
134
|
+
block-size: 100%;
|
|
135
|
+
overflow: visible;
|
|
136
|
+
fill: color-mix(in srgb, var(--et-surface-interaction-solid, gray) 10%, transparent);
|
|
137
|
+
stroke: var(--et-surface-border-solid, currentColor);
|
|
138
|
+
stroke-width: 1.5;
|
|
139
|
+
stroke-linejoin: round;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.et-match-participant-emblem-mark[data-fallback='shield']::before {
|
|
143
|
+
position: relative;
|
|
144
|
+
}
|
|
145
|
+
|
|
110
146
|
.et-match-participant:has(> [etMatchParticipantEdit]:not([etMatchParticipantEdit='beside']))
|
|
111
147
|
.et-match-participant-names,
|
|
112
148
|
.et-match-participant:has(> [etMatchParticipantEdit]:not([etMatchParticipantEdit='beside']))
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
@layer components.sdk {
|
|
2
|
+
@property --et-picture-img-transform {
|
|
3
|
+
syntax: '*';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-picture-img-transition {
|
|
9
|
+
syntax: '*';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
2
14
|
.et-picture {
|
|
3
15
|
display: block;
|
|
4
16
|
|
|
@@ -12,6 +24,7 @@
|
|
|
12
24
|
display: block;
|
|
13
25
|
/* The containing block for the placeholder / error slots. */
|
|
14
26
|
position: relative;
|
|
27
|
+
overflow: hidden;
|
|
15
28
|
}
|
|
16
29
|
|
|
17
30
|
.et-picture-img {
|
|
@@ -19,6 +32,8 @@
|
|
|
19
32
|
max-inline-size: 100%;
|
|
20
33
|
/* Given `width`/`height` for CLS, the intrinsic ratio has to be kept once CSS resizes the box. */
|
|
21
34
|
block-size: auto;
|
|
35
|
+
transform: var(--et-picture-img-transform);
|
|
36
|
+
transition: var(--et-picture-img-transition);
|
|
22
37
|
}
|
|
23
38
|
|
|
24
39
|
&:where([data-aspect-ratio]) {
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
@layer components.sdk {
|
|
2
|
+
@property --et-scrollable-buttons-offset {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 0px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-scrollable-buttons-end-space {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 0px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-scrollable-buttons-extent {
|
|
15
|
+
syntax: '*';
|
|
16
|
+
inherits: true;
|
|
17
|
+
}
|
|
18
|
+
|
|
2
19
|
.et-scrollable-buttons {
|
|
3
20
|
grid-row: 1 / 1;
|
|
4
21
|
grid-column: 1 / 1;
|
|
@@ -6,7 +23,7 @@
|
|
|
6
23
|
|
|
7
24
|
.et-scrollable-button {
|
|
8
25
|
position: absolute;
|
|
9
|
-
--_et-scrollable-button-extent: calc(var(--_et-icon-button-size) + 0.4rem);
|
|
26
|
+
--_et-scrollable-button-extent: var(--et-scrollable-buttons-extent, calc(var(--_et-icon-button-size) + 0.4rem));
|
|
10
27
|
opacity: 0;
|
|
11
28
|
}
|
|
12
29
|
}
|
|
@@ -16,7 +33,7 @@
|
|
|
16
33
|
&:not([direction]) {
|
|
17
34
|
& .et-scrollable-button--start {
|
|
18
35
|
inset-block-start: calc(50% - var(--_et-scrollable-button-extent) / 2);
|
|
19
|
-
inset-inline:
|
|
36
|
+
inset-inline: var(--et-scrollable-buttons-offset) 0;
|
|
20
37
|
transform: translateX(-10px);
|
|
21
38
|
|
|
22
39
|
& .et-icon--et-chevron {
|
|
@@ -26,7 +43,7 @@
|
|
|
26
43
|
|
|
27
44
|
& .et-scrollable-button--end {
|
|
28
45
|
inset-block-start: calc(50% - var(--_et-scrollable-button-extent) / 2);
|
|
29
|
-
inset-inline: calc(100% - var(--_et-scrollable-button-extent)) 0;
|
|
46
|
+
inset-inline: calc(100% - var(--_et-scrollable-button-extent) - var(--et-scrollable-buttons-offset)) 0;
|
|
30
47
|
transform: translateX(10px);
|
|
31
48
|
|
|
32
49
|
& .et-icon--et-chevron {
|
|
@@ -37,7 +54,7 @@
|
|
|
37
54
|
|
|
38
55
|
&[direction='vertical'] {
|
|
39
56
|
& .et-scrollable-button--start {
|
|
40
|
-
inset-block-start:
|
|
57
|
+
inset-block-start: var(--et-scrollable-buttons-offset);
|
|
41
58
|
inset-inline-start: calc(50% - var(--_et-scrollable-button-extent) / 2);
|
|
42
59
|
transform: translateY(-10px);
|
|
43
60
|
|
|
@@ -47,7 +64,7 @@
|
|
|
47
64
|
}
|
|
48
65
|
|
|
49
66
|
& .et-scrollable-button--end {
|
|
50
|
-
inset-block-end:
|
|
67
|
+
inset-block-end: var(--et-scrollable-buttons-offset);
|
|
51
68
|
inset-inline-start: calc(50% - var(--_et-scrollable-button-extent) / 2);
|
|
52
69
|
transform: translateY(10px);
|
|
53
70
|
|
|
@@ -85,6 +102,17 @@
|
|
|
85
102
|
}
|
|
86
103
|
}
|
|
87
104
|
|
|
105
|
+
&.et-scrollable--can-scroll:not(.et-scrollable--is-at-end):has(.et-scrollable-buttons--inside) {
|
|
106
|
+
&[direction='horizontal'] > .et-scrollable-wrapper > .et-scrollable-container,
|
|
107
|
+
&:not([direction]) > .et-scrollable-wrapper > .et-scrollable-container {
|
|
108
|
+
padding-inline-end: var(--et-scrollable-buttons-end-space);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&[direction='vertical'] > .et-scrollable-wrapper > .et-scrollable-container {
|
|
112
|
+
padding-block-end: var(--et-scrollable-buttons-end-space);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
88
116
|
&.et-scrollable--sticky-buttons {
|
|
89
117
|
--_sticky-margin: 10%;
|
|
90
118
|
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
@layer components.sdk {
|
|
2
|
+
@property --et-scrollable-mask-size {
|
|
3
|
+
syntax: '*';
|
|
4
|
+
inherits: true;
|
|
5
|
+
}
|
|
6
|
+
|
|
2
7
|
@property --_et-scrollable-mask-start {
|
|
3
8
|
syntax: '<length>';
|
|
4
9
|
inherits: false;
|
|
@@ -11,6 +16,13 @@
|
|
|
11
16
|
initial-value: 0px;
|
|
12
17
|
}
|
|
13
18
|
|
|
19
|
+
:where(.et-scrollable) {
|
|
20
|
+
--_et-scrollable-mask-length: var(
|
|
21
|
+
--et-scrollable-mask-size,
|
|
22
|
+
var(--mask-size, var(--_et-scrollable-config-mask-size, 25px))
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
14
26
|
.et-scrollable-masks {
|
|
15
27
|
grid-row: 1 / 1;
|
|
16
28
|
grid-column: 1 / 1;
|
|
@@ -81,7 +93,7 @@
|
|
|
81
93
|
|
|
82
94
|
.et-scrollable.et-scrollable--can-scroll.et-scrollable--has-partial-items:not(.et-scrollable--is-at-start) {
|
|
83
95
|
& > .et-scrollable-wrapper > .et-scrollable-container {
|
|
84
|
-
--_et-scrollable-mask-start: var(--mask-
|
|
96
|
+
--_et-scrollable-mask-start: var(--_et-scrollable-mask-length);
|
|
85
97
|
}
|
|
86
98
|
|
|
87
99
|
& > .et-scrollable-wrapper > .et-scrollable-masks .et-scrollable-mask--start {
|
|
@@ -91,7 +103,7 @@
|
|
|
91
103
|
|
|
92
104
|
.et-scrollable.et-scrollable--can-scroll.et-scrollable--has-partial-items:not(.et-scrollable--is-at-end) {
|
|
93
105
|
& > .et-scrollable-wrapper > .et-scrollable-container {
|
|
94
|
-
--_et-scrollable-mask-end: var(--mask-
|
|
106
|
+
--_et-scrollable-mask-end: var(--_et-scrollable-mask-length);
|
|
95
107
|
}
|
|
96
108
|
|
|
97
109
|
& > .et-scrollable-wrapper > .et-scrollable-masks .et-scrollable-mask--end {
|
|
@@ -112,7 +124,10 @@
|
|
|
112
124
|
}
|
|
113
125
|
|
|
114
126
|
.et-scrollable[mask-variant='border'] {
|
|
115
|
-
--mask-
|
|
127
|
+
--_et-scrollable-mask-length: var(
|
|
128
|
+
--et-scrollable-mask-size,
|
|
129
|
+
var(--mask-size, var(--_et-scrollable-config-mask-size, 32px))
|
|
130
|
+
);
|
|
116
131
|
|
|
117
132
|
&[direction='horizontal'],
|
|
118
133
|
&:not([direction]) {
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
border: none;
|
|
30
30
|
border-radius: 4px;
|
|
31
31
|
cursor: pointer;
|
|
32
|
+
transition: background-color 120ms var(--ease-3, ease-out);
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
.et-table-expander:hover,
|
|
@@ -36,6 +37,10 @@
|
|
|
36
37
|
background: color-mix(in srgb, var(--et-surface-interaction-solid, gray) 12%, transparent);
|
|
37
38
|
}
|
|
38
39
|
|
|
40
|
+
.et-table-expander:active {
|
|
41
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, gray) 24%, transparent);
|
|
42
|
+
}
|
|
43
|
+
|
|
39
44
|
/* The shared `et-chevron` points up, and the expander wants it pointing at what it opens: right
|
|
40
45
|
while collapsed, down once open. Rotating (rather than swapping icons) is what makes the turn
|
|
41
46
|
animatable. */
|
|
@@ -51,6 +56,7 @@
|
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
@media (prefers-reduced-motion: reduce) {
|
|
59
|
+
.et-table-expander,
|
|
54
60
|
.et-table-expander-icon {
|
|
55
61
|
transition: none;
|
|
56
62
|
}
|