cacao-css 3.7.1 → 3.12.0

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.
@@ -0,0 +1,759 @@
1
+ /* ==========================================================================
2
+ Responsive flex utilities
3
+ ========================================================================== */
4
+
5
+ /* ------------------------------------ *\
6
+ Small
7
+ \* ------------------------------------ */
8
+
9
+ @media (--c-bp-sm) {
10
+
11
+ /**
12
+ * Container
13
+ */
14
+
15
+ .u-sm-flex {
16
+ display: flex !important;
17
+ }
18
+
19
+ .u-sm-flexInline {
20
+ display: inline-flex !important;
21
+ }
22
+
23
+ /**
24
+ * Direction: row
25
+ */
26
+
27
+ .u-sm-flexRow {
28
+ flex-direction: row !important;
29
+ }
30
+
31
+ .u-sm-flexRowReverse {
32
+ flex-direction: row-reverse !important;
33
+ }
34
+
35
+ /**
36
+ * Direction: column
37
+ */
38
+
39
+ .u-sm-flexCol {
40
+ flex-direction: column !important;
41
+ }
42
+
43
+ .u-sm-flexColReverse {
44
+ flex-direction: column-reverse !important;
45
+ }
46
+
47
+ /**
48
+ * Wrap
49
+ */
50
+
51
+ .u-sm-flexWrap {
52
+ flex-wrap: wrap !important;
53
+ }
54
+
55
+ .u-sm-flexNoWrap {
56
+ flex-wrap: nowrap !important;
57
+ }
58
+
59
+ .u-sm-flexWrapReverse {
60
+ flex-wrap: wrap-reverse !important;
61
+ }
62
+
63
+ /**
64
+ * Align items along the main axis of the current line of the flex container
65
+ */
66
+
67
+ .u-sm-flexJustifyStart {
68
+ justify-content: flex-start !important;
69
+ }
70
+
71
+ .u-sm-flexJustifyEnd {
72
+ justify-content: flex-end !important;
73
+ }
74
+
75
+ .u-sm-flexJustifyCenter {
76
+ justify-content: center !important;
77
+ }
78
+
79
+ .u-sm-flexJustifyBetween {
80
+ justify-content: space-between !important;
81
+ }
82
+
83
+ .u-sm-flexJustifyAround {
84
+ justify-content: space-around !important;
85
+ }
86
+
87
+ /**
88
+ * Align items in the cross axis of the current line of the flex container
89
+ * Similar to `justify-content` but in the perpendicular direction
90
+ */
91
+
92
+ .u-sm-flexAlignItemsStart {
93
+ align-items: flex-start !important;
94
+ }
95
+
96
+ .u-sm-flexAlignItemsEnd {
97
+ align-items: flex-end !important;
98
+ }
99
+
100
+ .u-sm-flexAlignItemsCenter {
101
+ align-items: center !important;
102
+ }
103
+
104
+ .u-sm-flexAlignItemsStretch {
105
+ align-items: stretch !important;
106
+ }
107
+
108
+ .u-sm-flexAlignItemsBaseline {
109
+ align-items: baseline !important;
110
+ }
111
+
112
+ /**
113
+ * Aligns items within the flex container when there is extra space in the
114
+ * cross-axis
115
+ *
116
+ * Has no effect when there is only one line of flex items.
117
+ */
118
+
119
+ .u-sm-flexAlignContentStart {
120
+ align-content: flex-start !important;
121
+ }
122
+
123
+ .u-sm-flexAlignContentEnd {
124
+ align-content: flex-end !important;
125
+ }
126
+
127
+ .u-sm-flexAlignContentCenter {
128
+ align-content: center !important;
129
+ }
130
+
131
+ .u-sm-flexAlignContentStretch {
132
+ align-content: stretch !important;
133
+ }
134
+
135
+ .u-sm-flexAlignContentBetween {
136
+ align-content: space-between !important;
137
+ }
138
+
139
+ .u-sm-flexAlignContentAround {
140
+ align-content: space-around !important;
141
+ }
142
+
143
+ /**
144
+ * 1. Set the flex-shrink default explicitly to fix IE10 - http://git.io/vllC7
145
+ */
146
+
147
+ /* postcss-bem-linter: ignore */
148
+
149
+ .u-sm-flex > *,
150
+ .u-sm-flexInline > * {
151
+ flex-shrink: 1; /* 1 */
152
+ }
153
+
154
+ /* Applies to flex items
155
+ ========================================================================== */
156
+
157
+ /**
158
+ * Override default alignment of single item when specified by `align-items`
159
+ */
160
+
161
+ .u-sm-flexAlignSelfStart {
162
+ align-self: flex-start !important;
163
+ }
164
+
165
+ .u-sm-flexAlignSelfEnd {
166
+ align-self: flex-end !important;
167
+ }
168
+
169
+ .u-sm-flexAlignSelfCenter {
170
+ align-self: center !important;
171
+ }
172
+
173
+ .u-sm-flexAlignSelfStretch {
174
+ align-self: stretch !important;
175
+ }
176
+
177
+ .u-sm-flexAlignSelfBaseline {
178
+ align-self: baseline !important;
179
+ }
180
+
181
+ .u-sm-flexAlignSelfAuto {
182
+ align-self: auto !important;
183
+ }
184
+
185
+ /**
186
+ * Change order without editing underlying HTML
187
+ */
188
+
189
+ .u-sm-flexOrderFirst {
190
+ order: -1 !important;
191
+ }
192
+
193
+ .u-sm-flexOrderLast {
194
+ order: 1 !important;
195
+ }
196
+
197
+ .u-sm-flexOrderNone {
198
+ order: 0 !important;
199
+ }
200
+
201
+ /**
202
+ * Specify the flex grow factor, which determines how much the flex item will
203
+ * grow relative to the rest of the flex items in the flex container.
204
+ *
205
+ * Supports 1-5 proportions
206
+ *
207
+ * 1. Provide all values to avoid IE10 bug with shorthand flex
208
+ * http://git.io/vllC7
209
+ */
210
+
211
+ .u-sm-flexGrow1 {
212
+ flex: 1 1 auto !important; /* 1 */
213
+ }
214
+
215
+ .u-sm-flexGrow2 {
216
+ flex: 2 1 auto !important;
217
+ }
218
+
219
+ .u-sm-flexGrow3 {
220
+ flex: 3 1 auto !important;
221
+ }
222
+
223
+ .u-sm-flexGrow4 {
224
+ flex: 4 1 auto !important;
225
+ }
226
+
227
+ .u-sm-flexGrow5 {
228
+ flex: 5 1 auto !important;
229
+ }
230
+
231
+ /**
232
+ * Aligning with `auto` margins
233
+ * http://www.w3.org/TR/css-flexbox-1/#auto-margins
234
+ */
235
+
236
+ .u-sm-flexExpand {
237
+ margin: auto !important;
238
+ }
239
+
240
+ .u-sm-flexExpandLeft {
241
+ margin-left: auto !important;
242
+ }
243
+
244
+ .u-sm-flexExpandRight {
245
+ margin-right: auto !important;
246
+ }
247
+
248
+ .u-sm-flexExpandTop {
249
+ margin-top: auto !important;
250
+ }
251
+
252
+ .u-sm-flexExpandBottom {
253
+ margin-bottom: auto !important;
254
+ }
255
+ }
256
+
257
+ /* ------------------------------------ *\
258
+ Medium
259
+ \* ------------------------------------ */
260
+
261
+ @media (--c-bp-md) {
262
+
263
+ /**
264
+ * Container
265
+ */
266
+
267
+ .u-md-flex {
268
+ display: flex !important;
269
+ }
270
+
271
+ .u-md-flexInline {
272
+ display: inline-flex !important;
273
+ }
274
+
275
+ /**
276
+ * Direction: row
277
+ */
278
+
279
+ .u-md-flexRow {
280
+ flex-direction: row !important;
281
+ }
282
+
283
+ .u-md-flexRowReverse {
284
+ flex-direction: row-reverse !important;
285
+ }
286
+
287
+ /**
288
+ * Direction: column
289
+ */
290
+
291
+ .u-md-flexCol {
292
+ flex-direction: column !important;
293
+ }
294
+
295
+ .u-md-flexColReverse {
296
+ flex-direction: column-reverse !important;
297
+ }
298
+
299
+ /**
300
+ * Wrap
301
+ */
302
+
303
+ .u-md-flexWrap {
304
+ flex-wrap: wrap !important;
305
+ }
306
+
307
+ .u-md-flexNoWrap {
308
+ flex-wrap: nowrap !important;
309
+ }
310
+
311
+ .u-md-flexWrapReverse {
312
+ flex-wrap: wrap-reverse !important;
313
+ }
314
+
315
+ /**
316
+ * Align items along the main axis of the current line of the flex container
317
+ */
318
+
319
+ .u-md-flexJustifyStart {
320
+ justify-content: flex-start !important;
321
+ }
322
+
323
+ .u-md-flexJustifyEnd {
324
+ justify-content: flex-end !important;
325
+ }
326
+
327
+ .u-md-flexJustifyCenter {
328
+ justify-content: center !important;
329
+ }
330
+
331
+ .u-md-flexJustifyBetween {
332
+ justify-content: space-between !important;
333
+ }
334
+
335
+ .u-md-flexJustifyAround {
336
+ justify-content: space-around !important;
337
+ }
338
+
339
+ /**
340
+ * Align items in the cross axis of the current line of the flex container
341
+ * Similar to `justify-content` but in the perpendicular direction
342
+ */
343
+
344
+ .u-md-flexAlignItemsStart {
345
+ align-items: flex-start !important;
346
+ }
347
+
348
+ .u-md-flexAlignItemsEnd {
349
+ align-items: flex-end !important;
350
+ }
351
+
352
+ .u-md-flexAlignItemsCenter {
353
+ align-items: center !important;
354
+ }
355
+
356
+ .u-md-flexAlignItemsStretch {
357
+ align-items: stretch !important;
358
+ }
359
+
360
+ .u-md-flexAlignItemsBaseline {
361
+ align-items: baseline !important;
362
+ }
363
+
364
+ /**
365
+ * Aligns items within the flex container when there is extra space in the
366
+ * cross-axis
367
+ *
368
+ * Has no effect when there is only one line of flex items.
369
+ */
370
+
371
+ .u-md-flexAlignContentStart {
372
+ align-content: flex-start !important;
373
+ }
374
+
375
+ .u-md-flexAlignContentEnd {
376
+ align-content: flex-end !important;
377
+ }
378
+
379
+ .u-md-flexAlignContentCenter {
380
+ align-content: center !important;
381
+ }
382
+
383
+ .u-md-flexAlignContentStretch {
384
+ align-content: stretch !important;
385
+ }
386
+
387
+ .u-md-flexAlignContentBetween {
388
+ align-content: space-between !important;
389
+ }
390
+
391
+ .u-md-flexAlignContentAround {
392
+ align-content: space-around !important;
393
+ }
394
+
395
+ /**
396
+ * 1. Set the flex-shrink default explicitly to fix IE10 - http://git.io/vllC7
397
+ */
398
+
399
+ /* postcss-bem-linter: ignore */
400
+
401
+ .u-md-flex > *,
402
+ .u-md-flexInline > * {
403
+ flex-shrink: 1; /* 1 */
404
+ }
405
+
406
+ /* Applies to flex items
407
+ ========================================================================== */
408
+
409
+ /**
410
+ * Override default alignment of single item when specified by `align-items`
411
+ */
412
+
413
+ .u-md-flexAlignSelfStart {
414
+ align-self: flex-start !important;
415
+ }
416
+
417
+ .u-md-flexAlignSelfEnd {
418
+ align-self: flex-end !important;
419
+ }
420
+
421
+ .u-md-flexAlignSelfCenter {
422
+ align-self: center !important;
423
+ }
424
+
425
+ .u-md-flexAlignSelfStretch {
426
+ align-self: stretch !important;
427
+ }
428
+
429
+ .u-md-flexAlignSelfBaseline {
430
+ align-self: baseline !important;
431
+ }
432
+
433
+ .u-md-flexAlignSelfAuto {
434
+ align-self: auto !important;
435
+ }
436
+
437
+ /**
438
+ * Change order without editing underlying HTML
439
+ */
440
+
441
+ .u-md-flexOrderFirst {
442
+ order: -1 !important;
443
+ }
444
+
445
+ .u-md-flexOrderLast {
446
+ order: 1 !important;
447
+ }
448
+
449
+ .u-md-flexOrderNone {
450
+ order: 0 !important;
451
+ }
452
+
453
+ /**
454
+ * Specify the flex grow factor, which determines how much the flex item will
455
+ * grow relative to the rest of the flex items in the flex container.
456
+ *
457
+ * Supports 1-5 proportions
458
+ *
459
+ * 1. Provide all values to avoid IE10 bug with shorthand flex
460
+ * http://git.io/vllC7
461
+ */
462
+
463
+ .u-md-flexGrow1 {
464
+ flex: 1 1 auto !important; /* 1 */
465
+ }
466
+
467
+ .u-md-flexGrow2 {
468
+ flex: 2 1 auto !important;
469
+ }
470
+
471
+ .u-md-flexGrow3 {
472
+ flex: 3 1 auto !important;
473
+ }
474
+
475
+ .u-md-flexGrow4 {
476
+ flex: 4 1 auto !important;
477
+ }
478
+
479
+ .u-md-flexGrow5 {
480
+ flex: 5 1 auto !important;
481
+ }
482
+
483
+ /**
484
+ * Aligning with `auto` margins
485
+ * http://www.w3.org/TR/css-flexbox-1/#auto-margins
486
+ */
487
+
488
+ .u-md-flexExpand {
489
+ margin: auto !important;
490
+ }
491
+
492
+ .u-md-flexExpandLeft {
493
+ margin-left: auto !important;
494
+ }
495
+
496
+ .u-md-flexExpandRight {
497
+ margin-right: auto !important;
498
+ }
499
+
500
+ .u-md-flexExpandTop {
501
+ margin-top: auto !important;
502
+ }
503
+
504
+ .u-md-flexExpandBottom {
505
+ margin-bottom: auto !important;
506
+ }
507
+ }
508
+
509
+ /* ------------------------------------ *\
510
+ Large
511
+ \* ------------------------------------ */
512
+
513
+ @media (--c-bp-lg) {
514
+
515
+ /**
516
+ * Container
517
+ */
518
+
519
+ .u-lg-flex {
520
+ display: flex !important;
521
+ }
522
+
523
+ .u-lg-flexInline {
524
+ display: inline-flex !important;
525
+ }
526
+
527
+ /**
528
+ * Direction: row
529
+ */
530
+
531
+ .u-lg-flexRow {
532
+ flex-direction: row !important;
533
+ }
534
+
535
+ .u-lg-flexRowReverse {
536
+ flex-direction: row-reverse !important;
537
+ }
538
+
539
+ /**
540
+ * Direction: column
541
+ */
542
+
543
+ .u-lg-flexCol {
544
+ flex-direction: column !important;
545
+ }
546
+
547
+ .u-lg-flexColReverse {
548
+ flex-direction: column-reverse !important;
549
+ }
550
+
551
+ /**
552
+ * Wrap
553
+ */
554
+
555
+ .u-lg-flexWrap {
556
+ flex-wrap: wrap !important;
557
+ }
558
+
559
+ .u-lg-flexNoWrap {
560
+ flex-wrap: nowrap !important;
561
+ }
562
+
563
+ .u-lg-flexWrapReverse {
564
+ flex-wrap: wrap-reverse !important;
565
+ }
566
+
567
+ /**
568
+ * Align items along the main axis of the current line of the flex container
569
+ */
570
+
571
+ .u-lg-flexJustifyStart {
572
+ justify-content: flex-start !important;
573
+ }
574
+
575
+ .u-lg-flexJustifyEnd {
576
+ justify-content: flex-end !important;
577
+ }
578
+
579
+ .u-lg-flexJustifyCenter {
580
+ justify-content: center !important;
581
+ }
582
+
583
+ .u-lg-flexJustifyBetween {
584
+ justify-content: space-between !important;
585
+ }
586
+
587
+ .u-lg-flexJustifyAround {
588
+ justify-content: space-around !important;
589
+ }
590
+
591
+ /**
592
+ * Align items in the cross axis of the current line of the flex container
593
+ * Similar to `justify-content` but in the perpendicular direction
594
+ */
595
+
596
+ .u-lg-flexAlignItemsStart {
597
+ align-items: flex-start !important;
598
+ }
599
+
600
+ .u-lg-flexAlignItemsEnd {
601
+ align-items: flex-end !important;
602
+ }
603
+
604
+ .u-lg-flexAlignItemsCenter {
605
+ align-items: center !important;
606
+ }
607
+
608
+ .u-lg-flexAlignItemsStretch {
609
+ align-items: stretch !important;
610
+ }
611
+
612
+ .u-lg-flexAlignItemsBaseline {
613
+ align-items: baseline !important;
614
+ }
615
+
616
+ /**
617
+ * Aligns items within the flex container when there is extra space in the
618
+ * cross-axis
619
+ *
620
+ * Has no effect when there is only one line of flex items.
621
+ */
622
+
623
+ .u-lg-flexAlignContentStart {
624
+ align-content: flex-start !important;
625
+ }
626
+
627
+ .u-lg-flexAlignContentEnd {
628
+ align-content: flex-end !important;
629
+ }
630
+
631
+ .u-lg-flexAlignContentCenter {
632
+ align-content: center !important;
633
+ }
634
+
635
+ .u-lg-flexAlignContentStretch {
636
+ align-content: stretch !important;
637
+ }
638
+
639
+ .u-lg-flexAlignContentBetween {
640
+ align-content: space-between !important;
641
+ }
642
+
643
+ .u-lg-flexAlignContentAround {
644
+ align-content: space-around !important;
645
+ }
646
+
647
+ /**
648
+ * 1. Set the flex-shrink default explicitly to fix IE10 - http://git.io/vllC7
649
+ */
650
+
651
+ /* postcss-bem-linter: ignore */
652
+
653
+ .u-lg-flex > *,
654
+ .u-lg-flexInline > * {
655
+ flex-shrink: 1; /* 1 */
656
+ }
657
+
658
+ /* Applies to flex items
659
+ ========================================================================== */
660
+
661
+ /**
662
+ * Override default alignment of single item when specified by `align-items`
663
+ */
664
+
665
+ .u-lg-flexAlignSelfStart {
666
+ align-self: flex-start !important;
667
+ }
668
+
669
+ .u-lg-flexAlignSelfEnd {
670
+ align-self: flex-end !important;
671
+ }
672
+
673
+ .u-lg-flexAlignSelfCenter {
674
+ align-self: center !important;
675
+ }
676
+
677
+ .u-lg-flexAlignSelfStretch {
678
+ align-self: stretch !important;
679
+ }
680
+
681
+ .u-lg-flexAlignSelfBaseline {
682
+ align-self: baseline !important;
683
+ }
684
+
685
+ .u-lg-flexAlignSelfAuto {
686
+ align-self: auto !important;
687
+ }
688
+
689
+ /**
690
+ * Change order without editing underlying HTML
691
+ */
692
+
693
+ .u-lg-flexOrderFirst {
694
+ order: -1 !important;
695
+ }
696
+
697
+ .u-lg-flexOrderLast {
698
+ order: 1 !important;
699
+ }
700
+
701
+ .u-lg-flexOrderNone {
702
+ order: 0 !important;
703
+ }
704
+
705
+ /**
706
+ * Specify the flex grow factor, which determines how much the flex item will
707
+ * grow relative to the rest of the flex items in the flex container.
708
+ *
709
+ * Supports 1-5 proportions
710
+ *
711
+ * 1. Provide all values to avoid IE10 bug with shorthand flex
712
+ * http://git.io/vllC7
713
+ */
714
+
715
+ .u-lg-flexGrow1 {
716
+ flex: 1 1 auto !important; /* 1 */
717
+ }
718
+
719
+ .u-lg-flexGrow2 {
720
+ flex: 2 1 auto !important;
721
+ }
722
+
723
+ .u-lg-flexGrow3 {
724
+ flex: 3 1 auto !important;
725
+ }
726
+
727
+ .u-lg-flexGrow4 {
728
+ flex: 4 1 auto !important;
729
+ }
730
+
731
+ .u-lg-flexGrow5 {
732
+ flex: 5 1 auto !important;
733
+ }
734
+
735
+ /**
736
+ * Aligning with `auto` margins
737
+ * http://www.w3.org/TR/css-flexbox-1/#auto-margins
738
+ */
739
+
740
+ .u-lg-flexExpand {
741
+ margin: auto !important;
742
+ }
743
+
744
+ .u-lg-flexExpandLeft {
745
+ margin-left: auto !important;
746
+ }
747
+
748
+ .u-lg-flexExpandRight {
749
+ margin-right: auto !important;
750
+ }
751
+
752
+ .u-lg-flexExpandTop {
753
+ margin-top: auto !important;
754
+ }
755
+
756
+ .u-lg-flexExpandBottom {
757
+ margin-bottom: auto !important;
758
+ }
759
+ }