@mjsz-vbr-elements/shared 2.11.0 → 2.11.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.
@@ -53,6 +53,15 @@
53
53
  display: none;
54
54
  }
55
55
 
56
+ @container card-row (max-width: 640px) {
57
+ .mjsz-vbr-card-item .is-team-name-long {
58
+ display: none;
59
+ }
60
+ .mjsz-vbr-card-item .is-team-name-short {
61
+ display: block;
62
+ }
63
+ }
64
+
56
65
  .mjsz-vbr-card-item .is-info {
57
66
  grid-column: 1/4;
58
67
  display: flex;
@@ -162,5 +171,3 @@
162
171
  width: 100%;
163
172
  aspect-ratio: 1;
164
173
  }
165
-
166
- :export { meta: '{"e":".is-card","f":[{"b":[{"e":".is-team-name-long","d":{"display":"none"}},{"e":".is-team-name-short","d":{"display":"block"}}],"a":[[["max-width",":",640]]]}]}' }
@@ -453,5 +453,3 @@ a:hover {
453
453
  font-size: var(--vbr-widget-badge-extra-large-font-size);
454
454
  padding: 0.2695em 0.5165em;
455
455
  }
456
-
457
- :export { meta: '{"e":"h1,\nh2,\nh3,\nul,\nli,\np,\ndl,\ndt,\ndd","f":[]}' }
@@ -31,4 +31,3 @@
31
31
  .is-dropdown-menu .is-dropdown-item svg {
32
32
  margin-right: 8px;
33
33
  }
34
- :export { meta: '{"e":".is-dropdown-menu","f":[]}' }
@@ -84,5 +84,3 @@ label {
84
84
  color: var(--vbr-widget-toggle-group-btn-active-color);
85
85
  background-color: var(--vbr-widget-toggle-group-btn-active-bg-color);
86
86
  }
87
-
88
- :export { meta: '{"e":".base-input","f":[]}' }
@@ -411,9 +411,17 @@
411
411
  .mjsz-vbr-gamecenter-timeline-game-event .is-details-container .is-event-type-icon svg {
412
412
  display: block;
413
413
  width: 14px;
414
- height: 14px
414
+ height: 14px;
415
415
  }
416
416
 
417
+ @container rows (width > 410px) {
418
+
419
+ .mjsz-vbr-gamecenter-timeline-game-event .is-details-container .is-event-type-icon svg {
420
+ width: 24px;
421
+ height: 24px
422
+ }
423
+ }
424
+
417
425
  .mjsz-vbr-gamecenter-timeline-game-event .is-details-container.is-penalty .is-event-type-icon {
418
426
  color: var(--vbr-widget-primary-color-0);
419
427
  background-color: var(--vbr-widget-danger-color-a400);
@@ -489,6 +497,23 @@
489
497
  background-color: var(--vbr-widget-danger-color-500);
490
498
  }
491
499
 
500
+ @container rows (width > 410px) {
501
+
502
+ .mjsz-vbr-gamecenter-timeline-game-event .is-details-container {
503
+ grid-template-columns: auto 1fr auto;
504
+ grid-template-areas: 'type-icon detail-title team-logo' 'type-icon detail-list team-logo'
505
+ }
506
+
507
+ .mjsz-vbr-gamecenter-timeline-game-event .is-details-container:not(:has(.is-details-list)) {
508
+ grid-template-areas: 'type-icon detail-title team-logo';
509
+ align-items: center;
510
+ }
511
+
512
+ .mjsz-vbr-gamecenter-timeline-game-event .is-details-container .is-team-logo {
513
+ display: block;
514
+ }
515
+ }
516
+
492
517
  .mjsz-vbr-gamecenter-timeline-game-event .is-timestamp {
493
518
  grid-area: time;
494
519
 
@@ -512,6 +537,47 @@
512
537
  border-color: var(--vbr-widget-gamecenter-away-team-identifier-color);
513
538
  }
514
539
 
540
+ @container rows (width > 500px) {
541
+
542
+ .mjsz-vbr-gamecenter-timeline-game-event {
543
+ --columns: 1fr 0.15fr 2px 0.15fr 1fr;
544
+ --areas: '. . . . .' 'details time time time .' '. . . . .'
545
+ }
546
+
547
+ .mjsz-vbr-gamecenter-timeline-game-event .is-timeline {
548
+ grid-column: 3/4;
549
+ grid-row: 1/-1;
550
+ }
551
+
552
+ .mjsz-vbr-gamecenter-timeline-game-event[data-team='away'] {
553
+ --areas: '. . . . .' '. time time time details' '. . . . .';
554
+ }
555
+
556
+ .mjsz-vbr-gamecenter-timeline-game-event[data-team='home'] .is-details-container {
557
+ grid-template-columns: auto 1fr;
558
+ grid-template-areas: 'team-logo detail-title type-icon' 'team-logo detail-list type-icon';
559
+ }
560
+
561
+ .mjsz-vbr-gamecenter-timeline-game-event[data-team='home'] .is-details-container:not(:has(.is-details-list)) {
562
+ grid-template-areas: 'team-logo detail-title type-icon';
563
+ }
564
+
565
+ .mjsz-vbr-gamecenter-timeline-game-event[data-team='home'] .is-details-container {
566
+
567
+ border-inline-end: none;
568
+ border-inline-start: 5px solid var(--vbr-widget-gamecenter-home-team-identifier-color);
569
+ }
570
+
571
+ .mjsz-vbr-gamecenter-timeline-game-event[data-team='home'] .is-details-container .is-details-list,
572
+ .mjsz-vbr-gamecenter-timeline-game-event[data-team='home'] .is-details-container .is-details-title {
573
+ text-align: right;
574
+ }
575
+
576
+ .mjsz-vbr-gamecenter-timeline-game-event[data-team='home'] .is-details-container .is-poi-data {
577
+ justify-content: flex-end;
578
+ }
579
+ }
580
+
515
581
  .mjsz-vbr-gamecenter-timeline-lineups {
516
582
  margin-block-start: 1rem;
517
583
  padding-block-end: 2rem;
@@ -524,9 +590,16 @@
524
590
 
525
591
  .mjsz-vbr-gamecenter-timeline-lineups .is-container {
526
592
  display: grid;
527
- gap: 2rem
593
+ gap: 2rem;
528
594
  }
529
595
 
596
+ @container rows (width >= 768px) {
597
+
598
+ .mjsz-vbr-gamecenter-timeline-lineups .is-container {
599
+ grid-template-columns: 1fr 1fr
600
+ }
601
+ }
602
+
530
603
  .mjsz-vbr-gamecenter-timeline-lineups-lines {
531
604
  display: grid;
532
605
  grid-template-columns: 1fr;
@@ -567,18 +640,56 @@
567
640
  border-inline-end: 3px solid var(--vbr-widget-gamecenter-away-team-identifier-color);
568
641
  }
569
642
 
643
+ @container rows (width >= 768px) {
644
+
645
+ .mjsz-vbr-gamecenter-timeline-lineups-lines {
646
+ grid-template-columns: 1fr 1fr;
647
+ grid-template-areas: '. lw' 'ld lw' 'ld c' 'rd c' 'rd rw' '. rw';
648
+ grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr
649
+ }
650
+
651
+ .mjsz-vbr-gamecenter-timeline-lineups-lines.is-away-team {
652
+ grid-template-areas: 'lw .' 'lw ld' 'c ld' 'c rd' 'rw rd' 'rw .';
653
+ }
654
+
655
+ .mjsz-vbr-gamecenter-timeline-lineups-lines:has(.is-gk) {
656
+ display: flex;
657
+ justify-content: center;
658
+ grid-template-columns: none;
659
+ grid-template-areas: none;
660
+ }
661
+
662
+ .mjsz-vbr-gamecenter-timeline-lineups-lines .is-gk {
663
+ width: 50%;
664
+ }
665
+ }
666
+
570
667
  .mjsz-vbr-gamecenter-timeline-lineups-lines-simple {
571
668
  display: grid;
572
669
  grid-template-columns: 1fr;
573
- gap: 0.5rem
670
+ gap: 0.5rem;
574
671
  }
575
672
 
673
+ @container rows (width >= 768px) {
674
+
675
+ .mjsz-vbr-gamecenter-timeline-lineups-lines-simple {
676
+ grid-template-columns: 1fr 1fr
677
+ }
678
+ }
679
+
576
680
  .mjsz-vbr-gamecenter-timeline-lineups-lines-referees {
577
681
  display: grid;
578
682
  grid-template-columns: 1fr;
579
- gap: 0.5rem
683
+ gap: 0.5rem;
580
684
  }
581
685
 
686
+ @container rows (width >= 768px) {
687
+
688
+ .mjsz-vbr-gamecenter-timeline-lineups-lines-referees {
689
+ grid-template-columns: 1fr 1fr 1fr 1fr
690
+ }
691
+ }
692
+
582
693
  .mjsz-vbr-gamecenter-timeline-lineups .is-official-person-container {
583
694
  display: grid;
584
695
  grid-template-columns: 40px 1fr;
@@ -715,6 +826,13 @@
715
826
  flex: 1;
716
827
  }
717
828
 
829
+ @container rows (width >= 768px) {
830
+
831
+ .mjsz-vbr-gamecenter-timeline-game-officials .is-game-officials-container {
832
+ flex-direction: row
833
+ }
834
+ }
835
+
718
836
  .mjsz-vbr-gamecenter-timeline-data-table {
719
837
  margin-block-end: 1rem;
720
838
  min-width: 0;
@@ -751,5 +869,3 @@
751
869
  outline: 1px solid var(--vbr-widget-gamecenter-away-team-identifier-border-color);
752
870
  outline-offset: -1px;
753
871
  }
754
-
755
- :export { meta: '{"e":"table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td","f":[{"b":[{"e":"&:not(:has(.is-details-list))","d":{"grid-template-areas":"'type-icon detail-title team-logo'","align-items":"center"}},{"e":".is-team-logo","d":{"display":"block"}}],"a":[[["width",">",410]]]},{"b":[{"e":".is-timeline","d":{"grid-column":"3/4","grid-row":"1/-1"}},{"e":"&[data-team='away']","d":{"--areas":"'. . . . .' '. time time time details' '. . . . .'"}},{"e":"&[data-team='home'] .is-details-container","d":{"grid-template-columns":"auto 1fr","grid-template-areas":"'team-logo detail-title type-icon' 'team-logo detail-list type-icon'","border-inline-end":"none","border-inline-start":"5px solid var(--vbr-widget-gamecenter-home-team-identifier-color)"}}],"a":[[["width",">",500]]]},{"b":[{"e":"&.is-away-team","d":{"grid-template-areas":"'lw .' 'lw ld' 'c ld' 'c rd' 'rw rd' 'rw .'"}},{"e":"&:has(.is-gk)","d":{"display":"flex","justify-content":"center","grid-template-columns":"none","grid-template-areas":"none"}},{"e":".is-gk","d":{"width":"50%"}}],"a":[[["width",">=",768]]]}]}' }
@@ -200,6 +200,17 @@
200
200
  align-items: center;
201
201
  }
202
202
 
203
+ @container rows (max-width: 500px) {
204
+
205
+ .mjsz-vbr-gamecenter-game-event {
206
+ --cols: 1fr 1fr 1fr 1fr 1fr 1fr
207
+ }
208
+
209
+ .mjsz-vbr-gamecenter-game-event > *:last-of-type {
210
+ grid-column: 2/7;
211
+ }
212
+ }
213
+
203
214
  .mjsz-vbr-gamecenter-game-event:nth-child(odd) {
204
215
  background-color: var(--vbr-widget-table-stripped-bg-color);
205
216
  }
@@ -360,5 +371,3 @@
360
371
  gap: 20px;
361
372
  margin-bottom: 20px;
362
373
  }
363
-
364
- :export { meta: '{"e":"table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td","f":[{"b":[{"e":"> *:last-of-type","d":{"grid-column":"2/7"}}],"a":[[["max-width",":",500]]]}]}' }
@@ -25,9 +25,37 @@
25
25
  flex-shrink: 0;
26
26
  flex-grow: 0;
27
27
  flex-basis: 100%;
28
- scroll-snap-align: start
28
+ scroll-snap-align: start;
29
29
  }
30
30
 
31
+ @container games-timeline (width > 375px) {
32
+
33
+ .mjsz-vbr-games-timeline .is-slide {
34
+ flex-basis: 50%
35
+ }
36
+ }
37
+
38
+ @container games-timeline (width > 500px) {
39
+
40
+ .mjsz-vbr-games-timeline .is-slide {
41
+ flex-basis: 33.3334%
42
+ }
43
+ }
44
+
45
+ @container games-timeline (width > 700px) {
46
+
47
+ .mjsz-vbr-games-timeline .is-slide {
48
+ flex-basis: 25%
49
+ }
50
+ }
51
+
52
+ @container games-timeline (width > 880px) {
53
+
54
+ .mjsz-vbr-games-timeline .is-slide {
55
+ flex-basis: 20%
56
+ }
57
+ }
58
+
31
59
  .mjsz-vbr-games-timeline > button {
32
60
  position: relative;
33
61
  display: grid;
@@ -240,5 +268,3 @@
240
268
  .mjsz-vbr-score-display .is-slide-transition-leave-to {
241
269
  transform: translateY(100%);
242
270
  }
243
-
244
- :export { meta: '{"e":".games-timeline","f":[]}' }
package/dist/css/grid.css CHANGED
@@ -56,5 +56,3 @@
56
56
  grid-template-columns: var(--columns-tablet)
57
57
  }
58
58
  }
59
-
60
- :export { meta: '{"e":"table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td","f":[]}' }
@@ -47,4 +47,3 @@
47
47
  border-color: var(--vbr-widget-paginator-active-bg-color);
48
48
  cursor: default;
49
49
  }
50
- :export { meta: '{"e":".paginator","f":[]}' }
@@ -72,6 +72,15 @@
72
72
  display: none;
73
73
  }
74
74
 
75
+ @container table-wrapper (max-width: 768px) {
76
+ .mjsz-vbr-playoffs .mjsz-vbr-table-grid .is-team-name-long {
77
+ display: none;
78
+ }
79
+ .mjsz-vbr-playoffs .mjsz-vbr-table-grid .is-team-name-short {
80
+ display: block;
81
+ }
82
+ }
83
+
75
84
  .mjsz-vbr-playoffs .mjsz-vbr-section-title {
76
85
  padding: 10px;
77
86
  text-align: center;
@@ -106,6 +115,15 @@
106
115
  display: none;
107
116
  }
108
117
 
118
+ @container section-details (max-width: 768px) {
119
+ .mjsz-vbr-playoffs .mjsz-vbr-section-details .is-team-name-long {
120
+ display: none;
121
+ }
122
+ .mjsz-vbr-playoffs .mjsz-vbr-section-details .is-team-name-short {
123
+ display: block;
124
+ }
125
+ }
126
+
109
127
  .mjsz-vbr-playoffs .mjsz-vbr-section-details .is-logo-image {
110
128
  width: 70px;
111
129
  height: 70px;
@@ -127,5 +145,3 @@
127
145
  .mjsz-vbr-playoffs .mjsz-vbr-section-details .is-right {
128
146
  text-align: right;
129
147
  }
130
-
131
- :export { meta: '{"e":"table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td","f":[{"b":[{"e":".is-team-name-long","d":{"display":"none"}},{"e":".is-team-name-short","d":{"display":"block"}}],"a":[[["max-width",":",768]]]}]}' }
@@ -61,7 +61,7 @@
61
61
  align-items: center;
62
62
  }
63
63
 
64
- @media (min-width: 501px) {
64
+ @media (width > 500px) {
65
65
 
66
66
  .mjsz-vbr-statistics-double-bar {
67
67
  grid-template-areas: 'title title title title' 'value-start bar-start bar-end value-end'
@@ -125,5 +125,3 @@
125
125
  line-height: 1.5rem;
126
126
  color: var(--vbr-widget-primary-color-500);
127
127
  }
128
-
129
- :export { meta: '{"e":".progress","f":[]}' }
@@ -31,5 +31,3 @@ ol,
31
31
  ul {
32
32
  list-style: none;
33
33
  }
34
-
35
- :export { meta: '{"e":"h1,\nh2,\nh3,\nul,\nli,\np,\ndl,\ndt,\ndd","f":[]}' }
@@ -8,4 +8,3 @@
8
8
  .mjsz-vbr-table-responsive table {
9
9
  width: 100%;
10
10
  }
11
- :export { meta: '{"e":".table-responsive","f":[]}' }
@@ -221,6 +221,15 @@
221
221
  display: none;
222
222
  }
223
223
 
224
+ @container table-wrapper (max-width: 768px) {
225
+ .mjsz-vbr-table td .is-team-name-long {
226
+ display: none;
227
+ }
228
+ .mjsz-vbr-table td .is-team-name-short {
229
+ display: block;
230
+ }
231
+ }
232
+
224
233
  .mjsz-vbr-table th,
225
234
  .mjsz-vbr-table td {
226
235
  padding: 8px;
@@ -270,5 +279,3 @@
270
279
  color: var(--vbr-widget-table-active-hover-color);
271
280
  background-color: var(--vbr-widget-table-active-hover-bg-color);
272
281
  }
273
-
274
- :export { meta: '{"e":"table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td","f":[{"b":[{"e":".is-team-name-long","d":{"display":"none"}},{"e":".is-team-name-short","d":{"display":"block"}}],"a":[[["max-width",":",768]]]}]}' }
@@ -24,5 +24,3 @@
24
24
  width: 100%;
25
25
  aspect-ratio: 1;
26
26
  }
27
-
28
- :export { meta: '{"e":"table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td","f":[]}' }
@@ -98,4 +98,3 @@
98
98
  .is-w-10 {
99
99
  width: 32px;
100
100
  }
101
- :export { meta: '{"e":".is-text-right","f":[]}' }
@@ -249,5 +249,3 @@
249
249
  --vbr-widget-games-timeline-external-link-color: var(--vbr-widget-primary-color-500);
250
250
  --vbr-widget-games-timeline-external-link-size: var(--vbr-widget-typography-font-size-200);
251
251
  }
252
-
253
- :export { meta: '{"e":"table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td","f":[]}' }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mjsz-vbr-elements/shared",
3
3
  "type": "module",
4
- "version": "2.11.0",
4
+ "version": "2.11.1",
5
5
  "private": false,
6
6
  "author": "Ákos Stegner <akos.stegner@gmail.com>",
7
7
  "homepage": "https://api.icehockey.hu/widgets/docs/v2/",