@medyll/cssfabric 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -240
- package/_generated/cssFabric.vars.json +13 -0
- package/{src/_generated → _generated}/export.variables.md +0 -0
- package/{src/_generated → _generated}/index.d.ts +0 -0
- package/{src/_generated → _generated}/readme.md +0 -0
- package/init/importCssVars.d.ts +1 -0
- package/init/importCssVars.js +2 -0
- package/package.json +113 -69
- package/{lib/scripts → scripts}/cssfabric.d.ts +0 -0
- package/scripts/cssfabric.js +43 -0
- package/{lib/scripts → scripts}/cssfabricClassNames.d.ts +0 -0
- package/{lib/scripts → scripts}/cssfabricClassNames.js +5 -9
- package/{src/scripts → scripts}/index.d.ts +0 -0
- package/scripts/index.js +4 -0
- package/{lib/scripts → scripts}/utils.d.ts +0 -0
- package/{lib/scripts → scripts}/utils.js +1 -3
- package/{lib/styles/core → styles}/animation/animation.css +0 -0
- package/{lib/styles/core → styles}/animation/animation.min.css +0 -0
- package/{lib/styles/core → styles}/base/base.css +0 -7
- package/styles/base/base.min.css +1 -0
- package/styles/box/box.css +1379 -0
- package/styles/box/box.min.css +1 -0
- package/styles/box/box.responsive.css +5524 -0
- package/styles/box/box.responsive.min.css +1 -0
- package/styles/color/color.css +1565 -0
- package/styles/color/color.min.css +1 -0
- package/styles/color/color.responsive.css +6268 -0
- package/styles/color/color.responsive.min.css +1 -0
- package/styles/cssfabric.css +61792 -0
- package/styles/cssfabric.min.css +168 -0
- package/styles/cssfabric.responsive.css +200596 -0
- package/styles/cssfabric.responsive.min.css +108 -0
- package/{lib/styles/core → styles}/flex/flex.css +0 -0
- package/styles/flex/flex.min.css +1 -0
- package/{lib/styles/core → styles}/flex/flex.responsive.css +0 -126
- package/styles/flex/flex.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/grid/grid.css +0 -0
- package/styles/grid/grid.min.css +1 -0
- package/{lib/styles/core → styles}/grid/grid.responsive.css +0 -121
- package/styles/grid/grid.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/menu/menu.css +16 -12
- package/styles/menu/menu.min.css +1 -0
- package/{lib/styles/core → styles}/menu/menu.responsive.css +64 -129
- package/styles/menu/menu.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/overflow/overflow.css +0 -0
- package/{lib/styles/core → styles}/overflow/overflow.min.css +0 -0
- package/{lib/styles/core → styles}/overflow/overflow.responsive.css +0 -61
- package/styles/overflow/overflow.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/scale/scale.css +286 -206
- package/styles/scale/scale.min.css +1 -0
- package/styles/scale/scale.responsive.css +2884 -0
- package/styles/scale/scale.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/table/table.css +0 -0
- package/styles/table/table.min.css +1 -0
- package/{lib/styles/core → styles}/table/table.responsive.css +0 -74
- package/styles/table/table.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/text/text.css +4 -0
- package/styles/text/text.min.css +1 -0
- package/styles/text/text.responsive.css +196 -0
- package/styles/text/text.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/theme/theme.css +0 -0
- package/{lib/styles/core → styles}/theme/theme.min.css +0 -0
- package/styles/vars.css +414 -0
- package/styles/vars.min.css +1 -0
- package/{lib/styles/core → styles}/zindex/zindex.css +0 -0
- package/{lib/styles/core → styles}/zindex/zindex.min.css +0 -0
- package/.idea/cssfabric.iml +0 -8
- package/.idea/misc.xml +0 -9
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.vscode/settings.json +0 -24
- package/bin/index.js +0 -7
- package/cssfabric.config.js +0 -3
- package/cssfabric.json +0 -8
- package/gulpfile.js +0 -598
- package/lib/_generated/export.variables.json +0 -583
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -7
- package/lib/scripts/cssfabric.js +0 -48
- package/lib/scripts/index.d.ts +0 -2
- package/lib/scripts/index.js +0 -6
- package/lib/styles/core/base/base.min.css +0 -1
- package/lib/styles/core/box/box.css +0 -2449
- package/lib/styles/core/box/box.min.css +0 -1
- package/lib/styles/core/box/box.responsive.css +0 -12255
- package/lib/styles/core/box/box.responsive.min.css +0 -1
- package/lib/styles/core/color/color.css +0 -923
- package/lib/styles/core/color/color.min.css +0 -1
- package/lib/styles/core/color/color.responsive.css +0 -4625
- package/lib/styles/core/color/color.responsive.min.css +0 -1
- package/lib/styles/core/flex/flex.min.css +0 -1
- package/lib/styles/core/flex/flex.responsive.min.css +0 -1
- package/lib/styles/core/grid/grid.min.css +0 -1
- package/lib/styles/core/grid/grid.responsive.min.css +0 -1
- package/lib/styles/core/main.min.css +0 -1
- package/lib/styles/core/menu/menu.min.css +0 -1
- package/lib/styles/core/menu/menu.responsive.min.css +0 -1
- package/lib/styles/core/overflow/overflow.responsive.min.css +0 -1
- package/lib/styles/core/scale/scale.min.css +0 -1
- package/lib/styles/core/scale/scale.responsive.css +0 -3205
- package/lib/styles/core/scale/scale.responsive.min.css +0 -1
- package/lib/styles/core/table/table.min.css +0 -1
- package/lib/styles/core/table/table.responsive.min.css +0 -1
- package/lib/styles/core/text/text.min.css +0 -1
- package/lib/styles/core/text/text.responsive.css +0 -745
- package/lib/styles/core/text/text.responsive.min.css +0 -1
- package/lib/styles/core/vars.css +0 -274
- package/lib/styles/core/vars.min.css +0 -1
- package/lib/styles/cssfabric.css +0 -5367
- package/lib/styles/cssfabric.min.css +0 -15
- package/lib/styles/cssfabric.responsive.css +0 -23164
- package/lib/styles/cssfabric.responsive.min.css +0 -9
- package/src/_generated/export.variables.json +0 -760
- package/src/cssfabric/_utils.scss +0 -193
- package/src/cssfabric/index.d.ts +0 -3
- package/src/cssfabric/modules/_cssfabric-config.scss +0 -93
- package/src/cssfabric/modules/_mixins.scss +0 -1
- package/src/cssfabric/modules/animation/_animation-vars.scss +0 -17
- package/src/cssfabric/modules/animation/animation.scss +0 -3
- package/src/cssfabric/modules/base/_base-vars.scss +0 -19
- package/src/cssfabric/modules/base/base.scss +0 -80
- package/src/cssfabric/modules/box/_box-build.scss +0 -268
- package/src/cssfabric/modules/box/_box-vars.scss +0 -119
- package/src/cssfabric/modules/box/box-responsive.scss +0 -18
- package/src/cssfabric/modules/box/box.scss +0 -3
- package/src/cssfabric/modules/color/_color-build.scss +0 -108
- package/src/cssfabric/modules/color/_color-vars.scss +0 -80
- package/src/cssfabric/modules/color/color-responsive.scss +0 -23
- package/src/cssfabric/modules/color/color.scss +0 -9
- package/src/cssfabric/modules/css-fabric.scss +0 -2
- package/src/cssfabric/modules/flex/_flex-build.scss +0 -150
- package/src/cssfabric/modules/flex/_flex-vars.scss +0 -84
- package/src/cssfabric/modules/flex/flex-responsive.scss +0 -25
- package/src/cssfabric/modules/flex/flex.scss +0 -3
- package/src/cssfabric/modules/grid/_grid-build.scss +0 -84
- package/src/cssfabric/modules/grid/_grid-vars.scss +0 -88
- package/src/cssfabric/modules/grid/grid-responsive.scss +0 -25
- package/src/cssfabric/modules/grid/grid.scss +0 -6
- package/src/cssfabric/modules/menu/_menu-build.scss +0 -119
- package/src/cssfabric/modules/menu/_menu-vars.scss +0 -29
- package/src/cssfabric/modules/menu/menu-responsive.scss +0 -19
- package/src/cssfabric/modules/menu/menu.scss +0 -6
- package/src/cssfabric/modules/overflow/_overflow-build.scss +0 -22
- package/src/cssfabric/modules/overflow/_overflow-vars.scss +0 -31
- package/src/cssfabric/modules/overflow/overflow-responsive.scss +0 -25
- package/src/cssfabric/modules/overflow/overflow.scss +0 -7
- package/src/cssfabric/modules/scale/_scale-build.scss +0 -129
- package/src/cssfabric/modules/scale/_scale-vars.scss +0 -75
- package/src/cssfabric/modules/scale/scale-responsive.scss +0 -23
- package/src/cssfabric/modules/scale/scale.scss +0 -8
- package/src/cssfabric/modules/table/_table-build.scss +0 -134
- package/src/cssfabric/modules/table/_table-vars.scss +0 -30
- package/src/cssfabric/modules/table/table-responsive.scss +0 -24
- package/src/cssfabric/modules/table/table.scss +0 -8
- package/src/cssfabric/modules/text/_text-build.scss +0 -109
- package/src/cssfabric/modules/text/_text-vars.scss +0 -87
- package/src/cssfabric/modules/text/text-responsive.scss +0 -25
- package/src/cssfabric/modules/text/text.scss +0 -6
- package/src/cssfabric/modules/theme/_theme-build.scss +0 -76
- package/src/cssfabric/modules/theme/_theme-vars.scss +0 -55
- package/src/cssfabric/modules/theme/theme.scss +0 -6
- package/src/cssfabric/modules/vars.scss +0 -118
- package/src/cssfabric/modules/zindex/_zindex-vars.scss +0 -14
- package/src/cssfabric/modules/zindex/zindex.scss +0 -15
- package/src/index.d.ts +0 -3
- package/src/index.ts +0 -4
- package/src/scripts/cssfabric.ts +0 -54
- package/src/scripts/cssfabricClassNames.ts +0 -216
- package/src/scripts/index.ts +0 -8
- package/src/scripts/utils.ts +0 -37
- package/src/vendor/index.d.ts +0 -3
- package/src/vendor/normalize/normalize.min.css +0 -2
- package/src/vendor/sass-json-export/CHANGELOG.md +0 -26
- package/src/vendor/sass-json-export/Gruntfile.js +0 -60
- package/src/vendor/sass-json-export/LICENSE +0 -20
- package/src/vendor/sass-json-export/README.md +0 -90
- package/src/vendor/sass-json-export/package.json +0 -60
- package/src/vendor/sass-json-export/stylesheets/encode/api/_json.scss +0 -26
- package/src/vendor/sass-json-export/stylesheets/encode/encode.scss +0 -17
- package/src/vendor/sass-json-export/stylesheets/encode/helpers/_quote.scss +0 -9
- package/src/vendor/sass-json-export/stylesheets/encode/mixins/_json.scss +0 -42
- package/src/vendor/sass-json-export/stylesheets/encode/types/_bool.scss +0 -7
- package/src/vendor/sass-json-export/stylesheets/encode/types/_color.scss +0 -8
- package/src/vendor/sass-json-export/stylesheets/encode/types/_list.scss +0 -14
- package/src/vendor/sass-json-export/stylesheets/encode/types/_map.scss +0 -15
- package/src/vendor/sass-json-export/stylesheets/encode/types/_null.scss +0 -7
- package/src/vendor/sass-json-export/stylesheets/encode/types/_number.scss +0 -8
- package/src/vendor/sass-json-export/stylesheets/encode/types/_string.scss +0 -8
- package/src/vendor/sass-json-export/stylesheets/sass-json-export.scss +0 -2
- package/src/vendor/sass-json-export/test/encode/_index.scss +0 -14
- package/src/vendor/sass-json-export/test/encode/api/_json.scss +0 -29
- package/src/vendor/sass-json-export/test/encode/helpers/_quote.scss +0 -6
- package/src/vendor/sass-json-export/test/encode/types/_bool.scss +0 -6
- package/src/vendor/sass-json-export/test/encode/types/_color.scss +0 -7
- package/src/vendor/sass-json-export/test/encode/types/_list.scss +0 -25
- package/src/vendor/sass-json-export/test/encode/types/_map.scss +0 -17
- package/src/vendor/sass-json-export/test/encode/types/_null.scss +0 -8
- package/src/vendor/sass-json-export/test/encode/types/_number.scss +0 -68
- package/src/vendor/sass-json-export/test/encode/types/_string.scss +0 -9
- package/src/vendor/sass-json-export/test/test.scss +0 -9
- package/tsconfig.json +0 -46
- package/webpack.config.js +0 -53
|
@@ -1,193 +0,0 @@
|
|
|
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 + px) {
|
|
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 getColorPropertyType($fabric-tag) {
|
|
99
|
-
/** get property for #{$fabric-tag} */
|
|
100
|
-
@return map-get(
|
|
101
|
-
(
|
|
102
|
-
color: color,
|
|
103
|
-
text: color,
|
|
104
|
-
bg: background-color,
|
|
105
|
-
bg-themed: background-color,
|
|
106
|
-
border: border-color
|
|
107
|
-
),
|
|
108
|
-
$fabric-tag
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
@function getThemeLevels($declinations-config, $color_primary) {
|
|
113
|
-
$out: ();
|
|
114
|
-
// primary secondary tertiary
|
|
115
|
-
@each $color-grade,$color-value in $declinations-config {
|
|
116
|
-
$color: $color-value;
|
|
117
|
-
$out: map.set($out, $color-grade, $color);
|
|
118
|
-
@each $theme-level in (light lighter dark darker complement invert) {
|
|
119
|
-
$new-theme-level: #{$color-grade}-#{$theme-level};
|
|
120
|
-
$newColor: applyColorEffect($theme-level, $color);
|
|
121
|
-
$out: map.set($out, $new-theme-level, $newColor);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
@return $out;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
@function getBoxIterator($iterator, $unit-config,$_unit-size-config) {
|
|
129
|
-
$out: ("_": "_" );
|
|
130
|
-
|
|
131
|
-
@for $grid_size_value from 1 through $iterator {
|
|
132
|
-
$css_size_value: ($grid_size_value * $_unit-size-config) + $unit-config;
|
|
133
|
-
$out: map.set($out, $grid_size_value, $css_size_value);
|
|
134
|
-
}
|
|
135
|
-
@return $out
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@function getShadowIterator($factors,$box-shadows-steps) {
|
|
139
|
-
$out: ();
|
|
140
|
-
|
|
141
|
-
$v_fact: map-get($factors, v_fact);
|
|
142
|
-
$h_fact: map-get($factors, h_fact);
|
|
143
|
-
|
|
144
|
-
$v_fact_2: map-get($factors, v_fact_2);
|
|
145
|
-
$h_fact_2: map-get($factors, h_fact_2);
|
|
146
|
-
|
|
147
|
-
$acc: 1;
|
|
148
|
-
|
|
149
|
-
@for $shadows_step from 1 through $box-shadows-steps {
|
|
150
|
-
$acc: $acc * 2;
|
|
151
|
-
$v: $shadows_step * 2;
|
|
152
|
-
|
|
153
|
-
$v_val: math.div($acc , $v_fact);
|
|
154
|
-
$h_val: math.div($acc , $h_fact);
|
|
155
|
-
|
|
156
|
-
$v_val_2: math.div($acc , $v_fact_2);
|
|
157
|
-
$h_val_2: math.div($acc , $h_fact_2);
|
|
158
|
-
|
|
159
|
-
$out: map.set($out, $acc, #{$v_val} + #{$h_val});
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
@return $out;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
@function cssDimensionPropertyBuilder($scale_prop,$dimensions_grid_ratio) {
|
|
166
|
-
$out: ();
|
|
167
|
-
|
|
168
|
-
@for $z_value from 1 through $dimensions_grid_ratio {
|
|
169
|
-
$key: $z_value + "-" + $dimensions_grid_ratio;
|
|
170
|
-
$val: (math.div($z_value , $dimensions_grid_ratio) * 100) +#{"%"};
|
|
171
|
-
|
|
172
|
-
$out: map.set($out, $key, $val);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
@return $out
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
@function getObjectKeys($object) {
|
|
179
|
-
$out: ();
|
|
180
|
-
@each $key, $value in $object {
|
|
181
|
-
$out: append($out, $key);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
@return $out;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
@function getObjectValues($object) {
|
|
188
|
-
@return $object;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
@function getObjectKeyValues($object) {
|
|
192
|
-
@return $object;
|
|
193
|
-
}
|
package/src/cssfabric/index.d.ts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
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
|
-
xxl: 1300,
|
|
25
|
-
xl: 1200,
|
|
26
|
-
lg: 960,
|
|
27
|
-
md: 760,
|
|
28
|
-
sm: 0
|
|
29
|
-
),
|
|
30
|
-
themes:(
|
|
31
|
-
light:(
|
|
32
|
-
foreground: #282230,
|
|
33
|
-
background: #f1f1f1,
|
|
34
|
-
paper: #ededed
|
|
35
|
-
),
|
|
36
|
-
dark:(
|
|
37
|
-
foreground: #f1f1f1,
|
|
38
|
-
background: #27323a,
|
|
39
|
-
paper: #3a3b3b
|
|
40
|
-
),
|
|
41
|
-
),
|
|
42
|
-
theme: (
|
|
43
|
-
primary: #0288d1,
|
|
44
|
-
secondary: #D14B02,
|
|
45
|
-
tertiary: #88D102,
|
|
46
|
-
foreground: #282230,
|
|
47
|
-
background: #f1f1f1,
|
|
48
|
-
),
|
|
49
|
-
scheme: (
|
|
50
|
-
discrete: #ccc,
|
|
51
|
-
success: green,
|
|
52
|
-
info: hsl(48, 100%, 67%),
|
|
53
|
-
warning: hsl(48, 96%, 46%),
|
|
54
|
-
alert: hsl(27, 100%, 50%),
|
|
55
|
-
error: red
|
|
56
|
-
),
|
|
57
|
-
palette: (
|
|
58
|
-
yellow: #ffb900,
|
|
59
|
-
orange: #d83b01,
|
|
60
|
-
red: #d13438,
|
|
61
|
-
magenta: #b4009e,
|
|
62
|
-
purple: #5c2d91,
|
|
63
|
-
green: #107c10,
|
|
64
|
-
teal: #008272,
|
|
65
|
-
blue: #0078d4,
|
|
66
|
-
dark: #323232,
|
|
67
|
-
),
|
|
68
|
-
border-radius:(
|
|
69
|
-
tiny:4px, small:8px, medium:16px
|
|
70
|
-
),
|
|
71
|
-
gray: getGraySteps(8, #f4f4f4, #999),
|
|
72
|
-
gray-config: (
|
|
73
|
-
start: #f4f4f4,
|
|
74
|
-
end: #999,
|
|
75
|
-
steps: 8
|
|
76
|
-
)
|
|
77
|
-
);
|
|
78
|
-
|
|
79
|
-
@function getGraySteps($steps, $gray-start, $gray-end) {
|
|
80
|
-
$gray-schemes: ();
|
|
81
|
-
|
|
82
|
-
@for $i from 0 through $steps {
|
|
83
|
-
|
|
84
|
-
$color: mix($gray-end, $gray-start, math.div($i , $steps) * 100%);
|
|
85
|
-
|
|
86
|
-
$gray-schemes: map.set($gray-schemes, #{($i+1) * 100}, $color);
|
|
87
|
-
}
|
|
88
|
-
@debug $gray-schemes;
|
|
89
|
-
|
|
90
|
-
@return $gray-schemes;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
$cssfabric-docs: ();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
@use '../../_utils';
|
|
3
|
-
|
|
4
|
-
$base-metadata: (
|
|
5
|
-
title: "base",
|
|
6
|
-
tag: "base",
|
|
7
|
-
description: "cssfabric base config variables"
|
|
8
|
-
);
|
|
9
|
-
|
|
10
|
-
$base-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
|
-
sizes: utils.get_fabric_conf(sizes)
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
$base-docs: (
|
|
19
|
-
);
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use '../../../vendor/normalize/normalize.min.css';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
p {
|
|
6
|
-
margin: auto;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.hover-parent {
|
|
10
|
-
.hover-show {
|
|
11
|
-
display: none;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.hover-hide {
|
|
15
|
-
display: initial;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&:hover {
|
|
19
|
-
.hover-show {
|
|
20
|
-
display: initial;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.hover-hide {
|
|
24
|
-
display: none;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.block:not(:last-child) {
|
|
31
|
-
margin-bottom: 1.5rem;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
h1,
|
|
35
|
-
h2,
|
|
36
|
-
h3,
|
|
37
|
-
h4,
|
|
38
|
-
h5,
|
|
39
|
-
h6 {
|
|
40
|
-
margin-block-start: 0 !important;
|
|
41
|
-
margin-block-end: 0 !important;
|
|
42
|
-
margin-inline-start: 0 !important;
|
|
43
|
-
margin-inline-end: 0 !important;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
label, .label {
|
|
50
|
-
padding: 0.125rem 0.5rem;
|
|
51
|
-
border: 1px solid #ccc;
|
|
52
|
-
display: inline-block;
|
|
53
|
-
border-radius: 4px;
|
|
54
|
-
background-color: #ededed;
|
|
55
|
-
text-shadow: white;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.box-content {
|
|
59
|
-
padding: 0.25rem;
|
|
60
|
-
margin: 0.25rem 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.cell-padding {
|
|
64
|
-
& > * {
|
|
65
|
-
padding: 0.25em;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.cell-spacing {
|
|
70
|
-
& > * {
|
|
71
|
-
margin: 0.25em;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
code {
|
|
76
|
-
padding: 0.25em;
|
|
77
|
-
border: 1px solid #cccccc;
|
|
78
|
-
background-color: #ededed;
|
|
79
|
-
border-radius: 5px;
|
|
80
|
-
}
|
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "sass:math";
|
|
3
|
-
@use '../../_utils';
|
|
4
|
-
@use "../cssfabric-config" as fabricConfig;
|
|
5
|
-
@use "box-vars" as box;
|
|
6
|
-
|
|
7
|
-
$fabric-config: fabricConfig.$cssfabric-config;
|
|
8
|
-
$box-config: box.$box-config;
|
|
9
|
-
$box-docs: box.$box-docs;
|
|
10
|
-
|
|
11
|
-
$cssProps: map-get($box-config, cssProps);
|
|
12
|
-
$box-border-shorthands: map-get($cssProps, borderShorthands);
|
|
13
|
-
$box-position-props: map-get($cssProps, positionProps);
|
|
14
|
-
$box-display-props: map-get($cssProps, displayProps);
|
|
15
|
-
|
|
16
|
-
$box-unit-config: map-get($box-config, unit-config);
|
|
17
|
-
$box-border-unit-config: map-get($box-config, border-unit-config);
|
|
18
|
-
$box-unit-size-config: map-get($box-config, unit-size-config);
|
|
19
|
-
$box-unit-border-size-config: map-get($box-config, unit-border-size-config);
|
|
20
|
-
$box-sizes-config: map-get($box-config, sizes-config);
|
|
21
|
-
$box-border-sizes-px-config: map-get($box-config, border-sizes-px-config);
|
|
22
|
-
|
|
23
|
-
$box-position-shorthand-config: map-get($box-config, position-shorthand-config) !default;
|
|
24
|
-
$box-display-shorthand-config: map-get($box-config, display-shorthand-config) !default;
|
|
25
|
-
$box-shadow-shorthand-config: map-get($box-config, shadow-shorthand-config) !default;
|
|
26
|
-
|
|
27
|
-
$box-border-shorthand-config: map-get($box-config, border-shorthand-config) !default;
|
|
28
|
-
$box-padding-shorthand-config: map-get($box-config, padding-shorthand-config) !default;
|
|
29
|
-
$box-margin-shorthand-config: map-get($box-config, margin-shorthand-config) !default;
|
|
30
|
-
|
|
31
|
-
$box-shadows-steps: map-get($box-config, shadows-steps) !default;
|
|
32
|
-
$box-shadows-step-multiplier: map-get($box-config, shadows-step_multiplier) !default;
|
|
33
|
-
|
|
34
|
-
$box-radius: map-get($fabric-config, border-radius);
|
|
35
|
-
|
|
36
|
-
$css-shorthands: (
|
|
37
|
-
border: $box-border-shorthand-config,
|
|
38
|
-
padding: $box-padding-shorthand-config,
|
|
39
|
-
margin: $box-margin-shorthand-config
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
// adding {border}-{r} shorthand css rule for .{border}-{r}-1
|
|
44
|
-
@function raw_size_tag_rule($condition) {
|
|
45
|
-
@if ($condition==1) {
|
|
46
|
-
@return "&,";
|
|
47
|
-
} @else {
|
|
48
|
-
@return "";
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@function write-box-rule($_args) {
|
|
53
|
-
$rule_value: map-get($_args, rule_value);
|
|
54
|
-
$rule_type: map-get($_args, rule_type);
|
|
55
|
-
$css_prop: map-get($_args, css_prop);
|
|
56
|
-
$grid_size_value: map-get($_args, grid_size_value);
|
|
57
|
-
|
|
58
|
-
$computed_value: "";
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
//
|
|
62
|
-
@if ($css_prop== "padding" or $css_prop== "margin") {
|
|
63
|
-
$computed_value: var(--box-unit-#{$grid_size_value});
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// complex write method: 1px value
|
|
67
|
-
@if ($css_prop== "border") {
|
|
68
|
-
$computed_value: $rule_value + " solid #ccc";
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@return $computed_value;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@mixin pmbCssVars() {
|
|
75
|
-
$iterator: $box-sizes-config;
|
|
76
|
-
@for $grid_size_value from 0 through $iterator {
|
|
77
|
-
$css_size_value: ($grid_size_value * $box-unit-size-config) + $box-unit-config;
|
|
78
|
-
--box-unit-#{$grid_size_value} : #{$css_size_value};
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// prop : ...top bottom for border | margin | padding
|
|
83
|
-
@mixin fabric-pmb($fabric_box_position_prop, $fabric_box_position_prop_short) {
|
|
84
|
-
@each $fabric_box_pmb_side_shorthand, $rule in $box-border-shorthands {
|
|
85
|
-
$iterator: if($fabric_box_position_prop== border, $box-border-sizes-px-config, $box-sizes-config);
|
|
86
|
-
$unit: if($fabric_box_position_prop== border, $box-border-unit-config, $box-unit-config);
|
|
87
|
-
// box_unit_border_size
|
|
88
|
-
$unit_size: if($fabric_box_position_prop== border, $box-unit-border-size-config, $box-unit-size-config);
|
|
89
|
-
|
|
90
|
-
// css property name
|
|
91
|
-
// remove _ is present
|
|
92
|
-
$shorthand: if($fabric_box_pmb_side_shorthand== "_", "", -#{$fabric_box_pmb_side_shorthand});
|
|
93
|
-
|
|
94
|
-
.#{$fabric_box_position_prop_short}#{$shorthand} {
|
|
95
|
-
// todo use utils.getBoxIterator
|
|
96
|
-
@for $grid_size_value from 1 through $iterator {
|
|
97
|
-
$css_size_value: ($grid_size_value * $unit_size) + $unit;
|
|
98
|
-
// css property name is aggregated with size value $i
|
|
99
|
-
#{raw_size_tag_rule($grid_size_value)} &-#{$grid_size_value} {
|
|
100
|
-
@if length($rule) ==4 {
|
|
101
|
-
$_args: (
|
|
102
|
-
rule_value: $css_size_value,
|
|
103
|
-
rule_type: "pmb",
|
|
104
|
-
css_prop: $fabric_box_position_prop,
|
|
105
|
-
grid_size_value: $grid_size_value
|
|
106
|
-
);
|
|
107
|
-
|
|
108
|
-
#{$fabric_box_position_prop}: write-box-rule($_args);
|
|
109
|
-
} @else {
|
|
110
|
-
|
|
111
|
-
@each $rule_value in $rule {
|
|
112
|
-
$_args: (
|
|
113
|
-
rule_value: $css_size_value,
|
|
114
|
-
rule_type: "pmb",
|
|
115
|
-
css_prop: $fabric_box_position_prop,
|
|
116
|
-
grid_size_value: $grid_size_value
|
|
117
|
-
);
|
|
118
|
-
|
|
119
|
-
#{$fabric_box_position_prop}-#{$rule_value}: write-box-rule($_args);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// stupid, make three calls
|
|
129
|
-
// pmb as padding margin border property
|
|
130
|
-
@mixin padding-margin-border($mq_key) {
|
|
131
|
-
@each $box_pmb_shorthand_value, $box_pmb_shorthand in $css-shorthands {
|
|
132
|
-
$shorthand: if($mq_key, #{$box_pmb_shorthand}-#{$mq_key}, #{$box_pmb_shorthand});
|
|
133
|
-
|
|
134
|
-
@include fabric-pmb($box_pmb_shorthand_value, $shorthand);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// radius
|
|
139
|
-
@mixin radius($mq_key) {
|
|
140
|
-
$shorthand: if($mq_key, radius-#{$mq_key}, radius);
|
|
141
|
-
|
|
142
|
-
@debug $box-radius;
|
|
143
|
-
/*radius*/
|
|
144
|
-
@each $radius, $value in $box-radius {
|
|
145
|
-
.#{$shorthand}-#{$radius} {
|
|
146
|
-
border-radius: #{$value};
|
|
147
|
-
|
|
148
|
-
&-t {
|
|
149
|
-
border-top-left-radius: #{$value};
|
|
150
|
-
border-top-right-radius: #{$value}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
&-b {
|
|
154
|
-
border-bottom-left-radius: #{$value};
|
|
155
|
-
border-bottom-right-radius: #{$value}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&-l {
|
|
159
|
-
border-top-left-radius: #{$value};
|
|
160
|
-
border-bottom-left-radius: #{$value}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
&-r {
|
|
164
|
-
border-top-right-radius: #{$value};
|
|
165
|
-
border-bottom-right-radius: #{$value}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
// placement property -- top-0/8
|
|
172
|
-
@mixin placement($mq_key) {
|
|
173
|
-
$shorthand: if($mq_key, #{$mq_key}-, '');
|
|
174
|
-
$places: (top, right, bottom, left);
|
|
175
|
-
|
|
176
|
-
/*placement*/
|
|
177
|
-
@each $place in $places {
|
|
178
|
-
@for $size from 0 through 8 {
|
|
179
|
-
.#{$place}-#{$shorthand}#{$size} {
|
|
180
|
-
#{$place}: var(--box-unit-#{$size});
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
// display property
|
|
187
|
-
@mixin display($mq_key) {
|
|
188
|
-
|
|
189
|
-
$shorthand: if($mq_key, #{$box-display-shorthand-config}-#{$mq_key}, #{$box-display-shorthand-config});
|
|
190
|
-
|
|
191
|
-
@each $css-shorthand, $css-value in $box-display-props {
|
|
192
|
-
// css property
|
|
193
|
-
$prop_re: #{$shorthand}-#{$css-shorthand};
|
|
194
|
-
|
|
195
|
-
.#{$prop_re} {
|
|
196
|
-
display: $css-value;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// position property
|
|
202
|
-
@mixin position($mq_key) {
|
|
203
|
-
$shorthand: if($mq_key, #{$box-position-shorthand-config}-#{$mq_key}, #{$box-position-shorthand-config});
|
|
204
|
-
|
|
205
|
-
@each $css-shorthand, $css-value in $box-position-props {
|
|
206
|
-
// css property
|
|
207
|
-
$prop_re: #{$shorthand}-#{$css-shorthand};
|
|
208
|
-
|
|
209
|
-
.#{$prop_re} {
|
|
210
|
-
position: $css-value;
|
|
211
|
-
// if sticky
|
|
212
|
-
@if sticky == $css-value {
|
|
213
|
-
top: 0;
|
|
214
|
-
margin-top: 0;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
@function buildShadowsValues($shadows_step:0) {
|
|
221
|
-
$v_fact: 2.4;
|
|
222
|
-
$h_fact: 1.16;
|
|
223
|
-
|
|
224
|
-
$v_fact_2: 13.1;
|
|
225
|
-
$h_fact_2: 4.3;
|
|
226
|
-
|
|
227
|
-
$acc: 1;
|
|
228
|
-
|
|
229
|
-
$acc: $acc * $shadows_step * 2;
|
|
230
|
-
$v: $shadows_step * 2;
|
|
231
|
-
|
|
232
|
-
$v_val: math.div($acc, $v_fact);
|
|
233
|
-
$h_val: math.div($acc, $h_fact);
|
|
234
|
-
|
|
235
|
-
$v_val_2: math.div($acc, $v_fact_2);
|
|
236
|
-
$h_val_2: math.div($acc, $h_fact_2);
|
|
237
|
-
|
|
238
|
-
@return 0 #{$v_val}px #{$h_val}px 0 rgb(0 0 0 / 15%), 0 #{$v_val_2}px #{$h_val_2}px 0 rgb(0 0 0 / 10%);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
@mixin shadows($mq_key) {
|
|
242
|
-
$shorthand: if($mq_key, #{$box-shadow-shorthand-config}-#{$mq_key}, #{$box-shadow-shorthand-config});
|
|
243
|
-
|
|
244
|
-
@for $shadows_step from 1 through $box-shadows-steps {
|
|
245
|
-
|
|
246
|
-
.#{$shorthand}-#{$shadows_step} {
|
|
247
|
-
box-shadow: var(--box-#{$shorthand}-#{$shadows_step});
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
// css vars rendered in :root
|
|
253
|
-
@mixin shadowsCssVars($mq_key:null) {
|
|
254
|
-
$shorthand: if($mq_key, #{$box-shadow-shorthand-config}-#{$mq_key}, #{$box-shadow-shorthand-config});
|
|
255
|
-
|
|
256
|
-
@for $shadows_step from 1 through $box-shadows-steps {
|
|
257
|
-
--box-#{$shorthand}-#{$shadows_step}: #{buildShadowsValues($shadows_step)};
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
@mixin buildBox($mq_key: null) {
|
|
262
|
-
@include padding-margin-border($mq_key);
|
|
263
|
-
@include display($mq_key);
|
|
264
|
-
@include position($mq_key);
|
|
265
|
-
@include placement($mq_key);
|
|
266
|
-
@include radius($mq_key);
|
|
267
|
-
@include shadows($mq_key);
|
|
268
|
-
}
|