@times-components/ts-components 1.145.1-82bc6796129e892c1eb22c6257c5e3809c159767.3 → 1.145.1-b32ea924749bafdf12e3e8515023538fa20e7808.3

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.
Files changed (70) hide show
  1. package/dist/components/opta/cricket/scorecard/OptaCricketScorecard.js +10 -2
  2. package/dist/components/opta/cricket/scorecard/__tests__/OptaCricketScorecard.test.js +94 -17
  3. package/dist/components/opta/football/opta-match-stats/shared/styles.js +1 -8
  4. package/dist/components/opta/football/opta-match-stats/summary/OptaMatchStatsSummary.js +2 -2
  5. package/dist/components/opta/football/opta-match-stats/summary/OptaMatchStatsSummary.stories.js +1 -1
  6. package/dist/components/opta/football/opta-match-stats/summary/WidgetContainer.js +4 -13
  7. package/dist/components/opta/football/summary/OptaFootballSummary.js +10 -2
  8. package/dist/components/opta/football/summary/__tests__/OptaFootballSummary.test.js +95 -18
  9. package/dist/components/opta/rugby/summary/OptaRugbySummary.js +10 -2
  10. package/dist/components/opta/rugby/summary/__tests__/OptaRugbySummary.test.js +94 -17
  11. package/dist/components/opta/utils/__tests__/emitEvent.test.js +264 -0
  12. package/dist/components/opta/utils/emitEvent.d.ts +1 -0
  13. package/dist/components/opta/utils/emitEvent.js +9 -0
  14. package/dist/index.d.ts +0 -1
  15. package/dist/index.js +1 -2
  16. package/package.json +3 -3
  17. package/rnw.js +1 -1
  18. package/src/components/opta/cricket/scorecard/OptaCricketScorecard.tsx +13 -0
  19. package/src/components/opta/cricket/scorecard/__tests__/OptaCricketScorecard.test.tsx +126 -16
  20. package/src/components/opta/cricket/scorecard/__tests__/__snapshots__/OptaCricketScorecard.test.tsx.snap +5 -6
  21. package/src/components/opta/football/opta-match-stats/commentary/__tests__/__snapshots__/OptaMatchStatsCommentary.test.tsx.snap +1 -1
  22. package/src/components/opta/football/opta-match-stats/shared/styles.ts +0 -8
  23. package/src/components/opta/football/opta-match-stats/stats-graphs/__tests__/__snapshots__/OptaMatchStatsGraphs.test.tsx.snap +1 -1
  24. package/src/components/opta/football/opta-match-stats/summary/OptaMatchStatsSummary.stories.tsx +1 -1
  25. package/src/components/opta/football/opta-match-stats/summary/OptaMatchStatsSummary.tsx +1 -1
  26. package/src/components/opta/football/opta-match-stats/summary/WidgetContainer.tsx +3 -12
  27. package/src/components/opta/football/opta-match-stats/summary/__tests__/__snapshots__/OptaMatchStatsSummary.test.tsx.snap +1 -1
  28. package/src/components/opta/football/summary/OptaFootballSummary.tsx +13 -0
  29. package/src/components/opta/football/summary/__tests__/OptaFootballSummary.test.tsx +127 -18
  30. package/src/components/opta/football/summary/__tests__/__snapshots__/OptaFootballSummary.test.tsx.snap +5 -6
  31. package/src/components/opta/rugby/summary/OptaRugbySummary.tsx +13 -0
  32. package/src/components/opta/rugby/summary/__tests__/OptaRugbySummary.test.tsx +127 -17
  33. package/src/components/opta/rugby/summary/__tests__/__snapshots__/OptaRugbySummary.test.tsx.snap +5 -6
  34. package/src/components/opta/utils/__tests__/emitEvent.test.tsx +415 -0
  35. package/src/components/opta/utils/emitEvent.ts +11 -0
  36. package/src/index.ts +0 -3
  37. package/dist/components/opta/football/opta-match-stats/matchday-live/DesktopWidget.d.ts +0 -10
  38. package/dist/components/opta/football/opta-match-stats/matchday-live/DesktopWidget.js +0 -69
  39. package/dist/components/opta/football/opta-match-stats/matchday-live/MobileWidget.d.ts +0 -12
  40. package/dist/components/opta/football/opta-match-stats/matchday-live/MobileWidget.js +0 -90
  41. package/dist/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.d.ts +0 -12
  42. package/dist/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.js +0 -10
  43. package/dist/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.stories.js +0 -24
  44. package/dist/components/opta/football/opta-match-stats/matchday-live/__tests__/MobileWidget.test.d.ts +0 -1
  45. package/dist/components/opta/football/opta-match-stats/matchday-live/__tests__/MobileWidget.test.js +0 -57
  46. package/dist/components/opta/football/opta-match-stats/matchday-live/__tests__/OptaMatchStatsMatchdayLive.test.d.ts +0 -2
  47. package/dist/components/opta/football/opta-match-stats/matchday-live/__tests__/OptaMatchStatsMatchdayLive.test.js +0 -48
  48. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/MatchdayLiveController.d.ts +0 -1
  49. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/MatchdayLiveController.js +0 -19
  50. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/NavigationWrapper.d.ts +0 -12
  51. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/NavigationWrapper.js +0 -67
  52. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/WidgetContainer.d.ts +0 -6
  53. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/WidgetContainer.js +0 -730
  54. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/__tests__/NavigationWrapper.test.d.ts +0 -1
  55. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/__tests__/NavigationWrapper.test.js +0 -33
  56. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/__tests__/WidgetContainer.test.d.ts +0 -1
  57. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/__tests__/WidgetContainer.test.js +0 -36
  58. package/src/components/opta/football/opta-match-stats/matchday-live/DesktopWidget.tsx +0 -108
  59. package/src/components/opta/football/opta-match-stats/matchday-live/MobileWidget.tsx +0 -158
  60. package/src/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.stories.tsx +0 -38
  61. package/src/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.tsx +0 -23
  62. package/src/components/opta/football/opta-match-stats/matchday-live/__tests__/MobileWidget.test.tsx +0 -69
  63. package/src/components/opta/football/opta-match-stats/matchday-live/__tests__/OptaMatchStatsMatchdayLive.test.tsx +0 -61
  64. package/src/components/opta/football/opta-match-stats/matchday-live/__tests__/__snapshots__/OptaMatchStatsMatchdayLive.test.tsx.snap +0 -61
  65. package/src/components/opta/football/opta-match-stats/matchday-live/styles/MatchdayLiveController.tsx +0 -19
  66. package/src/components/opta/football/opta-match-stats/matchday-live/styles/NavigationWrapper.tsx +0 -81
  67. package/src/components/opta/football/opta-match-stats/matchday-live/styles/WidgetContainer.tsx +0 -761
  68. package/src/components/opta/football/opta-match-stats/matchday-live/styles/__tests__/NavigationWrapper.test.tsx +0 -67
  69. package/src/components/opta/football/opta-match-stats/matchday-live/styles/__tests__/WidgetContainer.test.tsx +0 -64
  70. /package/dist/components/opta/{football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.stories.d.ts → utils/__tests__/emitEvent.test.d.ts} +0 -0
@@ -1,761 +0,0 @@
1
- import styled from 'styled-components';
2
- import { colours, fonts } from '@times-components/ts-styleguide';
3
- import { TeamColor } from '../../shared/types';
4
- import {
5
- backgroundColor,
6
- darkBackgroundColor,
7
- darkTextColor,
8
- borderColor,
9
- textColor,
10
- maxMDBreakpoint,
11
- darkBorderColor
12
- } from '../../shared/styles';
13
-
14
- export const WidgetContainer = styled.div<{
15
- isApp: boolean;
16
- homeTeamColor: TeamColor;
17
- awayTeamColor: TeamColor;
18
- }>`
19
- ${props =>
20
- props.isApp &&
21
- `
22
- @media(prefers-color-scheme: dark) {
23
- background-color: ${darkBackgroundColor} !important;
24
- color: ${darkTextColor} !important;
25
- }
26
- `} .Opta-Cf.Opta-js-main {
27
- ${props =>
28
- props.isApp &&
29
- `
30
- @media(prefers-color-scheme: dark) {
31
- background-color: ${darkBackgroundColor};
32
- }
33
- `};
34
- }
35
-
36
- .Opta > .Opta_W {
37
- margin-top: 0px !important;
38
- margin-bottom: 0px !important;
39
- }
40
-
41
- .Opta-Cf {
42
- display: flex;
43
- flex-direction: column;
44
-
45
- ${props =>
46
- props.isApp &&
47
- `
48
- @media(prefers-color-scheme: dark) {
49
- background-color: ${darkBackgroundColor} !important;
50
- color: ${darkTextColor} !important;
51
- }
52
- `};
53
- }
54
-
55
- .Opta-Score,
56
- .Opta-Divider {
57
- display: none !important;
58
- }
59
-
60
- // Move match data to top
61
- .Opta-Matchdata {
62
- order: -1;
63
- margin-top: 8px !important;
64
- margin-bottom: 0px !important;
65
- border-top: 1px solid ${borderColor};
66
- border-bottom: 1px solid ${borderColor};
67
- background-color: ${backgroundColor} !important;
68
-
69
- dd,
70
- dt {
71
- font-family: Roboto, sans-serif;
72
- font-weight: 400;
73
- line-height: 150%;
74
- color: #333;
75
- }
76
-
77
- ${props =>
78
- props.isApp &&
79
- `
80
- @media(prefers-color-scheme: dark) {
81
- background-color: ${darkBackgroundColor} !important;
82
- border-top: 1px solid ${darkBorderColor};
83
- border-bottom: 1px solid ${darkBorderColor};
84
- dd, dt {
85
- color: ${darkTextColor};
86
- }
87
- }
88
- `};
89
- }
90
-
91
- .Opta-MatchHeader {
92
- margin-bottom: 0;
93
- tr {
94
- display: flex;
95
- gap: 20px;
96
- align-items: center;
97
- padding: 16px;
98
- }
99
-
100
- .Opta-Team {
101
- font-family: Roboto, sans-serif;
102
- font-weight: 700;
103
- font-size: 20px;
104
- line-height: 150%;
105
- color: ${textColor};
106
- display: flex;
107
- align-items: center;
108
- ${props =>
109
- props.isApp &&
110
- `
111
- @media(prefers-color-scheme: dark) {
112
- color: ${darkTextColor};
113
- }
114
- `};
115
-
116
- &.Opta-Home {
117
- order: 2;
118
- }
119
-
120
- &.Opta-Away {
121
- order: 5;
122
- }
123
- }
124
-
125
- .Opta-Crest {
126
- display: contents;
127
-
128
- .Opta-Image-Team img {
129
- height: 48px;
130
- width: 48px;
131
- }
132
-
133
- .Opta-TeamFormation {
134
- font-family: Roboto, sans-serif;
135
- font-weight: 400;
136
- font-size: 14px;
137
- line-height: 150%;
138
- letter-spacing: 0.08px;
139
- color: ${textColor};
140
- ${props =>
141
- props.isApp &&
142
- `
143
- @media(prefers-color-scheme: dark) {
144
- color: ${darkTextColor};
145
- }
146
- `};
147
- }
148
-
149
- &:first-of-type {
150
- .Opta-Image-Team {
151
- order: 1;
152
- }
153
- .Opta-TeamFormation {
154
- order: 3;
155
- margin: 0;
156
- margin-right: auto;
157
- }
158
- }
159
-
160
- &:last-of-type {
161
- .Opta-Image-Team {
162
- order: 6;
163
- }
164
- .Opta-TeamFormation {
165
- order: 4;
166
- margin: 0;
167
- margin-left: auto;
168
- }
169
- }
170
- }
171
- }
172
-
173
- .Opta-FootballPitch {
174
- margin-inline: 16px;
175
- margin-bottom: 16px;
176
- border-radius: 8px;
177
- background: none !important;
178
- background-image: repeating-linear-gradient(
179
- 90deg,
180
- #d4e3db 0,
181
- #d4e3db 28px,
182
- #e5f0ea 28px,
183
- #e5f0ea 56px
184
- ) !important;
185
- background-size: 56px 100% !important;
186
-
187
- circle {
188
- stroke: none !important;
189
- &.Opta-Home {
190
- fill: ${props => props.homeTeamColor.light} !important;
191
- }
192
- &.Opta-Away {
193
- fill: ${props => props.awayTeamColor.light} !important;
194
- }
195
- }
196
-
197
- .Opta-JerseyNumber {
198
- font-family: ${fonts.headline};
199
- font-weight: 800;
200
- font-size: 16px;
201
- line-height: 112.99999%;
202
- transform: translateY(-1px);
203
- }
204
-
205
- .Opta-PlayerName {
206
- fill: ${textColor} !important;
207
- filter: none;
208
- font-family: Roboto, sans-serif;
209
- font-weight: 600;
210
- font-size: 13px;
211
- line-height: 100%;
212
- }
213
- }
214
-
215
- .Opta-Subs-Wrap {
216
- border-top: 1px solid ${borderColor};
217
- ${props =>
218
- props.isApp &&
219
- `
220
- @media(prefers-color-scheme: dark) {
221
- border-top: 1px solid ${darkBorderColor};
222
- }
223
- `};
224
- thead {
225
- th {
226
- background-color: ${backgroundColor} !important;
227
- color: ${textColor};
228
- font-family: Roboto, sans-serif;
229
- font-weight: 500;
230
- font-size: 18px;
231
- line-height: 112.999%;
232
- padding-block: 32px;
233
- ${props =>
234
- props.isApp &&
235
- `
236
- @media(prefers-color-scheme: dark) {
237
- background-color: ${darkBackgroundColor} !important;
238
- color: ${darkTextColor};
239
- }
240
- `};
241
- }
242
- }
243
-
244
- .Opta-FootballPitch-Subplayers {
245
- margin: 0;
246
- tr {
247
- display: flex;
248
- justify-content: center;
249
- }
250
- td {
251
- display: flex;
252
- flex-direction: column;
253
- height: auto;
254
-
255
- .Opta-Sub {
256
- display: flex;
257
- align-items: center;
258
-
259
- &.Opta-Home {
260
- span.Opta-Circle {
261
- border: 2px solid ${props => props.homeTeamColor.light};
262
- color: ${props => props.homeTeamColor.light};
263
- }
264
- }
265
-
266
- &.Opta-Away {
267
- span.Opta-Circle {
268
- border: 2px solid ${props => props.awayTeamColor.light};
269
- color: ${props => props.awayTeamColor.light} !important;
270
- }
271
- }
272
-
273
- ${props =>
274
- props.isApp &&
275
- `
276
- @media(prefers-color-scheme: dark) {
277
- &.Opta-Home {
278
- span.Opta-Circle {
279
- border: 2px solid ${props.homeTeamColor.dark};
280
- color: ${props.homeTeamColor.dark};
281
- }
282
- }
283
-
284
- &.Opta-Away {
285
- span.Opta-Circle {
286
- border: 2px solid ${props.awayTeamColor.dark};
287
- color: ${props.awayTeamColor.dark} !important;
288
- }
289
- }
290
- }
291
- `};
292
-
293
- &.Opta-Unused {
294
- opacity: 1;
295
- }
296
-
297
- span.Opta-Circle {
298
- background-color: ${backgroundColor};
299
- font-family: ${fonts.headline};
300
- font-weight: 800;
301
- font-size: 16px;
302
- line-height: 112.99999%;
303
- margin-bottom: 0;
304
- min-width: 32px;
305
- margin-right: 12px;
306
-
307
- ${props =>
308
- props.isApp &&
309
- `
310
- @media(prefers-color-scheme: dark) {
311
- background-color: ${darkBackgroundColor};
312
- }
313
- `};
314
-
315
- & + span.Opta-PlayerName {
316
- padding-right: 4px;
317
- width: max-content;
318
- font-size: 14px !important;
319
- white-space: nowrap;
320
-
321
- & + span.Opta-PlayerName {
322
- width: max-content;
323
- font-size: 14px !important;
324
- }
325
- }
326
- }
327
-
328
- span.Opta-PlayerName {
329
- font-family: Roboto, sans-serif;
330
- font-weight: 500;
331
- font-size: 14px !important;
332
- line-height: 100%;
333
- }
334
-
335
- span.Opta-MatcheventsIcons {
336
- display: flex;
337
- gap: 4px;
338
- margin-top: 0;
339
- }
340
- }
341
- }
342
- }
343
- }
344
-
345
- .Opta-Overlay {
346
- border-radius: 8px;
347
- overflow: hidden;
348
- border: none !important;
349
- .Opta-Cf {
350
- ul {
351
- background-color: #e5f0ea;
352
- margin: 0 !important;
353
- padding: 16px;
354
- display: flex !important;
355
- flex-direction: column;
356
- align-items: center;
357
- text-align: center;
358
-
359
- .Opta-Circle {
360
- font-family: ${fonts.headline} !important;
361
- font-weight: 800 !important;
362
- font-size: 20px !important;
363
- line-height: 112.99999% !important;
364
- color: ${colours.functional.white};
365
- height: 48px !important;
366
- width: 48px !important;
367
- display: flex !important;
368
- align-items: center;
369
- justify-content: center;
370
- margin-bottom: 16px !important;
371
- &.Opta-Home {
372
- background-color: ${props => props.homeTeamColor.light} !important;
373
- }
374
-
375
- &.Opta-Away {
376
- background-color: ${props => props.awayTeamColor.light} !important;
377
- }
378
-
379
- & + li {
380
- color: ${textColor};
381
- font-family: Roboto, sans-serif;
382
- font-weight: 600;
383
- font-size: 20px;
384
- line-height: 100%;
385
- margin-bottom: 16px;
386
-
387
- & + li {
388
- color: ${textColor} !important;
389
- font-family: Roboto, sans-serif;
390
- font-weight: 500;
391
- font-size: 16px;
392
- margin-bottom: 8px;
393
- }
394
- }
395
- }
396
-
397
- .Opta-MatchEvent {
398
- display: flex;
399
- align-items: center;
400
-
401
- .Opta-Icon {
402
- &.Opta-IconGoal {
403
- margin-top: 2px;
404
- }
405
- &.Opta-IconOff,
406
- &.Opta-IconOn {
407
- margin-top: 6px;
408
- }
409
- }
410
-
411
- span {
412
- color: ${textColor} !important;
413
- font-family: Roboto, sans-serif !important;
414
- font-weight: 400 !important;
415
- font-size: 16px !important;
416
- }
417
- }
418
- }
419
- }
420
-
421
- .Opta-Flex {
422
- display: grid;
423
- grid-template-rows: 1fr;
424
- padding-inline: 32px;
425
- padding-block: 32px;
426
- padding-bottom: 16px;
427
- ${props =>
428
- props.isApp &&
429
- `
430
- @media(prefers-color-scheme: dark) {
431
- background-color: ${darkBackgroundColor} !important;
432
- color: ${darkTextColor} !important;
433
- }
434
- `};
435
- }
436
-
437
- .Opta-Flex-Group {
438
- display: grid;
439
- grid-template-columns: repeat(3, 1fr);
440
- gap: 16px;
441
- }
442
-
443
- .Opta-Flex-Item {
444
- display: flex !important;
445
- width: 100% !important;
446
- height: 100% !important;
447
- padding: 0 !important;
448
- padding-bottom: 16px !important;
449
- }
450
-
451
- .Opta-Stat {
452
- flex-grow: 1 !important;
453
- background-color: #e5f0ea !important;
454
- border-radius: 8px;
455
- padding-block: 16px;
456
- padding-inline: 8px;
457
- margin: 0 !important;
458
- .Opta-Value {
459
- color: ${textColor} !important;
460
- font-family: ${fonts.headline} !important;
461
- font-weight: 800;
462
- font-size: 28px;
463
- line-height: 112.999%;
464
- padding-bottom: 4px;
465
- }
466
- .Opta-Label {
467
- color: ${textColor} !important;
468
- font-family: Roboto, sans-serif !important;
469
- font-weight: 500;
470
- font-size: 16px;
471
- line-height: 112.999%;
472
- }
473
- }
474
-
475
- .Opta-Close {
476
- background: none !important;
477
- top: 16px !important;
478
- right: 16px !important;
479
- position: relative;
480
- &::before {
481
- position: absolute;
482
- top: 0;
483
- left: 0;
484
- right: 0;
485
- bottom: 0;
486
- display: flex;
487
- justify-content: center;
488
- align-items: center;
489
- content: '\\00D7';
490
- font-size: 32px;
491
- color: ${textColor};
492
- }
493
- }
494
- }
495
-
496
- // Mobile styles
497
- @media (max-width: ${maxMDBreakpoint}px) {
498
- // General Styles
499
- .Opta-Cf {
500
- display: flex;
501
- flex-direction: column;
502
- ${props =>
503
- props.isApp &&
504
- `
505
- @media(prefers-color-scheme: dark) {
506
- background-color: ${darkBackgroundColor} !important;
507
- color: ${darkTextColor} !important;
508
- }
509
- `};
510
-
511
- // Formations
512
- .Opta-MatchHeader {
513
- order: 1;
514
- border-top: 1px solid ${borderColor};
515
- border-bottom: 1px solid ${borderColor};
516
- ${props =>
517
- props.isApp &&
518
- `
519
- @media(prefers-color-scheme: dark) {
520
- border-top: 1px solid ${darkBorderColor};
521
- border-bottom: 1px solid ${darkBorderColor};
522
- }
523
- `};
524
-
525
- tr {
526
- justify-content: center;
527
- }
528
-
529
- .Opta-Team {
530
- // Hide team name
531
- font-size: 0;
532
- padding: 0;
533
- }
534
-
535
- .Opta-TeamFormation {
536
- font-family: Roboto, sans-serif;
537
- font-weight: 700;
538
- font-size: 16px;
539
- line-height: 150%;
540
-
541
- &::before {
542
- content: 'Formation: ';
543
- font-size: 16px;
544
- font-family: Roboto, sans-serif;
545
- font-weight: 400;
546
- line-height: 150%;
547
- }
548
-
549
- ${props =>
550
- props.isApp &&
551
- `
552
- @media(prefers-color-scheme: dark) {
553
- color: ${darkTextColor};
554
- &::before {
555
- color: ${darkTextColor};
556
- }
557
- }
558
- `};
559
- }
560
- }
561
-
562
- // Pitch
563
- .Opta-FootballPitch {
564
- order: 2;
565
- margin: 0;
566
- border-radius: 0;
567
- background: none !important;
568
- background-image: repeating-linear-gradient(
569
- 0deg,
570
- #d4e3db 0,
571
- #d4e3db 56px,
572
- #e5f0ea 56px,
573
- #e5f0ea 112px
574
- ) !important;
575
-
576
- // Resize player elements
577
- .Opta-PlayerNumber {
578
- circle {
579
- stroke: #ffffff !important;
580
- stroke-width: 3px !important;
581
- r: 26px !important;
582
- border: 2px solid ${colours.functional.white} !important;
583
- -webkit-tap-highlight-color: transparent;
584
- }
585
- .Opta-JerseyNumber {
586
- font-size: 32px;
587
- -webkit-tap-highlight-color: transparent;
588
- }
589
- }
590
- .Opta-PlayerName {
591
- font-size: 18px;
592
- transform: translateY(14px);
593
- & + .Opta-PlayerName {
594
- transform: translateY(20px);
595
- & + .Opta-Icon {
596
- transform: translateY(30px);
597
- }
598
- }
599
- }
600
- .Opta-Icon {
601
- transform: translateY(20px);
602
- }
603
- }
604
-
605
- // Referee
606
- .Opta-Matchdata {
607
- order: 3;
608
- margin: 0 !important;
609
- padding: 16px !important;
610
- border-bottom: none !important;
611
- dt {
612
- font-family: Roboto, sans-serif;
613
- font-weight: 400;
614
- font-size: 16px;
615
- line-height: 150%;
616
- }
617
- dd {
618
- font-family: Roboto, sans-serif;
619
- font-weight: 700;
620
- font-size: 16px;
621
- line-height: 150%;
622
- }
623
-
624
- ${props =>
625
- props.isApp &&
626
- `
627
- @media(prefers-color-scheme: dark) {
628
- background-color: ${darkBackgroundColor} !important;
629
- dt, dd {
630
- color: ${darkTextColor};
631
- }
632
- }
633
- `};
634
- }
635
-
636
- // Substitutions
637
- .Opta-Subs-Wrap {
638
- order: 4;
639
- thead {
640
- th {
641
- font-family: ${fonts.headline};
642
- font-size: 24px;
643
- font-weight: 800;
644
- padding-block: 40px;
645
- display: flex;
646
- justify-content: center;
647
- align-items: center;
648
- ${props =>
649
- props.isApp &&
650
- `
651
- @media(prefers-color-scheme: dark) {
652
- color: ${darkTextColor};
653
- background-color: ${darkBackgroundColor} !important;
654
- }
655
- `};
656
- }
657
- }
658
- tbody {
659
- tr {
660
- justify-content: flex-start;
661
-
662
- td {
663
- padding: 0;
664
- }
665
-
666
- .Opta-Sub {
667
- display: flex;
668
- flex-direction: row;
669
- align-items: center;
670
- margin-top: 0;
671
- margin-left: 16px;
672
- margin-bottom: 16px;
673
-
674
- .Opta-Circle {
675
- aspect-ratio: 1 / 1;
676
- height: 30px !important;
677
- width: 30px !important;
678
- font-size: 16px !important;
679
- display: flex;
680
- justify-content: center;
681
- align-items: center;
682
- margin-right: 8px;
683
- border-width: 1px !important;
684
- padding-top: 3px;
685
- -webkit-tap-highlight-color: transparent;
686
- }
687
-
688
- .Opta-PlayerName {
689
- padding-right: 4px !important;
690
- white-space: nowrap;
691
- font-size: 16px !important;
692
- }
693
-
694
- .Opta-MatcheventsIcons {
695
- margin-top: 0;
696
- }
697
- }
698
- }
699
- }
700
- }
701
- }
702
-
703
- .Opta-Overlay {
704
- .Opta-Circle {
705
- padding-top: 3px;
706
- }
707
- }
708
-
709
- // Need to override specific styles due to higher specificity in mobile view
710
- .Opta-Subs-Wrap
711
- .Opta-FootballPitch-Subplayers
712
- td
713
- .Opta-Sub
714
- span.Opta-Circle {
715
- color: ${textColor} !important;
716
- border-color: ${textColor} !important;
717
- ${props =>
718
- props.isApp &&
719
- `
720
- @media(prefers-color-scheme: dark) {
721
- color: ${darkTextColor} !important;
722
- border-color: ${darkTextColor} !important;
723
- }
724
- `};
725
- }
726
- .Opta-Subs-Wrap
727
- .Opta-FootballPitch-Subplayers
728
- td
729
- .Opta-Sub.Opta-Away
730
- span.Opta-Circle {
731
- color: ${textColor} !important;
732
- border-color: ${textColor} !important;
733
- ${props =>
734
- props.isApp &&
735
- `
736
- @media(prefers-color-scheme: dark) {
737
- color: ${darkTextColor} !important;
738
- border-color: ${darkTextColor} !important;
739
- }
740
- `};
741
- }
742
-
743
- // Home team styles
744
- &.home-widget-container {
745
- .Opta-MatchHeader {
746
- .Opta-Away {
747
- display: none;
748
- }
749
- }
750
- }
751
-
752
- // Away team styles
753
- &.away-widget-container {
754
- .Opta-MatchHeader {
755
- .Opta-Home {
756
- display: none;
757
- }
758
- }
759
- }
760
- }
761
- `;