@trilogy-ds/styles 0.0.2-calendar → 0.0.2-timepicker

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.
@@ -2,11 +2,16 @@
2
2
 
3
3
  .flex-box {
4
4
  display: flex;
5
- gap: 8px;
6
- --ColumnGap: 8px;
5
+ --ColumnGap : 8px;
6
+ gap: var(--ColumnGap);
7
7
  flex-direction: row;
8
8
  justify-content: flex-start;
9
9
 
10
+
11
+ &:has(>.flex-item){
12
+ --ColumnGap : 16px;
13
+ }
14
+
10
15
  // DIRECTION
11
16
  &.is-direction-column {
12
17
  flex-direction: column;
@@ -24,24 +29,36 @@
24
29
  flex-direction: column-reverse;
25
30
  }
26
31
 
27
- @include desktop {
28
- &.is-direction-row-desktop {
32
+ // WRAP
33
+ &.is-wrap {
34
+ flex-wrap: wrap;
35
+ }
36
+
37
+ @include mobile {
38
+ &:has(>.flex-item):not([class*='is-direction']) {
39
+ flex-direction: column;
40
+ }
41
+
42
+ &.is-direction-row-mobile {
29
43
  flex-direction: row;
30
44
  }
31
45
 
32
- &.is-direction-column-desktop {
46
+ &.is-direction-column-mobile {
33
47
  flex-direction: column;
34
48
  }
35
49
 
36
- &.is-direction-row-reverse-desktop {
50
+ &.is-direction-row-reverse-mobile {
37
51
  flex-direction: row-reverse;
38
52
  }
39
53
 
40
- &.is-direction-column-reverse-desktop {
54
+ &.is-direction-column-reverse-mobile {
41
55
  flex-direction: column-reverse;
42
56
  }
43
- }
44
57
 
58
+ &.is-wrap-mobile {
59
+ flex-wrap: wrap;
60
+ }
61
+ }
45
62
  @include tablet {
46
63
  &.is-direction-row-tablet {
47
64
  flex-direction: row;
@@ -58,9 +75,70 @@
58
75
  &.is-direction-column-reverse-tablet {
59
76
  flex-direction: column-reverse;
60
77
  }
78
+ &.is-wrap-tablet {
79
+ flex-wrap: wrap;
80
+ }
81
+ }
82
+ @include desktop {
83
+ &.is-direction-row-desktop {
84
+ flex-direction: row;
85
+ }
86
+ &.is-direction-column-desktop {
87
+ flex-direction: column;
88
+ }
89
+
90
+ &.is-direction-row-reverse-desktop {
91
+ flex-direction: row-reverse;
92
+ }
93
+
94
+ &.is-direction-column-reverse-desktop {
95
+ flex-direction: column-reverse;
96
+ }
97
+ &.is-wrap-desktop {
98
+ flex-wrap: wrap;
99
+ }
100
+ }
101
+ @include widescreen {
102
+ &.is-direction-row-widescreen {
103
+ flex-direction: row;
104
+ }
105
+ &.is-direction-column-widescreen {
106
+ flex-direction: column;
107
+ }
108
+
109
+ &.is-direction-row-reverse-widescreen {
110
+ flex-direction: row-reverse;
111
+ }
112
+
113
+ &.is-direction-column-reverse-widescreen {
114
+ flex-direction: column-reverse;
115
+ }
116
+ &.is-wrap-widescreen {
117
+ flex-wrap: wrap;
118
+ }
61
119
  }
62
120
 
63
- @include mobile {
121
+ @include fullhd {
122
+ &.is-direction-row-fullhd {
123
+ flex-direction: row;
124
+ }
125
+ &.is-direction-column-fullhd {
126
+ flex-direction: column;
127
+ }
128
+
129
+ &.is-direction-row-reverse-fullhd {
130
+ flex-direction: row-reverse;
131
+ }
132
+
133
+ &.is-direction-column-reverse-fullhd {
134
+ flex-direction: column-reverse;
135
+ }
136
+ &.is-wrap-fullhd {
137
+ flex-wrap: wrap;
138
+ }
139
+ }
140
+
141
+ @include container-mobile {
64
142
  &:has(>.flex-item):not([class*='is-direction']) {
65
143
  flex-direction: column;
66
144
  }
@@ -80,6 +158,89 @@
80
158
  &.is-direction-column-reverse-mobile {
81
159
  flex-direction: column-reverse;
82
160
  }
161
+ &.is-wrap-mobile {
162
+ flex-wrap: wrap;
163
+ }
164
+ }
165
+ @include container-tablet {
166
+ &.is-direction-row-tablet {
167
+ flex-direction: row;
168
+ }
169
+
170
+ &.is-direction-column-tablet {
171
+ flex-direction: column;
172
+ }
173
+
174
+ &.is-direction-row-reverse-tablet {
175
+ flex-direction: row-reverse;
176
+ }
177
+
178
+ &.is-direction-column-reverse-tablet {
179
+ flex-direction: column-reverse;
180
+ }
181
+ &.is-wrap-mobile {
182
+ flex-wrap: wrap;
183
+ }
184
+ }
185
+ @include container-desktop {
186
+ &.is-direction-row-desktop {
187
+ flex-direction: row;
188
+ }
189
+
190
+ &.is-direction-column-desktop {
191
+ flex-direction: column;
192
+ }
193
+
194
+ &.is-direction-row-reverse-desktop {
195
+ flex-direction: row-reverse;
196
+ }
197
+
198
+ &.is-direction-column-reverse-desktop {
199
+ flex-direction: column-reverse;
200
+ }
201
+ &.is-wrap-desktop {
202
+ flex-wrap: wrap;
203
+ }
204
+ }
205
+ @include container-widescreen {
206
+ &.is-direction-row-widescreen {
207
+ flex-direction: row;
208
+ }
209
+
210
+ &.is-direction-column-widescreen {
211
+ flex-direction: column;
212
+ }
213
+
214
+ &.is-direction-row-reverse-widescreen {
215
+ flex-direction: row-reverse;
216
+ }
217
+
218
+ &.is-direction-column-reverse-widescreen {
219
+ flex-direction: column-reverse;
220
+ }
221
+ &.is-wrap-widescreen {
222
+ flex-wrap: wrap;
223
+ }
224
+ }
225
+ @include container-fullhd {
226
+ &.is-direction-row-fullhd {
227
+ flex-direction: row;
228
+ }
229
+
230
+ &.is-direction-column-fullhd {
231
+ flex-direction: column;
232
+ }
233
+
234
+ &.is-direction-row-reverse-fullhd {
235
+ flex-direction: row-reverse;
236
+ }
237
+
238
+ &.is-direction-column-reverse-fullhd {
239
+ flex-direction: column-reverse;
240
+ }
241
+ &.is-wrap-fullhd {
242
+ flex-wrap: wrap;
243
+ }
83
244
  }
84
245
 
85
246
  // ALIGN ITEMS
@@ -116,7 +277,6 @@
116
277
  align-items: stretch;
117
278
  }
118
279
  }
119
-
120
280
  @include tablet {
121
281
  &.is-aligned-start-tablet {
122
282
  align-items: flex-start;
@@ -134,7 +294,6 @@
134
294
  align-items: stretch;
135
295
  }
136
296
  }
137
-
138
297
  @include desktop {
139
298
  &.is-aligned-start-desktop {
140
299
  align-items: flex-start;
@@ -152,6 +311,92 @@
152
311
  align-items: stretch;
153
312
  }
154
313
  }
314
+ @include widescreen {
315
+ &.is-aligned-start-widescreen {
316
+ align-items: flex-start;
317
+ }
318
+
319
+ &.is-aligned-end-widescreen {
320
+ align-items: flex-end;
321
+ }
322
+
323
+ &.is-aligned-center-widescreen {
324
+ align-items: center;
325
+ }
326
+
327
+ &.is-aligned-stretch-widescreen {
328
+ align-items: stretch;
329
+ }
330
+ }
331
+ @include fullhd {
332
+ &.is-aligned-start-fullhd {
333
+ align-items: flex-start;
334
+ }
335
+
336
+ &.is-aligned-end-fullhd {
337
+ align-items: flex-end;
338
+ }
339
+
340
+ &.is-aligned-center-fullhd {
341
+ align-items: center;
342
+ }
343
+
344
+ &.is-aligned-stretch-fullhd {
345
+ align-items: stretch;
346
+ }
347
+ }
348
+
349
+ @include container-mobile {
350
+ &.is-aligned-start-mobile {
351
+ align-items: flex-start;
352
+ }
353
+
354
+ &.is-aligned-end-mobile {
355
+ align-items: flex-end;
356
+ }
357
+
358
+ &.is-aligned-center-mobile {
359
+ align-items: center;
360
+ }
361
+
362
+ &.is-aligned-stretch-mobile {
363
+ align-items: stretch;
364
+ }
365
+ }
366
+ @include container-tablet {
367
+ &.is-aligned-start-tablet {
368
+ align-items: flex-start;
369
+ }
370
+
371
+ &.is-aligned-end-tablet {
372
+ align-items: flex-end;
373
+ }
374
+
375
+ &.is-aligned-center-tablet {
376
+ align-items: center;
377
+ }
378
+
379
+ &.is-aligned-stretch-tablet {
380
+ align-items: stretch;
381
+ }
382
+ }
383
+ @include container-desktop {
384
+ &.is-aligned-start-desktop {
385
+ align-items: flex-start;
386
+ }
387
+
388
+ &.is-aligned-end-desktop {
389
+ align-items: flex-end;
390
+ }
391
+
392
+ &.is-aligned-center-desktop {
393
+ align-items: center;
394
+ }
395
+
396
+ &.is-aligned-stretch-desktop {
397
+ align-items: stretch;
398
+ }
399
+ }
155
400
 
156
401
  // JUSTIFY CONTENT
157
402
  &.is-justified-start {
@@ -203,7 +448,6 @@
203
448
  justify-content: space-evenly;
204
449
  }
205
450
  }
206
-
207
451
  @include tablet {
208
452
  &.is-justified-start-tablet {
209
453
  justify-content: flex-start;
@@ -229,7 +473,6 @@
229
473
  justify-content: space-evenly;
230
474
  }
231
475
  }
232
-
233
476
  @include desktop {
234
477
  &.is-justified-start-desktop {
235
478
  justify-content: flex-start;
@@ -256,6 +499,184 @@
256
499
  }
257
500
  }
258
501
 
502
+ @include widescreen {
503
+ &.is-justified-start-widescreen {
504
+ justify-content: flex-start;
505
+ }
506
+
507
+ &.is-justified-end-widescreen {
508
+ justify-content: flex-end;
509
+ }
510
+
511
+ &.is-justified-center-widescreen {
512
+ justify-content: center;
513
+ }
514
+
515
+ &.is-spaced-between-widescreen {
516
+ justify-content: space-between;
517
+ }
518
+
519
+ &.is-spaced-around-widescreen {
520
+ justify-content: space-around;
521
+ }
522
+
523
+ &.is-spaced-evenly-widescreen {
524
+ justify-content: space-evenly;
525
+ }
526
+ }
527
+ @include fullhd {
528
+ &.is-justified-start-fullhd {
529
+ justify-content: flex-start;
530
+ }
531
+
532
+ &.is-justified-end-fullhd {
533
+ justify-content: flex-end;
534
+ }
535
+
536
+ &.is-justified-center-fullhd {
537
+ justify-content: center;
538
+ }
539
+
540
+ &.is-spaced-between-fullhd {
541
+ justify-content: space-between;
542
+ }
543
+
544
+ &.is-spaced-around-fullhd {
545
+ justify-content: space-around;
546
+ }
547
+
548
+ &.is-spaced-evenly-fullhd {
549
+ justify-content: space-evenly;
550
+ }
551
+ }
552
+
553
+ @include container-mobile {
554
+ &.is-justified-start-mobile {
555
+ justify-content: flex-start;
556
+ }
557
+
558
+ &.is-justified-end-mobile {
559
+ justify-content: flex-end;
560
+ }
561
+
562
+ &.is-justified-center-mobile {
563
+ justify-content: center;
564
+ }
565
+
566
+ &.is-spaced-between-mobile {
567
+ justify-content: space-between;
568
+ }
569
+
570
+ &.is-spaced-around-mobile {
571
+ justify-content: space-around;
572
+ }
573
+
574
+ &.is-spaced-evenly-mobile {
575
+ justify-content: space-evenly;
576
+ }
577
+ }
578
+ @include container-tablet {
579
+ &.is-justified-start-tablet {
580
+ justify-content: flex-start;
581
+ }
582
+
583
+ &.is-justified-end-tablet {
584
+ justify-content: flex-end;
585
+ }
586
+
587
+ &.is-justified-center-tablet {
588
+ justify-content: center;
589
+ }
590
+
591
+ &.is-spaced-between-tablet {
592
+ justify-content: space-between;
593
+ }
594
+
595
+ &.is-spaced-around-tablet {
596
+ justify-content: space-around;
597
+ }
598
+
599
+ &.is-spaced-evenly-tablet {
600
+ justify-content: space-evenly;
601
+ }
602
+ }
603
+ @include container-desktop {
604
+ &.is-justified-start-desktop {
605
+ justify-content: flex-start;
606
+ }
607
+
608
+ &.is-justified-end-desktop {
609
+ justify-content: flex-end;
610
+ }
611
+
612
+ &.is-justified-center-desktop {
613
+ justify-content: center;
614
+ }
615
+
616
+ &.is-spaced-between-desktop {
617
+ justify-content: space-between;
618
+ }
619
+
620
+ &.is-spaced-around-desktop {
621
+ justify-content: space-around;
622
+ }
623
+
624
+ &.is-spaced-evenly-desktop {
625
+ justify-content: space-evenly;
626
+ }
627
+ }
628
+
629
+ @include container-widescreen {
630
+ &.is-justified-start-widescreen {
631
+ justify-content: flex-start;
632
+ }
633
+
634
+ &.is-justified-end-widescreen {
635
+ justify-content: flex-end;
636
+ }
637
+
638
+ &.is-justified-center-widescreen {
639
+ justify-content: center;
640
+ }
641
+
642
+ &.is-spaced-between-widescreen {
643
+ justify-content: space-between;
644
+ }
645
+
646
+ &.is-spaced-around-widescreen {
647
+ justify-content: space-around;
648
+ }
649
+
650
+ &.is-spaced-evenly-widescreen {
651
+ justify-content: space-evenly;
652
+ }
653
+ }
654
+ @include container-fullhd {
655
+ &.is-justified-start-fullhd {
656
+ justify-content: flex-start;
657
+ }
658
+
659
+ &.is-justified-end-fullhd {
660
+ justify-content: flex-end;
661
+ }
662
+
663
+ &.is-justified-center-fullhd {
664
+ justify-content: center;
665
+ }
666
+
667
+ &.is-spaced-between-fullhd {
668
+ justify-content: space-between;
669
+ }
670
+
671
+ &.is-spaced-around-fullhd {
672
+ justify-content: space-around;
673
+ }
674
+
675
+ &.is-spaced-evenly-fullhd {
676
+ justify-content: space-evenly;
677
+ }
678
+ }
679
+
259
680
  &.is-scrollable {
260
681
  overflow: auto;
261
682
  width: calc(100% + 48px) !important;
@@ -273,6 +694,13 @@
273
694
  scroll-padding: 16px;
274
695
  }
275
696
 
697
+ @include container-mobile {
698
+ width: calc(100% + 32px) !important;
699
+ margin: -16px auto -16px 50% !important;
700
+ padding: 16px;
701
+ scroll-padding: 16px;
702
+ }
703
+
276
704
  &:not(:last-child) {
277
705
  margin-bottom: auto !important;
278
706
  }
@@ -297,6 +725,7 @@
297
725
  }
298
726
 
299
727
  @include mobile {
728
+ &.has-gap-#{$i},
300
729
  &.has-gap-#{$i}-mobile {
301
730
  gap: $item;
302
731
 
@@ -305,7 +734,6 @@
305
734
  }
306
735
  }
307
736
  }
308
-
309
737
  @include tablet {
310
738
  &.has-gap-#{$i}:not(.is-desktop),
311
739
  &.has-gap-#{$i}-tablet {
@@ -316,7 +744,6 @@
316
744
  }
317
745
  }
318
746
  }
319
-
320
747
  @include desktop {
321
748
  &.has-gap-#{$i},
322
749
  &.has-gap-#{$i}-desktop {
@@ -327,8 +754,8 @@
327
754
  }
328
755
  }
329
756
  }
330
-
331
757
  @include widescreen {
758
+ &.has-gap-#{$i},
332
759
  &.has-gap-#{$i}-widescreen {
333
760
  gap: $item;
334
761
 
@@ -337,8 +764,61 @@
337
764
  }
338
765
  }
339
766
  }
340
-
341
767
  @include fullhd {
768
+ &.has-gap-#{$i},
769
+ &.has-gap-#{$i}-fullhd {
770
+ gap: $item;
771
+
772
+ > .flex-item {
773
+ --ColumnGap: #{$item};
774
+ }
775
+ }
776
+ }
777
+
778
+ @include container-mobile {
779
+ &.has-gap-#{$i},
780
+ &.has-gap-#{$i}-mobile {
781
+ gap: $item;
782
+
783
+ > .flex-item {
784
+ --ColumnGap: #{$item};
785
+ }
786
+ }
787
+ }
788
+
789
+ @include container-tablet {
790
+ &.has-gap-#{$i}:not(.is-desktop),
791
+ &.has-gap-#{$i}-tablet {
792
+ gap: $item;
793
+
794
+ > .flex-item {
795
+ --ColumnGap: #{$item};
796
+ }
797
+ }
798
+ }
799
+
800
+ @include container-desktop {
801
+ &.has-gap-#{$i},
802
+ &.has-gap-#{$i}-desktop {
803
+ gap: $item;
804
+
805
+ > .flex-item {
806
+ --ColumnGap: #{$item};
807
+ }
808
+ }
809
+ }
810
+
811
+ @include container-widescreen {
812
+ &.has-gap-#{$i}-widescreen {
813
+ gap: $item;
814
+
815
+ > .flex-item {
816
+ --ColumnGap: #{$item};
817
+ }
818
+ }
819
+ }
820
+
821
+ @include container-fullhd {
342
822
  &.has-gap-#{$i}-fullhd {
343
823
  gap: $item;
344
824
 
@@ -377,9 +857,9 @@
377
857
 
378
858
  // SIZE
379
859
  .flex-item {
380
- width: 100%;
381
-
860
+ flex-grow: 1;
382
861
  &.is-narrow {
862
+ flex: none;
383
863
  width: auto;
384
864
  }
385
865
 
@@ -391,6 +871,10 @@
391
871
  @include mobile {
392
872
  --ColumnFraction: 1;
393
873
  }
874
+
875
+ @include container-mobile {
876
+ --ColumnFraction: 1;
877
+ }
394
878
  }
395
879
  }
396
880
 
@@ -409,7 +893,6 @@
409
893
  }
410
894
  }
411
895
  }
412
-
413
896
  @include tablet {
414
897
  @each $key, $value in $itemSize {
415
898
  .flex-item.is-#{$key}-tablet {
@@ -418,7 +901,6 @@
418
901
  }
419
902
  }
420
903
  }
421
-
422
904
  @include touch {
423
905
  @each $key, $value in $itemSize {
424
906
  .flex-item.is-#{$key}-touch {
@@ -427,7 +909,6 @@
427
909
  }
428
910
  }
429
911
  }
430
-
431
912
  @include desktop {
432
913
  @each $key, $value in $itemSize {
433
914
  .flex-item.is-#{$key}-desktop {
@@ -436,7 +917,6 @@
436
917
  }
437
918
  }
438
919
  }
439
-
440
920
  @include widescreen {
441
921
  @each $key, $value in $itemSize {
442
922
  .flex-item.is-#{$key}-widescreen {
@@ -445,7 +925,6 @@
445
925
  }
446
926
  }
447
927
  }
448
-
449
928
  @include fullhd {
450
929
  @each $key, $value in $itemSize {
451
930
  .flex-item.is-#{$key}-fullhd {
@@ -454,4 +933,62 @@
454
933
  }
455
934
  }
456
935
  }
936
+
937
+ @include container-mobile {
938
+ @each $key, $value in $itemSize {
939
+ .flex-item.is-#{$key}-mobile {
940
+ flex: none;
941
+ --ColumnFraction: #{$value};
942
+ }
943
+ }
944
+ }
945
+
946
+
947
+ @include container-tablet {
948
+ @each $key, $value in $itemSize {
949
+ .flex-item.is-#{$key}-tablet {
950
+ flex: none;
951
+ --ColumnFraction: #{$value};
952
+ }
953
+ }
954
+ }
955
+
956
+
957
+ @include container-touch {
958
+ @each $key, $value in $itemSize {
959
+ .flex-item.is-#{$key}-touch {
960
+ flex: none;
961
+ --ColumnFraction: #{$value};
962
+ }
963
+ }
964
+ }
965
+
966
+
967
+ @include container-desktop {
968
+ @each $key, $value in $itemSize {
969
+ .flex-item.is-#{$key}-desktop {
970
+ flex: none;
971
+ --ColumnFraction: #{$value};
972
+ }
973
+ }
974
+ }
975
+
976
+
977
+ @include container-widescreen {
978
+ @each $key, $value in $itemSize {
979
+ .flex-item.is-#{$key}-widescreen {
980
+ flex: none;
981
+ --ColumnFraction: #{$value};
982
+ }
983
+ }
984
+ }
985
+
986
+ @include container-fullhd {
987
+ @each $key, $value in $itemSize {
988
+ .flex-item.is-#{$key}-fullhd {
989
+ flex: none;
990
+ --ColumnFraction: #{$value};
991
+ }
992
+ }
993
+ }
457
994
  }