@ebay/skin 19.36.0 → 19.37.1

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.
@@ -21,6 +21,9 @@ ul.accordion summary.details__summary {
21
21
 
22
22
  ul.accordion .details__label {
23
23
  flex: 1;
24
+ font-size: inherit;
25
+ font-weight: inherit;
26
+ margin: 0;
24
27
  min-width: 0;
25
28
  }
26
29
 
@@ -169,8 +169,11 @@ button.btn__cell--fixed-height svg.icon {
169
169
 
170
170
  a.fake-btn--primary,
171
171
  button.btn--primary {
172
- background-color: var(--color-background-accent);
173
- border-color: var(--color-border-accent);
172
+ background-color: var(
173
+ --btn-primary-background-color,
174
+ var(--color-background-accent)
175
+ );
176
+ border-color: var(--btn-primary-border-color, transparent);
174
177
  color: var(--color-foreground-on-accent);
175
178
  font-weight: 700;
176
179
  transition: all var(--motion-duration-short-3)
@@ -740,10 +743,7 @@ button.btn--floating-label .btn__floating-label--inline {
740
743
  [dir="rtl"] button.btn.btn--primary.btn--split-end,
741
744
  [dir="rtl"] button.btn.btn--primary.btn--split-end:focus,
742
745
  [dir="rtl"] button.btn.btn--primary.btn--split-end:hover {
743
- border-left-color: var(
744
- --btn-primary-border-color,
745
- var(--color-border-accent)
746
- );
746
+ border-left-color: var(--btn-primary-border-color, transparent);
747
747
  border-right-color: var(
748
748
  --primary-border-split-color,
749
749
  var(--color-border-subtle)
@@ -28,6 +28,10 @@ span.inline-notice {
28
28
  color: var(--color-foreground-accent);
29
29
  }
30
30
 
31
+ .inline-notice--warning .inline-notice__header svg {
32
+ color: var(--color-foreground-warning);
33
+ }
34
+
31
35
  .inline-notice p {
32
36
  margin: 3px 0;
33
37
  }
@@ -81,6 +81,34 @@ span[role="region"].page-notice {
81
81
  );
82
82
  }
83
83
 
84
+ .page-notice--warning {
85
+ background-color: var(
86
+ --page-notice-warning-background-color,
87
+ var(--color-background-warning)
88
+ );
89
+ border-color: var(
90
+ --page-notice-warning-border-color,
91
+ var(--color-background-warning)
92
+ );
93
+ }
94
+ .page-notice--warning .page-notice__header svg {
95
+ color: var(
96
+ --page-notice-warning-icon-color,
97
+ var(--color-foreground-on-warning)
98
+ );
99
+ }
100
+ .page-notice--warning,
101
+ .page-notice--warning a,
102
+ .page-notice--warning a:hover,
103
+ .page-notice--warning button.fake-link,
104
+ .page-notice--warning button.fake-link:hover {
105
+ color: var(--page-notice-warning-color, var(--color-foreground-on-warning));
106
+ }
107
+ .page-notice--warning a:focus-visible,
108
+ .page-notice--warning button.fake-link:focus-visible {
109
+ outline-color: var(--color-foreground-on-warning);
110
+ }
111
+
84
112
  .page-notice--confirmation {
85
113
  background-color: var(
86
114
  --page-notice-confirmation-background-color,
@@ -88,6 +88,10 @@ span[role="region"].section-notice {
88
88
  color: var(--color-foreground-accent);
89
89
  }
90
90
 
91
+ .section-notice--warning .section-notice__header svg {
92
+ color: var(--color-foreground-warning);
93
+ }
94
+
91
95
  .section-notice__header {
92
96
  grid-column: 1;
93
97
  grid-row: 1;
@@ -37,11 +37,6 @@
37
37
  var(--color-background-primary)
38
38
  );
39
39
  }
40
- .textbox--readonly,
41
- .textbox:has(> .textbox__control[readonly]) {
42
- background-color: initial;
43
- border: none;
44
- }
45
40
  .textbox--disabled,
46
41
  .textbox:has(> .textbox__control[disabled]) {
47
42
  border-color: var(
@@ -83,11 +78,11 @@ input.textbox__control {
83
78
  vertical-align: middle;
84
79
  }
85
80
 
86
- input.textbox__control:first-child:not([readonly]) {
81
+ input.textbox__control:first-child {
87
82
  padding-inline-start: var(--spacing-200);
88
83
  }
89
84
 
90
- input.textbox__control:last-child:not([readonly]) {
85
+ input.textbox__control:last-child {
91
86
  padding-inline-end: var(--spacing-200);
92
87
  }
93
88
 
@@ -182,11 +177,6 @@ input.textbox__control {
182
177
  margin-inline-end: calc(-1 * var(--spacing-100));
183
178
  }
184
179
 
185
- input.textbox__control[readonly]:focus,
186
- textarea.textbox__control[readonly]:focus {
187
- text-decoration: underline;
188
- }
189
-
190
180
  .textbox--fluid,
191
181
  .textbox--fluid .textbox__control {
192
182
  width: 100%;
@@ -184,7 +184,7 @@ span.tourtip__heading {
184
184
  }
185
185
 
186
186
  .tourtip__footer > button.btn--primary {
187
- background-color: var(
187
+ --btn-primary-background-color: var(
188
188
  --tourtip-background-color,
189
189
  var(--color-foreground-on-inverse)
190
190
  );
@@ -1,3 +1,280 @@
1
+ :root {
2
+ --state-layer-neutral-on-strong: rgb(var(--color-neutral-900-rgb), 0);
3
+ --state-layer-neutral: rgb(var(--color-neutral-900-rgb), 0);
4
+ }
5
+
6
+ .video {
7
+ aspect-ratio: 16/9;
8
+ background-color: #000;
9
+ position: relative;
10
+ }
11
+ .video > video {
12
+ display: block;
13
+ height: 100%;
14
+ object-fit: contain;
15
+ width: 100%;
16
+ }
17
+ .video > video::-webkit-media-text-track-container {
18
+ transform: translateY(-56px);
19
+ }
20
+
21
+ .video__controls {
22
+ align-items: center;
23
+ background-color: var(--color-neutral-700);
24
+ border-radius: var(--radius-medium);
25
+ bottom: var(--spacing-150);
26
+ color: var(--color-neutral-100);
27
+ display: flex;
28
+ left: var(--spacing-150);
29
+ padding: var(--spacing-75);
30
+ position: absolute;
31
+ right: var(--spacing-150);
32
+ transition: opacity 0.6s cubic-bezier(0.4, 0, 0.6, 1);
33
+ }
34
+
35
+ .video__controls--hidden {
36
+ opacity: 0;
37
+ pointer-events: none;
38
+ }
39
+
40
+ .video__controls--hidden:focus-within {
41
+ opacity: 1;
42
+ pointer-events: auto;
43
+ }
44
+
45
+ @media (prefers-reduced-motion: reduce) {
46
+ .video__controls {
47
+ transition: none;
48
+ }
49
+ }
50
+ .video__control {
51
+ overflow: hidden;
52
+ position: relative;
53
+ }
54
+ .video__control:after {
55
+ background-color: var(--color-state-layer-neutral);
56
+ content: "";
57
+ inset: 0;
58
+ pointer-events: none;
59
+ position: absolute;
60
+ }
61
+ .video__control:not([disabled], [aria-disabled="true"]):hover:after,
62
+ .video__control[href]:hover:after {
63
+ background-color: var(--color-state-layer-hover);
64
+ }
65
+ .video__control:not([disabled], [aria-disabled="true"]):focus-visible:after,
66
+ .video__control[href]:focus-visible:after {
67
+ background-color: var(--color-state-layer-focus);
68
+ }
69
+ .video__control:not([disabled], [aria-disabled="true"]):active:after,
70
+ .video__control[href]:active:after {
71
+ background-color: var(--color-state-layer-pressed);
72
+ }
73
+ .video__control {
74
+ background: none;
75
+ border: 0;
76
+ border-radius: var(--radius-small);
77
+ color: inherit;
78
+ padding: var(--spacing-75);
79
+ }
80
+
81
+ .video__timestamp {
82
+ margin-inline: var(--spacing-75);
83
+ width: 4ch;
84
+ }
85
+
86
+ .video__scrubber {
87
+ flex: 1 1 0;
88
+ }
89
+
90
+ .video__timestamp--remaining {
91
+ width: auto;
92
+ }
93
+
94
+ .video__spacer {
95
+ flex: 1 1 0;
96
+ }
97
+
98
+ .video__scrubber + .video__timestamp {
99
+ margin-right: var(--spacing-125);
100
+ width: auto;
101
+ }
102
+
103
+ .video__scrubber,
104
+ .video__volume {
105
+ appearance: none;
106
+ background: transparent;
107
+ height: var(--dimension-icon-large);
108
+ margin: 0;
109
+ width: 100%;
110
+ }
111
+ .video__scrubber::-webkit-slider-runnable-track,
112
+ .video__volume::-webkit-slider-runnable-track {
113
+ background: linear-gradient(
114
+ to right,
115
+ var(--color-neutral-400) 0 var(--value-percent, 0),
116
+ var(--color-neutral-600) var(--value-percent, 0) 100%
117
+ );
118
+ border-radius: var(--spacing-25);
119
+ height: var(--spacing-50);
120
+ }
121
+ .video__scrubber::-moz-range-progress,
122
+ .video__scrubber::-moz-range-track,
123
+ .video__volume::-moz-range-progress,
124
+ .video__volume::-moz-range-track {
125
+ border-radius: var(--spacing-25);
126
+ height: var(--spacing-50);
127
+ }
128
+ .video__scrubber::-moz-range-track,
129
+ .video__volume::-moz-range-track {
130
+ background: var(--color-neutral-600);
131
+ }
132
+ .video__scrubber::-moz-range-progress,
133
+ .video__volume::-moz-range-progress {
134
+ background: var(--color-neutral-400);
135
+ }
136
+ .video__scrubber::-webkit-slider-thumb,
137
+ .video__volume::-webkit-slider-thumb {
138
+ appearance: none;
139
+ background: var(--color-neutral-100);
140
+ border: 0;
141
+ border-radius: 50%;
142
+ height: var(--dimension-150);
143
+ margin-top: calc(-0.5 * (var(--dimension-150) - var(--spacing-50)));
144
+ width: var(--dimension-150);
145
+ }
146
+ .video__scrubber::-moz-range-thumb,
147
+ .video__volume::-moz-range-thumb {
148
+ background: var(--color-neutral-100);
149
+ border: 0;
150
+ border-radius: 50%;
151
+ height: var(--dimension-150);
152
+ width: var(--dimension-150);
153
+ }
154
+
155
+ .video__popover-container {
156
+ position: relative;
157
+ }
158
+
159
+ .video__control[aria-expanded="true"] + .video__popover {
160
+ display: block;
161
+ }
162
+
163
+ .video__popover {
164
+ background-color: var(--color-neutral-700);
165
+ border-radius: var(--radius-medium);
166
+ bottom: 42px;
167
+ display: none;
168
+ font-size: var(--font-size-small);
169
+ left: 50%;
170
+ overflow: hidden;
171
+ position: absolute;
172
+ translate: -50%;
173
+ --color-background-primary: var(--color-neutral-700);
174
+ --color-foreground-primary: var(--color-neutral-200);
175
+ --color-foreground-secondary: var(--color-neutral-500);
176
+ --color-foreground-disabled: var(--color-neutral-600);
177
+ --color-state-layer-hover: rgb(255 255 255 / 0.08);
178
+ --color-state-layer-focus: rgb(255 255 255 / 0.08);
179
+ --color-state-layer-pressed: rgb(255 255 255 / 0.12);
180
+ }
181
+
182
+ .video__popover .menu {
183
+ max-height: 200px;
184
+ overflow: scroll;
185
+ scrollbar-width: thin;
186
+ }
187
+
188
+ .video__popover:has(> .video__volume) {
189
+ line-height: 0;
190
+ overflow: visible;
191
+ }
192
+
193
+ .video__volume {
194
+ direction: rtl;
195
+ height: var(--dimension-800);
196
+ margin: var(--spacing-100) var(--spacing-150);
197
+ width: var(--dimension-icon-small);
198
+ writing-mode: vertical-lr;
199
+ }
200
+ .video__volume::-webkit-slider-runnable-track {
201
+ background: linear-gradient(
202
+ to top,
203
+ var(--color-neutral-400) 0 var(--value-percent, 0),
204
+ var(--color-neutral-600) var(--value-percent, 0) 100%
205
+ );
206
+ width: var(--spacing-50);
207
+ }
208
+ .video__volume::-moz-range-progress,
209
+ .video__volume::-moz-range-track {
210
+ width: var(--spacing-50);
211
+ }
212
+ .video__volume::-webkit-slider-thumb {
213
+ height: var(--dimension-100);
214
+ margin-left: calc(-0.5 * (var(--dimension-100) - var(--spacing-50)));
215
+ margin-top: 0;
216
+ width: var(--dimension-100);
217
+ }
218
+
219
+ .video__popover-container--hover > .video__popover {
220
+ display: block;
221
+ opacity: 0;
222
+ pointer-events: none;
223
+ transition:
224
+ opacity 0.2s 0.3s,
225
+ pointer-events allow-discrete 1s;
226
+ }
227
+
228
+ .video__popover-container--hover:is(:hover, :focus-within) > .video__popover {
229
+ opacity: 1;
230
+ pointer-events: auto;
231
+ transition: none;
232
+ }
233
+
234
+ .video__overlay {
235
+ align-items: center;
236
+ background-color: rgba(0, 0, 0, 0.6);
237
+ color: var(--color-neutral-100);
238
+ display: flex;
239
+ flex-direction: column;
240
+ inset: 0;
241
+ justify-content: center;
242
+ position: absolute;
243
+ text-align: center;
244
+ }
245
+
246
+ .video__overlay--transparent {
247
+ background-color: initial;
248
+ pointer-events: none;
249
+ }
250
+
251
+ .video__overlay-text {
252
+ margin: var(--spacing-200) var(--spacing-200) 0;
253
+ }
254
+
255
+ .video__play-overlay {
256
+ background: none;
257
+ border: 0;
258
+ border-radius: 50%;
259
+ cursor: pointer;
260
+ height: var(--dimension-800);
261
+ inset: 0;
262
+ line-height: 0;
263
+ margin: auto;
264
+ padding: 0;
265
+ position: absolute;
266
+ width: var(--dimension-800);
267
+ }
268
+ .video__play-overlay > svg {
269
+ height: 100%;
270
+ width: 100%;
271
+ }
272
+
273
+ .video__nav {
274
+ inset: 0;
275
+ position: absolute;
276
+ }
277
+
1
278
  .video-player {
2
279
  position: relative;
3
280
  }
@@ -69,12 +346,16 @@
69
346
  padding: 0;
70
347
  }
71
348
 
72
- .video-player--with-nav .shaka-controls-container {
349
+ .video-player--with-nav .shaka-controls-container,
350
+ .video-player--with-nav.video-player--compact
351
+ .shaka-controls-container
352
+ .shaka-bottom-controls {
73
353
  pointer-events: none;
74
354
  }
75
355
 
76
356
  .video-player--with-nav .shaka-controls-container .shaka-bottom-controls,
77
- .video-player--with-nav .shaka-controls-container .shaka-play-button-container {
357
+ .video-player--with-nav .shaka-controls-container .shaka-play-button-container,
358
+ .video-player--with-nav .shaka-controls-container button {
78
359
  pointer-events: auto;
79
360
  }
80
361
 
@@ -121,6 +402,9 @@
121
402
  .video-player--compact .shaka-controls-button-panel {
122
403
  height: 48px;
123
404
  }
405
+ .video-player--compact
406
+ .shaka-controls-button-panel
407
+ span.shaka-remaining-time,
124
408
  .video-player--compact .shaka-remaining-time {
125
409
  display: none;
126
410
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebay/skin",
3
- "version": "19.36.0",
3
+ "version": "19.37.1",
4
4
  "description": "Skin - CSS modules that represent the brand eBay",
5
5
  "keywords": [
6
6
  "eBay",