@medyll/cssfabric 0.1.0 → 0.2.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.
Files changed (202) hide show
  1. package/README.md +38 -240
  2. package/_generated/cssFabric.vars.json +13 -0
  3. package/{src/_generated → _generated}/export.variables.md +0 -0
  4. package/{src/_generated → _generated}/index.d.ts +0 -0
  5. package/{src/_generated → _generated}/readme.md +0 -0
  6. package/init/importCssVars.d.ts +1 -0
  7. package/init/importCssVars.js +2 -0
  8. package/package.json +113 -69
  9. package/{lib/scripts → scripts}/cssfabric.d.ts +0 -0
  10. package/scripts/cssfabric.js +43 -0
  11. package/{lib/scripts → scripts}/cssfabricClassNames.d.ts +0 -0
  12. package/{lib/scripts → scripts}/cssfabricClassNames.js +5 -9
  13. package/{src/scripts → scripts}/index.d.ts +0 -0
  14. package/scripts/index.js +4 -0
  15. package/{lib/scripts → scripts}/utils.d.ts +0 -0
  16. package/{lib/scripts → scripts}/utils.js +1 -3
  17. package/{lib/styles/core → styles}/animation/animation.css +0 -0
  18. package/{lib/styles/core → styles}/animation/animation.min.css +0 -0
  19. package/{lib/styles/core → styles}/base/base.css +0 -7
  20. package/styles/base/base.min.css +1 -0
  21. package/styles/box/box.css +1379 -0
  22. package/styles/box/box.min.css +1 -0
  23. package/styles/box/box.responsive.css +5524 -0
  24. package/styles/box/box.responsive.min.css +1 -0
  25. package/styles/color/color.css +1565 -0
  26. package/styles/color/color.min.css +1 -0
  27. package/styles/color/color.responsive.css +6268 -0
  28. package/styles/color/color.responsive.min.css +1 -0
  29. package/styles/cssfabric.css +61792 -0
  30. package/styles/cssfabric.min.css +168 -0
  31. package/styles/cssfabric.responsive.css +200596 -0
  32. package/styles/cssfabric.responsive.min.css +108 -0
  33. package/{lib/styles/core → styles}/flex/flex.css +0 -0
  34. package/styles/flex/flex.min.css +1 -0
  35. package/{lib/styles/core → styles}/flex/flex.responsive.css +0 -126
  36. package/styles/flex/flex.responsive.min.css +1 -0
  37. package/{lib/styles/core → styles}/grid/grid.css +0 -0
  38. package/styles/grid/grid.min.css +1 -0
  39. package/{lib/styles/core → styles}/grid/grid.responsive.css +0 -121
  40. package/styles/grid/grid.responsive.min.css +1 -0
  41. package/{lib/styles/core → styles}/menu/menu.css +16 -12
  42. package/styles/menu/menu.min.css +1 -0
  43. package/{lib/styles/core → styles}/menu/menu.responsive.css +64 -129
  44. package/styles/menu/menu.responsive.min.css +1 -0
  45. package/{lib/styles/core → styles}/overflow/overflow.css +0 -0
  46. package/{lib/styles/core → styles}/overflow/overflow.min.css +0 -0
  47. package/{lib/styles/core → styles}/overflow/overflow.responsive.css +0 -61
  48. package/styles/overflow/overflow.responsive.min.css +1 -0
  49. package/{lib/styles/core → styles}/scale/scale.css +286 -206
  50. package/styles/scale/scale.min.css +1 -0
  51. package/styles/scale/scale.responsive.css +2884 -0
  52. package/styles/scale/scale.responsive.min.css +1 -0
  53. package/{lib/styles/core → styles}/table/table.css +0 -0
  54. package/styles/table/table.min.css +1 -0
  55. package/{lib/styles/core → styles}/table/table.responsive.css +0 -74
  56. package/styles/table/table.responsive.min.css +1 -0
  57. package/{lib/styles/core → styles}/text/text.css +4 -0
  58. package/styles/text/text.min.css +1 -0
  59. package/styles/text/text.responsive.css +196 -0
  60. package/styles/text/text.responsive.min.css +1 -0
  61. package/{lib/styles/core → styles}/theme/theme.css +0 -0
  62. package/{lib/styles/core → styles}/theme/theme.min.css +0 -0
  63. package/styles/vars.css +414 -0
  64. package/styles/vars.min.css +1 -0
  65. package/{lib/styles/core → styles}/zindex/zindex.css +0 -0
  66. package/{lib/styles/core → styles}/zindex/zindex.min.css +0 -0
  67. package/.idea/cssfabric.iml +0 -8
  68. package/.idea/misc.xml +0 -9
  69. package/.idea/modules.xml +0 -8
  70. package/.idea/vcs.xml +0 -6
  71. package/.vscode/settings.json +0 -24
  72. package/bin/index.js +0 -7
  73. package/cssfabric.config.js +0 -3
  74. package/cssfabric.json +0 -8
  75. package/gulpfile.js +0 -598
  76. package/lib/_generated/export.variables.json +0 -583
  77. package/lib/index.d.ts +0 -2
  78. package/lib/index.js +0 -7
  79. package/lib/scripts/cssfabric.js +0 -48
  80. package/lib/scripts/index.d.ts +0 -2
  81. package/lib/scripts/index.js +0 -6
  82. package/lib/styles/core/base/base.min.css +0 -1
  83. package/lib/styles/core/box/box.css +0 -2449
  84. package/lib/styles/core/box/box.min.css +0 -1
  85. package/lib/styles/core/box/box.responsive.css +0 -12255
  86. package/lib/styles/core/box/box.responsive.min.css +0 -1
  87. package/lib/styles/core/color/color.css +0 -923
  88. package/lib/styles/core/color/color.min.css +0 -1
  89. package/lib/styles/core/color/color.responsive.css +0 -4625
  90. package/lib/styles/core/color/color.responsive.min.css +0 -1
  91. package/lib/styles/core/flex/flex.min.css +0 -1
  92. package/lib/styles/core/flex/flex.responsive.min.css +0 -1
  93. package/lib/styles/core/grid/grid.min.css +0 -1
  94. package/lib/styles/core/grid/grid.responsive.min.css +0 -1
  95. package/lib/styles/core/main.min.css +0 -1
  96. package/lib/styles/core/menu/menu.min.css +0 -1
  97. package/lib/styles/core/menu/menu.responsive.min.css +0 -1
  98. package/lib/styles/core/overflow/overflow.responsive.min.css +0 -1
  99. package/lib/styles/core/scale/scale.min.css +0 -1
  100. package/lib/styles/core/scale/scale.responsive.css +0 -3205
  101. package/lib/styles/core/scale/scale.responsive.min.css +0 -1
  102. package/lib/styles/core/table/table.min.css +0 -1
  103. package/lib/styles/core/table/table.responsive.min.css +0 -1
  104. package/lib/styles/core/text/text.min.css +0 -1
  105. package/lib/styles/core/text/text.responsive.css +0 -745
  106. package/lib/styles/core/text/text.responsive.min.css +0 -1
  107. package/lib/styles/core/vars.css +0 -274
  108. package/lib/styles/core/vars.min.css +0 -1
  109. package/lib/styles/cssfabric.css +0 -5367
  110. package/lib/styles/cssfabric.min.css +0 -15
  111. package/lib/styles/cssfabric.responsive.css +0 -23164
  112. package/lib/styles/cssfabric.responsive.min.css +0 -9
  113. package/src/_generated/export.variables.json +0 -760
  114. package/src/cssfabric/_utils.scss +0 -193
  115. package/src/cssfabric/index.d.ts +0 -3
  116. package/src/cssfabric/modules/_cssfabric-config.scss +0 -93
  117. package/src/cssfabric/modules/_mixins.scss +0 -1
  118. package/src/cssfabric/modules/animation/_animation-vars.scss +0 -17
  119. package/src/cssfabric/modules/animation/animation.scss +0 -3
  120. package/src/cssfabric/modules/base/_base-vars.scss +0 -19
  121. package/src/cssfabric/modules/base/base.scss +0 -80
  122. package/src/cssfabric/modules/box/_box-build.scss +0 -268
  123. package/src/cssfabric/modules/box/_box-vars.scss +0 -119
  124. package/src/cssfabric/modules/box/box-responsive.scss +0 -18
  125. package/src/cssfabric/modules/box/box.scss +0 -3
  126. package/src/cssfabric/modules/color/_color-build.scss +0 -108
  127. package/src/cssfabric/modules/color/_color-vars.scss +0 -80
  128. package/src/cssfabric/modules/color/color-responsive.scss +0 -23
  129. package/src/cssfabric/modules/color/color.scss +0 -9
  130. package/src/cssfabric/modules/css-fabric.scss +0 -2
  131. package/src/cssfabric/modules/flex/_flex-build.scss +0 -150
  132. package/src/cssfabric/modules/flex/_flex-vars.scss +0 -84
  133. package/src/cssfabric/modules/flex/flex-responsive.scss +0 -25
  134. package/src/cssfabric/modules/flex/flex.scss +0 -3
  135. package/src/cssfabric/modules/grid/_grid-build.scss +0 -84
  136. package/src/cssfabric/modules/grid/_grid-vars.scss +0 -88
  137. package/src/cssfabric/modules/grid/grid-responsive.scss +0 -25
  138. package/src/cssfabric/modules/grid/grid.scss +0 -6
  139. package/src/cssfabric/modules/menu/_menu-build.scss +0 -119
  140. package/src/cssfabric/modules/menu/_menu-vars.scss +0 -29
  141. package/src/cssfabric/modules/menu/menu-responsive.scss +0 -19
  142. package/src/cssfabric/modules/menu/menu.scss +0 -6
  143. package/src/cssfabric/modules/overflow/_overflow-build.scss +0 -22
  144. package/src/cssfabric/modules/overflow/_overflow-vars.scss +0 -31
  145. package/src/cssfabric/modules/overflow/overflow-responsive.scss +0 -25
  146. package/src/cssfabric/modules/overflow/overflow.scss +0 -7
  147. package/src/cssfabric/modules/scale/_scale-build.scss +0 -129
  148. package/src/cssfabric/modules/scale/_scale-vars.scss +0 -75
  149. package/src/cssfabric/modules/scale/scale-responsive.scss +0 -23
  150. package/src/cssfabric/modules/scale/scale.scss +0 -8
  151. package/src/cssfabric/modules/table/_table-build.scss +0 -134
  152. package/src/cssfabric/modules/table/_table-vars.scss +0 -30
  153. package/src/cssfabric/modules/table/table-responsive.scss +0 -24
  154. package/src/cssfabric/modules/table/table.scss +0 -8
  155. package/src/cssfabric/modules/text/_text-build.scss +0 -109
  156. package/src/cssfabric/modules/text/_text-vars.scss +0 -87
  157. package/src/cssfabric/modules/text/text-responsive.scss +0 -25
  158. package/src/cssfabric/modules/text/text.scss +0 -6
  159. package/src/cssfabric/modules/theme/_theme-build.scss +0 -76
  160. package/src/cssfabric/modules/theme/_theme-vars.scss +0 -55
  161. package/src/cssfabric/modules/theme/theme.scss +0 -6
  162. package/src/cssfabric/modules/vars.scss +0 -118
  163. package/src/cssfabric/modules/zindex/_zindex-vars.scss +0 -14
  164. package/src/cssfabric/modules/zindex/zindex.scss +0 -15
  165. package/src/index.d.ts +0 -3
  166. package/src/index.ts +0 -4
  167. package/src/scripts/cssfabric.ts +0 -54
  168. package/src/scripts/cssfabricClassNames.ts +0 -216
  169. package/src/scripts/index.ts +0 -8
  170. package/src/scripts/utils.ts +0 -37
  171. package/src/vendor/index.d.ts +0 -3
  172. package/src/vendor/normalize/normalize.min.css +0 -2
  173. package/src/vendor/sass-json-export/CHANGELOG.md +0 -26
  174. package/src/vendor/sass-json-export/Gruntfile.js +0 -60
  175. package/src/vendor/sass-json-export/LICENSE +0 -20
  176. package/src/vendor/sass-json-export/README.md +0 -90
  177. package/src/vendor/sass-json-export/package.json +0 -60
  178. package/src/vendor/sass-json-export/stylesheets/encode/api/_json.scss +0 -26
  179. package/src/vendor/sass-json-export/stylesheets/encode/encode.scss +0 -17
  180. package/src/vendor/sass-json-export/stylesheets/encode/helpers/_quote.scss +0 -9
  181. package/src/vendor/sass-json-export/stylesheets/encode/mixins/_json.scss +0 -42
  182. package/src/vendor/sass-json-export/stylesheets/encode/types/_bool.scss +0 -7
  183. package/src/vendor/sass-json-export/stylesheets/encode/types/_color.scss +0 -8
  184. package/src/vendor/sass-json-export/stylesheets/encode/types/_list.scss +0 -14
  185. package/src/vendor/sass-json-export/stylesheets/encode/types/_map.scss +0 -15
  186. package/src/vendor/sass-json-export/stylesheets/encode/types/_null.scss +0 -7
  187. package/src/vendor/sass-json-export/stylesheets/encode/types/_number.scss +0 -8
  188. package/src/vendor/sass-json-export/stylesheets/encode/types/_string.scss +0 -8
  189. package/src/vendor/sass-json-export/stylesheets/sass-json-export.scss +0 -2
  190. package/src/vendor/sass-json-export/test/encode/_index.scss +0 -14
  191. package/src/vendor/sass-json-export/test/encode/api/_json.scss +0 -29
  192. package/src/vendor/sass-json-export/test/encode/helpers/_quote.scss +0 -6
  193. package/src/vendor/sass-json-export/test/encode/types/_bool.scss +0 -6
  194. package/src/vendor/sass-json-export/test/encode/types/_color.scss +0 -7
  195. package/src/vendor/sass-json-export/test/encode/types/_list.scss +0 -25
  196. package/src/vendor/sass-json-export/test/encode/types/_map.scss +0 -17
  197. package/src/vendor/sass-json-export/test/encode/types/_null.scss +0 -8
  198. package/src/vendor/sass-json-export/test/encode/types/_number.scss +0 -68
  199. package/src/vendor/sass-json-export/test/encode/types/_string.scss +0 -9
  200. package/src/vendor/sass-json-export/test/test.scss +0 -9
  201. package/tsconfig.json +0 -46
  202. package/webpack.config.js +0 -53
@@ -1,119 +0,0 @@
1
- @use '../../utils';
2
-
3
- $_unit-config: rem;
4
- $_border-unit-config: px;
5
- $_unit-size-config: 0.5;
6
- $_unit-border-size-config: 1;
7
-
8
- $_sizes-config: 32;
9
- $_sizes-border-config: 5;
10
-
11
- $_shadows-steps: 5;
12
- $_shadows-step-multiplier: 2;
13
-
14
- $_shadows-v_fact: 2.4;
15
- $_shadows-h_fact: 1.16;
16
-
17
- $_shadows-v_fact_2: 13.1;
18
- $_shadows-h_fact_2: 4.3;
19
-
20
- $shadow-factors: (
21
- v_fact:$_shadows-v_fact,
22
- h_fact:$_shadows-h_fact,
23
- v_fact_2:$_shadows-v_fact_2,
24
- h_fact_2:$_shadows-h_fact_2,
25
- );
26
-
27
- $_border-shorthands: (
28
- _: top bottom left right,
29
- t: top,
30
- b: bottom,
31
- l: left,
32
- r: right,
33
- all: top bottom left right,
34
- u: bottom left right,
35
- ii: left right,
36
- tb: top bottom
37
- );
38
-
39
- $_position-props: (
40
- abs: absolute,
41
- rel: relative,
42
- stat: static,
43
- fix: fixed,
44
- sticky: sticky
45
- );
46
-
47
- $_display-props: (
48
- block: block,
49
- none: none,
50
- inline: inline,
51
- block-inline: inline-block,
52
- flex-inline: inline-flex,
53
- tbl: table,
54
- tbl-row: table-row,
55
- tbl-cell: table-cell,
56
- tbl-column: table-column
57
- );
58
-
59
- $box-metadata: (
60
- title: "box",
61
- tag: "box",
62
- description: "cssfabric box module to set heights, paddings, margins and shadows on all html elements"
63
- );
64
-
65
- $box-config: (
66
- unit-config: $_unit-config,
67
- border-unit-config: $_border-unit-config,
68
- unit-size-config: $_unit-size-config,
69
- unit-border-size-config: $_unit-border-size-config,
70
- sizes-config: $_sizes-config,
71
- border-sizes-px-config: 5,
72
- shadows-steps: $_shadows-steps,
73
- shadows_step_multiplier: $_shadows-step-multiplier,
74
- //
75
- position-shorthand-config: pos,
76
- display-shorthand-config: dsp,
77
- shadow-shorthand-config: shad,
78
- border-shorthand-config: border,
79
- padding-shorthand-config: pad,
80
- margin-shorthand-config: marg,
81
- cssProps:(
82
- borderShorthands: $_border-shorthands,
83
- positionProps: $_position-props,
84
- displayProps: $_display-props
85
- )
86
- );
87
-
88
-
89
- $box-docs: (
90
- attributes:(
91
- padding: (
92
- tag: map-get($box-config, padding-shorthand-config),
93
- keys: utils.getObjectKeys($_border-shorthands),
94
- values: utils.getBoxIterator($_sizes-config, $_unit-config, $_unit-size-config),
95
- levels: ("_":utils.getObjectKeys(utils.getBoxIterator($_sizes-config, $_unit-config, $_unit-size-config))),
96
- about: "padding properties for html elements"
97
- ),
98
- margin: (
99
- tag: map-get($box-config, margin-shorthand-config),
100
- keys: utils.getObjectKeys($_border-shorthands),
101
- values: utils.getBoxIterator($_sizes-config, $_unit-config, $_unit-size-config),
102
- levels: ("_":utils.getObjectKeys(utils.getBoxIterator($_sizes-config, $_unit-config, $_unit-size-config))),
103
- about: "margin properties for html elements"
104
- ),
105
- border: (
106
- tag: map-get($box-config, border-shorthand-config),
107
- keys: utils.getObjectKeys($_border-shorthands),
108
- values: utils.getBoxIterator($_sizes-border-config, $_border-unit-config, $_unit-border-size-config),
109
- levels: ("_":utils.getObjectKeys(utils.getBoxIterator($_sizes-border-config, $_border-unit-config, $_unit-border-size-config))),
110
- about: "border properties for html elements"
111
- ),
112
- shadow: (
113
- tag: map-get($box-config, shadow-shorthand-config),
114
- values: utils.getShadowIterator($shadow-factors, 8),
115
- levels:("_": utils.getObjectKeys(utils.getShadowIterator($shadow-factors, 8))
116
- ),
117
- about: "applying shadows give depth and levels to your design"
118
- )
119
- ));
@@ -1,18 +0,0 @@
1
-
2
- @use '../../_utils';
3
- @use "_box-build" as build;
4
- @use "../cssfabric-config";
5
- // load general config variables
6
- $config: cssfabric-config.$cssfabric-config;
7
-
8
- $_media_quey_sizes: map-get($config, media_quey_sizes);
9
-
10
- // responsive builder here
11
- $min_value: 0;
12
-
13
- @each $mq_size_key, $mq_size_value in $_media_quey_sizes {
14
- @include utils.fabricResponsiveEncloser($mq_size_value, $min_value) {
15
- @include build.buildBox($mq_size_key);
16
- }
17
- $min_value: $mq_size_value;
18
- }
@@ -1,3 +0,0 @@
1
- @use "_box-build" as build;
2
-
3
- @include build.buildBox();
@@ -1,108 +0,0 @@
1
- @use "sass:map";
2
- // load scss config file
3
- @use '../../_utils';
4
- @use 'color-vars';
5
- @use "sass:math";
6
-
7
- $color-config: color-vars.$color-config;
8
-
9
- // COLOR TYPES
10
- $color-types-config: map-get($color-config, color-types-config);
11
-
12
- // COLOR SCHEMES
13
- $color-schemes: map-get($color-config, scheme);
14
-
15
- // COLOR PALETTE
16
- $color-palette: map-get($color-config, palette);
17
-
18
- // COLOR THEME
19
- $color-theme: map-get($color-config, theme);
20
-
21
- // GRAYS
22
- $gray-config: map-get($color-config, gray-config) !default;
23
- $color-gray-start: map-get($gray-config, start) !default;
24
- $color-gray-end: map-get($gray-config, end) !default;
25
- $color-gray-steps: map-get($gray-config, steps) !default;
26
- $gray-schemes: utils.getGraySteps($color-gray-steps, $color-gray-start, $color-gray-end);
27
-
28
- @function text-contrast($n) {
29
- $color-brightness: round((red($n) * 299) + (green($n) * 587) + math.div(blue(#ffffff) * 114, 1000));
30
- $light-color: round((red(#ffffff) * 299) + (green(#ffffff) * 587) + math.div(blue(#ffffff) * 114, 1000));
31
- $color: black;
32
-
33
- @if abs($color-brightness) < math.div($light-color,2) {
34
- $color: white;
35
- }
36
-
37
- @return $color;
38
- }
39
-
40
- @mixin colorFactory($tag_short, $color_prop) {
41
- $switch-tag_short: utils.getColorPropertyType($tag_short);
42
-
43
- @each $colorTint in (light lighter dark darker complement invert) {
44
-
45
- $newColor: utils.applyColorEffect($colorTint, $color_prop);
46
-
47
- &-#{$colorTint} {
48
- @if $tag_short== "bg-themed" {
49
- color: text-contrast($newColor);
50
- }
51
- #{$switch-tag_short}: $newColor;
52
- }
53
- }
54
- }
55
-
56
- @mixin fabricColors($color-type,$color-type-list, $color-type-key, $mq-key, $has-color-factory:null) {
57
-
58
- $switch-tag_short: utils.getColorPropertyType($color-type-key);
59
-
60
- $prop: "";
61
-
62
- $property_key: #{$color-type-key}-#{$color-type} + if($mq-key, -#{$mq-key}, "");
63
- /**
64
- #{$color-type-key} ?
65
- */
66
- .#{$property_key} {
67
- @each $type-key, $type-prop in $color-type-list {
68
- &#{"-" + $type-key} {
69
-
70
- // border-color: ;
71
- @if $color-type-key==border-color {
72
- border-color: utils.applyColorEffect('dark',$type-prop)!important;
73
- }
74
-
75
- @if $color-type-key==color { // nope for gray
76
- color: $type-prop;
77
- @if $has-color-factory {
78
- @include colorFactory($color-type-key, $type-prop);
79
- }
80
- }
81
-
82
- @if $color-type-key==bg {
83
- background-color: $type-prop;
84
- @if $has-color-factory {
85
- @include colorFactory($color-type-key, $type-prop);
86
- }
87
- }
88
-
89
- @if $color-type-key == "bg-themed" {
90
- color: text-contrast($type-prop);
91
- text-shadow: 0 0 0.125rem utils.applyColorEffect("dark", $type-prop);
92
- background-color: $type-prop;
93
- @if $has-color-factory {
94
- @include colorFactory($color-type-key, $type-prop);
95
- }
96
- }
97
- }
98
- }
99
- }
100
- }
101
-
102
- @mixin buildColor($mq_size_key:null) {
103
- @each $color-type-key in $color-types-config {
104
- @include fabricColors("palette", $color-palette, $color-type-key, $mq_size_key, true);
105
- @include fabricColors("scheme", $color-schemes, $color-type-key, $mq_size_key);
106
- @include fabricColors("grey", $gray-schemes, $color-type-key, $mq_size_key);
107
- }
108
- }
@@ -1,80 +0,0 @@
1
- @use '../../_utils';
2
-
3
- $_color-types-config: (color bg bg-themed border-color);
4
- $_color-tint: (_ lighter light dark darker complement); // invert
5
-
6
- $color-metadata: (
7
- title: color,
8
- title_tag: "its about colors",
9
- description: "cssfabric color system: its about colors"
10
- );
11
- $color-config: (
12
- gray-config: utils.get_fabric_conf(gray-config),
13
- color-types-config: $_color-types-config,
14
- theme: utils.get_fabric_conf(theme),
15
- scheme: utils.get_fabric_conf(scheme),
16
- palette: utils.get_fabric_conf(palette),
17
- gray: utils.get_fabric_conf(gray)
18
- );
19
-
20
- $color-docs: (
21
- attributes: (
22
- color: (
23
- tag: color,
24
- keys: (
25
- scheme palette gray
26
- ),
27
- levelsLinked: (
28
- scheme: utils.getObjectKeys(utils.get_fabric_conf(scheme)),
29
- palette: utils.getObjectKeys(utils.get_fabric_conf(palette)),
30
- gray: utils.getObjectKeys(utils.get_fabric_conf(gray))
31
- ),
32
- levelsDeclin: (
33
- palette: $_color-tint
34
- ),
35
- about: "color for text level html elements"
36
- ),
37
- background-color: (
38
- tag: bg,
39
- keys: (
40
- scheme palette gray
41
- ),
42
- levelsLinked: (
43
- scheme: utils.getObjectKeys(utils.get_fabric_conf(scheme)),
44
- palette: utils.getObjectKeys(utils.get_fabric_conf(palette)),
45
- gray: utils.getObjectKeys(utils.get_fabric_conf(gray)) // prefix with gray
46
- ),
47
- levelsDeclin: (
48
- palette: $_color-tint
49
- ),
50
- about: "background colors"
51
- ),
52
- background-themed: (
53
- tag: "bg-themed",
54
- keys: (
55
- scheme palette gray
56
- ),
57
- levelsLinked: (
58
- gray: utils.getObjectKeys(utils.get_fabric_conf(gray)),
59
- scheme: utils.getObjectKeys(utils.get_fabric_conf(scheme)),
60
- palette: utils.getObjectKeys(utils.get_fabric_conf(palette))
61
- ),
62
- levelsDeclin: (
63
- palette: $_color-tint
64
- ),
65
- about: "same as background-color, but with added contrasted color to text"
66
- ),
67
- border-color: (
68
- tag: border-color,
69
- keys: (
70
- palette gray
71
- ),
72
- levelsLinked: (
73
- gray: utils.getObjectKeys(utils.get_fabric_conf(gray)),
74
- scheme: utils.getObjectKeys(utils.get_fabric_conf(scheme)),
75
- palette: utils.getObjectKeys(utils.get_fabric_conf(palette))
76
- ),
77
- about: "border colors are slightly darker to maximize surrounding effect"
78
- )
79
- )
80
- );
@@ -1,23 +0,0 @@
1
-
2
- @use "sass:map";
3
- // load scss config file
4
- @use '../../_utils';
5
- @use 'color-build' as build;
6
- @use "../cssfabric-config";
7
- // load general config variables
8
- $config: cssfabric-config.$cssfabric-config;
9
-
10
- // load general config variables
11
- // media queries sizes, in rem
12
- $_media_quey_sizes: map-get($config, media_quey_sizes);
13
-
14
- // builder responsive
15
- $min_value: 0;
16
-
17
- @each $mq_size_key,
18
- $mq_size_value in $_media_quey_sizes {
19
- @include utils.fabricResponsiveEncloser($mq_size_value,$min_value) {
20
- @include build.buildColor($mq_size_key);
21
- }
22
- $min_value: $mq_size_value;
23
- }
@@ -1,9 +0,0 @@
1
-
2
-
3
- @use '../../_utils';
4
- @use '_color-build' as build;
5
-
6
-
7
- @include build.buildColor(null);
8
-
9
-
@@ -1,2 +0,0 @@
1
- @use '../../../src/vendor/normalize/normalize.min.css';
2
-
@@ -1,150 +0,0 @@
1
- // load scss config file
2
- @use '../../_utils';
3
- @use '../cssfabric-config' as cssfabric-vars;
4
- @use 'flex-vars';
5
-
6
- $flex-config: flex-vars.$flex-config;
7
- $cssfabric-config: cssfabric-vars.$cssfabric-config;
8
-
9
- $sep: map-get($cssfabric-config, sep);
10
- // read variables
11
- $grid-code: map-get($flex-config, moduleNameShort);
12
- $grid-h: map-get($flex-config, horCode);
13
- $grid-v: map-get($flex-config, vertCode);
14
-
15
- $cssProps: map-get($flex-config, cssProps);
16
- $cssItemsProps: map-get($flex-config, cssItemsProps);
17
-
18
- $gridFullWidth: map-get($flex-config, gridFullWidth);
19
-
20
- $grow-shrink-steps: map-get($flex-config, grow-shrink-steps);
21
-
22
- $grid-code-sep: #{$grid-code}#{$sep};
23
-
24
- @mixin makeGrid($mqKey) {
25
- $prefix: if($mqKey, #{$grid-code}-#{$mqKey}, #{$grid-code});
26
- $h_prop: #{$prefix}#{$sep}#{$grid-h};
27
- $v_prop: #{$prefix}#{$sep}#{$grid-v};
28
-
29
- %flex {
30
- display: flex;
31
- }
32
-
33
- .#{$grid-code},
34
- .#{$h_prop} {
35
- display: flex;
36
- flex-direction: row;
37
-
38
- & > .#{$grid-code-sep}#{$gridFullWidth} {
39
- flex: 1 1 0;
40
- }
41
-
42
- &.#{$grid-code-sep}align-middle {
43
- align-items: center;
44
- }
45
-
46
- &.#{$grid-code-sep}align-top {
47
- align-items: flex-start;
48
- }
49
-
50
- &.#{$grid-code-sep}align-left {
51
- align-items: flex-start;
52
- }
53
-
54
- &.#{$grid-code-sep}align-right {
55
- justify-content: flex-end;
56
- }
57
-
58
- &.#{$grid-code-sep}align-bottom {
59
- align-items: flex-end;
60
- }
61
-
62
- &.#{$grid-code-sep}align-center {
63
- justify-content: center;
64
- }
65
-
66
- &.#{$grid-code-sep}align-middle-center {
67
- justify-content: center;
68
- align-content: center;
69
- align-items: center;
70
- }
71
-
72
- &.#{$grid-code-sep}align-stretch {
73
- color: blue;
74
- align-items: stretch;
75
- }
76
- }
77
-
78
- .#{$v_prop} {
79
- display: flex;
80
- flex-direction: column;
81
-
82
- & > .#{$grid-code-sep}#{$gridFullWidth} {
83
- flex: 1 1 0;
84
- max-height: 100%;
85
- }
86
-
87
- &.#{$grid-code-sep}align-middle {
88
- justify-content: center;
89
- }
90
-
91
- &.#{$grid-code-sep}align-top {
92
- justify-content: flex-start;
93
- }
94
-
95
- &.#{$grid-code-sep}align-left {
96
- align-items: flex-start;
97
- }
98
-
99
- &.#{$grid-code-sep}align-right {
100
- align-items: flex-end;
101
- }
102
-
103
- &.#{$grid-code-sep}align-bottom {
104
- justify-content: flex-end;
105
- }
106
-
107
- &.#{$grid-code-sep}align-center {
108
- align-items: center;
109
- }
110
-
111
- &.#{$grid-code-sep}align-middle-center {
112
- align-items: center;
113
- justify-content: center;
114
- }
115
-
116
- &.#{$grid-code-sep}align-stretch {
117
- color: red;
118
- align-items: stretch;
119
- }
120
- }
121
-
122
-
123
- .#{$grid-code-sep}inline {
124
- display: inline-flex;
125
- }
126
-
127
- // wrap rules
128
- .#{$grid-code} {
129
- @each $fabricRule, $value in map-get($cssProps, flexWrap) {
130
- @include utils.fabricAttributes('&'+$sep, $fabricRule, 'flex-wrap', $value);
131
- }
132
- }
133
-
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);
138
- }
139
- }
140
- @for $i from 0 through $grow-shrink-steps {
141
- .#{$grid-code-sep}grow#{$sep}#{$i} {
142
- flex-grow: #{$i};
143
- }
144
-
145
- .#{$grid-code-sep}shrink#{$sep}#{$i} {
146
- flex-shrink: $i;
147
- }
148
- }
149
-
150
- }
@@ -1,84 +0,0 @@
1
- @use '../../utils';
2
-
3
-
4
- $_grow-shrink-steps: 2;
5
-
6
-
7
- $_grid-align: (top middle bottom left right center middle-center stretch);
8
-
9
- $_classNames: (
10
- wrap: wrap,
11
- wrap-reverse: wrap-reverse
12
- );
13
-
14
- $_cssProps: (
15
- flexWrap: (
16
- wrap: wrap,
17
- wrap-reverse: wrap-reverse
18
- ),
19
- grid-justify: (
20
- start: flex-start,
21
- end: flex-end,
22
- between: space-between,
23
- stretch: stretch,
24
- center: flex-center
25
- ),
26
- grid-items: (
27
- baseline: baseline,
28
- stretch: stretch,
29
- start: flex-start,
30
- center: center,
31
- end: flex-end
32
- ),
33
- grid-content: (
34
- start: flex-start,
35
- center: center,
36
- end: flex-end,
37
- between: space-between,
38
- equal: space-evenly
39
- )
40
- );
41
-
42
- $_cssItemsProps: (
43
- self: (
44
- start: flex-start,
45
- end: flex-end,
46
- stretch: stretch
47
- )
48
- );
49
-
50
- $flex-metadata: (
51
- title: "flex",
52
- tag: "flex",
53
- description: "cssfabric flex system module"
54
- );
55
-
56
- $flex-config: (
57
- moduleName: flex,
58
- moduleNameShort: flex,
59
- horCode: h,
60
- vertCode: v,
61
- gridFullWidth: main,
62
- grow-shrink-steps:$_grow-shrink-steps,
63
- cssProps: $_cssProps,
64
- cssItemsProps: $_cssItemsProps
65
- );
66
-
67
- $flex-docs: (// add align-middle non generated className // grow + shrink
68
- attributes:(
69
- grid:(
70
- tag: flex,
71
- keys: (v, h),
72
- classNames: (
73
- align: $_grid-align,
74
- grid:utils.getObjectKeys(map-get($_cssProps, flexWrap)), // add inline !
75
- ),
76
- about: "a classic flex grid system, and hey, it gets height !"
77
- ),
78
- self:(
79
- tag: self,
80
- keys: utils.getObjectKeys(map-get($_cssItemsProps, self)),
81
- about: "flex children specific classnames"
82
- )
83
- )
84
- );
@@ -1,25 +0,0 @@
1
-
2
-
3
- // load scss config file
4
- @use '../../_utils';
5
- @use '_flex-build' as build;
6
- @use "../cssfabric-config";
7
- // load general config variables
8
- $config: cssfabric-config.$cssfabric-config;
9
-
10
- // load general config variables
11
- // media queries sizes, in rem
12
- $_media_quey_sizes: map-get($config, media_quey_sizes);
13
-
14
-
15
- // builder responsive
16
- $min_value: 0;
17
-
18
- @each $mq_size_key,
19
- $mq_size_value in $_media_quey_sizes {
20
- @include utils.fabricResponsiveEncloser($mq_size_value,$min_value) {
21
- @include build.makeGrid($mq_size_key);
22
- }
23
- $min_value: $mq_size_value;
24
- }
25
-
@@ -1,3 +0,0 @@
1
- @use '_flex-build' as build;
2
-
3
- @include build.makeGrid(null);