@times-components/ts-components 1.146.2-be27d508c972211ad80599875cd69c63bf67d4b1.45 → 1.146.2-e5795a0ef59e2adb61ba52aeb7332fda4405cb7a.4

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 (156) hide show
  1. package/dist/components/opta/football/opta-match-stats/matchday-live/DesktopWidget.d.ts +10 -0
  2. package/dist/components/opta/football/opta-match-stats/matchday-live/DesktopWidget.js +69 -0
  3. package/dist/components/opta/football/opta-match-stats/matchday-live/MobileWidget.d.ts +12 -0
  4. package/dist/components/opta/football/opta-match-stats/matchday-live/MobileWidget.js +90 -0
  5. package/dist/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.d.ts +12 -0
  6. package/dist/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.js +10 -0
  7. package/dist/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.stories.js +24 -0
  8. package/dist/components/opta/football/opta-match-stats/matchday-live/__tests__/MobileWidget.test.js +57 -0
  9. package/dist/components/{carousel-component/__tests__/DefaultPageDot.test.d.ts → opta/football/opta-match-stats/matchday-live/__tests__/OptaMatchStatsMatchdayLive.test.d.ts} +1 -0
  10. package/dist/components/opta/football/opta-match-stats/matchday-live/__tests__/OptaMatchStatsMatchdayLive.test.js +48 -0
  11. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/MatchdayLiveController.d.ts +1 -0
  12. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/MatchdayLiveController.js +19 -0
  13. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/NavigationWrapper.d.ts +12 -0
  14. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/NavigationWrapper.js +67 -0
  15. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/WidgetContainer.d.ts +6 -0
  16. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/WidgetContainer.js +736 -0
  17. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/__tests__/NavigationWrapper.test.js +33 -0
  18. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/__tests__/WidgetContainer.test.js +36 -0
  19. package/dist/components/opta/football/opta-match-stats/shared/styles.js +8 -1
  20. package/dist/components/opta/football/opta-match-stats/summary/OptaMatchStatsSummary.js +2 -2
  21. package/dist/components/opta/football/opta-match-stats/summary/OptaMatchStatsSummary.stories.js +1 -1
  22. package/dist/components/opta/football/opta-match-stats/summary/WidgetContainer.js +19 -5
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +2 -2
  25. package/package.json +3 -3
  26. package/rnw.js +1 -1
  27. package/src/components/opta/football/opta-match-stats/commentary/__tests__/__snapshots__/OptaMatchStatsCommentary.test.tsx.snap +1 -1
  28. package/src/components/opta/football/opta-match-stats/matchday-live/DesktopWidget.tsx +108 -0
  29. package/src/components/opta/football/opta-match-stats/matchday-live/MobileWidget.tsx +158 -0
  30. package/src/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.stories.tsx +38 -0
  31. package/src/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.tsx +23 -0
  32. package/src/components/opta/football/opta-match-stats/matchday-live/__tests__/MobileWidget.test.tsx +69 -0
  33. package/src/components/opta/football/opta-match-stats/matchday-live/__tests__/OptaMatchStatsMatchdayLive.test.tsx +61 -0
  34. package/src/components/opta/football/opta-match-stats/matchday-live/__tests__/__snapshots__/OptaMatchStatsMatchdayLive.test.tsx.snap +61 -0
  35. package/src/components/opta/football/opta-match-stats/matchday-live/styles/MatchdayLiveController.tsx +19 -0
  36. package/src/components/opta/football/opta-match-stats/matchday-live/styles/NavigationWrapper.tsx +81 -0
  37. package/src/components/opta/football/opta-match-stats/matchday-live/styles/WidgetContainer.tsx +767 -0
  38. package/src/components/opta/football/opta-match-stats/matchday-live/styles/__tests__/NavigationWrapper.test.tsx +67 -0
  39. package/src/components/opta/football/opta-match-stats/matchday-live/styles/__tests__/WidgetContainer.test.tsx +64 -0
  40. package/src/components/opta/football/opta-match-stats/shared/styles.ts +8 -0
  41. package/src/components/opta/football/opta-match-stats/stats-graphs/__tests__/__snapshots__/OptaMatchStatsGraphs.test.tsx.snap +1 -1
  42. package/src/components/opta/football/opta-match-stats/summary/OptaMatchStatsSummary.stories.tsx +1 -1
  43. package/src/components/opta/football/opta-match-stats/summary/OptaMatchStatsSummary.tsx +1 -1
  44. package/src/components/opta/football/opta-match-stats/summary/WidgetContainer.tsx +18 -4
  45. package/src/components/opta/football/opta-match-stats/summary/__tests__/__snapshots__/OptaMatchStatsSummary.test.tsx.snap +1 -1
  46. package/src/index.ts +3 -2
  47. package/dist/components/carousel-component/CarouselComponent.stories.js +0 -146
  48. package/dist/components/carousel-component/CarouselItem.d.ts +0 -3
  49. package/dist/components/carousel-component/CarouselItem.js +0 -12
  50. package/dist/components/carousel-component/DefaultNavigationArrow.d.ts +0 -8
  51. package/dist/components/carousel-component/DefaultNavigationArrow.js +0 -6
  52. package/dist/components/carousel-component/DefaultPageDot.d.ts +0 -8
  53. package/dist/components/carousel-component/DefaultPageDot.js +0 -4
  54. package/dist/components/carousel-component/__tests__/CarouselComponent.test.js +0 -163
  55. package/dist/components/carousel-component/__tests__/CarouselItem.test.js +0 -80
  56. package/dist/components/carousel-component/__tests__/DefaultNavigationArrow.test.js +0 -62
  57. package/dist/components/carousel-component/__tests__/DefaultPageDot.test.js +0 -68
  58. package/dist/components/carousel-component/hooks/__tests__/useCarousel.test.d.ts +0 -1
  59. package/dist/components/carousel-component/hooks/__tests__/useCarousel.test.js +0 -459
  60. package/dist/components/carousel-component/hooks/useCarousel.d.ts +0 -2
  61. package/dist/components/carousel-component/hooks/useCarousel.js +0 -167
  62. package/dist/components/carousel-component/index.d.ts +0 -4
  63. package/dist/components/carousel-component/index.js +0 -20
  64. package/dist/components/carousel-component/styles.d.ts +0 -28
  65. package/dist/components/carousel-component/styles.js +0 -172
  66. package/dist/components/carousel-component/types.d.ts +0 -53
  67. package/dist/components/carousel-component/types.js +0 -2
  68. package/dist/components/trip-cards/SkeletonCard.d.ts +0 -7
  69. package/dist/components/trip-cards/SkeletonCard.js +0 -22
  70. package/dist/components/trip-cards/TripCard.d.ts +0 -3
  71. package/dist/components/trip-cards/TripCard.js +0 -49
  72. package/dist/components/trip-cards/TripCards.stories.d.ts +0 -1
  73. package/dist/components/trip-cards/TripCards.stories.js +0 -159
  74. package/dist/components/trip-cards/TripCardsLayout.d.ts +0 -3
  75. package/dist/components/trip-cards/TripCardsLayout.js +0 -56
  76. package/dist/components/trip-cards/__tests__/SkeletonCard.test.d.ts +0 -1
  77. package/dist/components/trip-cards/__tests__/SkeletonCard.test.js +0 -139
  78. package/dist/components/trip-cards/__tests__/TripCard.test.d.ts +0 -1
  79. package/dist/components/trip-cards/__tests__/TripCard.test.js +0 -95
  80. package/dist/components/trip-cards/__tests__/TripCardsLayout.test.d.ts +0 -1
  81. package/dist/components/trip-cards/__tests__/TripCardsLayout.test.js +0 -314
  82. package/dist/components/trip-cards/__tests__/assets.test.d.ts +0 -1
  83. package/dist/components/trip-cards/__tests__/assets.test.js +0 -165
  84. package/dist/components/trip-cards/__tests__/helpers.test.d.ts +0 -1
  85. package/dist/components/trip-cards/__tests__/helpers.test.js +0 -220
  86. package/dist/components/trip-cards/__tests__/index.test.d.ts +0 -1
  87. package/dist/components/trip-cards/__tests__/index.test.js +0 -478
  88. package/dist/components/trip-cards/__tests__/mockData.test.d.ts +0 -1
  89. package/dist/components/trip-cards/__tests__/mockData.test.js +0 -57
  90. package/dist/components/trip-cards/__tests__/skeletonStyles.test.d.ts +0 -1
  91. package/dist/components/trip-cards/__tests__/skeletonStyles.test.js +0 -194
  92. package/dist/components/trip-cards/assets/BoatIcon.d.ts +0 -1
  93. package/dist/components/trip-cards/assets/BoatIcon.js +0 -4
  94. package/dist/components/trip-cards/assets/CalendarIcon.d.ts +0 -1
  95. package/dist/components/trip-cards/assets/CalendarIcon.js +0 -4
  96. package/dist/components/trip-cards/assets/ChevronRightIcon.d.ts +0 -1
  97. package/dist/components/trip-cards/assets/ChevronRightIcon.js +0 -4
  98. package/dist/components/trip-cards/assets/LocationIcon.d.ts +0 -1
  99. package/dist/components/trip-cards/assets/LocationIcon.js +0 -4
  100. package/dist/components/trip-cards/assets/MoonIcon.d.ts +0 -1
  101. package/dist/components/trip-cards/assets/MoonIcon.js +0 -4
  102. package/dist/components/trip-cards/assets/index.d.ts +0 -6
  103. package/dist/components/trip-cards/assets/index.js +0 -7
  104. package/dist/components/trip-cards/helpers.d.ts +0 -11
  105. package/dist/components/trip-cards/helpers.js +0 -138
  106. package/dist/components/trip-cards/index.d.ts +0 -4
  107. package/dist/components/trip-cards/index.js +0 -68
  108. package/dist/components/trip-cards/mockData.d.ts +0 -3
  109. package/dist/components/trip-cards/mockData.js +0 -317
  110. package/dist/components/trip-cards/skeletonStyles.d.ts +0 -9
  111. package/dist/components/trip-cards/skeletonStyles.js +0 -37
  112. package/dist/components/trip-cards/styles.d.ts +0 -43
  113. package/dist/components/trip-cards/styles.js +0 -404
  114. package/dist/components/trip-cards/types.d.ts +0 -119
  115. package/dist/components/trip-cards/types.js +0 -2
  116. package/src/components/carousel-component/CarouselComponent.stories.tsx +0 -220
  117. package/src/components/carousel-component/CarouselItem.tsx +0 -26
  118. package/src/components/carousel-component/DefaultNavigationArrow.tsx +0 -37
  119. package/src/components/carousel-component/DefaultPageDot.tsx +0 -20
  120. package/src/components/carousel-component/__tests__/CarouselComponent.test.tsx +0 -259
  121. package/src/components/carousel-component/__tests__/CarouselItem.test.tsx +0 -140
  122. package/src/components/carousel-component/__tests__/DefaultNavigationArrow.test.tsx +0 -153
  123. package/src/components/carousel-component/__tests__/DefaultPageDot.test.tsx +0 -105
  124. package/src/components/carousel-component/hooks/__tests__/useCarousel.test.ts +0 -625
  125. package/src/components/carousel-component/hooks/useCarousel.ts +0 -229
  126. package/src/components/carousel-component/index.tsx +0 -92
  127. package/src/components/carousel-component/styles.ts +0 -188
  128. package/src/components/carousel-component/types.ts +0 -62
  129. package/src/components/trip-cards/SkeletonCard.tsx +0 -64
  130. package/src/components/trip-cards/TripCard.tsx +0 -140
  131. package/src/components/trip-cards/TripCards.stories.tsx +0 -224
  132. package/src/components/trip-cards/TripCardsLayout.tsx +0 -145
  133. package/src/components/trip-cards/__tests__/SkeletonCard.test.tsx +0 -169
  134. package/src/components/trip-cards/__tests__/TripCard.test.tsx +0 -120
  135. package/src/components/trip-cards/__tests__/TripCardsLayout.test.tsx +0 -583
  136. package/src/components/trip-cards/__tests__/assets.test.tsx +0 -206
  137. package/src/components/trip-cards/__tests__/helpers.test.ts +0 -272
  138. package/src/components/trip-cards/__tests__/index.test.tsx +0 -550
  139. package/src/components/trip-cards/__tests__/mockData.test.ts +0 -67
  140. package/src/components/trip-cards/__tests__/skeletonStyles.test.tsx +0 -256
  141. package/src/components/trip-cards/assets/BoatIcon.tsx +0 -17
  142. package/src/components/trip-cards/assets/CalendarIcon.tsx +0 -17
  143. package/src/components/trip-cards/assets/ChevronRightIcon.tsx +0 -20
  144. package/src/components/trip-cards/assets/LocationIcon.tsx +0 -17
  145. package/src/components/trip-cards/assets/MoonIcon.tsx +0 -17
  146. package/src/components/trip-cards/assets/index.ts +0 -7
  147. package/src/components/trip-cards/helpers.ts +0 -176
  148. package/src/components/trip-cards/index.tsx +0 -119
  149. package/src/components/trip-cards/mockData.ts +0 -345
  150. package/src/components/trip-cards/skeletonStyles.ts +0 -46
  151. package/src/components/trip-cards/styles.ts +0 -450
  152. package/src/components/trip-cards/types.ts +0 -128
  153. /package/dist/components/{carousel-component/CarouselComponent.stories.d.ts → opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.stories.d.ts} +0 -0
  154. /package/dist/components/{carousel-component/__tests__/CarouselComponent.test.d.ts → opta/football/opta-match-stats/matchday-live/__tests__/MobileWidget.test.d.ts} +0 -0
  155. /package/dist/components/{carousel-component/__tests__/CarouselItem.test.d.ts → opta/football/opta-match-stats/matchday-live/styles/__tests__/NavigationWrapper.test.d.ts} +0 -0
  156. /package/dist/components/{carousel-component/__tests__/DefaultNavigationArrow.test.d.ts → opta/football/opta-match-stats/matchday-live/styles/__tests__/WidgetContainer.test.d.ts} +0 -0
@@ -0,0 +1,767 @@
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-Overlayer {
346
+ background-color: rgb(229 240 234 / 50%);
347
+ backdrop-filter: blur(10px);
348
+ -webkit-backdrop-filter: blur(10px);
349
+ }
350
+
351
+ .Opta-Overlay {
352
+ border-radius: 8px;
353
+ overflow: hidden;
354
+ border: 1px solid #696969 !important;
355
+ .Opta-Cf {
356
+ ul {
357
+ background-color: #e5f0ea;
358
+ margin: 0 !important;
359
+ padding: 16px;
360
+ display: flex !important;
361
+ flex-direction: column;
362
+ align-items: center;
363
+ text-align: center;
364
+
365
+ .Opta-Circle {
366
+ font-family: ${fonts.headline} !important;
367
+ font-weight: 800 !important;
368
+ font-size: 20px !important;
369
+ line-height: 112.99999% !important;
370
+ color: ${colours.functional.white};
371
+ height: 48px !important;
372
+ width: 48px !important;
373
+ display: flex !important;
374
+ align-items: center;
375
+ justify-content: center;
376
+ margin-bottom: 16px !important;
377
+ &.Opta-Home {
378
+ background-color: ${props => props.homeTeamColor.light} !important;
379
+ }
380
+
381
+ &.Opta-Away {
382
+ background-color: ${props => props.awayTeamColor.light} !important;
383
+ }
384
+
385
+ & + li {
386
+ color: ${textColor};
387
+ font-family: Roboto, sans-serif;
388
+ font-weight: 600;
389
+ font-size: 20px;
390
+ line-height: 100%;
391
+ margin-bottom: 16px;
392
+
393
+ & + li {
394
+ color: ${textColor} !important;
395
+ font-family: Roboto, sans-serif;
396
+ font-weight: 500;
397
+ font-size: 16px;
398
+ margin-bottom: 8px;
399
+ }
400
+ }
401
+ }
402
+
403
+ .Opta-MatchEvent {
404
+ display: flex;
405
+ align-items: center;
406
+
407
+ .Opta-Icon {
408
+ &.Opta-IconGoal {
409
+ margin-top: 2px;
410
+ }
411
+ &.Opta-IconOff,
412
+ &.Opta-IconOn {
413
+ margin-top: 6px;
414
+ }
415
+ }
416
+
417
+ span {
418
+ color: ${textColor} !important;
419
+ font-family: Roboto, sans-serif !important;
420
+ font-weight: 400 !important;
421
+ font-size: 16px !important;
422
+ }
423
+ }
424
+ }
425
+ }
426
+
427
+ .Opta-Flex {
428
+ display: grid;
429
+ grid-template-rows: 1fr;
430
+ padding-inline: 32px;
431
+ padding-block: 32px;
432
+ padding-bottom: 16px;
433
+ ${props =>
434
+ props.isApp &&
435
+ `
436
+ @media(prefers-color-scheme: dark) {
437
+ background-color: ${darkBackgroundColor} !important;
438
+ color: ${darkTextColor} !important;
439
+ }
440
+ `};
441
+ }
442
+
443
+ .Opta-Flex-Group {
444
+ display: grid;
445
+ grid-template-columns: repeat(3, 1fr);
446
+ gap: 16px;
447
+ }
448
+
449
+ .Opta-Flex-Item {
450
+ display: flex !important;
451
+ width: 100% !important;
452
+ height: 100% !important;
453
+ padding: 0 !important;
454
+ padding-bottom: 16px !important;
455
+ }
456
+
457
+ .Opta-Stat {
458
+ flex-grow: 1 !important;
459
+ background-color: #e5f0ea !important;
460
+ border-radius: 8px;
461
+ padding-block: 16px;
462
+ padding-inline: 8px;
463
+ margin: 0 !important;
464
+ .Opta-Value {
465
+ color: ${textColor} !important;
466
+ font-family: ${fonts.headline} !important;
467
+ font-weight: 800;
468
+ font-size: 28px;
469
+ line-height: 112.999%;
470
+ padding-bottom: 4px;
471
+ }
472
+ .Opta-Label {
473
+ color: ${textColor} !important;
474
+ font-family: Roboto, sans-serif !important;
475
+ font-weight: 500;
476
+ font-size: 16px;
477
+ line-height: 112.999%;
478
+ }
479
+ }
480
+
481
+ .Opta-Close {
482
+ background: none !important;
483
+ top: 16px !important;
484
+ right: 16px !important;
485
+ position: relative;
486
+ &::before {
487
+ position: absolute;
488
+ top: 0;
489
+ left: 0;
490
+ right: 0;
491
+ bottom: 0;
492
+ display: flex;
493
+ justify-content: center;
494
+ align-items: center;
495
+ content: '\\00D7';
496
+ font-size: 32px;
497
+ color: ${textColor};
498
+ }
499
+ }
500
+ }
501
+
502
+ // Mobile styles
503
+ @media (max-width: ${maxMDBreakpoint}px) {
504
+ // General Styles
505
+ .Opta-Cf {
506
+ display: flex;
507
+ flex-direction: column;
508
+ ${props =>
509
+ props.isApp &&
510
+ `
511
+ @media(prefers-color-scheme: dark) {
512
+ background-color: ${darkBackgroundColor} !important;
513
+ color: ${darkTextColor} !important;
514
+ }
515
+ `};
516
+
517
+ // Formations
518
+ .Opta-MatchHeader {
519
+ order: 1;
520
+ border-top: 1px solid ${borderColor};
521
+ border-bottom: 1px solid ${borderColor};
522
+ ${props =>
523
+ props.isApp &&
524
+ `
525
+ @media(prefers-color-scheme: dark) {
526
+ border-top: 1px solid ${darkBorderColor};
527
+ border-bottom: 1px solid ${darkBorderColor};
528
+ }
529
+ `};
530
+
531
+ tr {
532
+ justify-content: center;
533
+ }
534
+
535
+ .Opta-Team {
536
+ // Hide team name
537
+ font-size: 0;
538
+ padding: 0;
539
+ }
540
+
541
+ .Opta-TeamFormation {
542
+ font-family: Roboto, sans-serif;
543
+ font-weight: 700;
544
+ font-size: 16px;
545
+ line-height: 150%;
546
+
547
+ &::before {
548
+ content: 'Formation: ';
549
+ font-size: 16px;
550
+ font-family: Roboto, sans-serif;
551
+ font-weight: 400;
552
+ line-height: 150%;
553
+ }
554
+
555
+ ${props =>
556
+ props.isApp &&
557
+ `
558
+ @media(prefers-color-scheme: dark) {
559
+ color: ${darkTextColor};
560
+ &::before {
561
+ color: ${darkTextColor};
562
+ }
563
+ }
564
+ `};
565
+ }
566
+ }
567
+
568
+ // Pitch
569
+ .Opta-FootballPitch {
570
+ order: 2;
571
+ margin: 0;
572
+ border-radius: 0;
573
+ background: none !important;
574
+ background-image: repeating-linear-gradient(
575
+ 0deg,
576
+ #d4e3db 0,
577
+ #d4e3db 56px,
578
+ #e5f0ea 56px,
579
+ #e5f0ea 112px
580
+ ) !important;
581
+
582
+ // Resize player elements
583
+ .Opta-PlayerNumber {
584
+ circle {
585
+ stroke: #ffffff !important;
586
+ stroke-width: 3px !important;
587
+ r: 26px !important;
588
+ border: 2px solid ${colours.functional.white} !important;
589
+ -webkit-tap-highlight-color: transparent;
590
+ }
591
+ .Opta-JerseyNumber {
592
+ font-size: 24px;
593
+ -webkit-tap-highlight-color: transparent;
594
+ }
595
+ }
596
+ .Opta-PlayerName {
597
+ font-size: 18px;
598
+ transform: translateY(14px);
599
+ & + .Opta-PlayerName {
600
+ transform: translateY(20px);
601
+ & + .Opta-Icon {
602
+ transform: translateY(30px);
603
+ }
604
+ }
605
+ }
606
+ .Opta-Icon {
607
+ transform: translateY(20px);
608
+ }
609
+ }
610
+
611
+ // Referee
612
+ .Opta-Matchdata {
613
+ order: 3;
614
+ margin: 0 !important;
615
+ padding: 16px !important;
616
+ border-bottom: none !important;
617
+ dt {
618
+ font-family: Roboto, sans-serif;
619
+ font-weight: 400;
620
+ font-size: 16px;
621
+ line-height: 150%;
622
+ }
623
+ dd {
624
+ font-family: Roboto, sans-serif;
625
+ font-weight: 700;
626
+ font-size: 16px;
627
+ line-height: 150%;
628
+ }
629
+
630
+ ${props =>
631
+ props.isApp &&
632
+ `
633
+ @media(prefers-color-scheme: dark) {
634
+ background-color: ${darkBackgroundColor} !important;
635
+ dt, dd {
636
+ color: ${darkTextColor};
637
+ }
638
+ }
639
+ `};
640
+ }
641
+
642
+ // Substitutions
643
+ .Opta-Subs-Wrap {
644
+ order: 4;
645
+ thead {
646
+ th {
647
+ font-family: ${fonts.headline};
648
+ font-size: 24px;
649
+ font-weight: 800;
650
+ padding-block: 40px;
651
+ display: flex;
652
+ justify-content: center;
653
+ align-items: center;
654
+ ${props =>
655
+ props.isApp &&
656
+ `
657
+ @media(prefers-color-scheme: dark) {
658
+ color: ${darkTextColor};
659
+ background-color: ${darkBackgroundColor} !important;
660
+ }
661
+ `};
662
+ }
663
+ }
664
+ tbody {
665
+ tr {
666
+ justify-content: flex-start;
667
+
668
+ td {
669
+ padding: 0;
670
+ }
671
+
672
+ .Opta-Sub {
673
+ display: flex;
674
+ flex-direction: row;
675
+ align-items: center;
676
+ margin-top: 0;
677
+ margin-left: 16px;
678
+ margin-bottom: 16px;
679
+
680
+ .Opta-Circle {
681
+ aspect-ratio: 1 / 1;
682
+ height: 30px !important;
683
+ width: 30px !important;
684
+ font-size: 16px !important;
685
+ display: flex;
686
+ justify-content: center;
687
+ align-items: center;
688
+ margin-right: 8px;
689
+ border-width: 1px !important;
690
+ padding-top: 3px;
691
+ -webkit-tap-highlight-color: transparent;
692
+ }
693
+
694
+ .Opta-PlayerName {
695
+ padding-right: 4px !important;
696
+ white-space: nowrap;
697
+ font-size: 16px !important;
698
+ }
699
+
700
+ .Opta-MatcheventsIcons {
701
+ margin-top: 0;
702
+ }
703
+ }
704
+ }
705
+ }
706
+ }
707
+ }
708
+
709
+ .Opta-Overlay {
710
+ .Opta-Circle {
711
+ padding-top: 3px;
712
+ }
713
+ }
714
+
715
+ // Need to override specific styles due to higher specificity in mobile view
716
+ .Opta-Subs-Wrap
717
+ .Opta-FootballPitch-Subplayers
718
+ td
719
+ .Opta-Sub
720
+ span.Opta-Circle {
721
+ color: ${textColor} !important;
722
+ border-color: ${textColor} !important;
723
+ ${props =>
724
+ props.isApp &&
725
+ `
726
+ @media(prefers-color-scheme: dark) {
727
+ color: ${darkTextColor} !important;
728
+ border-color: ${darkTextColor} !important;
729
+ }
730
+ `};
731
+ }
732
+ .Opta-Subs-Wrap
733
+ .Opta-FootballPitch-Subplayers
734
+ td
735
+ .Opta-Sub.Opta-Away
736
+ span.Opta-Circle {
737
+ color: ${textColor} !important;
738
+ border-color: ${textColor} !important;
739
+ ${props =>
740
+ props.isApp &&
741
+ `
742
+ @media(prefers-color-scheme: dark) {
743
+ color: ${darkTextColor} !important;
744
+ border-color: ${darkTextColor} !important;
745
+ }
746
+ `};
747
+ }
748
+
749
+ // Home team styles
750
+ &.home-widget-container {
751
+ .Opta-MatchHeader {
752
+ .Opta-Away {
753
+ display: none;
754
+ }
755
+ }
756
+ }
757
+
758
+ // Away team styles
759
+ &.away-widget-container {
760
+ .Opta-MatchHeader {
761
+ .Opta-Home {
762
+ display: none;
763
+ }
764
+ }
765
+ }
766
+ }
767
+ `;