@medyll/cssfabric 0.0.10

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 (165) hide show
  1. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  2. package/.idea/cssfabric.iml +11 -0
  3. package/.idea/misc.xml +9 -0
  4. package/.idea/modules.xml +8 -0
  5. package/.idea/vcs.xml +6 -0
  6. package/.vscode/settings.json +24 -0
  7. package/README.md +240 -0
  8. package/cssfabric.config.js +3 -0
  9. package/cssfabric.json +8 -0
  10. package/gulpfile.js +610 -0
  11. package/lib/_generated/export.variables.json +583 -0
  12. package/lib/index.d.ts +2 -0
  13. package/lib/index.js +7 -0
  14. package/lib/scripts/cssfabric.d.ts +24 -0
  15. package/lib/scripts/cssfabric.js +48 -0
  16. package/lib/scripts/cssfabricClassNames.d.ts +14 -0
  17. package/lib/scripts/cssfabricClassNames.js +150 -0
  18. package/lib/scripts/utils.d.ts +5 -0
  19. package/lib/scripts/utils.js +40 -0
  20. package/lib/styles/core/animation/animation.css +0 -0
  21. package/lib/styles/core/animation/animation.min.css +0 -0
  22. package/lib/styles/core/base/base.css +222 -0
  23. package/lib/styles/core/base/base.min.css +1 -0
  24. package/lib/styles/core/box/box.css +2263 -0
  25. package/lib/styles/core/box/box.min.css +1 -0
  26. package/lib/styles/core/box/box.responsive.css +13590 -0
  27. package/lib/styles/core/box/box.responsive.min.css +1 -0
  28. package/lib/styles/core/color/color.css +923 -0
  29. package/lib/styles/core/color/color.min.css +1 -0
  30. package/lib/styles/core/color/color.responsive.css +5550 -0
  31. package/lib/styles/core/color/color.responsive.min.css +1 -0
  32. package/lib/styles/core/flex/flex.css +140 -0
  33. package/lib/styles/core/flex/flex.min.css +1 -0
  34. package/lib/styles/core/flex/flex.responsive.css +852 -0
  35. package/lib/styles/core/flex/flex.responsive.min.css +1 -0
  36. package/lib/styles/core/grid/grid.css +50 -0
  37. package/lib/styles/core/grid/grid.min.css +1 -0
  38. package/lib/styles/core/grid/grid.responsive.css +312 -0
  39. package/lib/styles/core/grid/grid.responsive.min.css +1 -0
  40. package/lib/styles/core/main.css +2263 -0
  41. package/lib/styles/core/main.min.css +1 -0
  42. package/lib/styles/core/menu/menu.css +97 -0
  43. package/lib/styles/core/menu/menu.min.css +1 -0
  44. package/lib/styles/core/menu/menu.responsive.css +504 -0
  45. package/lib/styles/core/menu/menu.responsive.min.css +1 -0
  46. package/lib/styles/core/overflow/overflow.css +60 -0
  47. package/lib/styles/core/overflow/overflow.min.css +1 -0
  48. package/lib/styles/core/overflow/overflow.responsive.css +367 -0
  49. package/lib/styles/core/overflow/overflow.responsive.min.css +1 -0
  50. package/lib/styles/core/scale/scale.css +639 -0
  51. package/lib/styles/core/scale/scale.min.css +1 -0
  52. package/lib/styles/core/scale/scale.responsive.css +3846 -0
  53. package/lib/styles/core/scale/scale.responsive.min.css +1 -0
  54. package/lib/styles/core/table/table.css +72 -0
  55. package/lib/styles/core/table/table.min.css +1 -0
  56. package/lib/styles/core/table/table.responsive.css +444 -0
  57. package/lib/styles/core/table/table.responsive.min.css +1 -0
  58. package/lib/styles/core/text/text.css +147 -0
  59. package/lib/styles/core/text/text.min.css +1 -0
  60. package/lib/styles/core/text/text.responsive.css +894 -0
  61. package/lib/styles/core/text/text.responsive.min.css +1 -0
  62. package/lib/styles/core/theme/theme.css +197 -0
  63. package/lib/styles/core/theme/theme.min.css +1 -0
  64. package/lib/styles/core/vars.css +278 -0
  65. package/lib/styles/core/vars.min.css +1 -0
  66. package/lib/styles/core/zindex/zindex.css +279 -0
  67. package/lib/styles/core/zindex/zindex.min.css +1 -0
  68. package/lib/styles/cssfabric.css +7631 -0
  69. package/lib/styles/cssfabric.min.css +15 -0
  70. package/lib/styles/cssfabric.responsive.css +26359 -0
  71. package/lib/styles/cssfabric.responsive.min.css +9 -0
  72. package/package.json +67 -0
  73. package/src/_generated/export.variables.json +756 -0
  74. package/src/_generated/export.variables.md +240 -0
  75. package/src/_generated/index.d.ts +3 -0
  76. package/src/cssfabric/_utils.scss +205 -0
  77. package/src/cssfabric/index.d.ts +3 -0
  78. package/src/cssfabric/modules/_cssfabric-config.scss +89 -0
  79. package/src/cssfabric/modules/_mixins.scss +1 -0
  80. package/src/cssfabric/modules/animation/_animation-build.scss +121 -0
  81. package/src/cssfabric/modules/animation/_animation-vars.scss +17 -0
  82. package/src/cssfabric/modules/animation/animation.scss +3 -0
  83. package/src/cssfabric/modules/base/_base-vars.scss +17 -0
  84. package/src/cssfabric/modules/base/base.scss +80 -0
  85. package/src/cssfabric/modules/box/_box-build.scss +215 -0
  86. package/src/cssfabric/modules/box/_box-vars.scss +119 -0
  87. package/src/cssfabric/modules/box/box-responsive.scss +18 -0
  88. package/src/cssfabric/modules/box/box.scss +3 -0
  89. package/src/cssfabric/modules/color/_color-build.scss +108 -0
  90. package/src/cssfabric/modules/color/_color-vars.scss +80 -0
  91. package/src/cssfabric/modules/color/color-responsive.scss +23 -0
  92. package/src/cssfabric/modules/color/color.scss +3 -0
  93. package/src/cssfabric/modules/css-fabric.scss +2 -0
  94. package/src/cssfabric/modules/flex/_flex-build.scss +169 -0
  95. package/src/cssfabric/modules/flex/_flex-vars.scss +87 -0
  96. package/src/cssfabric/modules/flex/flex-responsive.scss +25 -0
  97. package/src/cssfabric/modules/flex/flex.scss +3 -0
  98. package/src/cssfabric/modules/grid/_grid-build.scss +91 -0
  99. package/src/cssfabric/modules/grid/_grid-vars.scss +87 -0
  100. package/src/cssfabric/modules/grid/grid-responsive.scss +25 -0
  101. package/src/cssfabric/modules/grid/grid.scss +3 -0
  102. package/src/cssfabric/modules/main.scss +3 -0
  103. package/src/cssfabric/modules/menu/_menu-build.scss +119 -0
  104. package/src/cssfabric/modules/menu/_menu-vars.scss +29 -0
  105. package/src/cssfabric/modules/menu/menu-responsive.scss +19 -0
  106. package/src/cssfabric/modules/menu/menu.scss +3 -0
  107. package/src/cssfabric/modules/overflow/_overflow-build.scss +22 -0
  108. package/src/cssfabric/modules/overflow/_overflow-vars.scss +31 -0
  109. package/src/cssfabric/modules/overflow/overflow-responsive.scss +25 -0
  110. package/src/cssfabric/modules/overflow/overflow.scss +5 -0
  111. package/src/cssfabric/modules/scale/_scale-build.scss +129 -0
  112. package/src/cssfabric/modules/scale/_scale-vars.scss +75 -0
  113. package/src/cssfabric/modules/scale/scale-responsive.scss +23 -0
  114. package/src/cssfabric/modules/scale/scale.scss +3 -0
  115. package/src/cssfabric/modules/table/_table-build.scss +134 -0
  116. package/src/cssfabric/modules/table/_table-vars.scss +30 -0
  117. package/src/cssfabric/modules/table/table-responsive.scss +24 -0
  118. package/src/cssfabric/modules/table/table.scss +3 -0
  119. package/src/cssfabric/modules/text/_text-build.scss +109 -0
  120. package/src/cssfabric/modules/text/_text-vars.scss +87 -0
  121. package/src/cssfabric/modules/text/text-responsive.scss +25 -0
  122. package/src/cssfabric/modules/text/text.scss +5 -0
  123. package/src/cssfabric/modules/theme/_theme-build.scss +77 -0
  124. package/src/cssfabric/modules/theme/_theme-vars.scss +47 -0
  125. package/src/cssfabric/modules/theme/theme.scss +5 -0
  126. package/src/cssfabric/modules/vars.scss +120 -0
  127. package/src/cssfabric/modules/zindex/_zindex-vars.scss +19 -0
  128. package/src/cssfabric/modules/zindex/zindex.scss +18 -0
  129. package/src/index.d.ts +3 -0
  130. package/src/index.ts +4 -0
  131. package/src/scripts/cssfabric.ts +54 -0
  132. package/src/scripts/cssfabricClassNames.ts +216 -0
  133. package/src/scripts/utils.ts +37 -0
  134. package/src/vendor/index.d.ts +3 -0
  135. package/src/vendor/normalize/normalize.min.css +2 -0
  136. package/src/vendor/sass-json-export/CHANGELOG.md +26 -0
  137. package/src/vendor/sass-json-export/Gruntfile.js +60 -0
  138. package/src/vendor/sass-json-export/LICENSE +20 -0
  139. package/src/vendor/sass-json-export/README.md +90 -0
  140. package/src/vendor/sass-json-export/package.json +60 -0
  141. package/src/vendor/sass-json-export/stylesheets/encode/api/_json.scss +26 -0
  142. package/src/vendor/sass-json-export/stylesheets/encode/encode.scss +17 -0
  143. package/src/vendor/sass-json-export/stylesheets/encode/helpers/_quote.scss +9 -0
  144. package/src/vendor/sass-json-export/stylesheets/encode/mixins/_json.scss +42 -0
  145. package/src/vendor/sass-json-export/stylesheets/encode/types/_bool.scss +7 -0
  146. package/src/vendor/sass-json-export/stylesheets/encode/types/_color.scss +8 -0
  147. package/src/vendor/sass-json-export/stylesheets/encode/types/_list.scss +14 -0
  148. package/src/vendor/sass-json-export/stylesheets/encode/types/_map.scss +15 -0
  149. package/src/vendor/sass-json-export/stylesheets/encode/types/_null.scss +7 -0
  150. package/src/vendor/sass-json-export/stylesheets/encode/types/_number.scss +8 -0
  151. package/src/vendor/sass-json-export/stylesheets/encode/types/_string.scss +8 -0
  152. package/src/vendor/sass-json-export/stylesheets/sass-json-export.scss +2 -0
  153. package/src/vendor/sass-json-export/test/encode/_index.scss +14 -0
  154. package/src/vendor/sass-json-export/test/encode/api/_json.scss +29 -0
  155. package/src/vendor/sass-json-export/test/encode/helpers/_quote.scss +6 -0
  156. package/src/vendor/sass-json-export/test/encode/types/_bool.scss +6 -0
  157. package/src/vendor/sass-json-export/test/encode/types/_color.scss +7 -0
  158. package/src/vendor/sass-json-export/test/encode/types/_list.scss +25 -0
  159. package/src/vendor/sass-json-export/test/encode/types/_map.scss +17 -0
  160. package/src/vendor/sass-json-export/test/encode/types/_null.scss +8 -0
  161. package/src/vendor/sass-json-export/test/encode/types/_number.scss +68 -0
  162. package/src/vendor/sass-json-export/test/encode/types/_string.scss +9 -0
  163. package/src/vendor/sass-json-export/test/test.scss +9 -0
  164. package/tsconfig.json +46 -0
  165. package/webpack.config.js +53 -0
@@ -0,0 +1,240 @@
1
+ # Welcome to cssfabric
2
+
3
+
4
+ Willing to bring my utility-first 2011 css framework to a more decent life !
5
+
6
+
7
+ This is also a learning point about gulp, webpack, packages and friends.
8
+
9
+ > yaocf !
10
+
11
+
12
+ <br/>
13
+
14
+ ## Incoming features
15
+
16
+
17
+ <br/>
18
+
19
+ | modules | |
20
+ | ------- | --- |
21
+ | cssfabric | cssfabric global config variables
22
+ animation | cssfabric simplest animation module
23
+ box | cssfabric box module to set heights, paddings, margins and shadows on all html elements
24
+ base | cssfabric base config variables
25
+ color | cssfabric color system: its about colors
26
+ grid | cssfabric flex grid system module
27
+ menu | cssfabric menu module to set menu style
28
+ overflow | cssfabric overflow module to set overflow styles on all html elements
29
+ scale | cssfabric scale module to set dimensions and ratios on all html elements
30
+ table | cssfabric table module to set different table styles
31
+ text | cssfabric text module to set text style on all html elements
32
+ theme |
33
+ zindex | cssfabric zindex module to set z-index on all html elements |
34
+
35
+
36
+ <br/>
37
+
38
+
39
+
40
+
41
+ <br/>
42
+
43
+ ### More details
44
+
45
+ ---
46
+
47
+ #### <strong>module box</strong>
48
+
49
+ #### [padding]
50
+
51
+
52
+ - padding properties for html elements
53
+
54
+
55
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: pad
56
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _&nbsp;&nbsp;t&nbsp;&nbsp;b&nbsp;&nbsp;l&nbsp;&nbsp;r&nbsp;&nbsp;all&nbsp;&nbsp;u&nbsp;&nbsp;ii&nbsp;&nbsp;tb
57
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: _&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;5&nbsp;&nbsp;&nbsp;&nbsp;6&nbsp;&nbsp;&nbsp;&nbsp;7&nbsp;&nbsp;&nbsp;&nbsp;8
58
+
59
+ #### [margin]
60
+
61
+
62
+ - margin properties for html elements
63
+
64
+
65
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: marg
66
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _&nbsp;&nbsp;t&nbsp;&nbsp;b&nbsp;&nbsp;l&nbsp;&nbsp;r&nbsp;&nbsp;all&nbsp;&nbsp;u&nbsp;&nbsp;ii&nbsp;&nbsp;tb
67
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: _&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;5&nbsp;&nbsp;&nbsp;&nbsp;6&nbsp;&nbsp;&nbsp;&nbsp;7&nbsp;&nbsp;&nbsp;&nbsp;8
68
+
69
+ #### [border]
70
+
71
+
72
+ - border properties for html elements
73
+
74
+
75
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: border
76
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _&nbsp;&nbsp;t&nbsp;&nbsp;b&nbsp;&nbsp;l&nbsp;&nbsp;r&nbsp;&nbsp;all&nbsp;&nbsp;u&nbsp;&nbsp;ii&nbsp;&nbsp;tb
77
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: _&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;5
78
+
79
+ #### [shadow]
80
+
81
+
82
+ - applying shadows give depth and levels to your design
83
+
84
+
85
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: shad
86
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _</span>: 2&nbsp;&nbsp;&nbsp;&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;8&nbsp;&nbsp;&nbsp;&nbsp;16&nbsp;&nbsp;&nbsp;&nbsp;32&nbsp;&nbsp;&nbsp;&nbsp;64&nbsp;&nbsp;&nbsp;&nbsp;128&nbsp;&nbsp;&nbsp;&nbsp;256
87
+
88
+ ---
89
+
90
+ #### <strong>module color</strong>
91
+
92
+ #### [color]
93
+
94
+
95
+ - color for text level html elements
96
+
97
+
98
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: color
99
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme&nbsp;&nbsp;palette&nbsp;&nbsp;gray
100
+
101
+ #### [background-color]
102
+
103
+
104
+ - background colors
105
+
106
+
107
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: bg
108
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme&nbsp;&nbsp;palette&nbsp;&nbsp;gray
109
+
110
+ #### [background-themed]
111
+
112
+
113
+ - same as background-color, but with added contrasted color to text
114
+
115
+
116
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: bg-themed
117
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme&nbsp;&nbsp;palette&nbsp;&nbsp;gray
118
+
119
+ #### [border-color]
120
+
121
+
122
+ - border colors are slightly darker to maximize surrounding effect
123
+
124
+
125
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: border-color
126
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: palette&nbsp;&nbsp;gray
127
+
128
+ ---
129
+
130
+ #### <strong>module grid</strong>
131
+
132
+ #### [grid]
133
+
134
+
135
+ - a classic grid system, and hey, it gets height !
136
+
137
+
138
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: grid
139
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: v&nbsp;&nbsp;h
140
+
141
+ #### [self]
142
+
143
+
144
+ - grid children specific classnames
145
+
146
+
147
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: self
148
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: start&nbsp;&nbsp;end&nbsp;&nbsp;stretch
149
+
150
+ ---
151
+
152
+ #### <strong>module menu</strong>
153
+
154
+ #### [menu]
155
+
156
+
157
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: menu
158
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: h&nbsp;&nbsp;v
159
+
160
+ ---
161
+
162
+ #### <strong>module overflow</strong>
163
+
164
+ #### [overflow]
165
+
166
+
167
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flow
168
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible&nbsp;&nbsp;hidden&nbsp;&nbsp;clip&nbsp;&nbsp;scroll&nbsp;&nbsp;auto
169
+
170
+ #### [overflowX]
171
+
172
+
173
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flowX
174
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible&nbsp;&nbsp;hidden&nbsp;&nbsp;clip&nbsp;&nbsp;scroll&nbsp;&nbsp;auto
175
+
176
+ #### [overflowY]
177
+
178
+
179
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flowY
180
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible&nbsp;&nbsp;hidden&nbsp;&nbsp;clip&nbsp;&nbsp;scroll&nbsp;&nbsp;auto
181
+
182
+ ---
183
+
184
+ #### <strong>module scale</strong>
185
+
186
+ #### [scale]
187
+
188
+
189
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: scale
190
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: w&nbsp;&nbsp;h
191
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _size</span>: full&nbsp;&nbsp;&nbsp;&nbsp;mid&nbsp;&nbsp;&nbsp;&nbsp;quarter&nbsp;&nbsp;&nbsp;&nbsp;tiers<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _content</span>: content-max&nbsp;&nbsp;&nbsp;&nbsp;content-min<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _defined-steps</span>: 1&nbsp;&nbsp;&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;8&nbsp;&nbsp;&nbsp;&nbsp;16&nbsp;&nbsp;&nbsp;&nbsp;24&nbsp;&nbsp;&nbsp;&nbsp;32&nbsp;&nbsp;&nbsp;&nbsp;48&nbsp;&nbsp;&nbsp;&nbsp;64<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _grid-5</span>: 1-5&nbsp;&nbsp;&nbsp;&nbsp;2-5&nbsp;&nbsp;&nbsp;&nbsp;3-5&nbsp;&nbsp;&nbsp;&nbsp;4-5&nbsp;&nbsp;&nbsp;&nbsp;5-5<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _grid-12</span>: 1-12&nbsp;&nbsp;&nbsp;&nbsp;2-12&nbsp;&nbsp;&nbsp;&nbsp;3-12&nbsp;&nbsp;&nbsp;&nbsp;4-12&nbsp;&nbsp;&nbsp;&nbsp;5-12&nbsp;&nbsp;&nbsp;&nbsp;6-12&nbsp;&nbsp;&nbsp;&nbsp;7-12&nbsp;&nbsp;&nbsp;&nbsp;8-12&nbsp;&nbsp;&nbsp;&nbsp;9-12&nbsp;&nbsp;&nbsp;&nbsp;10-12&nbsp;&nbsp;&nbsp;&nbsp;11-12&nbsp;&nbsp;&nbsp;&nbsp;12-12
192
+
193
+ ---
194
+
195
+ #### <strong>module table</strong>
196
+
197
+ #### [table]
198
+
199
+
200
+ - is a table
201
+
202
+
203
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: table
204
+
205
+ ---
206
+
207
+ #### <strong>module text</strong>
208
+
209
+ #### [text-transform]
210
+
211
+
212
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
213
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: cap&nbsp;&nbsp;up&nbsp;&nbsp;low&nbsp;&nbsp;none&nbsp;&nbsp;full
214
+
215
+ #### [font-weight]
216
+
217
+
218
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
219
+
220
+ #### [text-align]
221
+
222
+
223
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
224
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: l&nbsp;&nbsp;r&nbsp;&nbsp;center&nbsp;&nbsp;justify
225
+
226
+ #### [text-shadow]
227
+
228
+
229
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text-shad
230
+
231
+ ---
232
+
233
+ #### <strong>module theme</strong>
234
+
235
+ #### [theme]
236
+
237
+
238
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: theme
239
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: text&nbsp;&nbsp;bg&nbsp;&nbsp;border
240
+ - <span style='width:80px;display:inline-block;overflow:visible'><b>level keys</b></span>:<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- primary</span>: _&nbsp;&nbsp;&nbsp;&nbsp;light&nbsp;&nbsp;&nbsp;&nbsp;lighter&nbsp;&nbsp;&nbsp;&nbsp;dark&nbsp;&nbsp;&nbsp;&nbsp;darker&nbsp;&nbsp;&nbsp;&nbsp;complement&nbsp;&nbsp;&nbsp;&nbsp;invert<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- secondary</span>: _&nbsp;&nbsp;&nbsp;&nbsp;light&nbsp;&nbsp;&nbsp;&nbsp;lighter&nbsp;&nbsp;&nbsp;&nbsp;dark&nbsp;&nbsp;&nbsp;&nbsp;darker&nbsp;&nbsp;&nbsp;&nbsp;complement&nbsp;&nbsp;&nbsp;&nbsp;invert<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- tertiary</span>: _&nbsp;&nbsp;&nbsp;&nbsp;light&nbsp;&nbsp;&nbsp;&nbsp;lighter&nbsp;&nbsp;&nbsp;&nbsp;dark&nbsp;&nbsp;&nbsp;&nbsp;darker&nbsp;&nbsp;&nbsp;&nbsp;complement&nbsp;&nbsp;&nbsp;&nbsp;invert
@@ -0,0 +1,3 @@
1
+ declare const module;
2
+
3
+ export default module;
@@ -0,0 +1,205 @@
1
+ @use "sass:string";
2
+ @use "sass:map";
3
+ @use "sass:math";
4
+ // load main fabric vars
5
+ @use 'modules/cssfabric-config' as cssfabric-config;
6
+
7
+ // link to fabric conf scss file, which often move ;)
8
+ @function get_fabric_conf($prop: null,$val: null) {
9
+ @if not $prop {
10
+ @return cssfabric-config.$cssfabric-config;
11
+ }
12
+ @if $prop and not $val {
13
+ @return map-get(cssfabric-config.$cssfabric-config, $prop);
14
+ }
15
+ @if $val {
16
+ $in: map-get(cssfabric-config.$cssfabric-config, $prop);
17
+ @return map-get($in, $prop,$val);
18
+ }
19
+ }
20
+
21
+ // css dimensions rules builder responsive
22
+ @mixin fabricResponsiveEncloser($mq_size_value, $mq_min_size_value: null) {
23
+ // and (min-width: $mq_min_size_value + rem)
24
+ // @debug $mq_size_value $mq_min_size_value;
25
+ $type-width: if($mq_size_value==180 , max , max);
26
+ $width: if($mq_size_value==180 , $mq_min_size_value , $mq_size_value);
27
+
28
+ // @debug (#{$type-width}-width: $width + rem) ;
29
+ @media only screen and (#{$type-width}-width: $width + rem) {
30
+ @content;
31
+ }
32
+ }
33
+
34
+ @mixin fabricAttributes($sep, $frag, $property, $value) {
35
+ #{$sep + $frag} {
36
+ #{$property}: #{$value};
37
+ }
38
+ }
39
+
40
+ @mixin scssVarsToCssVars($module, $module-config) {
41
+ /**
42
+ * cssfabric generated file
43
+ * css vars for #{$module}
44
+ */
45
+ @each $red, $rt in $module-config {
46
+ // list map string
47
+ @if (type_of($rt) == "string") {
48
+ $key: #{$module}-#{$red};
49
+ --cssfabric-#{$key}: #{$rt};
50
+ }
51
+ @if (type_of($rt) == "map") {
52
+ @each $rtkey, $rtval in $rt {
53
+ $type: type_of($rtval);
54
+ $key: #{$module}-#{$red}-#{$rtkey};
55
+ $compval: is-map; // #{string.slice(#{#ss($rtval)}, 4)};
56
+
57
+ $comp: if($type== map or $type == list, #{$compval}, #{$rtval});
58
+
59
+ --cssfabric-#{$key}: #{$comp};
60
+ }
61
+ }
62
+ @if (type_of($rt) == "list") {
63
+ $key: #{$module}-#{$red};
64
+ --cssfabric-#{$key}: #{string.slice(#{#ss($rt)}, 4)};
65
+ }
66
+ }
67
+ }
68
+
69
+ @function getGraySteps($steps, $gray-start, $gray-end) {
70
+ $gray-schemes: ();
71
+
72
+ @for $i from 0 through $steps {
73
+
74
+ $color: mix($gray-end, $gray-start, math.div($i , $steps) * 100%);
75
+
76
+ $gray-schemes: map.set($gray-schemes, #{($i+1) * 100}, $color);
77
+ }
78
+
79
+ @return $gray-schemes;
80
+ }
81
+
82
+ @function applyColorEffect($theme-level, $color) {
83
+ $switch-named: map-get(
84
+ (
85
+ light: lighten($color, 15%),
86
+ lighter: lighten($color, 30%),
87
+ dark: darken($color, 10%),
88
+ darker: darken($color, 20%),
89
+ complement: complement($color),
90
+ invert: invert($color)
91
+ ),
92
+ $theme-level
93
+ );
94
+
95
+ @return $switch-named;
96
+ }
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
+ @function getColorPropertyType($fabric-tag) {
112
+ /** get property for #{$fabric-tag} */
113
+ @return map-get(
114
+ (
115
+ color: color,
116
+ text: color,
117
+ bg: background-color,
118
+ bg-themed: background-color,
119
+ border: border-color
120
+ ),
121
+ $fabric-tag
122
+ );
123
+ }
124
+
125
+ @function getThemeLevels($declinations-config, $color_primary) {
126
+ $out: ();
127
+ @each $color-grade in $declinations-config {
128
+ $color: themeDeclinationColors($color-grade, $color_primary);
129
+ $out: map.set($out, $color-grade, $color);
130
+ @each $theme-level in (light lighter dark darker complement invert) {
131
+ $new-theme-level: #{$color-grade}-#{$theme-level};
132
+ $newColor: applyColorEffect($theme-level, $color);
133
+ $out: map.set($out, $new-theme-level, $newColor);
134
+ }
135
+ }
136
+
137
+ @return $out;
138
+ }
139
+
140
+ @function getBoxIterator($iterator, $unit-config,$_unit-size-config) {
141
+ $out: ("_": "_" );
142
+
143
+ @for $grid_size_value from 1 through $iterator {
144
+ $css_size_value: ($grid_size_value * $_unit-size-config) + $unit-config;
145
+ $out: map.set($out, $grid_size_value, $css_size_value);
146
+ }
147
+ @return $out
148
+ }
149
+
150
+ @function getShadowIterator($factors,$box-shadows-steps) {
151
+ $out: ();
152
+
153
+ $v_fact: map-get($factors, v_fact);
154
+ $h_fact: map-get($factors, h_fact);
155
+
156
+ $v_fact_2: map-get($factors, v_fact_2);
157
+ $h_fact_2: map-get($factors, h_fact_2);
158
+
159
+ $acc: 1;
160
+
161
+ @for $shadows_step from 1 through $box-shadows-steps {
162
+ $acc: $acc * 2;
163
+ $v: $shadows_step * 2;
164
+
165
+ $v_val: math.div($acc , $v_fact);
166
+ $h_val: math.div($acc , $h_fact);
167
+
168
+ $v_val_2: math.div($acc , $v_fact_2);
169
+ $h_val_2: math.div($acc , $h_fact_2);
170
+
171
+ $out: map.set($out, $acc, #{$v_val} + #{$h_val});
172
+ }
173
+
174
+ @return $out;
175
+ }
176
+
177
+ @function cssDimensionPropertyBuilder($scale_prop,$dimensions_grid_ratio) {
178
+ $out: ();
179
+
180
+ @for $z_value from 1 through $dimensions_grid_ratio {
181
+ $key: $z_value + "-" + $dimensions_grid_ratio;
182
+ $val: (math.div($z_value , $dimensions_grid_ratio) * 100) +#{"%"};
183
+
184
+ $out: map.set($out, $key, $val);
185
+ }
186
+
187
+ @return $out
188
+ }
189
+
190
+ @function getObjectKeys($object) {
191
+ $out: ();
192
+ @each $key, $value in $object {
193
+ $out: append($out, $key);
194
+ }
195
+
196
+ @return $out;
197
+ }
198
+
199
+ @function getObjectValues($object) {
200
+ @return $object;
201
+ }
202
+
203
+ @function getObjectKeyValues($object) {
204
+ @return $object;
205
+ }
@@ -0,0 +1,3 @@
1
+ declare const module;
2
+
3
+ export default module;
@@ -0,0 +1,89 @@
1
+ @use "sass:map";
2
+ @use "sass:math";
3
+
4
+ $cssfabric-metadata: (
5
+ title: "cssfabric",
6
+ tag: "cssfabric",
7
+ description: "cssfabric global config variables"
8
+ );
9
+
10
+ $cssfabric-config: (
11
+ cfg-has-dimension-strict: true,
12
+ CFG_HAS_DIMENSION_MIN: true,
13
+ CFG_HAS_DIMENSION_MAX: true,
14
+ size_step: 0.5rem,
15
+ sep: "-",
16
+ sizes: (
17
+ tiny: 32,
18
+ small: 64,
19
+ medium: 128,
20
+ large: 256,
21
+ full: 100%
22
+ ),
23
+ media_quey_sizes: (
24
+ xxxl: 180,
25
+ xxl: 120,
26
+ xl: 90,
27
+ lg: 64,
28
+ md: 48,
29
+ sm: 35.7
30
+ ),
31
+ themes:(
32
+ light:(
33
+ foreground: #282230,
34
+ background: #f1f1f1,
35
+ paper: #ededed
36
+ ),
37
+ dark:(
38
+ foreground: #f1f1f1,
39
+ background: #27323a,
40
+ paper: #3a3b3b
41
+ ),
42
+ ),
43
+ theme: (
44
+ primary: #0288d1,
45
+ foreground: #282230,
46
+ background: #f1f1f1,
47
+ ),
48
+ scheme: (
49
+ discrete: #ccc,
50
+ success: green,
51
+ info: hsl(48, 100%, 67%),
52
+ warning: hsl(48, 96%, 46%),
53
+ alert: hsl(27, 100%, 50%),
54
+ error: red
55
+ ),
56
+ palette: (
57
+ yellow: #ffb900,
58
+ orange: #d83b01,
59
+ red: #d13438,
60
+ magenta: #b4009e,
61
+ purple: #5c2d91,
62
+ green: #107c10,
63
+ teal: #008272,
64
+ blue: #0078d4,
65
+ dark: #323232,
66
+ ),
67
+ gray: getGraySteps(8, #f4f4f4, #999),
68
+ gray-config: (
69
+ start: #f4f4f4,
70
+ end: #999,
71
+ steps: 8
72
+ )
73
+ );
74
+
75
+ @function getGraySteps($steps, $gray-start, $gray-end) {
76
+ $gray-schemes: ();
77
+
78
+ @for $i from 0 through $steps {
79
+
80
+ $color: mix($gray-end, $gray-start, math.div($i , $steps) * 100%);
81
+
82
+ $gray-schemes: map.set($gray-schemes, #{($i+1) * 100}, $color);
83
+ }
84
+ @debug $gray-schemes;
85
+
86
+ @return $gray-schemes;
87
+ }
88
+
89
+ $cssfabric-docs: ();
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,121 @@
1
+ @use 'animation-vars';
2
+
3
+ $animation-config: animation-vars.$animation-config;
4
+
5
+ // load scss config file
6
+ @use '../../_utils' as utils;
7
+
8
+ $fabric_attention_props: map-get($animation-config, attention_props);
9
+ $fabric_in_out_props: map-get($animation-config, in_out_props);
10
+
11
+ $vectorDirections: (up right bottom left);
12
+
13
+
14
+ // up down right left
15
+ @function getVectorPropertyObject($vectorDirection) {
16
+
17
+ $move: '';
18
+ $direction: '';
19
+
20
+ $model: (up:(translation:translateY, direction: '-'),
21
+ bottom:(translation:translateY, direction: '+'),
22
+ right:(translation:translateX, direction: '+'),
23
+ left:(translation:translateX, direction: '-'));
24
+
25
+ $test: map-get($model, $vectorDirection);
26
+
27
+ @return (translation:map-get($test, translation), direction:map-get($test, direction));
28
+
29
+ }
30
+
31
+ @function draw ($vectorMove, $vectorDirection, $vectorValue) {
32
+
33
+ @return (#{$vectorMove}(#{$vectorDirection}#{$vectorValue}));
34
+ }
35
+
36
+ //
37
+ @mixin debug($family, $vector, $corner) {
38
+
39
+ $vectorMove: null;
40
+ $cornerMove: null;
41
+
42
+ $vectorProperty: getVectorPropertyObject($vector);
43
+
44
+ $vectorMove: map-get($vectorProperty, translation); // 'translate' XY
45
+ $vectorDirection: map-get($vectorProperty, direction); // + || -
46
+
47
+ $val: draw($vectorMove, $vectorDirection, '10px');
48
+
49
+ @if $corner {
50
+ $cornerProperty: getVectorPropertyObject($corner);
51
+
52
+ $cornerMove: map-get($cornerProperty, translation); // 'translate' XY
53
+ $cornerDirection: map-get($cornerProperty, direction); // + || -
54
+
55
+ $val: #{$val} draw($cornerMove, $cornerDirection, '10px');;
56
+ }
57
+
58
+ $fabricClassName: 'animate-'+$family+'-'+$vector+if($corner, '-'+$corner, null);
59
+
60
+ @if $vectorMove !=$cornerMove {
61
+
62
+ @keyframes #{$fabricClassName} {
63
+
64
+ 0% {
65
+ transform: scale(1);
66
+ opacity: 1;
67
+ }
68
+
69
+ 30% {
70
+ transform: #{$val} scale(0.7);
71
+ opacity: 0.7;
72
+ }
73
+
74
+ 100% {
75
+ transform: #{$val} scale(0.7);
76
+ opacity: 0.5;
77
+ }
78
+ }
79
+
80
+ .#{$fabricClassName} {
81
+ animation-name: #{$val};
82
+ }
83
+ }
84
+ }
85
+
86
+
87
+ @mixin fabric_animation() {
88
+ // left right down up #{$anim_dir_more}
89
+ @each $animate_style in $fabric_in_out_props {
90
+
91
+ $treatedDirections: ();
92
+
93
+ @each $inOut in (In Out) {
94
+
95
+ @each $vectorDirection in $vectorDirections {
96
+
97
+ $treatedDirections: append($treatedDirections, $vectorDirection);
98
+ //
99
+ @include debug($animate_style+$inOut, $vectorDirection, null);
100
+
101
+ @each $vectorCornerDirection in $vectorDirections {
102
+
103
+ $alreadyDone: index($treatedDirections, $vectorCornerDirection);
104
+
105
+ @if $vectorCornerDirection !=$vectorDirection and not $alreadyDone {
106
+
107
+ @if $vectorDirection !=$vectorCornerDirection {
108
+ //
109
+ @include debug($animate_style+$inOut, $vectorDirection, $vectorCornerDirection);
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+
118
+
119
+ @mixin buildAnimation() {
120
+ // @include fabric_animation();
121
+ }
@@ -0,0 +1,17 @@
1
+ $animation-metadata: (
2
+ title: "animation",
3
+ description: "cssfabric simplest animation module"
4
+ );
5
+ $animation-config: (
6
+ attention_props: (),
7
+ in_out_props: (
8
+ back: () /* bounce: (),
9
+ slide: (),
10
+ fade: (),
11
+ zoom: () */
12
+ )
13
+ );
14
+ $animation-docs: (
15
+ attention_props: "",
16
+ in_out_props: ""
17
+ );
@@ -0,0 +1,3 @@
1
+ @use 'animation-build' as build;
2
+
3
+ @include build.buildAnimation();