@medyll/cssfabric 0.1.12 → 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 (196) 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/{lib/styles/core → styles}/box/box.css +127 -111
  22. package/styles/box/box.min.css +1 -0
  23. package/{lib/styles/core → styles}/box/box.responsive.css +508 -444
  24. package/styles/box/box.responsive.min.css +1 -0
  25. package/{lib/styles/core → styles}/color/color.css +0 -0
  26. package/styles/color/color.min.css +1 -0
  27. package/{lib/styles/core → styles}/color/color.responsive.css +0 -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 -0
  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 -0
  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 -48
  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 -0
  48. package/styles/overflow/overflow.responsive.min.css +1 -0
  49. package/{lib/styles/core → styles}/scale/scale.css +0 -0
  50. package/{lib/styles/core → styles}/scale/scale.min.css +0 -0
  51. package/{lib/styles/core → styles}/scale/scale.responsive.css +0 -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 -0
  56. package/styles/table/table.responsive.min.css +1 -0
  57. package/{lib/styles/core → styles}/text/text.css +0 -0
  58. package/styles/text/text.min.css +1 -0
  59. package/{lib/styles/core → styles}/text/text.responsive.css +0 -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/{lib/styles/core → styles}/vars.css +6 -2
  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.min.css +0 -1
  84. package/lib/styles/core/box/box.responsive.min.css +0 -1
  85. package/lib/styles/core/color/color.min.css +0 -1
  86. package/lib/styles/core/color/color.responsive.min.css +0 -1
  87. package/lib/styles/core/flex/flex.min.css +0 -1
  88. package/lib/styles/core/flex/flex.responsive.min.css +0 -1
  89. package/lib/styles/core/grid/grid.min.css +0 -1
  90. package/lib/styles/core/grid/grid.responsive.min.css +0 -1
  91. package/lib/styles/core/main.min.css +0 -1
  92. package/lib/styles/core/menu/menu.min.css +0 -1
  93. package/lib/styles/core/menu/menu.responsive.min.css +0 -1
  94. package/lib/styles/core/overflow/overflow.responsive.min.css +0 -1
  95. package/lib/styles/core/scale/scale.responsive.min.css +0 -1
  96. package/lib/styles/core/table/table.min.css +0 -1
  97. package/lib/styles/core/table/table.responsive.min.css +0 -1
  98. package/lib/styles/core/text/text.min.css +0 -1
  99. package/lib/styles/core/text/text.responsive.min.css +0 -1
  100. package/lib/styles/core/vars.min.css +0 -1
  101. package/lib/styles/core/vars2.css +0 -4
  102. package/lib/styles/core/vars2.min.css +0 -1
  103. package/lib/styles/cssfabric.css +0 -5147
  104. package/lib/styles/cssfabric.min.css +0 -16
  105. package/lib/styles/cssfabric.responsive.css +0 -16679
  106. package/lib/styles/cssfabric.responsive.min.css +0 -9
  107. package/src/_generated/export.variables.json +0 -759
  108. package/src/cssfabric/_utils.scss +0 -203
  109. package/src/cssfabric/index.d.ts +0 -3
  110. package/src/cssfabric/modules/_cssfabric-config.scss +0 -163
  111. package/src/cssfabric/modules/_mixins.scss +0 -1
  112. package/src/cssfabric/modules/animation/_animation-vars.scss +0 -17
  113. package/src/cssfabric/modules/animation/animation.scss +0 -3
  114. package/src/cssfabric/modules/base/_base-vars.scss +0 -19
  115. package/src/cssfabric/modules/base/base.scss +0 -80
  116. package/src/cssfabric/modules/box/_box-build.scss +0 -287
  117. package/src/cssfabric/modules/box/_box-vars.scss +0 -121
  118. package/src/cssfabric/modules/box/box-responsive.scss +0 -18
  119. package/src/cssfabric/modules/box/box.scss +0 -3
  120. package/src/cssfabric/modules/color/_color-build.scss +0 -196
  121. package/src/cssfabric/modules/color/_color-vars.scss +0 -80
  122. package/src/cssfabric/modules/color/color-responsive.scss +0 -23
  123. package/src/cssfabric/modules/color/color.scss +0 -9
  124. package/src/cssfabric/modules/css-fabric.scss +0 -2
  125. package/src/cssfabric/modules/flex/_flex-build.scss +0 -150
  126. package/src/cssfabric/modules/flex/_flex-vars.scss +0 -84
  127. package/src/cssfabric/modules/flex/flex-responsive.scss +0 -25
  128. package/src/cssfabric/modules/flex/flex.scss +0 -3
  129. package/src/cssfabric/modules/grid/_grid-build.scss +0 -84
  130. package/src/cssfabric/modules/grid/_grid-vars.scss +0 -88
  131. package/src/cssfabric/modules/grid/grid-responsive.scss +0 -25
  132. package/src/cssfabric/modules/grid/grid.scss +0 -6
  133. package/src/cssfabric/modules/menu/_menu-build.scss +0 -119
  134. package/src/cssfabric/modules/menu/_menu-vars.scss +0 -29
  135. package/src/cssfabric/modules/menu/menu-responsive.scss +0 -19
  136. package/src/cssfabric/modules/menu/menu.scss +0 -6
  137. package/src/cssfabric/modules/overflow/_overflow-build.scss +0 -22
  138. package/src/cssfabric/modules/overflow/_overflow-vars.scss +0 -31
  139. package/src/cssfabric/modules/overflow/overflow-responsive.scss +0 -25
  140. package/src/cssfabric/modules/overflow/overflow.scss +0 -7
  141. package/src/cssfabric/modules/scale/_scale-build.scss +0 -142
  142. package/src/cssfabric/modules/scale/_scale-vars.scss +0 -84
  143. package/src/cssfabric/modules/scale/scale-responsive.scss +0 -23
  144. package/src/cssfabric/modules/scale/scale.scss +0 -8
  145. package/src/cssfabric/modules/table/_table-build.scss +0 -134
  146. package/src/cssfabric/modules/table/_table-vars.scss +0 -30
  147. package/src/cssfabric/modules/table/table-responsive.scss +0 -24
  148. package/src/cssfabric/modules/table/table.scss +0 -8
  149. package/src/cssfabric/modules/text/_text-build.scss +0 -166
  150. package/src/cssfabric/modules/text/_text-vars.scss +0 -87
  151. package/src/cssfabric/modules/text/text-responsive.scss +0 -26
  152. package/src/cssfabric/modules/text/text.scss +0 -6
  153. package/src/cssfabric/modules/theme/_theme-build.scss +0 -90
  154. package/src/cssfabric/modules/theme/_theme-vars.scss +0 -46
  155. package/src/cssfabric/modules/theme/theme.scss +0 -6
  156. package/src/cssfabric/modules/vars.scss +0 -49
  157. package/src/cssfabric/modules/zindex/_zindex-vars.scss +0 -14
  158. package/src/cssfabric/modules/zindex/zindex.scss +0 -15
  159. package/src/index.d.ts +0 -3
  160. package/src/index.ts +0 -4
  161. package/src/scripts/cssfabric.ts +0 -54
  162. package/src/scripts/cssfabricClassNames.ts +0 -216
  163. package/src/scripts/index.ts +0 -8
  164. package/src/scripts/utils.ts +0 -37
  165. package/src/vendor/index.d.ts +0 -3
  166. package/src/vendor/normalize/normalize.min.css +0 -2
  167. package/src/vendor/sass-json-export/CHANGELOG.md +0 -26
  168. package/src/vendor/sass-json-export/Gruntfile.js +0 -60
  169. package/src/vendor/sass-json-export/LICENSE +0 -20
  170. package/src/vendor/sass-json-export/README.md +0 -90
  171. package/src/vendor/sass-json-export/package.json +0 -60
  172. package/src/vendor/sass-json-export/stylesheets/encode/api/_json.scss +0 -26
  173. package/src/vendor/sass-json-export/stylesheets/encode/encode.scss +0 -17
  174. package/src/vendor/sass-json-export/stylesheets/encode/helpers/_quote.scss +0 -9
  175. package/src/vendor/sass-json-export/stylesheets/encode/mixins/_json.scss +0 -42
  176. package/src/vendor/sass-json-export/stylesheets/encode/types/_bool.scss +0 -7
  177. package/src/vendor/sass-json-export/stylesheets/encode/types/_color.scss +0 -8
  178. package/src/vendor/sass-json-export/stylesheets/encode/types/_list.scss +0 -14
  179. package/src/vendor/sass-json-export/stylesheets/encode/types/_map.scss +0 -15
  180. package/src/vendor/sass-json-export/stylesheets/encode/types/_null.scss +0 -7
  181. package/src/vendor/sass-json-export/stylesheets/encode/types/_number.scss +0 -8
  182. package/src/vendor/sass-json-export/stylesheets/encode/types/_string.scss +0 -8
  183. package/src/vendor/sass-json-export/stylesheets/sass-json-export.scss +0 -2
  184. package/src/vendor/sass-json-export/test/encode/_index.scss +0 -14
  185. package/src/vendor/sass-json-export/test/encode/api/_json.scss +0 -29
  186. package/src/vendor/sass-json-export/test/encode/helpers/_quote.scss +0 -6
  187. package/src/vendor/sass-json-export/test/encode/types/_bool.scss +0 -6
  188. package/src/vendor/sass-json-export/test/encode/types/_color.scss +0 -7
  189. package/src/vendor/sass-json-export/test/encode/types/_list.scss +0 -25
  190. package/src/vendor/sass-json-export/test/encode/types/_map.scss +0 -17
  191. package/src/vendor/sass-json-export/test/encode/types/_null.scss +0 -8
  192. package/src/vendor/sass-json-export/test/encode/types/_number.scss +0 -68
  193. package/src/vendor/sass-json-export/test/encode/types/_string.scss +0 -9
  194. package/src/vendor/sass-json-export/test/test.scss +0 -9
  195. package/tsconfig.json +0 -46
  196. package/webpack.config.js +0 -55
@@ -1,119 +0,0 @@
1
- @use 'menu-vars';
2
- @use '../../_utils';
3
-
4
- $menu-config: menu-vars.$menu-config;
5
-
6
- // read variables
7
- $menu_class_name: map-get($menu-config, menu_class_name);
8
- $menu_class_name_short: map-get($menu-config, menu_class_name_short);
9
-
10
- $menu_item_class_name: map-get($menu-config, menu_item_class_name);
11
- $menu_item_class_name_short: map-get($menu-config, menu_item_class_name_short);
12
-
13
- $orientations: map-get($menu-config, orientations);
14
- $menu_item_disabled_tag: map-get($menu-config, menu_item_disabled_tag);
15
- $menu_item_selected_tag: map-get($menu-config, menu_item_selected_tag);
16
-
17
- $menu_dropdown_tag: map-get($menu-config, menu_dropdown_tag);
18
- $menu_dropdown_open: map-get($menu-config, menu_dropdown_open);
19
- $menu_dropdown_close: map-get($menu-config, menu_dropdown_close);
20
-
21
- @mixin buildMenu($mq_key) {
22
- $class_name: if($mq_key, #{$menu_class_name}-#{$mq_key}, #{$menu_class_name});
23
-
24
- #{$menu_class_name_short} {
25
- &.#{$class_name} {
26
- list-style: none;
27
- list-style-type: none;
28
-
29
-
30
- @each $orientation_key, $orientation in $orientations {
31
-
32
- &-#{$orientation_key} {
33
- padding: 0;
34
- margin: 0;
35
- line-height: 1rem;
36
-
37
- & li.#{$menu_item_class_name},
38
- li {
39
- display: block;
40
- margin: 0 1rem;
41
- width: auto;
42
- transition-property: all;
43
- transition-duration: 0.5s;
44
- padding: 1rem;
45
-
46
- &:hover {
47
- border-radius: 4px;
48
- background-color: #ededed;
49
- // text-align: center;
50
- }
51
-
52
- &.active {
53
- border-radius: 4px;
54
- background-color: #ededed;
55
- font-weight: bold;
56
- }
57
-
58
- &.menu-small {
59
-
60
- }
61
- }
62
-
63
- & li {
64
- list-style: none;
65
- }
66
- }
67
- }
68
-
69
- &-v {
70
- & li.#{$menu_item_class_name},
71
- li {
72
- &.active {
73
- font-weight: bold;
74
- margin-left: 1rem;
75
- }
76
-
77
- }
78
- }
79
- &-h {
80
- max-width: 100%;
81
- display: inline-flex;
82
- padding: 0 0;
83
- position: relative;
84
- border-bottom: 1px solid #ededed;
85
- overflow-x: auto;
86
- overflow-y: hidden;
87
-
88
- & li.#{$menu_item_class_name},
89
- li {
90
- margin: 0;
91
- text-align: center;
92
- }
93
- }
94
- }
95
- }
96
- }
97
-
98
- $menu-border-color: red;
99
-
100
-
101
-
102
- /* & li.#{$menu_item_class_name}{
103
- dsp: none;
104
- }
105
- &-drop{
106
- dsp: none;
107
- & .#{$menu_class_name}-#{$menu_dropdown_open}{
108
- dsp: none;
109
- & li.#{$menu_item_class_name}, > li{
110
- dsp: none;
111
- }
112
- }
113
- & .#{$menu_class_name}-#{$menu_dropdown_close}{
114
- dsp: none;
115
- & li.#{$menu_item_class_name}, > li{
116
- dsp: none;
117
- }
118
- }
119
- }*/
@@ -1,29 +0,0 @@
1
- $menu-metadata: (
2
- title: menu,
3
- tag: ul,
4
- description: "cssfabric menu module to set menu style"
5
- );
6
- $menu-config: (
7
- menu_class_name: menu,
8
- menu_class_name_short: ul,
9
- orientations: (
10
- v: vertical,
11
- h: horizontal
12
- ),
13
- menu_item_class_name: menu-item,
14
- menu_item_class_name_short: li,
15
- menu_item_disabled_tag: disabled,
16
- menu_item_selected_tag: selected,
17
- menu_dropdown_tag: drop,
18
- menu_dropdown_open: open,
19
- menu_dropdown_close: close
20
- );
21
- $menu-docs: (
22
- attributes:(
23
- menu:(tag: menu,
24
- keys:(h v)
25
- )
26
- )
27
- );
28
-
29
-
@@ -1,19 +0,0 @@
1
-
2
- @use '../../_utils';
3
- @use '_menu-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
- // builder responsive
11
- $min_value: 0;
12
-
13
- @each $mq_size_key,
14
- $mq_size_value in $_media_quey_sizes {
15
- @include utils.fabricResponsiveEncloser($mq_size_value, $min_value) {
16
- @include build.buildMenu($mq_size_key);
17
- }
18
- $min_value: $mq_size_value;
19
- }
@@ -1,6 +0,0 @@
1
-
2
- // load scss config file
3
- @use 'menu-build' as build;
4
-
5
-
6
- @include build.buildMenu(null)
@@ -1,22 +0,0 @@
1
-
2
- @use 'overflow-vars';
3
- $overflow-config: overflow-vars.$overflow-config;
4
- // load scss config file
5
- @use '../../_utils';
6
-
7
- // read variables
8
- $overflow_props: map-get($overflow-config, overflow_props);
9
- $overflow_values: map-get($overflow-config, overflow_values);
10
-
11
- /* css overflow rules */
12
- @mixin buildOverflow($mq_size_key: null) {
13
- @each $overflow_prop in $overflow_props {
14
- $property_key: if($mq_size_key, #{$overflow_prop}-#{$mq_size_key}, #{$overflow_prop});
15
-
16
- @each $overflow_value in $overflow_values {
17
- .#{$property_key}-#{$overflow_value} {
18
- overflow: $overflow_value;
19
- }
20
- }
21
- }
22
- }
@@ -1,31 +0,0 @@
1
- $_overflow-values: (visible hidden clip scroll auto);
2
- $_overflow-shorthands: (visible: visible, hidden:hidden, clip:clip, scroll:scroll, _: auto);
3
-
4
- $overflow-metadata: (
5
- title: overflow,
6
- tag: flow,
7
- description: "cssfabric overflow module to set overflow styles on all html elements"
8
- );
9
- $overflow-config: (
10
- overflow_props: overflow overflow-x overflow-y,
11
- overflow_values: $_overflow-values,
12
- cssProps:(
13
- overflow: $_overflow-shorthands
14
- )
15
- );
16
- $overflow-docs: (
17
- attributes:(
18
- overflow:(
19
- tag:flow,
20
- keys: $_overflow-values
21
- ),
22
- overflowX:(
23
- tag:flowX,
24
- keys: $_overflow-values
25
- ),
26
- overflowY:(
27
- tag:flowY,
28
- keys: $_overflow-values
29
- )
30
- )
31
- );
@@ -1,25 +0,0 @@
1
-
2
- @use "sass:map";
3
- // load scss config file
4
- @use '../../_utils';
5
- @use '_overflow-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
-
20
- @include utils.fabricResponsiveEncloser($mq_size_value,$min_value) {
21
- @include build.buildOverflow($mq_size_key);
22
- }
23
- $min_value: $mq_size_value;
24
- }
25
-
@@ -1,7 +0,0 @@
1
-
2
- // load scss config file
3
- @use '_overflow-build' as build;
4
-
5
- @include build.buildOverflow();
6
-
7
-
@@ -1,142 +0,0 @@
1
- @use 'scale-vars';
2
- @use '../../_utils';
3
- @use "sass:math";
4
-
5
- $_cfg: utils.get_fabric_conf();
6
-
7
- // read variables
8
- $_has_dimensions_strict: map-get($_cfg, has_dimensions_strict);
9
- $_has_dimensions_min: true; // map-get($_cfg, has_dimensions_min);
10
- $_has_dimensions_max: true; // map-get($_cfg, has_dimensions_max);
11
-
12
- $scale-defined-steps: scale-vars.$scale-defined-steps;
13
- $scale-defined-step-unit: scale-vars.$scale-defined-step-unit;
14
- $scale-defined-step-size: scale-vars.$scale-defined-step-size;
15
- $scale-grid-ratios-config: scale-vars.$scale-grid-ratios-config;
16
-
17
- $scale-sizes: scale-vars.$scale-sizes-config;
18
- $scale-content: scale-vars.$scale-content-config;
19
-
20
- $weight-config: scale-vars.$scale-font-weight-config ;
21
- $unit-tag-config: scale-vars.$scale-shorthands;
22
- $scale-sizes-preset-config: scale-vars.$scale-sizes-preset-config;
23
-
24
- /// css dimensions rules builder
25
- @mixin scale-classname-builder($scale_prop, $size_code, $size_value, $media_query_code) {
26
-
27
- $scale_prop_short: map-get($unit-tag-config, $scale_prop);
28
-
29
- $tag: if(
30
- $media_query_code,
31
- #{$scale_prop_short}-#{$media_query_code}-#{$size_code},
32
- #{$scale_prop_short}-#{$size_code}
33
- );
34
- .#{$tag} { // , .scale-#{$tag}
35
- #{$scale_prop}: $size_value;
36
-
37
- @if ($_has_dimensions_max) {
38
- &-max {
39
- max-#{$scale_prop}: $size_value;
40
- }
41
- }
42
- @if ($_has_dimensions_min) {
43
- &-min {
44
- min-#{$scale_prop}: $size_value;
45
- }
46
- }
47
- @if ($_has_dimensions_strict) {
48
- &-strict {
49
- #{$scale_prop}: $size_value;
50
- max-#{$scale_prop}: $size_value;
51
- min-#{$scale_prop}: $size_value;
52
- }
53
- }
54
- }
55
- }
56
-
57
- // loop on shorthands // ok
58
- @mixin play_shorthand_loop($scale_prop, $mq_size_key) {
59
- @each $scale_shorthand, $scale_shorthand_value in $scale-sizes {
60
- @include scale-classname-builder(
61
- $scale_prop,
62
- $scale_shorthand,
63
- map-get($scale-sizes, $scale_shorthand),
64
- $mq_size_key
65
- );
66
- }
67
- }
68
-
69
- // content-max-min
70
- @mixin play_dimensions_loop($scale_prop, $mq_size_key) {
71
- // loop on dimensions
72
- @each $scale_css_key, $scale_css_value in $scale-content {
73
- @include scale-classname-builder($scale_prop, $scale_css_key, $scale_css_value, $mq_size_key);
74
- }
75
- }
76
-
77
- // loop on defined dimensions
78
- // w-* h-*
79
- // build ratio : w-n = n * $scale_defined_step_size
80
- @mixin play_defined_dimensions_loop($scale_prop, $mq_size_key) {
81
- // loop on defined dimensions
82
- // @each $scale_defined_size in $scale_defined_steps {
83
- $loop_turn: 1;
84
- $multiplier: $scale-defined-step-size;
85
-
86
- @each $scale_defined_step in $scale-defined-steps {
87
-
88
- $loop_turn: $loop_turn * $multiplier;
89
-
90
- @include scale-classname-builder(
91
- $scale_prop,
92
- $scale_defined_step,
93
- $scale_defined_step + #{$scale-defined-step-unit},
94
- $mq_size_key
95
- );
96
- }
97
- }
98
- $--var-oi: yt;
99
-
100
- // loop on ratio dimensions
101
- @mixin play_ratio_dimensions_loop($scale_prop, $mq_size_key) {
102
- // loop on ratio dimensions
103
- @each $dimensions_grid_ratio in $scale-grid-ratios-config {
104
- @for $z_value from 1 through $dimensions_grid_ratio {
105
- @include scale-classname-builder(
106
- $scale_prop,
107
- $z_value + "-" + $dimensions_grid_ratio,
108
- (math.div($z_value , $dimensions_grid_ratio) * 100) +#{"%"},
109
- $mq_size_key
110
- );
111
- }
112
- }
113
- }
114
-
115
- @mixin play_preset_loop($scale_prop, $mq_size_key) {
116
-
117
- @each $preset, $value in $scale-sizes-preset-config {
118
- @include scale-classname-builder(
119
- $scale_prop,
120
- $preset,
121
- $value + #{$scale-defined-step-unit},
122
- $mq_size_key
123
- );
124
- }
125
- }
126
-
127
- @mixin buildScale($mq_size_key:null) {
128
- @each $scale_prop, $scale_prop_short in $unit-tag-config {
129
- // loop on shorthands mid tiers ...
130
- @include play_shorthand_loop($scale_prop, $mq_size_key);
131
-
132
- // loop on dimensions
133
- @include play_dimensions_loop($scale_prop, $mq_size_key);
134
-
135
- @include play_preset_loop($scale_prop, $mq_size_key);
136
- // loop on defined dimensions
137
- @include play_defined_dimensions_loop($scale_prop, $mq_size_key);
138
-
139
- // loop on ratio dimensions
140
- @include play_ratio_dimensions_loop($scale_prop, $mq_size_key);
141
- }
142
- }
@@ -1,84 +0,0 @@
1
- @use '../../utils';
2
- @use "../cssfabric-config";
3
-
4
- $scale-sizes-config: (
5
- full: 100%,
6
- mid: 50%,
7
- quarter: 25%,
8
- tiers: 33%
9
- );
10
- $scale-content-config: (
11
- content-max: max-content,
12
- content-min: min-content
13
- );
14
-
15
- $scale-sizes-preset-config: (
16
- tiny: 2,
17
- small: 4,
18
- medium: 8,
19
- large: 16,
20
- wide: 32,
21
- );
22
-
23
- $scale-grid-ratios-config: (16);
24
-
25
- $scale-defined-steps: (
26
- 1,
27
- 2,
28
- 4,
29
- 8,
30
- 16,
31
- 24,
32
- 32,
33
- 48,
34
- 64
35
- );
36
-
37
- $scale-shorthands: (
38
- width: cssfabric-config.$scale-tag-width-shorthand,
39
- height: cssfabric-config.$scale-tag-height-shorthand
40
- );
41
-
42
- $_cssProps: (
43
- size: $scale-sizes-config,
44
- content:$scale-content-config,
45
- defined-steps: $scale-defined-steps
46
- );
47
-
48
- $scale-metadata: (
49
- title: scale,
50
- tag: scale,
51
- description: "cssfabric scale module to set dimensions and ratios on all html elements"
52
- );
53
-
54
- $scale-font-weight-config: 1em;
55
- $scale-defined-step-size: 2;
56
- $scale-defined-step-unit: rem;
57
-
58
- $scale-config: (
59
- weight-config: $scale-font-weight-config,
60
- unit-tag-config: (
61
- width: w,
62
- height: h
63
- ),
64
- grid-ratios-config: $scale-grid-ratios-config,
65
- defined-step-size: $scale-defined-step-size,
66
- defined-step-unit: $scale-defined-step-unit,
67
- defined-steps: $scale-defined-steps,
68
- cssProps:$_cssProps
69
- );
70
-
71
- $scale-docs: (
72
- attributes:(
73
- scale: (
74
- tag: scale,
75
- keys: (w, h),
76
- levels:(
77
- _size : utils.getObjectKeys($scale-sizes-config),
78
- _content: utils.getObjectKeys($scale-content-config),
79
- _defined-steps: utils.getObjectKeys($scale-defined-steps),
80
- _grid-16: utils.getObjectKeys(utils.cssDimensionPropertyBuilder(h, 16)),
81
- )
82
- )
83
- )
84
- );
@@ -1,23 +0,0 @@
1
-
2
- // load scss config file
3
- @use '../../_utils';
4
- @use '_scale-build'as build;
5
- @use "../cssfabric-config";
6
- // load general config variables
7
- $config: cssfabric-config.$cssfabric-config;
8
-
9
- // load general config variables
10
- // media queries sizes, in rem
11
- $_media_quey_sizes: map-get($config, media_quey_sizes);
12
-
13
- // builder responsive
14
- $min_value: 0;
15
-
16
- @each $mq_size_key,
17
- $mq_size_value in $_media_quey_sizes {
18
-
19
- @include utils.fabricResponsiveEncloser($mq_size_value,$min_value) {
20
- @include build.buildScale($mq_size_key);
21
- }
22
- $min_value: $mq_size_value;
23
- }
@@ -1,8 +0,0 @@
1
-
2
-
3
- // load scss config file
4
- @use '../../_utils';
5
- @use '_scale-build'as build;
6
-
7
- // builder
8
- @include build.buildScale(null);
@@ -1,134 +0,0 @@
1
- @use 'table-vars';
2
- @use '../../_utils';
3
-
4
- $table-config: table-vars.$table-config;
5
-
6
- $TABLE_PREFIX: map-get($table-config, table_class_name);
7
- $TABLE_PREFIX_SHORT: map-get($table-config, table_class_name_short);
8
-
9
- $table_bg_color_head: map-get($table-config, table-bg-color-head);
10
- $table_bg_color_strip_main: map-get($table-config, table-bg-color-strip-main);
11
- $table_bg_color_strip_second: map-get($table-config, table-bg-color-strip-second);
12
-
13
- $table_border_color_header: map-get($table-config, table-border-color-header);
14
- $table_border_color_main: map-get($table-config, table-border-color-main);
15
- $table_border_color_second: map-get($table-config, table-border-color-second);
16
-
17
- // .table-bg-strip-2
18
- @mixin bg-strip($prefix_short,$nb_strips) {
19
- &.#{$prefix_short}-bg-strip-#{$nb_strips} {
20
- @for $nb_strip from 1 through $nb_strips {
21
- tr:nth-child(#{$nb_strips}n + #{$nb_strip}) td {
22
- @if ($nb_strip==$nb_strips) {
23
- background-color: #{$table_bg_color_strip_main};
24
- }
25
-
26
- @if ($nb_strips%2==1 and $nb_strip%2==0 and $nb_strips > 2 and $nb_strip !=$nb_strips) {
27
- // border-bottom: 10px solid black;
28
- }
29
- }
30
- }
31
- }
32
- }
33
-
34
- // .table-sticky
35
- @mixin sticky($table_prefix_short) {
36
- &.#{$table_prefix_short}-sticky {
37
- position: relative;
38
-
39
- thead tr,
40
- .thead .tr {
41
- position: static;
42
-
43
- th,
44
- .th {
45
- background-color: #ededed;
46
- position: sticky;
47
- top: 0;
48
- }
49
- }
50
- }
51
- }
52
- // -layout -h-line -v-line border
53
- @mixin fabric_table($mq_size_key: null) {
54
- /** cssfabric : #{$TABLE_PREFIX_SHORT}*/
55
- $prefix_short: if($mq_size_key, #{$TABLE_PREFIX_SHORT}-#{$mq_size_key}, $TABLE_PREFIX_SHORT);
56
-
57
- .#{$TABLE_PREFIX} {
58
- border-collapse: collapse;
59
- border-spacing: 0;
60
-
61
- thead,
62
- .thead {
63
- position: relative;
64
- margin-bottom:2rem;
65
- }
66
-
67
- &.#{$prefix_short}-head thead tr th {
68
- background-color: #{table_bg_color_head};
69
- }
70
-
71
- thead tr th,
72
- .thead .tr .th {
73
- padding: 0.5rem 0.25rem;
74
- font-weight: normal;
75
- }
76
-
77
- tbody tr td,
78
- .tbody .tr .td {
79
- padding: 0.25em;
80
- }
81
-
82
- &.#{$prefix_short}-layout {
83
- table-layout: fixed;
84
- }
85
-
86
- &.#{$prefix_short}-h-line {
87
-
88
- th,
89
- td,
90
- .th,
91
- .td {
92
- border-bottom: 1px solid #{$table_border_color_main};
93
- }
94
-
95
- &:last-child {
96
- border-bottom: none;
97
- }
98
- }
99
-
100
- &.#{$prefix_short}-v-line tr th,
101
- &.#{$prefix_short}-v-line tr td {
102
- border-right: 1px solid #{$table_border_color_main};
103
-
104
- &:last-child {
105
- border-right: none;
106
- }
107
- }
108
-
109
- &.#{$prefix_short}-border {
110
- border: 1px solid #{$table_border_color_main};
111
- }
112
-
113
- &.#{$prefix_short}-shad {
114
- thead tr th {
115
- box-shadow: 4px 4px 8px #ccc;
116
- z-index: 11;
117
-
118
- &:last-child {
119
- box-shadow: 4px 4px 8px #ccc;
120
- z-index: -1;
121
- }
122
- }
123
- }
124
-
125
- @include bg-strip($prefix_short, 2);
126
- @include bg-strip($prefix_short, 5);
127
-
128
- @include sticky($prefix_short);
129
- }
130
- }
131
-
132
- @mixin buildTable($mq_size_key: null) {
133
- @include fabric_table($mq_size_key);
134
- }
@@ -1,30 +0,0 @@
1
- $table-metadata: (
2
- title: table,
3
- tag: table,
4
- description: "cssfabric table module to set different table styles"
5
- );
6
- $table-config: (
7
- className: table,
8
- classNameShort: tbl,
9
- table_class_name: table,
10
- table_class_name_short: tbl,
11
- table-bg-color-head: #f4f4f4,
12
- table-bg-color-strip-main: #ededed,
13
- table-bg-color-strip-second: #f5f5f5,
14
- table-border-color-header: #ccc,
15
- table-border-color-main: #ededed,
16
- table-border-color-second: #f5f5f5
17
- );
18
-
19
- $table-docs: (
20
- attributes:(
21
- table: (
22
- tag: table,
23
- classNames:(
24
- "_": (bg-strip-2 bg-strip-5),
25
- "_pos": (sticky layout),
26
- "_deco": (h-line v-line border),
27
- ),
28
- about: "is a table"
29
- )
30
- ));