@mjsz-vbr-elements/shared 2.32.0 → 2.33.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.
- package/assets/css/base/borders.css +8 -0
- package/assets/css/base/color.primary.css +17 -0
- package/assets/css/base/color.secondary.css +11 -0
- package/assets/css/base/ease.css +30 -0
- package/assets/css/base/font.css +22 -0
- package/assets/css/base/shadow.css +49 -0
- package/assets/css/base/sizes.css +21 -0
- package/assets/css/components/accordion.css +86 -0
- package/assets/css/components/avatar.css +29 -0
- package/assets/css/components/badge.css +54 -0
- package/assets/css/components/card.css +22 -0
- package/assets/css/components/countdown.css +190 -0
- package/assets/css/components/definition-list.css +69 -0
- package/assets/css/components/double-bar.css +78 -0
- package/assets/css/components/error-notice.css +26 -0
- package/assets/css/components/floating-content.css +74 -0
- package/assets/css/components/form-field.css +74 -0
- package/assets/css/components/game-center-game-data.css +91 -0
- package/assets/css/components/game-center-timeline.css +665 -0
- package/assets/css/components/game-center.css +275 -0
- package/assets/css/components/game-item.css +35 -0
- package/assets/css/components/games-timeline.css +280 -0
- package/assets/css/components/hero.css +51 -0
- package/assets/css/components/icon-button.css +30 -0
- package/assets/css/components/list.css +138 -0
- package/assets/css/components/loading-indicator.css +8 -0
- package/assets/css/components/paginator.css +63 -0
- package/assets/css/components/playoffs.css +81 -0
- package/assets/css/components/progress.css +67 -0
- package/assets/css/components/responsive-table.css +13 -0
- package/assets/css/components/standings-selector.css +79 -0
- package/assets/css/components/table.css +205 -0
- package/assets/css/components/tabs.css +111 -0
- package/assets/css/components/timezone-selector.css +19 -0
- package/assets/css/components/top-list.css +97 -0
- package/assets/css/components/typography.css +41 -0
- package/assets/css/core/normalize.css +94 -0
- package/assets/css/core/utils.css +174 -0
- package/assets/css/core.css +22 -0
- package/assets/css/theme.css +63 -0
- package/dist/icons/index.js +414 -3
- package/package.json +8 -9
- package/dist/icons/IconArrowDown.js +0 -18
- package/dist/icons/IconArrowUp.js +0 -18
- package/dist/icons/IconBroadcast.js +0 -39
- package/dist/icons/IconChange.js +0 -19
- package/dist/icons/IconHockeyPuck.js +0 -19
- package/dist/icons/IconLaunch.js +0 -18
- package/dist/icons/IconLeft.js +0 -20
- package/dist/icons/IconMenu.js +0 -18
- package/dist/icons/IconMore.js +0 -34
- package/dist/icons/IconRight.js +0 -20
- package/dist/icons/IconSheet.js +0 -28
- package/dist/icons/IconSort.js +0 -24
- package/dist/icons/IconSortAsc.js +0 -24
- package/dist/icons/IconSortDesc.js +0 -24
- package/dist/icons/IconStar.js +0 -23
- package/dist/icons/IconTimer.js +0 -19
- package/dist/icons/IconWarning.js +0 -32
- package/dist/icons/IconWhistle.js +0 -15
- package/dist/icons/IconYoutube.js +0 -21
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
@layer components.variables {
|
|
2
|
+
:where(:host) {
|
|
3
|
+
/* --mvw-gamecenter-stats-bg-color: var(--mvw-color-primary-50); */
|
|
4
|
+
/* --mvw-gamecenter-stats-border-color: var(--mvw-color-primary-100); */
|
|
5
|
+
--mvw-gamecenter-stats-title-size: var(--font-size-300);
|
|
6
|
+
/* --mvw-gamecenter-stats-title-color: var(--mvw-color-primary-400); */
|
|
7
|
+
--mvw-gamecenter-stats-size: var(--font-size-500);
|
|
8
|
+
/* --mvw-gamecenter-stats-color: var(--mvw-color-primary-800); */
|
|
9
|
+
|
|
10
|
+
--mvw-gamecenter-period-header-bg-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-300));
|
|
11
|
+
--mvw-gamecenter-period-header-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));
|
|
12
|
+
--mvw-gamecenter-period-header-size: var(--font-size-300);
|
|
13
|
+
--mvw-gamecenter-period-header-weight: 500;
|
|
14
|
+
|
|
15
|
+
--mvw-gamecenter-team-container-title-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));
|
|
16
|
+
--mvw-gamecenter-team-container-title-bg-color: light-dark(
|
|
17
|
+
var(--mvw-color-primary-100),
|
|
18
|
+
var(--mvw-color-primary-800)
|
|
19
|
+
);
|
|
20
|
+
--mvw-gamecenter-team-container-border-color: light-dark(
|
|
21
|
+
var(--mvw-color-primary-100),
|
|
22
|
+
var(--mvw-color-primary-800)
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
--mvw-gamecenter-events-evented-person-size: var(--font-size-500);
|
|
26
|
+
--mvw-gamecenter-events-evented-person-weight: 600;
|
|
27
|
+
--mvw-gamecenter-events-assitst-list-size: var(--font-size-400);
|
|
28
|
+
--mvw-gamecenter-events-poi-list-size: var(--font-size-200);
|
|
29
|
+
--mvw-gamecenter-events-score-size: var(--font-size-500);
|
|
30
|
+
--mvw-gamecenter-events-penalty-size: var(--font-size-400);
|
|
31
|
+
--mvw-gamecenter-events-goalie-direction-size: var(--font-size-400);
|
|
32
|
+
/* --mvw-gamecenter-events-timeout-bg-color: #2870ed; */
|
|
33
|
+
|
|
34
|
+
--mvw-gamecenter-card-title-color: var(--mvw-color-primary-900);
|
|
35
|
+
--mvw-gamecenter-card-secondary-color: var(--mvw-color-primary-500);
|
|
36
|
+
--mvw-gamecenter-card-tertiary-color: var(--mvw-color-primary-300);
|
|
37
|
+
--mvw-gamecenter-card-border-color: var(--mvw-color-primary-100);
|
|
38
|
+
--mvw-gamecenter-card-bg-color: var(--mvw-color-primary-0);
|
|
39
|
+
|
|
40
|
+
--mvw-gamecenter-card-event-goal-border-color: var(--mvw-color-primary-700);
|
|
41
|
+
--mvw-gamecenter-card-event-goal-bg-color: var(--mvw-color-primary-700);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@layer components {
|
|
46
|
+
:where(.gamecenter-game-stats-container-wrapper) {
|
|
47
|
+
--columns: 1fr;
|
|
48
|
+
|
|
49
|
+
display: grid;
|
|
50
|
+
grid-template-columns: var(--columns);
|
|
51
|
+
gap: var(--size-16);
|
|
52
|
+
justify-items: center;
|
|
53
|
+
|
|
54
|
+
.is-popover-content {
|
|
55
|
+
padding: var(--size-16);
|
|
56
|
+
width: max-content;
|
|
57
|
+
|
|
58
|
+
dl + dl {
|
|
59
|
+
margin-block-start: var(--size-12);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media (width > 768px) {
|
|
64
|
+
--columns: repeat(2, 1fr);
|
|
65
|
+
}
|
|
66
|
+
@media (width > 992px) {
|
|
67
|
+
--columns: repeat(3, 1fr);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:where(.gamecenter-game-stats-container) {
|
|
72
|
+
text-align: center;
|
|
73
|
+
|
|
74
|
+
dt {
|
|
75
|
+
font-size: var(--mvw-gamecenter-stats-title-size);
|
|
76
|
+
color: var(--mvw-gamecenter-stats-title-color, var(--mvw-text-dimmed));
|
|
77
|
+
text-transform: uppercase;
|
|
78
|
+
|
|
79
|
+
button {
|
|
80
|
+
width: var(--mvw-gamecenter-stats-title-size);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
dd {
|
|
85
|
+
font-size: var(--mvw-gamecenter-stats-size);
|
|
86
|
+
color: var(--mvw-gamecenter-stats-color, var(--mvw-text-default));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:where(.gamecenter-game-events) {
|
|
91
|
+
container-name: rows;
|
|
92
|
+
container-type: inline-size;
|
|
93
|
+
margin-bottom: var(--size-16);
|
|
94
|
+
border: 1px solid var(--mvw-gamecenter-stats-border-color);
|
|
95
|
+
|
|
96
|
+
.is-period-header {
|
|
97
|
+
padding: var(--size-8) var(--size-16);
|
|
98
|
+
font-size: var(--mvw-gamecenter-period-header-size);
|
|
99
|
+
font-weight: var(--mvw-gamecenter-period-header-weight);
|
|
100
|
+
text-align: center;
|
|
101
|
+
text-transform: uppercase;
|
|
102
|
+
color: var(--mvw-gamecenter-period-header-color);
|
|
103
|
+
background-color: var(--mvw-gamecenter-period-header-bg-color);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.is-no-action {
|
|
107
|
+
padding: var(--size-8);
|
|
108
|
+
text-align: center;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:where(.gamecenter-game-event) {
|
|
113
|
+
--cols: 1fr 1fr 1fr 1fr 1fr 1fr 6fr;
|
|
114
|
+
display: grid;
|
|
115
|
+
grid-template-columns: var(--cols);
|
|
116
|
+
align-items: center;
|
|
117
|
+
color: var(--mvw-text-default);
|
|
118
|
+
|
|
119
|
+
@container rows (max-width: 500px) {
|
|
120
|
+
--cols: 1fr 1fr 1fr 1fr 1fr 1fr;
|
|
121
|
+
|
|
122
|
+
> *:last-of-type {
|
|
123
|
+
grid-column: 2/7;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&:nth-child(odd) {
|
|
128
|
+
background-color: var(--mvw-table-stripped-bg-color);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
> * {
|
|
132
|
+
padding: var(--size-12);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.is-team-logo-cell {
|
|
136
|
+
span {
|
|
137
|
+
display: inline-block;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
img {
|
|
141
|
+
display: block;
|
|
142
|
+
width: 40px;
|
|
143
|
+
height: 40px;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.is-icon-cell {
|
|
148
|
+
svg {
|
|
149
|
+
width: 25px;
|
|
150
|
+
height: 25px;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.is-penalty-icon {
|
|
155
|
+
color: var(--mvw-text-dimmed);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.is-goal-so-icon {
|
|
159
|
+
color: var(--mvw-text-muted);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.is-goal-icon {
|
|
163
|
+
color: var(--mvw-color-error);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.is-timer-icon {
|
|
167
|
+
color: var(--mvw-color-secondary-500);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.is-goalie-in-icon {
|
|
171
|
+
color: var(--mvw-color-secondary-500);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.is-goalie-out-icon {
|
|
175
|
+
color: var(--mvw-color-error);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.is-time-cell {
|
|
179
|
+
font-weight: 700;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.is-penalty-cell {
|
|
183
|
+
font-size: var(--mvw-gamecenter-events-penalty-size);
|
|
184
|
+
text-align: center;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.is-score {
|
|
188
|
+
font-size: var(--mvw-gamecenter-events-score-size);
|
|
189
|
+
font-weight: 700;
|
|
190
|
+
text-align: center;
|
|
191
|
+
color: var(--mvw-color-error);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.is-score-so {
|
|
195
|
+
font-size: var(--mvw-gamecenter-events-score-size);
|
|
196
|
+
font-weight: 700;
|
|
197
|
+
text-align: center;
|
|
198
|
+
color: var(--mvw-text-muted);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.is-score-so-goal {
|
|
202
|
+
color: var(--mvw-color-live);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.is-goalie-direction {
|
|
206
|
+
font-size: var(--mvw-gamecenter-events-goalie-direction-size);
|
|
207
|
+
text-align: center;
|
|
208
|
+
color: var(--mvw-text-dimmed);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.is-evented-person {
|
|
212
|
+
font-size: var(--mvw-gamecenter-events-evented-person-size);
|
|
213
|
+
font-weight: var(--mvw-gamecenter-events-evented-person-weight);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.is-assists-list {
|
|
217
|
+
font-size: var(--mvw-gamecenter-events-assitst-list-size);
|
|
218
|
+
color: var(--mvw-text-dimmed);
|
|
219
|
+
|
|
220
|
+
span::after {
|
|
221
|
+
content: ' / ';
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
span:last-child::after {
|
|
225
|
+
content: '';
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.is-poi-data {
|
|
230
|
+
font-size: var(--mvw-gamecenter-events-poi-list-size);
|
|
231
|
+
color: var(--mvw-text-dimmed);
|
|
232
|
+
|
|
233
|
+
ul {
|
|
234
|
+
display: inline-flex;
|
|
235
|
+
padding: 0;
|
|
236
|
+
list-style-type: none;
|
|
237
|
+
|
|
238
|
+
li {
|
|
239
|
+
&::after {
|
|
240
|
+
content: ',';
|
|
241
|
+
margin-right: 2px;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
li:last-child::after {
|
|
246
|
+
content: '';
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.is-player-number {
|
|
252
|
+
font-weight: 400;
|
|
253
|
+
font-style: italic;
|
|
254
|
+
color: var(--mvw-text-muted);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.is-light-cell {
|
|
258
|
+
color: var(--mvw-text-dimmed);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
:where(.gamecenter-data-table) {
|
|
263
|
+
border: 1px solid var(--mvw-gamecenter-team-container-border-color);
|
|
264
|
+
min-width: 0;
|
|
265
|
+
|
|
266
|
+
h3 {
|
|
267
|
+
padding: var(--size-8);
|
|
268
|
+
margin: 0;
|
|
269
|
+
font-size: var(--mvw-gamecenter-team-container-title-size);
|
|
270
|
+
font-weight: 500;
|
|
271
|
+
color: var(--mvw-gamecenter-team-container-title-color);
|
|
272
|
+
background-color: var(--mvw-gamecenter-team-container-title-bg-color);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where(.card-item) {
|
|
3
|
+
--_grid-template-areas: 'name name name name name' 'date date date date date'
|
|
4
|
+
'home-team home-team-logo game-data away-team-logo away-team';
|
|
5
|
+
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-gap: var(--size-8);
|
|
8
|
+
grid-template-columns: 1fr 20px 1.5fr 20px 1fr;
|
|
9
|
+
grid-template-areas: var(--_grid-template-areas);
|
|
10
|
+
padding: var(--size-16);
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
&:not(:last-of-type) {
|
|
14
|
+
border-bottom: 1px solid var(--mvw-border-faded);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
img {
|
|
18
|
+
display: block;
|
|
19
|
+
width: 100%;
|
|
20
|
+
aspect-ratio: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.game-result {
|
|
24
|
+
color: var(--mvw-text-highlighted);
|
|
25
|
+
|
|
26
|
+
&.is-live {
|
|
27
|
+
color: var(--mvw-color-live);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@container card-wrapper (width > 768px) {
|
|
32
|
+
grid-template-columns: 2fr 40px 1fr 40px 2fr;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
@layer components.variables {
|
|
2
|
+
:where(:host) {
|
|
3
|
+
--mvw-games-timeline-game-date-size: var(--font-size-100);
|
|
4
|
+
--mvw-games-timeline-game-team-size: var(--font-size-300);
|
|
5
|
+
--mvw-games-timeline-game-status-size: var(--font-size-200);
|
|
6
|
+
--mvw-games-timeline-game-hover-bg-color: linear-gradient(
|
|
7
|
+
light-dark(var(--mvw-color-white), var(--mvw-color-primary-950)),
|
|
8
|
+
light-dark(
|
|
9
|
+
hsl(from var(--mvw-color-white) h s calc(l - 5)),
|
|
10
|
+
hsl(from var(--mvw-color-primary-950) h s calc(l + 5))
|
|
11
|
+
)
|
|
12
|
+
50%,
|
|
13
|
+
light-dark(var(--mvw-color-white), var(--mvw-color-primary-950))
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@layer components {
|
|
19
|
+
:where(.games-timeline) {
|
|
20
|
+
display: grid;
|
|
21
|
+
grid-template-columns: 30px 1fr 30px;
|
|
22
|
+
align-items: center;
|
|
23
|
+
height: 100%;
|
|
24
|
+
|
|
25
|
+
container-type: inline-size;
|
|
26
|
+
container-name: games-timeline;
|
|
27
|
+
|
|
28
|
+
> div {
|
|
29
|
+
display: flex;
|
|
30
|
+
overflow-x: auto;
|
|
31
|
+
overflow-y: hidden;
|
|
32
|
+
scroll-snap-type: x mandatory;
|
|
33
|
+
-ms-overflow-style: none;
|
|
34
|
+
scrollbar-width: none;
|
|
35
|
+
|
|
36
|
+
&::-webkit-scrollbar {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.is-slide {
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
flex-grow: 0;
|
|
44
|
+
flex-basis: 100%;
|
|
45
|
+
scroll-snap-align: start;
|
|
46
|
+
|
|
47
|
+
@container games-timeline (width > 375px) {
|
|
48
|
+
flex-basis: 50%;
|
|
49
|
+
}
|
|
50
|
+
@container games-timeline (width > 500px) {
|
|
51
|
+
flex-basis: 33.3334%;
|
|
52
|
+
}
|
|
53
|
+
@container games-timeline (width > 700px) {
|
|
54
|
+
flex-basis: 25%;
|
|
55
|
+
}
|
|
56
|
+
@container games-timeline (width > 880px) {
|
|
57
|
+
flex-basis: 20%;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
> button {
|
|
62
|
+
position: relative;
|
|
63
|
+
display: grid;
|
|
64
|
+
place-content: center;
|
|
65
|
+
height: 100%;
|
|
66
|
+
|
|
67
|
+
svg {
|
|
68
|
+
display: block;
|
|
69
|
+
height: 22px;
|
|
70
|
+
width: 22px;
|
|
71
|
+
color: var(--mvw-text-dimmed);
|
|
72
|
+
transition: all 0.2s;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:hover {
|
|
76
|
+
svg {
|
|
77
|
+
color: var(--mvw-text-muted);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:disabled {
|
|
82
|
+
cursor: not-allowed;
|
|
83
|
+
svg {
|
|
84
|
+
color: var(--mvw-text-faded);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:before,
|
|
89
|
+
&:after {
|
|
90
|
+
position: absolute;
|
|
91
|
+
content: '';
|
|
92
|
+
top: 10px;
|
|
93
|
+
height: 90px;
|
|
94
|
+
transition: opacity 0.2s;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:first-of-type:after {
|
|
98
|
+
right: 0;
|
|
99
|
+
border-right: 1px solid var(--mvw-border-faded);
|
|
100
|
+
box-shadow: 1px 0 3px 0 rgba(0, 0, 0, 0.1);
|
|
101
|
+
}
|
|
102
|
+
&:last-of-type:before {
|
|
103
|
+
left: 0;
|
|
104
|
+
border-left: 1px solid var(--mvw-border-faded);
|
|
105
|
+
box-shadow: -1px 0 3px 0 rgba(0, 0, 0, 0.1);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:disabled:first-of-type:after,
|
|
109
|
+
&:disabled:last-of-type:before {
|
|
110
|
+
opacity: 0;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.is-no-games {
|
|
115
|
+
width: 100%;
|
|
116
|
+
text-align: center;
|
|
117
|
+
color: var(--mvw-text-muted);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.games-timeline-game {
|
|
122
|
+
display: grid;
|
|
123
|
+
grid-template-columns: 20px 1fr 20px;
|
|
124
|
+
grid-template-areas: 'gamedate gamedate gamedate' 'home-logo home-team home-score' 'away-logo away-team away-score' 'status status status';
|
|
125
|
+
grid-template-rows: 1fr 1fr 1fr 1fr;
|
|
126
|
+
gap: 5px;
|
|
127
|
+
justify-items: center;
|
|
128
|
+
align-items: center;
|
|
129
|
+
padding: 0.625rem;
|
|
130
|
+
line-height: 1;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
|
|
133
|
+
&:hover {
|
|
134
|
+
background-image: var(--mvw-games-timeline-game-hover-bg-color);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
time {
|
|
138
|
+
grid-area: gamedate;
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
gap: 4px;
|
|
142
|
+
font-size: var(--mvw-games-timeline-game-date-size);
|
|
143
|
+
font-weight: 700;
|
|
144
|
+
color: var(--mvw-text-muted);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.is-home-team-logo {
|
|
148
|
+
grid-area: home-logo;
|
|
149
|
+
}
|
|
150
|
+
.is-away-team-logo {
|
|
151
|
+
grid-area: away-logo;
|
|
152
|
+
}
|
|
153
|
+
:is(.is-home-team-logo, .is-away-team-logo) {
|
|
154
|
+
.is-team-logo {
|
|
155
|
+
display: block;
|
|
156
|
+
width: 20px;
|
|
157
|
+
height: 20px;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
:is(.is-home-team-name, .is-away-team-name) {
|
|
162
|
+
justify-self: start;
|
|
163
|
+
font-size: var(--mvw-games-timeline-game-team-size);
|
|
164
|
+
font-weight: 700;
|
|
165
|
+
color: var(--mvw-text-default);
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
width: 100%;
|
|
168
|
+
text-overflow: ellipsis;
|
|
169
|
+
white-space: nowrap;
|
|
170
|
+
}
|
|
171
|
+
.is-home-team-name {
|
|
172
|
+
grid-area: home-team;
|
|
173
|
+
}
|
|
174
|
+
.is-away-team-name {
|
|
175
|
+
grid-area: away-team;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.is-home-team-score {
|
|
179
|
+
grid-area: home-score;
|
|
180
|
+
}
|
|
181
|
+
.is-away-team-score {
|
|
182
|
+
grid-area: away-score;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.is-status {
|
|
186
|
+
grid-area: status;
|
|
187
|
+
font-size: var(--mvw-games-timeline-game-status-size);
|
|
188
|
+
color: var(--mvw-text-dimmed);
|
|
189
|
+
overflow: hidden;
|
|
190
|
+
width: 100%;
|
|
191
|
+
text-overflow: ellipsis;
|
|
192
|
+
white-space: nowrap;
|
|
193
|
+
text-align: center;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.games-timeline-schedule-link {
|
|
198
|
+
display: grid;
|
|
199
|
+
place-content: center;
|
|
200
|
+
height: 100%;
|
|
201
|
+
|
|
202
|
+
&:hover {
|
|
203
|
+
background-image: var(--mvw-games-timeline-game-hover-bg-color);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
button {
|
|
207
|
+
display: flex;
|
|
208
|
+
align-items: center;
|
|
209
|
+
font-size: var(--font-size-200);
|
|
210
|
+
font-weight: 700;
|
|
211
|
+
text-transform: uppercase;
|
|
212
|
+
color: var(--mvw-text-toned);
|
|
213
|
+
|
|
214
|
+
svg {
|
|
215
|
+
display: inline-block;
|
|
216
|
+
width: 14px;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.games-timeline-error-indicator {
|
|
222
|
+
display: flex;
|
|
223
|
+
gap: 0.5rem;
|
|
224
|
+
align-items: center;
|
|
225
|
+
place-content: center;
|
|
226
|
+
width: 100%;
|
|
227
|
+
font-size: var(--font-size-400);
|
|
228
|
+
font-weight: 500;
|
|
229
|
+
color: var(--mvw-color-error);
|
|
230
|
+
|
|
231
|
+
svg {
|
|
232
|
+
display: block;
|
|
233
|
+
width: 20px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
button {
|
|
237
|
+
text-decoration: underline;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.score-display {
|
|
242
|
+
height: 20px;
|
|
243
|
+
padding: 0 5px !important;
|
|
244
|
+
|
|
245
|
+
.is-score {
|
|
246
|
+
display: grid;
|
|
247
|
+
grid-template-areas: 'stack';
|
|
248
|
+
justify-items: center;
|
|
249
|
+
position: relative;
|
|
250
|
+
overflow: hidden;
|
|
251
|
+
mask-image: linear-gradient(to bottom, transparent 0, black 30%, black 70%, transparent 100%);
|
|
252
|
+
|
|
253
|
+
> span {
|
|
254
|
+
grid-area: stack;
|
|
255
|
+
line-height: 20px;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.is-slide-transition-enter-active,
|
|
260
|
+
.is-slide-transition-leave-active {
|
|
261
|
+
transition: all 420ms linear;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.is-slide-transition-enter-from {
|
|
265
|
+
transform: translateY(100%);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.is-slide-transition-enter-to {
|
|
269
|
+
transform: translateY(0);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.is-slide-transition-leave-from {
|
|
273
|
+
transform: translateY(0);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.is-slide-transition-leave-to {
|
|
277
|
+
transform: translateY(-100%);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where(.hero) {
|
|
3
|
+
--overlay-size: var(--mvw-hero-overlay-size, 160px);
|
|
4
|
+
--overlay-radius: 50%;
|
|
5
|
+
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: 1fr var(--overlay-size) 1fr;
|
|
8
|
+
grid-template-rows: 1fr 1fr 1fr calc(var(--overlay-size) / 2) calc(var(--overlay-size) / 2);
|
|
9
|
+
margin-left: var(--mvw-main-image-wrapper-horizontal-margin);
|
|
10
|
+
margin-right: var(--mvw-main-image-wrapper-horizontal-margin);
|
|
11
|
+
|
|
12
|
+
&:has(img.is-default) {
|
|
13
|
+
min-height: 470px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.is-main-image {
|
|
17
|
+
grid-column: 1/4;
|
|
18
|
+
grid-row: 1/5;
|
|
19
|
+
|
|
20
|
+
display: flex;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
align-items: center;
|
|
23
|
+
|
|
24
|
+
background-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));
|
|
25
|
+
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
|
|
26
|
+
|
|
27
|
+
.is-default {
|
|
28
|
+
filter: grayscale(1);
|
|
29
|
+
opacity: 0.3;
|
|
30
|
+
mix-blend-mode: multiply;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
img:not(.is-default) {
|
|
34
|
+
width: 100%;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.is-ovarlay-image {
|
|
38
|
+
grid-row: 4/-1;
|
|
39
|
+
grid-column: 2;
|
|
40
|
+
justify-self: center;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
border-radius: var(--overlay-radius);
|
|
43
|
+
z-index: 1;
|
|
44
|
+
|
|
45
|
+
img {
|
|
46
|
+
width: 100%;
|
|
47
|
+
aspect-ratio: 1;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
:where(.icon-button) {
|
|
3
|
+
/* --_text-color: inherit; */
|
|
4
|
+
--_hover-bg-color: color-mix(in oklab, light-dark(var(--mvw-color-black), var(--mvw-color-white)) 10%, transparent);
|
|
5
|
+
|
|
6
|
+
align-items: center;
|
|
7
|
+
aspect-ratio: 1;
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
border: 0;
|
|
10
|
+
border-radius: var(--radius-2);
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
inline-size: var(--size-24);
|
|
13
|
+
justify-content: center;
|
|
14
|
+
padding: 0;
|
|
15
|
+
|
|
16
|
+
svg {
|
|
17
|
+
max-inline-size: var(--size-16);
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&[data-state='open'],
|
|
22
|
+
&:hover {
|
|
23
|
+
background-color: var(--_hover-bg-color);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.xs {
|
|
27
|
+
border-radius: var(--radius-1);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|