@medyll/cssfabric 0.0.12 → 0.0.16
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/.idea/cssfabric.iml +1 -4
- package/bin/index.js +2 -0
- package/css/mystyles.css +280 -0
- package/css/mystyles.css.map +1 -0
- package/lib/scripts/index.d.ts +2 -0
- package/lib/scripts/index.js +6 -0
- 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.css +36 -36
- package/lib/styles/core/color/color.min.css +1 -1
- package/lib/styles/core/color/color.responsive.css +185 -1110
- 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.responsive.css +5 -66
- 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.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 +47 -47
- package/lib/styles/core/vars.min.css +1 -1
- package/lib/styles/core/zindex/zindex.css +16 -252
- package/lib/styles/core/zindex/zindex.min.css +1 -1
- package/lib/styles/cssfabric.css +1277 -3723
- package/lib/styles/cssfabric.min.css +7 -7
- package/lib/styles/cssfabric.responsive.css +13007 -17132
- package/lib/styles/cssfabric.responsive.min.css +9 -9
- package/package.json +6 -4
- package/src/_generated/export.variables.json +28 -24
- package/src/_generated/readme.md +0 -0
- package/src/cssfabric/_utils.scss +4 -16
- package/src/cssfabric/modules/_cssfabric-config.scss +14 -13
- package/src/cssfabric/modules/animation/animation.scss +2 -2
- package/src/cssfabric/modules/base/_base-vars.scss +4 -2
- package/src/cssfabric/modules/box/_box-build.scss +2 -2
- package/src/cssfabric/modules/box/box-responsive.scss +1 -1
- package/src/cssfabric/modules/color/_color-build.scss +1 -1
- package/src/cssfabric/modules/color/color.scss +8 -2
- 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.scss +4 -1
- package/src/cssfabric/modules/menu/menu.scss +5 -2
- package/src/cssfabric/modules/overflow/overflow.scss +2 -0
- package/src/cssfabric/modules/scale/_scale-build.scss +1 -1
- package/src/cssfabric/modules/scale/scale.scss +5 -0
- package/src/cssfabric/modules/table/table.scss +7 -2
- package/src/cssfabric/modules/text/text.scss +3 -2
- package/src/cssfabric/modules/theme/_theme-build.scss +4 -5
- package/src/cssfabric/modules/theme/_theme-vars.scss +11 -3
- package/src/cssfabric/modules/theme/theme.scss +2 -1
- package/src/cssfabric/modules/vars.scss +5 -7
- package/src/cssfabric/modules/zindex/_zindex-vars.scss +8 -13
- package/src/cssfabric/modules/zindex/zindex.scss +6 -9
- package/src/scripts/index.d.ts +2 -0
- package/src/scripts/index.ts +8 -0
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/lib/styles/core/main.css +0 -2263
- package/src/cssfabric/modules/animation/_animation-build.scss +0 -121
- package/src/cssfabric/modules/main.scss +0 -3
package/package.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medyll/cssfabric",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"private": false,
|
|
5
|
-
"
|
|
5
|
+
"bin": {
|
|
6
|
+
"@medyll/cssfabric": "./bin/index.js"
|
|
7
|
+
},
|
|
6
8
|
"repository": "https://github.com/medyll/cssfabric",
|
|
7
9
|
"scripts": {
|
|
8
10
|
"dev": "tsc -w || exit 1",
|
|
@@ -12,7 +14,8 @@
|
|
|
12
14
|
"watch-json": "gulp watchJson",
|
|
13
15
|
"watch-include": "gulp watchInclude",
|
|
14
16
|
"watch-readme": "gulp watchReadme",
|
|
15
|
-
"task-download": "gulp taskDownload"
|
|
17
|
+
"task-download": "gulp taskDownload",
|
|
18
|
+
"css-build": "sass src/cssfabric/modules/vars.scss css/mystyles.css"
|
|
16
19
|
},
|
|
17
20
|
"dependencies": {
|
|
18
21
|
"chokidar": "^3.5.1",
|
|
@@ -38,7 +41,6 @@
|
|
|
38
41
|
"gulp-download": "0.0.1",
|
|
39
42
|
"gulp-download-stream": "^0.0.6",
|
|
40
43
|
"gulp-ignore": "^3.0.0",
|
|
41
|
-
"gulp-jsbeautifier": "^3.0.1",
|
|
42
44
|
"gulp-json-modify": "^1.0.2",
|
|
43
45
|
"gulp-json-transform": "^0.4.7",
|
|
44
46
|
"gulp-merge-json": "^2.1.1",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"bg-themed",
|
|
197
197
|
"border-color"],
|
|
198
198
|
"theme": {
|
|
199
|
-
"primary": "#0288d1", "foreground": "#282230", "background": "#f1f1f1"
|
|
199
|
+
"primary": "#0288d1", "secondary": "#D14B02", "tertiary": "#88D102", "foreground": "#282230", "background": "#f1f1f1"
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
,
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
"horCode": "h",
|
|
307
307
|
"vertCode": "v",
|
|
308
308
|
"gridFullWidth": "main",
|
|
309
|
-
"grow-shrink-steps":
|
|
309
|
+
"grow-shrink-steps": 2,
|
|
310
310
|
"cssProps": {
|
|
311
311
|
"flexWrap": {
|
|
312
312
|
"wrap": "wrap", "wrap-reverse": "wrap-reverse"
|
|
@@ -354,12 +354,12 @@
|
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
,
|
|
357
|
-
"about": "a classic grid system, and hey, it gets height !"
|
|
357
|
+
"about": "a classic flex grid system, and hey, it gets height !"
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
,
|
|
361
361
|
"self": {
|
|
362
|
-
"tag": "self", "keys": ["start", "end", "stretch"], "about": "
|
|
362
|
+
"tag": "self", "keys": ["start", "end", "stretch"], "about": "flex children specific classnames"
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
}
|
|
@@ -402,6 +402,10 @@
|
|
|
402
402
|
"start": "flex-start", "end": "flex-end", "stretch": "stretch"
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
+
|
|
406
|
+
,
|
|
407
|
+
"grid-max-rows": 8,
|
|
408
|
+
"grid-max-cols": 12
|
|
405
409
|
}
|
|
406
410
|
|
|
407
411
|
,
|
|
@@ -422,7 +426,7 @@
|
|
|
422
426
|
}
|
|
423
427
|
|
|
424
428
|
,
|
|
425
|
-
"about": "a classic grid system
|
|
429
|
+
"about": "a classic grid system"
|
|
426
430
|
}
|
|
427
431
|
|
|
428
432
|
,
|
|
@@ -685,6 +689,23 @@
|
|
|
685
689
|
}
|
|
686
690
|
}
|
|
687
691
|
|
|
692
|
+
,
|
|
693
|
+
"zindex": {
|
|
694
|
+
"_data": {
|
|
695
|
+
"z_groups": ["a", "z"]
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
,
|
|
699
|
+
"_metadata": {
|
|
700
|
+
"title": "zindex", "tag": "zI", "description": "cssfabric zindex module to set z-index on all html elements"
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
,
|
|
704
|
+
"_docs": {
|
|
705
|
+
"z_groups": "_"
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
688
709
|
,
|
|
689
710
|
"theme": {
|
|
690
711
|
"_data": {
|
|
@@ -692,7 +713,7 @@
|
|
|
692
713
|
"moduleName": "theme",
|
|
693
714
|
"moduleNameShort": "theme",
|
|
694
715
|
"color-default-config": {
|
|
695
|
-
"primary": "#0288d1", "foreground": "#282230", "background": "#f1f1f1"
|
|
716
|
+
"primary": "#0288d1", "secondary": "#D14B02", "tertiary": "#88D102", "foreground": "#282230", "background": "#f1f1f1"
|
|
696
717
|
}
|
|
697
718
|
|
|
698
719
|
,
|
|
@@ -709,7 +730,7 @@
|
|
|
709
730
|
"bg",
|
|
710
731
|
"border"],
|
|
711
732
|
"color": {
|
|
712
|
-
"primary": "#0288d1", "primary-light": "#23b0fd", "primary-lighter": "#6ecbfe", "primary-dark": "#02679e", "primary-darker": "#01466c", "primary-complement": "#d14b02", "primary-invert": "#fd772e", "secondary": "#
|
|
733
|
+
"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
734
|
}
|
|
714
735
|
}
|
|
715
736
|
|
|
@@ -734,23 +755,6 @@
|
|
|
734
755
|
}
|
|
735
756
|
}
|
|
736
757
|
}
|
|
737
|
-
|
|
738
|
-
,
|
|
739
|
-
"zindex": {
|
|
740
|
-
"_data": {
|
|
741
|
-
"z_groups": ["a", "b", "c", "d", "e", "f", "g"]
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
,
|
|
745
|
-
"_metadata": {
|
|
746
|
-
"title": "zindex", "tag": "zI", "description": "cssfabric zindex module to set z-index on all html elements"
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
,
|
|
750
|
-
"_docs": {
|
|
751
|
-
"z_groups": "_"
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
758
|
}
|
|
755
759
|
}
|
|
756
760
|
}
|
|
File without changes
|
|
@@ -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
|
}
|
|
@@ -95,19 +95,6 @@
|
|
|
95
95
|
@return $switch-named;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
@function themeDeclinationColors($theme-color: primary, $theme-color-primary) {
|
|
99
|
-
$switch-theme-color: map-get(
|
|
100
|
-
(
|
|
101
|
-
primary: $theme-color-primary,
|
|
102
|
-
secondary: complement($theme-color-primary),
|
|
103
|
-
tertiary: complement(complement($theme-color-primary))
|
|
104
|
-
),
|
|
105
|
-
$theme-color
|
|
106
|
-
);
|
|
107
|
-
|
|
108
|
-
@return $switch-theme-color;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
98
|
@function getColorPropertyType($fabric-tag) {
|
|
112
99
|
/** get property for #{$fabric-tag} */
|
|
113
100
|
@return map-get(
|
|
@@ -124,8 +111,9 @@
|
|
|
124
111
|
|
|
125
112
|
@function getThemeLevels($declinations-config, $color_primary) {
|
|
126
113
|
$out: ();
|
|
127
|
-
|
|
128
|
-
|
|
114
|
+
// primary secondary tertiary
|
|
115
|
+
@each $color-grade,$color-value in $declinations-config {
|
|
116
|
+
$color: $color-value;
|
|
129
117
|
$out: map.set($out, $color-grade, $color);
|
|
130
118
|
@each $theme-level in (light lighter dark darker complement invert) {
|
|
131
119
|
$new-theme-level: #{$color-grade}-#{$theme-level};
|
|
@@ -21,12 +21,11 @@ $cssfabric-config: (
|
|
|
21
21
|
full: 100%
|
|
22
22
|
),
|
|
23
23
|
media_quey_sizes: (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
sm: 35.7
|
|
24
|
+
xxl: 1300,
|
|
25
|
+
xl: 1200,
|
|
26
|
+
lg: 960,
|
|
27
|
+
md: 760,
|
|
28
|
+
sm: 0
|
|
30
29
|
),
|
|
31
30
|
themes:(
|
|
32
31
|
light:(
|
|
@@ -42,6 +41,8 @@ $cssfabric-config: (
|
|
|
42
41
|
),
|
|
43
42
|
theme: (
|
|
44
43
|
primary: #0288d1,
|
|
44
|
+
secondary: #D14B02,
|
|
45
|
+
tertiary: #88D102,
|
|
45
46
|
foreground: #282230,
|
|
46
47
|
background: #f1f1f1,
|
|
47
48
|
),
|
|
@@ -73,17 +74,17 @@ $cssfabric-config: (
|
|
|
73
74
|
);
|
|
74
75
|
|
|
75
76
|
@function getGraySteps($steps, $gray-start, $gray-end) {
|
|
76
|
-
|
|
77
|
+
$gray-schemes: ();
|
|
77
78
|
|
|
78
|
-
|
|
79
|
+
@for $i from 0 through $steps {
|
|
79
80
|
|
|
80
|
-
|
|
81
|
+
$color: mix($gray-end, $gray-start, math.div($i , $steps) * 100%);
|
|
81
82
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
@debug $gray-schemes;
|
|
83
|
+
$gray-schemes: map.set($gray-schemes, #{($i+1) * 100}, $color);
|
|
84
|
+
}
|
|
85
|
+
@debug $gray-schemes;
|
|
85
86
|
|
|
86
|
-
|
|
87
|
+
@return $gray-schemes;
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
$cssfabric-docs: ();
|
|
@@ -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
|
|
|
@@ -103,6 +103,6 @@ $gray-schemes: utils.getGraySteps($color-gray-steps, $color-gray-start, $color-g
|
|
|
103
103
|
@each $color-type-key in $color-types-config {
|
|
104
104
|
@include fabricColors("palette", $color-palette, $color-type-key, $mq_size_key, true);
|
|
105
105
|
@include fabricColors("scheme", $color-schemes, $color-type-key, $mq_size_key);
|
|
106
|
-
@include fabricColors("
|
|
106
|
+
@include fabricColors("grey", $gray-schemes, $color-type-key, $mq_size_key);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -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
|
);
|
|
@@ -19,6 +19,9 @@ $gridFullWidth: map-get($grid-config, gridFullWidth);
|
|
|
19
19
|
|
|
20
20
|
$grow-shrink-steps: map-get($grid-config, grow-shrink-steps);
|
|
21
21
|
|
|
22
|
+
$grid-max-cols: map-get($grid-config, grid-max-cols);
|
|
23
|
+
$grid-max-rows: map-get($grid-config, grid-max-rows);
|
|
24
|
+
|
|
22
25
|
$grid-code-sep: #{$grid-code}#{$sep};
|
|
23
26
|
|
|
24
27
|
@mixin makeGrid($mqKey) {
|
|
@@ -26,66 +29,56 @@ $grid-code-sep: #{$grid-code}#{$sep};
|
|
|
26
29
|
$h_prop: #{$prefix}#{$sep}#{$grid-h};
|
|
27
30
|
$v_prop: #{$prefix}#{$sep}#{$grid-v};
|
|
28
31
|
|
|
29
|
-
|
|
30
|
-
display: grid;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.#{$h_prop} {
|
|
32
|
+
.#{$grid-code} {
|
|
34
33
|
display: grid;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
& > .#{$grid-code-sep}#{$gridFullWidth} {
|
|
38
|
-
flex: 1 1 0;
|
|
34
|
+
&-auto-flow-cols {
|
|
35
|
+
grid-auto-flow: column;
|
|
39
36
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.#{$v_prop} {
|
|
45
|
-
display: grid;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
|
|
48
|
-
& > .#{$grid-code-sep}#{$gridFullWidth} {
|
|
49
|
-
flex: 1 1 0;
|
|
50
|
-
max-height: 100%;
|
|
37
|
+
&-auto-cols-auto {
|
|
38
|
+
grid-auto-columns: auto;
|
|
51
39
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
justify-content: center;
|
|
40
|
+
&-auto-cols-min {
|
|
41
|
+
grid-auto-columns: min-content;
|
|
55
42
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
& > *:not(.#{$grid-code-sep}#{$gridFullWidth}) {
|
|
63
|
-
flex: 0 0 auto;
|
|
43
|
+
&-auto-cols-max {
|
|
44
|
+
grid-auto-columns: max-content;
|
|
45
|
+
}
|
|
46
|
+
&-auto-cols {
|
|
47
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
64
48
|
}
|
|
65
49
|
|
|
66
|
-
|
|
67
|
-
|
|
50
|
+
&-auto-flow-rows {
|
|
51
|
+
grid-auto-flow: row;
|
|
52
|
+
}
|
|
53
|
+
&-auto-rows-auto {
|
|
54
|
+
grid-auto-rows: auto;
|
|
55
|
+
}
|
|
56
|
+
&-auto-rows-min {
|
|
57
|
+
grid-auto-rows: min-content;
|
|
58
|
+
}
|
|
59
|
+
&-auto-rows-max {
|
|
60
|
+
grid-auto-rows: max-content;
|
|
61
|
+
}
|
|
62
|
+
&-auto-rows {
|
|
63
|
+
grid-auto-rows: minmax(0, 1fr);
|
|
68
64
|
}
|
|
69
65
|
|
|
66
|
+
|
|
70
67
|
}
|
|
71
68
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
69
|
+
.#{$grid-code-sep}inline {
|
|
70
|
+
display: inline-grid;
|
|
71
|
+
}
|
|
72
|
+
/* template-columns */
|
|
73
|
+
@for $col-row from 1 through $grid-max-cols {
|
|
74
|
+
.#{$grid-code}-cols-#{$col-row} {
|
|
75
|
+
grid-template-columns: repeat(#{$col-row}, minmax(0, 1fr));
|
|
80
76
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
77
|
+
}
|
|
78
|
+
/* template-rows */
|
|
79
|
+
@for $col-row from 1 through $grid-max-rows {
|
|
80
|
+
.#{$grid-code}-rows-#{$col-row} {
|
|
81
|
+
grid-template-rows: repeat(#{$col-row}, minmax(0, 1fr));
|
|
87
82
|
}
|
|
88
83
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
84
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
$_grow-shrink-steps: 4;
|
|
5
5
|
|
|
6
|
+
$grid-max-cols: 12;
|
|
7
|
+
$grid-max-rows: 8;
|
|
6
8
|
|
|
7
9
|
$_grid-align: (top middle bottom left right center middle-center stretch);
|
|
8
10
|
|
|
@@ -61,7 +63,9 @@ $grid-config: (
|
|
|
61
63
|
gridFullWidth: main,
|
|
62
64
|
grow-shrink-steps:$_grow-shrink-steps,
|
|
63
65
|
cssProps: $_cssProps,
|
|
64
|
-
cssItemsProps: $_cssItemsProps
|
|
66
|
+
cssItemsProps: $_cssItemsProps,
|
|
67
|
+
grid-max-rows: $grid-max-rows,
|
|
68
|
+
grid-max-cols: $grid-max-cols
|
|
65
69
|
);
|
|
66
70
|
|
|
67
71
|
$grid-docs: (// add align-middle non generated className // grow + shrink
|
|
@@ -72,11 +76,8 @@ $grid-docs: (// add align-middle non generated className // grow + shrink
|
|
|
72
76
|
classNames: (
|
|
73
77
|
align: $_grid-align,
|
|
74
78
|
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
79
|
),
|
|
79
|
-
about: "a classic grid system
|
|
80
|
+
about: "a classic grid system"
|
|
80
81
|
),
|
|
81
82
|
self:(
|
|
82
83
|
tag: self,
|