@medyll/cssfabric 0.0.14 → 0.0.15
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.
- package/css/mystyles.css +280 -0
- package/css/mystyles.css.map +1 -0
- package/lib/styles/core/animation/animation.css +0 -215
- package/lib/styles/core/animation/animation.min.css +0 -1
- package/lib/styles/core/box/box.css +832 -832
- package/lib/styles/core/box/box.min.css +1 -1
- package/lib/styles/core/box/box.responsive.css +4165 -6430
- package/lib/styles/core/box/box.responsive.min.css +1 -1
- package/lib/styles/core/color/color.responsive.css +5 -930
- package/lib/styles/core/color/color.responsive.min.css +1 -1
- package/lib/styles/core/flex/flex.css +56 -72
- package/lib/styles/core/flex/flex.min.css +1 -1
- package/lib/styles/core/flex/flex.responsive.css +286 -508
- package/lib/styles/core/flex/flex.responsive.min.css +1 -1
- package/lib/styles/core/grid/grid.css +103 -34
- package/lib/styles/core/grid/grid.min.css +1 -1
- package/lib/styles/core/grid/grid.responsive.css +506 -213
- package/lib/styles/core/grid/grid.responsive.min.css +1 -1
- package/lib/styles/core/menu/menu.responsive.css +5 -86
- package/lib/styles/core/menu/menu.responsive.min.css +1 -1
- package/lib/styles/core/overflow/overflow.css +59 -83
- package/lib/styles/core/overflow/overflow.min.css +1 -1
- package/lib/styles/core/overflow/overflow.responsive.css +305 -486
- package/lib/styles/core/overflow/overflow.responsive.min.css +1 -1
- package/lib/styles/core/scale/scale.css +192 -192
- package/lib/styles/core/scale/scale.min.css +1 -1
- package/lib/styles/core/scale/scale.responsive.css +965 -1606
- package/lib/styles/core/scale/scale.responsive.min.css +1 -1
- package/lib/styles/core/table/table.css +71 -70
- package/lib/styles/core/table/table.responsive.css +5 -79
- package/lib/styles/core/table/table.responsive.min.css +1 -1
- package/lib/styles/core/text/text.responsive.css +5 -154
- package/lib/styles/core/text/text.responsive.min.css +1 -1
- package/lib/styles/core/vars.css +36 -36
- package/lib/styles/core/vars.min.css +1 -1
- package/lib/styles/core/zindex/zindex.css +42 -348
- package/lib/styles/core/zindex/zindex.min.css +1 -1
- package/lib/styles/cssfabric.css +1650 -4096
- package/lib/styles/cssfabric.min.css +7 -7
- package/lib/styles/cssfabric.responsive.css +13802 -17927
- package/lib/styles/cssfabric.responsive.min.css +9 -9
- package/package.json +1 -1
- package/src/_generated/export.variables.json +125 -121
- package/src/cssfabric/_utils.scss +1 -1
- package/src/cssfabric/modules/_cssfabric-config.scss +5 -6
- package/src/cssfabric/modules/animation/animation.scss +2 -2
- package/src/cssfabric/modules/box/_box-build.scss +2 -2
- package/src/cssfabric/modules/box/box-responsive.scss +2 -2
- package/src/cssfabric/modules/color/color-responsive.scss +1 -1
- package/src/cssfabric/modules/flex/_flex-build.scss +35 -54
- package/src/cssfabric/modules/flex/_flex-vars.scss +3 -6
- package/src/cssfabric/modules/grid/_grid-build.scss +42 -49
- package/src/cssfabric/modules/grid/_grid-vars.scss +6 -5
- package/src/cssfabric/modules/grid/grid-responsive.scss +1 -1
- package/src/cssfabric/modules/menu/menu-responsive.scss +1 -1
- package/src/cssfabric/modules/overflow/overflow-responsive.scss +1 -1
- package/src/cssfabric/modules/scale/_scale-build.scss +1 -1
- package/src/cssfabric/modules/scale/scale-responsive.scss +1 -1
- package/src/cssfabric/modules/table/table-responsive.scss +1 -1
- package/src/cssfabric/modules/text/text-responsive.scss +1 -1
- package/src/cssfabric/modules/theme/_theme-build.scss +2 -0
- package/src/cssfabric/modules/vars.scss +4 -5
- package/src/cssfabric/modules/zindex/_zindex-vars.scss +8 -13
- package/src/cssfabric/modules/zindex/zindex.scss +6 -10
- package/lib/styles/core/main.css +0 -2263
- package/src/cssfabric/modules/main.scss +0 -3
package/package.json
CHANGED
|
@@ -183,120 +183,6 @@
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
,
|
|
187
|
-
"color": {
|
|
188
|
-
"_data": {
|
|
189
|
-
"gray-config": {
|
|
190
|
-
"start": "#f4f4f4", "end": "#999", "steps": 8
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
,
|
|
194
|
-
"color-types-config": ["color",
|
|
195
|
-
"bg",
|
|
196
|
-
"bg-themed",
|
|
197
|
-
"border-color"],
|
|
198
|
-
"theme": {
|
|
199
|
-
"primary": "#0288d1", "secondary": "#0288d1", "tertiary": "#0288d1", "foreground": "#282230", "background": "#f1f1f1"
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
,
|
|
203
|
-
"scheme": {
|
|
204
|
-
"discrete": "#ccc", "success": "green", "info": "#ffdd57", "warning": "#e6b905", "alert": "#ff7300", "error": "red"
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
,
|
|
208
|
-
"palette": {
|
|
209
|
-
"yellow": "#ffb900", "orange": "#d83b01", "red": "#d13438", "magenta": "#b4009e", "purple": "#5c2d91", "green": "#107c10", "teal": "#008272", "blue": "#0078d4", "dark": "#323232"
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
,
|
|
213
|
-
"gray": "getGraySteps(8, #f4f4f4, #999)"
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
,
|
|
217
|
-
"_metadata": {
|
|
218
|
-
"title": "color", "title_tag": "its about colors", "description": "cssfabric color system: its about colors"
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
,
|
|
222
|
-
"_docs": {
|
|
223
|
-
"attributes": {
|
|
224
|
-
"color": {
|
|
225
|
-
|
|
226
|
-
"tag": "color",
|
|
227
|
-
"keys": ["scheme",
|
|
228
|
-
"palette",
|
|
229
|
-
"gray"],
|
|
230
|
-
"levelsLinked": {
|
|
231
|
-
"scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"], "gray": ["getGraySteps(8, #f4f4f4, #999)"]
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
,
|
|
235
|
-
"levelsDeclin": {
|
|
236
|
-
"palette": ["_", "lighter", "light", "dark", "darker", "complement"]
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
,
|
|
240
|
-
"about": "color for text level html elements"
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
,
|
|
244
|
-
"background-color": {
|
|
245
|
-
|
|
246
|
-
"tag": "bg",
|
|
247
|
-
"keys": ["scheme",
|
|
248
|
-
"palette",
|
|
249
|
-
"gray"],
|
|
250
|
-
"levelsLinked": {
|
|
251
|
-
"scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"], "gray": ["getGraySteps(8, #f4f4f4, #999)"]
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
,
|
|
255
|
-
"levelsDeclin": {
|
|
256
|
-
"palette": ["_", "lighter", "light", "dark", "darker", "complement"]
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
,
|
|
260
|
-
"about": "background colors"
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
,
|
|
264
|
-
"background-themed": {
|
|
265
|
-
|
|
266
|
-
"tag": "bg-themed",
|
|
267
|
-
"keys": ["scheme",
|
|
268
|
-
"palette",
|
|
269
|
-
"gray"],
|
|
270
|
-
"levelsLinked": {
|
|
271
|
-
"gray": ["getGraySteps(8, #f4f4f4, #999)"], "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"]
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
,
|
|
275
|
-
"levelsDeclin": {
|
|
276
|
-
"palette": ["_", "lighter", "light", "dark", "darker", "complement"]
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
,
|
|
280
|
-
"about": "same as background-color, but with added contrasted color to text"
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
,
|
|
284
|
-
"border-color": {
|
|
285
|
-
|
|
286
|
-
"tag": "border-color",
|
|
287
|
-
"keys": ["palette",
|
|
288
|
-
"gray"],
|
|
289
|
-
"levelsLinked": {
|
|
290
|
-
"gray": ["getGraySteps(8, #f4f4f4, #999)"], "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"]
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
,
|
|
294
|
-
"about": "border colors are slightly darker to maximize surrounding effect"
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
186
|
,
|
|
301
187
|
"flex": {
|
|
302
188
|
"_data": {
|
|
@@ -306,7 +192,7 @@
|
|
|
306
192
|
"horCode": "h",
|
|
307
193
|
"vertCode": "v",
|
|
308
194
|
"gridFullWidth": "main",
|
|
309
|
-
"grow-shrink-steps":
|
|
195
|
+
"grow-shrink-steps": 2,
|
|
310
196
|
"cssProps": {
|
|
311
197
|
"flexWrap": {
|
|
312
198
|
"wrap": "wrap", "wrap-reverse": "wrap-reverse"
|
|
@@ -354,12 +240,12 @@
|
|
|
354
240
|
}
|
|
355
241
|
|
|
356
242
|
,
|
|
357
|
-
"about": "a classic grid system, and hey, it gets height !"
|
|
243
|
+
"about": "a classic flex grid system, and hey, it gets height !"
|
|
358
244
|
}
|
|
359
245
|
|
|
360
246
|
,
|
|
361
247
|
"self": {
|
|
362
|
-
"tag": "self", "keys": ["start", "end", "stretch"], "about": "
|
|
248
|
+
"tag": "self", "keys": ["start", "end", "stretch"], "about": "flex children specific classnames"
|
|
363
249
|
}
|
|
364
250
|
}
|
|
365
251
|
}
|
|
@@ -402,6 +288,10 @@
|
|
|
402
288
|
"start": "flex-start", "end": "flex-end", "stretch": "stretch"
|
|
403
289
|
}
|
|
404
290
|
}
|
|
291
|
+
|
|
292
|
+
,
|
|
293
|
+
"grid-max-rows": 8,
|
|
294
|
+
"grid-max-cols": 12
|
|
405
295
|
}
|
|
406
296
|
|
|
407
297
|
,
|
|
@@ -422,7 +312,7 @@
|
|
|
422
312
|
}
|
|
423
313
|
|
|
424
314
|
,
|
|
425
|
-
"about": "a classic grid system
|
|
315
|
+
"about": "a classic grid system"
|
|
426
316
|
}
|
|
427
317
|
|
|
428
318
|
,
|
|
@@ -692,7 +582,7 @@
|
|
|
692
582
|
"moduleName": "theme",
|
|
693
583
|
"moduleNameShort": "theme",
|
|
694
584
|
"color-default-config": {
|
|
695
|
-
"primary": "#0288d1", "secondary": "#
|
|
585
|
+
"primary": "#0288d1", "secondary": "#D14B02", "tertiary": "#88D102", "foreground": "#282230", "background": "#f1f1f1"
|
|
696
586
|
}
|
|
697
587
|
|
|
698
588
|
,
|
|
@@ -709,7 +599,7 @@
|
|
|
709
599
|
"bg",
|
|
710
600
|
"border"],
|
|
711
601
|
"color": {
|
|
712
|
-
"primary": "#0288d1", "primary-light": "#23b0fd", "primary-lighter": "#6ecbfe", "primary-dark": "#02679e", "primary-darker": "#01466c", "primary-complement": "#d14b02", "primary-invert": "#fd772e", "secondary": "#
|
|
602
|
+
"primary": "#0288d1", "primary-light": "#23b0fd", "primary-lighter": "#6ecbfe", "primary-dark": "#02679e", "primary-darker": "#01466c", "primary-complement": "#d14b02", "primary-invert": "#fd772e", "secondary": "#D14B02", "secondary-light": "#fd7023", "secondary-lighter": "#fea16e", "secondary-dark": "#9e3902", "secondary-darker": "#6c2701", "secondary-complement": "#0288d1", "secondary-invert": "#2eb4fd", "tertiary": "#88D102", "tertiary-light": "#b0fd23", "tertiary-lighter": "#cbfe6e", "tertiary-dark": "#679e02", "tertiary-darker": "#466c01", "tertiary-complement": "#4b02d1", "tertiary-invert": "#772efd"
|
|
713
603
|
}
|
|
714
604
|
}
|
|
715
605
|
|
|
@@ -738,7 +628,7 @@
|
|
|
738
628
|
,
|
|
739
629
|
"zindex": {
|
|
740
630
|
"_data": {
|
|
741
|
-
"z_groups": ["a", "
|
|
631
|
+
"z_groups": ["a", "z"]
|
|
742
632
|
}
|
|
743
633
|
|
|
744
634
|
,
|
|
@@ -751,6 +641,120 @@
|
|
|
751
641
|
"z_groups": "_"
|
|
752
642
|
}
|
|
753
643
|
}
|
|
644
|
+
|
|
645
|
+
,
|
|
646
|
+
"color": {
|
|
647
|
+
"_data": {
|
|
648
|
+
"gray-config": {
|
|
649
|
+
"start": "#f4f4f4", "end": "#999", "steps": 8
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
,
|
|
653
|
+
"color-types-config": ["color",
|
|
654
|
+
"bg",
|
|
655
|
+
"bg-themed",
|
|
656
|
+
"border-color"],
|
|
657
|
+
"theme": {
|
|
658
|
+
"primary": "#0288d1", "secondary": "#D14B02", "tertiary": "#88D102", "foreground": "#282230", "background": "#f1f1f1"
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
,
|
|
662
|
+
"scheme": {
|
|
663
|
+
"discrete": "#ccc", "success": "green", "info": "#ffdd57", "warning": "#e6b905", "alert": "#ff7300", "error": "red"
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
,
|
|
667
|
+
"palette": {
|
|
668
|
+
"yellow": "#ffb900", "orange": "#d83b01", "red": "#d13438", "magenta": "#b4009e", "purple": "#5c2d91", "green": "#107c10", "teal": "#008272", "blue": "#0078d4", "dark": "#323232"
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
,
|
|
672
|
+
"gray": "getGraySteps(8, #f4f4f4, #999)"
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
,
|
|
676
|
+
"_metadata": {
|
|
677
|
+
"title": "color", "title_tag": "its about colors", "description": "cssfabric color system: its about colors"
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
,
|
|
681
|
+
"_docs": {
|
|
682
|
+
"attributes": {
|
|
683
|
+
"color": {
|
|
684
|
+
|
|
685
|
+
"tag": "color",
|
|
686
|
+
"keys": ["scheme",
|
|
687
|
+
"palette",
|
|
688
|
+
"gray"],
|
|
689
|
+
"levelsLinked": {
|
|
690
|
+
"scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"], "gray": ["getGraySteps(8, #f4f4f4, #999)"]
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
,
|
|
694
|
+
"levelsDeclin": {
|
|
695
|
+
"palette": ["_", "lighter", "light", "dark", "darker", "complement"]
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
,
|
|
699
|
+
"about": "color for text level html elements"
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
,
|
|
703
|
+
"background-color": {
|
|
704
|
+
|
|
705
|
+
"tag": "bg",
|
|
706
|
+
"keys": ["scheme",
|
|
707
|
+
"palette",
|
|
708
|
+
"gray"],
|
|
709
|
+
"levelsLinked": {
|
|
710
|
+
"scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"], "gray": ["getGraySteps(8, #f4f4f4, #999)"]
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
,
|
|
714
|
+
"levelsDeclin": {
|
|
715
|
+
"palette": ["_", "lighter", "light", "dark", "darker", "complement"]
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
,
|
|
719
|
+
"about": "background colors"
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
,
|
|
723
|
+
"background-themed": {
|
|
724
|
+
|
|
725
|
+
"tag": "bg-themed",
|
|
726
|
+
"keys": ["scheme",
|
|
727
|
+
"palette",
|
|
728
|
+
"gray"],
|
|
729
|
+
"levelsLinked": {
|
|
730
|
+
"gray": ["getGraySteps(8, #f4f4f4, #999)"], "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"]
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
,
|
|
734
|
+
"levelsDeclin": {
|
|
735
|
+
"palette": ["_", "lighter", "light", "dark", "darker", "complement"]
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
,
|
|
739
|
+
"about": "same as background-color, but with added contrasted color to text"
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
,
|
|
743
|
+
"border-color": {
|
|
744
|
+
|
|
745
|
+
"tag": "border-color",
|
|
746
|
+
"keys": ["palette",
|
|
747
|
+
"gray"],
|
|
748
|
+
"levelsLinked": {
|
|
749
|
+
"gray": ["getGraySteps(8, #f4f4f4, #999)"], "scheme": ["discrete", "success", "info", "warning", "alert", "error"], "palette": ["yellow", "orange", "red", "magenta", "purple", "green", "teal", "blue", "dark"]
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
,
|
|
753
|
+
"about": "border colors are slightly darker to maximize surrounding effect"
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
754
758
|
}
|
|
755
759
|
}
|
|
756
760
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
$width: if($mq_size_value==180 , $mq_min_size_value , $mq_size_value);
|
|
27
27
|
|
|
28
28
|
// @debug (#{$type-width}-width: $width + rem) ;
|
|
29
|
-
@media only screen and (#{$type-width}-width: $width +
|
|
29
|
+
@media only screen and (#{$type-width}-width: $width + px) {
|
|
30
30
|
@content;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@use 'animation-build' as build;
|
|
1
|
+
// @use 'animation-build' as build;
|
|
2
2
|
|
|
3
|
-
@include build.buildAnimation();
|
|
3
|
+
// @include build.buildAnimation();
|
|
@@ -57,7 +57,7 @@ $css-shorthands: (
|
|
|
57
57
|
|
|
58
58
|
//
|
|
59
59
|
@if ($css_prop== "padding" or $css_prop== "margin") {
|
|
60
|
-
$computed_value: var(--box-
|
|
60
|
+
$computed_value: var(--box-unit-#{$grid_size_value});
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
// complex write method: 1px value
|
|
@@ -72,7 +72,7 @@ $css-shorthands: (
|
|
|
72
72
|
$iterator: $box-sizes-config;
|
|
73
73
|
@for $grid_size_value from 1 through $iterator {
|
|
74
74
|
$css_size_value: ($grid_size_value * $box-unit-size-config) + $box-unit-config;
|
|
75
|
-
--box-
|
|
75
|
+
--box-unit-#{$grid_size_value} : #{$css_size_value};
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -7,11 +7,11 @@ $config: cssfabric-config.$cssfabric-config;
|
|
|
7
7
|
|
|
8
8
|
$_media_quey_sizes: map-get($config, media_quey_sizes);
|
|
9
9
|
|
|
10
|
-
// builder
|
|
10
|
+
// responsive builder here
|
|
11
11
|
$min_value: 0;
|
|
12
12
|
|
|
13
13
|
@each $mq_size_key, $mq_size_value in $_media_quey_sizes {
|
|
14
|
-
@include utils.
|
|
14
|
+
@include utils.fabricResponsiveEncloser($mq_size_value, $min_value) {
|
|
15
15
|
@include build.buildBox($mq_size_key);
|
|
16
16
|
}
|
|
17
17
|
$min_value: $mq_size_value;
|
|
@@ -16,7 +16,7 @@ $min_value: 0;
|
|
|
16
16
|
|
|
17
17
|
@each $mq_size_key,
|
|
18
18
|
$mq_size_value in $_media_quey_sizes {
|
|
19
|
-
@include utils.
|
|
19
|
+
@include utils.fabricResponsiveEncloser($mq_size_value,$min_value) {
|
|
20
20
|
@include build.buildColor($mq_size_key);
|
|
21
21
|
}
|
|
22
22
|
$min_value: $mq_size_value;
|
|
@@ -21,7 +21,7 @@ $grow-shrink-steps: map-get($flex-config, grow-shrink-steps);
|
|
|
21
21
|
|
|
22
22
|
$grid-code-sep: #{$grid-code}#{$sep};
|
|
23
23
|
|
|
24
|
-
@mixin makeGrid($mqKey) {
|
|
24
|
+
@mixin makeGrid($mqKey) {
|
|
25
25
|
$prefix: if($mqKey, #{$grid-code}-#{$mqKey}, #{$grid-code});
|
|
26
26
|
$h_prop: #{$prefix}#{$sep}#{$grid-h};
|
|
27
27
|
$v_prop: #{$prefix}#{$sep}#{$grid-v};
|
|
@@ -30,6 +30,7 @@ $grid-code-sep: #{$grid-code}#{$sep};
|
|
|
30
30
|
display: flex;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
.#{$grid-code},
|
|
33
34
|
.#{$h_prop} {
|
|
34
35
|
display: flex;
|
|
35
36
|
flex-direction: row;
|
|
@@ -38,39 +39,37 @@ $grid-code-sep: #{$grid-code}#{$sep};
|
|
|
38
39
|
flex: 1 1 0;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
&.#{$grid-code-sep}align-middle {
|
|
42
43
|
align-items: center;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
&.#{$grid-code-sep}align-top {
|
|
46
47
|
align-items: flex-start;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
// justify-content: flex-start;
|
|
50
|
+
&.#{$grid-code-sep}align-left {
|
|
51
51
|
align-items: flex-start;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
&.#{$grid-code-sep}align-right {
|
|
55
55
|
justify-content: flex-end;
|
|
56
|
-
// align-items: end;
|
|
57
56
|
}
|
|
58
57
|
|
|
59
|
-
|
|
58
|
+
&.#{$grid-code-sep}align-bottom {
|
|
60
59
|
align-items: flex-end;
|
|
61
60
|
}
|
|
62
61
|
|
|
63
|
-
|
|
62
|
+
&.#{$grid-code-sep}align-center {
|
|
64
63
|
justify-content: center;
|
|
65
64
|
}
|
|
66
65
|
|
|
67
|
-
|
|
66
|
+
&.#{$grid-code-sep}align-middle-center {
|
|
68
67
|
justify-content: center;
|
|
69
68
|
align-content: center;
|
|
70
69
|
align-items: center;
|
|
71
70
|
}
|
|
72
71
|
|
|
73
|
-
|
|
72
|
+
&.#{$grid-code-sep}align-stretch {
|
|
74
73
|
color: blue;
|
|
75
74
|
align-items: stretch;
|
|
76
75
|
}
|
|
@@ -85,85 +84,67 @@ $grid-code-sep: #{$grid-code}#{$sep};
|
|
|
85
84
|
max-height: 100%;
|
|
86
85
|
}
|
|
87
86
|
|
|
88
|
-
|
|
87
|
+
&.#{$grid-code-sep}align-middle {
|
|
89
88
|
justify-content: center;
|
|
90
89
|
}
|
|
91
90
|
|
|
92
|
-
|
|
91
|
+
&.#{$grid-code-sep}align-top {
|
|
93
92
|
justify-content: flex-start;
|
|
94
93
|
}
|
|
95
94
|
|
|
96
|
-
|
|
95
|
+
&.#{$grid-code-sep}align-left {
|
|
97
96
|
align-items: flex-start;
|
|
98
97
|
}
|
|
99
98
|
|
|
100
|
-
|
|
99
|
+
&.#{$grid-code-sep}align-right {
|
|
101
100
|
align-items: flex-end;
|
|
102
101
|
}
|
|
103
102
|
|
|
104
|
-
|
|
103
|
+
&.#{$grid-code-sep}align-bottom {
|
|
105
104
|
justify-content: flex-end;
|
|
106
105
|
}
|
|
107
106
|
|
|
108
|
-
|
|
107
|
+
&.#{$grid-code-sep}align-center {
|
|
109
108
|
align-items: center;
|
|
110
109
|
}
|
|
111
110
|
|
|
112
|
-
|
|
111
|
+
&.#{$grid-code-sep}align-middle-center {
|
|
113
112
|
align-items: center;
|
|
114
113
|
justify-content: center;
|
|
115
114
|
}
|
|
116
115
|
|
|
117
|
-
|
|
116
|
+
&.#{$grid-code-sep}align-stretch {
|
|
118
117
|
color: red;
|
|
119
118
|
align-items: stretch;
|
|
120
119
|
}
|
|
121
120
|
}
|
|
122
121
|
|
|
123
|
-
.#{$h_prop},
|
|
124
|
-
.#{$v_prop} {
|
|
125
|
-
box-sizing: border-box;
|
|
126
|
-
|
|
127
|
-
& > * {
|
|
128
|
-
box-sizing: border-box;
|
|
129
|
-
}
|
|
130
122
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
123
|
+
.#{$grid-code-sep}inline {
|
|
124
|
+
display: inline-flex;
|
|
125
|
+
}
|
|
134
126
|
|
|
135
|
-
|
|
136
|
-
|
|
127
|
+
// wrap rules
|
|
128
|
+
.#{$grid-code} {
|
|
129
|
+
@each $fabricRule, $value in map-get($cssProps, flexWrap) {
|
|
130
|
+
@include utils.fabricAttributes('&'+$sep, $fabricRule, 'flex-wrap', $value);
|
|
137
131
|
}
|
|
132
|
+
}
|
|
138
133
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
& .#{$grid-code-sep}shrink#{$sep}#{$i} {
|
|
145
|
-
flex-shrink: $i;
|
|
146
|
-
}
|
|
134
|
+
// align-self rules for children */
|
|
135
|
+
.self {
|
|
136
|
+
@each $fabricRule, $value in map-get($cssItemsProps, self) {
|
|
137
|
+
@include utils.fabricAttributes('&-', $fabricRule, 'align-self', $value);
|
|
147
138
|
}
|
|
148
139
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
.#{$v_prop} {
|
|
153
|
-
// wrap rules
|
|
154
|
-
&.#{$grid-code} {
|
|
155
|
-
@each $fabricRule, $value in map-get($cssProps, flexWrap) {
|
|
156
|
-
@include utils.fabricAttributes('&'+$sep, $fabricRule, 'flex-wrap', $value);
|
|
157
|
-
}
|
|
140
|
+
@for $i from 0 through $grow-shrink-steps {
|
|
141
|
+
.#{$grid-code-sep}grow#{$sep}#{$i} {
|
|
142
|
+
flex-grow: #{$i};
|
|
158
143
|
}
|
|
159
144
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
@each $fabricRule, $value in map-get($cssItemsProps, self) {
|
|
163
|
-
@include utils.fabricAttributes('&-', $fabricRule, 'align-self', $value);
|
|
164
|
-
}
|
|
145
|
+
.#{$grid-code-sep}shrink#{$sep}#{$i} {
|
|
146
|
+
flex-shrink: $i;
|
|
165
147
|
}
|
|
166
148
|
}
|
|
167
149
|
|
|
168
|
-
|
|
169
150
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use '../../utils';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
$_grow-shrink-steps:
|
|
4
|
+
$_grow-shrink-steps: 2;
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
$_grid-align: (top middle bottom left right center middle-center stretch);
|
|
@@ -72,16 +72,13 @@ $flex-docs: (// add align-middle non generated className // grow + shrink
|
|
|
72
72
|
classNames: (
|
|
73
73
|
align: $_grid-align,
|
|
74
74
|
grid:utils.getObjectKeys(map-get($_cssProps, flexWrap)), // add inline !
|
|
75
|
-
//items: utils.getObjectKeys(map-get($_cssProps, grid-items)),
|
|
76
|
-
//content:utils.getObjectKeys(map-get($_cssProps, grid-content)),
|
|
77
|
-
//justify:utils.getObjectKeys(map-get($_cssProps, grid-justify))
|
|
78
75
|
),
|
|
79
|
-
about: "a classic grid system, and hey, it gets height !"
|
|
76
|
+
about: "a classic flex grid system, and hey, it gets height !"
|
|
80
77
|
),
|
|
81
78
|
self:(
|
|
82
79
|
tag: self,
|
|
83
80
|
keys: utils.getObjectKeys(map-get($_cssItemsProps, self)),
|
|
84
|
-
about: "
|
|
81
|
+
about: "flex children specific classnames"
|
|
85
82
|
)
|
|
86
83
|
)
|
|
87
84
|
);
|