@medyll/cssfabric 0.2.1-beta.6 → 0.2.1-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/NewMenu.svelte +11 -8
- package/dist/NewMenu.svelte.d.ts +4 -4
- package/dist/css/cssfabric.css +4829 -4830
- package/dist/css/cssfabric.min.css +1 -4877
- package/dist/css/cssfabric.responsive.css +11791 -11791
- package/dist/css/cssfabric.responsive.min.css +1 -1
- package/dist/cssf/README.md +2 -48
- package/dist/cssf/cssFabricMixins.scss +95 -0
- package/dist/cssf/cssfLib.d.ts +28 -28
- package/dist/generated/cssFabric.vars.json +12 -12
- package/dist/generated/cssFabric.vars.md +105 -105
- package/dist/legacy/scripts/cssfabric.d.ts +5 -5
- package/dist/scss/_utils.scss +23 -21
- package/dist/scss/modules/_cssfabric-config.scss +2 -1
- package/dist/scss/modules/box/_box-build.scss +3 -2
- package/dist/scss/modules/box/box-responsive.scss +2 -1
- package/dist/scss/modules/color/_color-build.scss +8 -7
- package/dist/scss/modules/color/color-responsive.scss +1 -1
- package/dist/scss/modules/flex/_flex-build.scss +11 -10
- package/dist/scss/modules/flex/_flex-vars.scss +3 -2
- package/dist/scss/modules/flex/flex-responsive.scss +2 -1
- package/dist/scss/modules/grid/_grid-build.scss +11 -10
- package/dist/scss/modules/grid/_grid-vars.scss +3 -2
- package/dist/scss/modules/grid/grid-responsive.scss +2 -1
- package/dist/scss/modules/menu/_menu-build.scss +11 -10
- package/dist/scss/modules/menu/menu-responsive.scss +2 -1
- package/dist/scss/modules/overflow/_overflow-build.scss +3 -2
- package/dist/scss/modules/overflow/overflow-responsive.scss +1 -1
- package/dist/scss/modules/scale/_scale-build.scss +4 -3
- package/dist/scss/modules/scale/scale-responsive.scss +2 -1
- package/dist/scss/modules/table/_table-build.scss +9 -8
- package/dist/scss/modules/table/table-responsive.scss +2 -1
- package/dist/scss/modules/text/_text-build.scss +15 -14
- package/dist/scss/modules/text/_text-vars.scss +7 -6
- package/dist/scss/modules/text/text-responsive.scss +1 -1
- package/dist/scss/modules/theme/_theme-build.scss +7 -6
- package/dist/scss/modules/theme/_theme-vars.scss +30 -24
- package/dist/scss/modules/vars.scss +8 -8
- package/dist/scss/modules/zindex/zindex.scss +2 -1
- package/dist/style/cssfabric.css +0 -0
- package/dist/style/cssfabric.min.css +0 -0
- package/dist/style/cssfabric.responsive.css +0 -0
- package/dist/style/cssfabric.responsive.min.css +0 -0
- package/dist/styles/cssfabric.css +0 -0
- package/dist/styles/cssfabric.min.css +0 -0
- package/dist/styles/cssfabric.responsive.css +0 -0
- package/dist/styles/cssfabric.responsive.min.css +0 -0
- package/package.json +28 -27
|
@@ -18,19 +18,19 @@ This is also a learning point about gulp, webpack, packages and friends.
|
|
|
18
18
|
|
|
19
19
|
| modules | |
|
|
20
20
|
| ------- | --- |
|
|
21
|
-
| animation | cssfabric simplest animation module |
|
|
22
|
-
| base | cssfabric base config variables |
|
|
23
|
-
| box | cssfabric box module to set heights, paddings, margins and shadows on all html elements |
|
|
24
|
-
| color | cssfabric color system: its about colors |
|
|
25
|
-
| flex | cssfabric flex system module |
|
|
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
21
|
| zindex | cssfabric zindex module to set z-index on all html elements |
|
|
22
|
+
| theme | |
|
|
23
|
+
| text | cssfabric text module to set text style on all html elements |
|
|
24
|
+
| table | cssfabric table module to set different table styles |
|
|
25
|
+
| scale | cssfabric scale module to set dimensions and ratios on all html elements |
|
|
26
|
+
| overflow | cssfabric overflow module to set overflow styles on all html elements |
|
|
27
|
+
| menu | cssfabric menu module to set menu style |
|
|
28
|
+
| grid | cssfabric flex grid system module |
|
|
29
|
+
| flex | cssfabric flex system module |
|
|
30
|
+
| color | cssfabric color system: its about colors |
|
|
31
|
+
| box | cssfabric box module to set heights, paddings, margins and shadows on all html elements |
|
|
32
|
+
| base | cssfabric base config variables |
|
|
33
|
+
| animation | cssfabric simplest animation module |
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
<br/>
|
|
@@ -44,109 +44,114 @@ This is also a learning point about gulp, webpack, packages and friends.
|
|
|
44
44
|
|
|
45
45
|
---
|
|
46
46
|
|
|
47
|
-
#### <strong>module
|
|
47
|
+
#### <strong>module theme</strong>
|
|
48
48
|
|
|
49
|
-
#### [
|
|
49
|
+
#### [theme]
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
-
|
|
52
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: theme
|
|
53
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: text bg border
|
|
54
|
+
- <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>: _ light lighter dark darker complement invert<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- secondary</span>: _ light lighter dark darker complement invert<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- tertiary</span>: _ light lighter dark darker complement invert
|
|
53
55
|
|
|
56
|
+
---
|
|
54
57
|
|
|
55
|
-
|
|
56
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _ t b l r all u ii 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>: _ 1 2 3 4 5 6 7 8 9 10 11 12
|
|
58
|
+
#### <strong>module text</strong>
|
|
58
59
|
|
|
59
|
-
#### [
|
|
60
|
+
#### [text-transform]
|
|
60
61
|
|
|
61
62
|
|
|
62
|
-
-
|
|
63
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
|
|
64
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: cap up low none full
|
|
63
65
|
|
|
66
|
+
#### [font-weight]
|
|
64
67
|
|
|
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>: _ t b l r all u ii 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>: _ 1 2 3 4 5 6 7 8 9 10 11 12
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
|
|
70
70
|
|
|
71
|
+
#### [text-align]
|
|
71
72
|
|
|
72
|
-
- border properties for html elements
|
|
73
73
|
|
|
74
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
|
|
75
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: l r center justify
|
|
74
76
|
|
|
75
|
-
-
|
|
76
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _ t b l r all u ii 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>: _ 1 2 3
|
|
77
|
+
#### [text-shadow]
|
|
78
78
|
|
|
79
|
-
#### [radius]
|
|
80
79
|
|
|
80
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text-shad
|
|
81
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: palette
|
|
81
82
|
|
|
82
|
-
|
|
83
|
+
---
|
|
83
84
|
|
|
84
|
-
####
|
|
85
|
+
#### <strong>module table</strong>
|
|
85
86
|
|
|
87
|
+
#### [table]
|
|
86
88
|
|
|
87
|
-
|
|
89
|
+
|
|
90
|
+
- is a table
|
|
88
91
|
|
|
89
92
|
|
|
90
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>:
|
|
91
|
-
- <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 4 8 16 32
|
|
93
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: table
|
|
92
94
|
|
|
93
95
|
---
|
|
94
96
|
|
|
95
|
-
#### <strong>module
|
|
96
|
-
|
|
97
|
-
#### [color]
|
|
97
|
+
#### <strong>module scale</strong>
|
|
98
98
|
|
|
99
|
+
#### [scale]
|
|
99
100
|
|
|
100
|
-
- color for text level html elements
|
|
101
101
|
|
|
102
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: scale
|
|
103
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: w h
|
|
104
|
+
- <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 mid quarter tiers<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _content</span>: content-max content-min<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _defined-steps</span>: 1 2 4 8 16 24 32 48 64<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _grid-16</span>: 1-16 2-16 3-16 4-16 5-16 6-16 7-16 8-16 9-16 10-16 11-16 12-16 13-16 14-16 15-16 16-16
|
|
102
105
|
|
|
103
|
-
|
|
104
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme palette gray
|
|
106
|
+
---
|
|
105
107
|
|
|
106
|
-
####
|
|
108
|
+
#### <strong>module overflow</strong>
|
|
107
109
|
|
|
110
|
+
#### [overflow]
|
|
108
111
|
|
|
109
|
-
- background colors
|
|
110
112
|
|
|
113
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flow
|
|
114
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible hidden clip scroll auto
|
|
111
115
|
|
|
112
|
-
|
|
113
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme palette gray
|
|
116
|
+
#### [overflowX]
|
|
114
117
|
|
|
115
|
-
#### [background-themed]
|
|
116
118
|
|
|
119
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flowX
|
|
120
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible hidden clip scroll auto
|
|
117
121
|
|
|
118
|
-
|
|
122
|
+
#### [overflowY]
|
|
119
123
|
|
|
120
124
|
|
|
121
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>:
|
|
122
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>:
|
|
125
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flowY
|
|
126
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible hidden clip scroll auto
|
|
123
127
|
|
|
124
|
-
|
|
128
|
+
---
|
|
125
129
|
|
|
130
|
+
#### <strong>module menu</strong>
|
|
126
131
|
|
|
127
|
-
|
|
132
|
+
#### [menu]
|
|
128
133
|
|
|
129
134
|
|
|
130
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>:
|
|
131
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>:
|
|
135
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: menu
|
|
136
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: h v
|
|
132
137
|
|
|
133
138
|
---
|
|
134
139
|
|
|
135
|
-
#### <strong>module
|
|
140
|
+
#### <strong>module grid</strong>
|
|
136
141
|
|
|
137
142
|
#### [grid]
|
|
138
143
|
|
|
139
144
|
|
|
140
|
-
- a classic
|
|
145
|
+
- a classic grid system
|
|
141
146
|
|
|
142
147
|
|
|
143
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>:
|
|
148
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: grid
|
|
144
149
|
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: v h
|
|
145
150
|
|
|
146
151
|
#### [self]
|
|
147
152
|
|
|
148
153
|
|
|
149
|
-
-
|
|
154
|
+
- grid children specific classnames
|
|
150
155
|
|
|
151
156
|
|
|
152
157
|
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: self
|
|
@@ -154,21 +159,21 @@ This is also a learning point about gulp, webpack, packages and friends.
|
|
|
154
159
|
|
|
155
160
|
---
|
|
156
161
|
|
|
157
|
-
#### <strong>module
|
|
162
|
+
#### <strong>module flex</strong>
|
|
158
163
|
|
|
159
164
|
#### [grid]
|
|
160
165
|
|
|
161
166
|
|
|
162
|
-
- a classic grid system
|
|
167
|
+
- a classic flex grid system, and hey, it gets height !
|
|
163
168
|
|
|
164
169
|
|
|
165
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>:
|
|
170
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flex
|
|
166
171
|
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: v h
|
|
167
172
|
|
|
168
173
|
#### [self]
|
|
169
174
|
|
|
170
175
|
|
|
171
|
-
-
|
|
176
|
+
- flex children specific classnames
|
|
172
177
|
|
|
173
178
|
|
|
174
179
|
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: self
|
|
@@ -176,93 +181,88 @@ This is also a learning point about gulp, webpack, packages and friends.
|
|
|
176
181
|
|
|
177
182
|
---
|
|
178
183
|
|
|
179
|
-
#### <strong>module
|
|
184
|
+
#### <strong>module color</strong>
|
|
180
185
|
|
|
181
|
-
#### [
|
|
186
|
+
#### [color]
|
|
182
187
|
|
|
183
188
|
|
|
184
|
-
|
|
185
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: h v
|
|
189
|
+
- color for text level html elements
|
|
186
190
|
|
|
187
|
-
---
|
|
188
191
|
|
|
189
|
-
|
|
192
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: color
|
|
193
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme palette gray
|
|
190
194
|
|
|
191
|
-
#### [
|
|
195
|
+
#### [background-color]
|
|
192
196
|
|
|
193
197
|
|
|
194
|
-
|
|
195
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible hidden clip scroll auto
|
|
198
|
+
- background colors
|
|
196
199
|
|
|
197
|
-
#### [overflowX]
|
|
198
200
|
|
|
201
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: bg
|
|
202
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme palette gray
|
|
199
203
|
|
|
200
|
-
-
|
|
201
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible hidden clip scroll auto
|
|
204
|
+
#### [background-themed]
|
|
202
205
|
|
|
203
|
-
#### [overflowY]
|
|
204
206
|
|
|
207
|
+
- same as background-color, but with added contrasted color to text
|
|
205
208
|
|
|
206
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: flowY
|
|
207
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: visible hidden clip scroll auto
|
|
208
209
|
|
|
209
|
-
|
|
210
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: bg-themed
|
|
211
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: scheme palette gray
|
|
210
212
|
|
|
211
|
-
####
|
|
213
|
+
#### [border-color]
|
|
212
214
|
|
|
213
|
-
#### [scale]
|
|
214
215
|
|
|
216
|
+
- border colors are slightly darker to maximize surrounding effect
|
|
215
217
|
|
|
216
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: scale
|
|
217
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: w h
|
|
218
|
-
- <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 mid quarter tiers<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _content</span>: content-max content-min<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _defined-steps</span>: 1 2 4 8 16 24 32 48 64<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- _grid-16</span>: 1-16 2-16 3-16 4-16 5-16 6-16 7-16 8-16 9-16 10-16 11-16 12-16 13-16 14-16 15-16 16-16
|
|
219
218
|
|
|
220
|
-
|
|
219
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: border-color
|
|
220
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: palette gray
|
|
221
221
|
|
|
222
|
-
|
|
222
|
+
---
|
|
223
223
|
|
|
224
|
-
####
|
|
224
|
+
#### <strong>module box</strong>
|
|
225
225
|
|
|
226
|
+
#### [padding]
|
|
226
227
|
|
|
227
|
-
- is a table
|
|
228
228
|
|
|
229
|
+
- padding properties for html elements
|
|
229
230
|
|
|
230
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: table
|
|
231
231
|
|
|
232
|
-
|
|
232
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: pad
|
|
233
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _ t b l r all u ii tb
|
|
234
|
+
- <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>: _ 1 2 3 4 5 6 7 8 9 10 11 12
|
|
233
235
|
|
|
234
|
-
####
|
|
236
|
+
#### [margin]
|
|
235
237
|
|
|
236
|
-
#### [text-transform]
|
|
237
238
|
|
|
239
|
+
- margin properties for html elements
|
|
238
240
|
|
|
239
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
|
|
240
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: cap up low none full
|
|
241
241
|
|
|
242
|
-
|
|
242
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: marg
|
|
243
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _ t b l r all u ii tb
|
|
244
|
+
- <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>: _ 1 2 3 4 5 6 7 8 9 10 11 12
|
|
243
245
|
|
|
246
|
+
#### [border]
|
|
244
247
|
|
|
245
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: text
|
|
246
248
|
|
|
247
|
-
|
|
249
|
+
- border properties for html elements
|
|
248
250
|
|
|
249
251
|
|
|
250
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>:
|
|
251
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: l r
|
|
252
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: border
|
|
253
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: _ t b l r all u ii tb
|
|
254
|
+
- <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>: _ 1 2 3
|
|
252
255
|
|
|
253
|
-
#### [
|
|
256
|
+
#### [radius]
|
|
254
257
|
|
|
255
258
|
|
|
256
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>:
|
|
257
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>: palette
|
|
259
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: radiusGuy
|
|
258
260
|
|
|
259
|
-
|
|
261
|
+
#### [shadow]
|
|
260
262
|
|
|
261
|
-
#### <strong>module theme</strong>
|
|
262
263
|
|
|
263
|
-
|
|
264
|
+
- applying shadows give depth and levels to your design
|
|
264
265
|
|
|
265
266
|
|
|
266
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>:
|
|
267
|
-
- <span style='width:80px;display:inline-block;overflow:visible'><b>keys</b></span>:
|
|
268
|
-
- <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>: _ light lighter dark darker complement invert<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- secondary</span>: _ light lighter dark darker complement invert<br/><span style='margin-left:20px;width:80px;display:inline-block;overflow:visible'>- tertiary</span>: _ light lighter dark darker complement invert
|
|
267
|
+
- <span style='width:80px;display:inline-block;overflow:visible'><b>shorthand</b></span>: shad
|
|
268
|
+
- <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 4 8 16 32
|
|
@@ -5,11 +5,11 @@ export type IFabricConfModuleDocsPart = Record<string, any>;
|
|
|
5
5
|
export type TFabricConfModuleDocsAttributesPart = Record<string, any>;
|
|
6
6
|
declare const _default: {
|
|
7
7
|
getModuleList: () => Record<string, any>;
|
|
8
|
-
getModuleConfig: (module?: string
|
|
9
|
-
getModuleData: (module?: string
|
|
10
|
-
getModuleMetaData: (module?: string
|
|
11
|
-
getModuleDocs: (module?: string
|
|
12
|
-
getModuleDocsAttributes: (module?: string
|
|
8
|
+
getModuleConfig: (module?: string) => IFabricConfModulePart;
|
|
9
|
+
getModuleData: (module?: string) => IFabricConfModuleDataPart;
|
|
10
|
+
getModuleMetaData: (module?: string) => IFabricConfModuleMetaDataPart;
|
|
11
|
+
getModuleDocs: (module?: string) => IFabricConfModuleDocsPart;
|
|
12
|
+
getModuleDocsAttributes: (module?: string) => TFabricConfModuleDocsAttributesPart;
|
|
13
13
|
getClassNames: {
|
|
14
14
|
getModuleTagClassNames: (props: import("./cssfabricClassNames.js").IListCssfabricClassNamesProps) => Record<string, any> | string[];
|
|
15
15
|
getModuleTagDebug: (props: import("./cssfabricClassNames.js").IListCssfabricClassNamesProps) => Record<string, any> | string[];
|
package/dist/scss/_utils.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use "sass:meta";
|
|
1
3
|
@use "sass:string";
|
|
2
4
|
@use "sass:map";
|
|
3
5
|
@use "sass:math";
|
|
@@ -12,11 +14,11 @@
|
|
|
12
14
|
@return cssfabric-config.$cssfabric-config;
|
|
13
15
|
}
|
|
14
16
|
@if $prop and not $val {
|
|
15
|
-
@return map
|
|
17
|
+
@return map.get(cssfabric-config.$cssfabric-config, $prop);
|
|
16
18
|
}
|
|
17
19
|
@if $val {
|
|
18
|
-
$in: map
|
|
19
|
-
@return map
|
|
20
|
+
$in: map.get(cssfabric-config.$cssfabric-config, $prop);
|
|
21
|
+
@return map.get($in, $prop, $val);
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -46,13 +48,13 @@
|
|
|
46
48
|
*/
|
|
47
49
|
@each $red, $rt in $module-config {
|
|
48
50
|
// list map string
|
|
49
|
-
@if (type_of($rt) == "string") {
|
|
51
|
+
@if (meta.type_of($rt) == "string") {
|
|
50
52
|
$key: #{$module}-#{$red};
|
|
51
53
|
--cssfabric-#{$key}: #{$rt};
|
|
52
54
|
}
|
|
53
|
-
@if (type_of($rt) == "map") {
|
|
55
|
+
@if (meta.type_of($rt) == "map") {
|
|
54
56
|
@each $rtkey, $rtval in $rt {
|
|
55
|
-
$type: type_of($rtval);
|
|
57
|
+
$type: meta.type_of($rtval);
|
|
56
58
|
$key: #{$module}-#{$red}-#{$rtkey};
|
|
57
59
|
$compval: is-map; // #{string.slice(#{#ss($rtval)}, 4)};
|
|
58
60
|
|
|
@@ -61,7 +63,7 @@
|
|
|
61
63
|
--cssfabric-#{$key}: #{$comp};
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
|
-
@if (type_of($rt) == "list") {
|
|
66
|
+
@if (meta.type_of($rt) == "list") {
|
|
65
67
|
$key: #{$module}-#{$red};
|
|
66
68
|
--cssfabric-#{$key}: #{string.slice(#{#ss($rt)}, 4)};
|
|
67
69
|
}
|
|
@@ -80,7 +82,7 @@
|
|
|
80
82
|
|
|
81
83
|
@for $i from 0 through $steps {
|
|
82
84
|
|
|
83
|
-
$color: mix($gray-end, $gray-start, math.div($i , $steps) * 100%);
|
|
85
|
+
$color: color.mix($gray-end, $gray-start, math.div($i , $steps) * 100%);
|
|
84
86
|
|
|
85
87
|
$gray-schemes: map.set($gray-schemes, #{($i+1) * 100}, $color);
|
|
86
88
|
}
|
|
@@ -89,14 +91,14 @@
|
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
@function applyColorEffect($theme-level, $color) {
|
|
92
|
-
$switch-named: map
|
|
94
|
+
$switch-named: map.get(
|
|
93
95
|
(
|
|
94
|
-
light:
|
|
95
|
-
lighter:
|
|
96
|
-
dark:
|
|
97
|
-
darker:
|
|
98
|
-
complement: complement($color),
|
|
99
|
-
invert: invert($color)
|
|
96
|
+
light: color.adjust($color, $lightness: 15%),
|
|
97
|
+
lighter: color.adjust($color, $lightness: 30%),
|
|
98
|
+
dark: color.adjust($color, $lightness: -10%),
|
|
99
|
+
darker: color.adjust($color, $lightness: -20%),
|
|
100
|
+
complement: color.complement($color),
|
|
101
|
+
invert: color.invert($color)
|
|
100
102
|
),
|
|
101
103
|
$theme-level
|
|
102
104
|
);
|
|
@@ -106,7 +108,7 @@
|
|
|
106
108
|
|
|
107
109
|
@function getColorPropertyType($fabric-tag) {
|
|
108
110
|
/** get property for #{$fabric-tag} */
|
|
109
|
-
@return map
|
|
111
|
+
@return map.get(
|
|
110
112
|
(
|
|
111
113
|
color: color,
|
|
112
114
|
text: color,
|
|
@@ -148,11 +150,11 @@
|
|
|
148
150
|
@function getShadowIterator($factors,$box-shadows-steps) {
|
|
149
151
|
$out: ();
|
|
150
152
|
|
|
151
|
-
$v_fact: map
|
|
152
|
-
$h_fact: map
|
|
153
|
+
$v_fact: map.get($factors, v_fact);
|
|
154
|
+
$h_fact: map.get($factors, h_fact);
|
|
153
155
|
|
|
154
|
-
$v_fact_2: map
|
|
155
|
-
$h_fact_2: map
|
|
156
|
+
$v_fact_2: map.get($factors, v_fact_2);
|
|
157
|
+
$h_fact_2: map.get($factors, h_fact_2);
|
|
156
158
|
|
|
157
159
|
$acc: 1;
|
|
158
160
|
|
|
@@ -188,7 +190,7 @@
|
|
|
188
190
|
@function getObjectKeys($object) {
|
|
189
191
|
$out: ();
|
|
190
192
|
@each $key, $value in $object {
|
|
191
|
-
$out: append($out, $key);
|
|
193
|
+
$out: list.append($out, $key);
|
|
192
194
|
}
|
|
193
195
|
|
|
194
196
|
@return $out;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
@use "sass:map";
|
|
2
3
|
@use "sass:math";
|
|
3
4
|
|
|
@@ -167,7 +168,7 @@ $cssfabric-config: (
|
|
|
167
168
|
|
|
168
169
|
@for $i from 0 through $steps {
|
|
169
170
|
|
|
170
|
-
$color: mix($gray-end, $gray-start, math.div($i , $steps) * 100%);
|
|
171
|
+
$color: color.mix($gray-end, $gray-start, math.div($i , $steps) * 100%);
|
|
171
172
|
|
|
172
173
|
$gray-schemes: map.set($gray-schemes, #{($i+1) * 100}, $color);
|
|
173
174
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:list";
|
|
1
2
|
@use "sass:map";
|
|
2
3
|
@use "sass:math";
|
|
3
4
|
@use '../../_utils';
|
|
@@ -99,7 +100,7 @@ $densities-ratios : cssfabric-config.$densities-ratios;
|
|
|
99
100
|
$computed_value: $css_size_value + " solid var(--theme-color-border)";
|
|
100
101
|
|
|
101
102
|
#{raw_size_tag_rule($grid_size_value)} &-#{$grid_size_value} {
|
|
102
|
-
@if length($rule) == 4 {
|
|
103
|
+
@if list.length($rule) == 4 {
|
|
103
104
|
#{$fabric_box_position_prop}: #{$computed_value};
|
|
104
105
|
} @else {
|
|
105
106
|
|
|
@@ -135,7 +136,7 @@ $densities-ratios : cssfabric-config.$densities-ratios;
|
|
|
135
136
|
$computed_value: var(--box-density-#{$grid_size_value});
|
|
136
137
|
|
|
137
138
|
#{raw_size_tag_rule($grid_size_value)} &-#{$grid_size_value} {
|
|
138
|
-
@if length($rule) == 4 {
|
|
139
|
+
@if list.length($rule) == 4 {
|
|
139
140
|
#{$fabric_box_position_prop}: #{$computed_value};
|
|
140
141
|
} @else {
|
|
141
142
|
@each $rule_value in $rule {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
|
|
2
3
|
@use '../../_utils';
|
|
3
4
|
@use "_box-build" as build;
|
|
@@ -5,7 +6,7 @@
|
|
|
5
6
|
// load general config variables
|
|
6
7
|
$config: cssfabric-config.$cssfabric-config;
|
|
7
8
|
|
|
8
|
-
$_media_quey_sizes: map
|
|
9
|
+
$_media_quey_sizes: map.get($config, media_quey_sizes);
|
|
9
10
|
|
|
10
11
|
// responsive builder here
|
|
11
12
|
$min_value: 0;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
@use "sass:map";
|
|
2
3
|
@use 'color-vars';
|
|
3
4
|
@use "sass:math";
|
|
@@ -8,13 +9,13 @@
|
|
|
8
9
|
$color-config: color-vars.$color-config;
|
|
9
10
|
|
|
10
11
|
// COLOR TYPES
|
|
11
|
-
$color-types-config: map
|
|
12
|
+
$color-types-config: map.get($color-config, color-types-config);
|
|
12
13
|
// COLOR SCHEMES
|
|
13
|
-
$color-schemes: map
|
|
14
|
+
$color-schemes: map.get($color-config, scheme) !default;
|
|
14
15
|
// COLOR PALETTE
|
|
15
|
-
$color-palette: map
|
|
16
|
+
$color-palette: map.get($color-config, palette) !default;
|
|
16
17
|
// COLOR THEME
|
|
17
|
-
$color-theme: map
|
|
18
|
+
$color-theme: map.get($color-config, theme) !default;
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
// GRAYS
|
|
@@ -28,11 +29,11 @@ $gray-schemes: utils.getGraySteps($color-gray-steps, $color-gray-start, $color-g
|
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
@function text-contrast($n) {
|
|
31
|
-
$color-brightness: round((red($n) * 299) + (green($n) * 587) + math.div(blue(#ffffff) * 114, 1000));
|
|
32
|
-
$light-color: round((red(#ffffff) * 299) + (green(#ffffff) * 587) + math.div(blue(#ffffff) * 114, 1000));
|
|
32
|
+
$color-brightness: math.round((color.red($n) * 299) + (color.green($n) * 587) + math.div(color.blue(#ffffff) * 114, 1000));
|
|
33
|
+
$light-color: math.round((color.red(#ffffff) * 299) + (color.green(#ffffff) * 587) + math.div(color.blue(#ffffff) * 114, 1000));
|
|
33
34
|
$color: black;
|
|
34
35
|
|
|
35
|
-
@if abs($color-brightness) < math.div($light-color,2) {
|
|
36
|
+
@if math.abs($color-brightness) < math.div($light-color,2) {
|
|
36
37
|
$color: white;
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -9,7 +9,7 @@ $config: cssfabric-config.$cssfabric-config;
|
|
|
9
9
|
|
|
10
10
|
// load general config variables
|
|
11
11
|
// media queries sizes, in rem
|
|
12
|
-
$_media_quey_sizes: map
|
|
12
|
+
$_media_quey_sizes: map.get($config, media_quey_sizes);
|
|
13
13
|
|
|
14
14
|
// builder responsive
|
|
15
15
|
$min_value: 0;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
// load scss config file
|
|
2
3
|
@use '../../_utils';
|
|
3
4
|
@use '../cssfabric-config' as cssfabric-vars;
|
|
@@ -6,18 +7,18 @@
|
|
|
6
7
|
$flex-config: flex-vars.$flex-config;
|
|
7
8
|
$cssfabric-config: cssfabric-vars.$cssfabric-config;
|
|
8
9
|
|
|
9
|
-
$sep: map
|
|
10
|
+
$sep: map.get($cssfabric-config, sep);
|
|
10
11
|
// read variables
|
|
11
|
-
$grid-code: map
|
|
12
|
-
$grid-h: map
|
|
13
|
-
$grid-v: map
|
|
12
|
+
$grid-code: map.get($flex-config, moduleNameShort);
|
|
13
|
+
$grid-h: map.get($flex-config, horCode);
|
|
14
|
+
$grid-v: map.get($flex-config, vertCode);
|
|
14
15
|
|
|
15
|
-
$cssProps: map
|
|
16
|
-
$cssItemsProps: map
|
|
16
|
+
$cssProps: map.get($flex-config, cssProps);
|
|
17
|
+
$cssItemsProps: map.get($flex-config, cssItemsProps);
|
|
17
18
|
|
|
18
|
-
$gridFullWidth: map
|
|
19
|
+
$gridFullWidth: map.get($flex-config, gridFullWidth);
|
|
19
20
|
|
|
20
|
-
$grow-shrink-steps: map
|
|
21
|
+
$grow-shrink-steps: map.get($flex-config, grow-shrink-steps);
|
|
21
22
|
|
|
22
23
|
$grid-code-sep: #{$grid-code}#{$sep};
|
|
23
24
|
|
|
@@ -126,14 +127,14 @@ $grid-code-sep: #{$grid-code}#{$sep};
|
|
|
126
127
|
|
|
127
128
|
// wrap rules
|
|
128
129
|
.#{$grid-code} {
|
|
129
|
-
@each $fabricRule, $value in map
|
|
130
|
+
@each $fabricRule, $value in map.get($cssProps, flexWrap) {
|
|
130
131
|
@include utils.fabricAttributes('&'+$sep, $fabricRule, 'flex-wrap', $value);
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
// align-self rules for children */
|
|
135
136
|
.self {
|
|
136
|
-
@each $fabricRule, $value in map
|
|
137
|
+
@each $fabricRule, $value in map.get($cssItemsProps, self) {
|
|
137
138
|
@include utils.fabricAttributes('&-', $fabricRule, 'align-self', $value);
|
|
138
139
|
}
|
|
139
140
|
}
|