@medyll/cssfabric 0.1.12 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/{lib/styles/core → styles}/box/box.css +127 -111
- package/styles/box/box.min.css +1 -0
- package/{lib/styles/core → styles}/box/box.responsive.css +508 -444
- package/styles/box/box.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/color/color.css +0 -0
- package/styles/color/color.min.css +1 -0
- package/{lib/styles/core → styles}/color/color.responsive.css +0 -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 -0
- 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 -0
- 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 -48
- 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 -0
- package/styles/overflow/overflow.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/scale/scale.css +0 -0
- package/{lib/styles/core → styles}/scale/scale.min.css +0 -0
- package/{lib/styles/core → styles}/scale/scale.responsive.css +0 -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 -0
- package/styles/table/table.responsive.min.css +1 -0
- package/{lib/styles/core → styles}/text/text.css +0 -0
- package/styles/text/text.min.css +1 -0
- package/{lib/styles/core → styles}/text/text.responsive.css +0 -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/{lib/styles/core → styles}/vars.css +6 -2
- 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.min.css +0 -1
- package/lib/styles/core/box/box.responsive.min.css +0 -1
- package/lib/styles/core/color/color.min.css +0 -1
- 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.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.min.css +0 -1
- package/lib/styles/core/vars.min.css +0 -1
- package/lib/styles/core/vars2.css +0 -4
- package/lib/styles/core/vars2.min.css +0 -1
- package/lib/styles/cssfabric.css +0 -5147
- package/lib/styles/cssfabric.min.css +0 -16
- package/lib/styles/cssfabric.responsive.css +0 -16679
- package/lib/styles/cssfabric.responsive.min.css +0 -9
- package/src/_generated/export.variables.json +0 -759
- package/src/cssfabric/_utils.scss +0 -203
- package/src/cssfabric/index.d.ts +0 -3
- package/src/cssfabric/modules/_cssfabric-config.scss +0 -163
- 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 -287
- package/src/cssfabric/modules/box/_box-vars.scss +0 -121
- 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 -196
- 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 -142
- package/src/cssfabric/modules/scale/_scale-vars.scss +0 -84
- 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 -166
- package/src/cssfabric/modules/text/_text-vars.scss +0 -87
- package/src/cssfabric/modules/text/text-responsive.scss +0 -26
- package/src/cssfabric/modules/text/text.scss +0 -6
- package/src/cssfabric/modules/theme/_theme-build.scss +0 -90
- package/src/cssfabric/modules/theme/_theme-vars.scss +0 -46
- package/src/cssfabric/modules/theme/theme.scss +0 -6
- package/src/cssfabric/modules/vars.scss +0 -49
- 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 -55
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
@use "sass:string";
|
|
2
|
-
@use "sass:map";
|
|
3
|
-
@use "sass:math";
|
|
4
|
-
@use "sass:color";
|
|
5
|
-
|
|
6
|
-
// load main fabric vars
|
|
7
|
-
@use 'modules/cssfabric-config' as cssfabric-config;
|
|
8
|
-
|
|
9
|
-
// link to fabric conf scss file, which often move ;)
|
|
10
|
-
@function get_fabric_conf($prop: null,$val: null) {
|
|
11
|
-
@if not $prop {
|
|
12
|
-
@return cssfabric-config.$cssfabric-config;
|
|
13
|
-
}
|
|
14
|
-
@if $prop and not $val {
|
|
15
|
-
@return map-get(cssfabric-config.$cssfabric-config, $prop);
|
|
16
|
-
}
|
|
17
|
-
@if $val {
|
|
18
|
-
$in: map-get(cssfabric-config.$cssfabric-config, $prop);
|
|
19
|
-
@return map-get($in, $prop, $val);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// css dimensions rules builder responsive
|
|
24
|
-
@mixin fabricResponsiveEncloser($mq_size_value, $mq_min_size_value: null) {
|
|
25
|
-
// and (min-width: $mq_min_size_value + rem)
|
|
26
|
-
// @debug $mq_size_value $mq_min_size_value;
|
|
27
|
-
$type-width: if($mq_size_value==180, max, max);
|
|
28
|
-
$width: if($mq_size_value==180, $mq_min_size_value, $mq_size_value);
|
|
29
|
-
|
|
30
|
-
// @debug (#{$type-width}-width: $width + rem) ;
|
|
31
|
-
@media only screen and (#{$type-width}-width: $width + px) {
|
|
32
|
-
@content;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@mixin fabricAttributes($sep, $frag, $property, $value) {
|
|
37
|
-
#{$sep + $frag} {
|
|
38
|
-
#{$property}: #{$value};
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@mixin scssVarsToCssVars($module, $module-config) {
|
|
43
|
-
/**
|
|
44
|
-
* cssfabric generated file
|
|
45
|
-
* css vars for #{$module}
|
|
46
|
-
*/
|
|
47
|
-
@each $red, $rt in $module-config {
|
|
48
|
-
// list map string
|
|
49
|
-
@if (type_of($rt) == "string") {
|
|
50
|
-
$key: #{$module}-#{$red};
|
|
51
|
-
--cssfabric-#{$key}: #{$rt};
|
|
52
|
-
}
|
|
53
|
-
@if (type_of($rt) == "map") {
|
|
54
|
-
@each $rtkey, $rtval in $rt {
|
|
55
|
-
$type: type_of($rtval);
|
|
56
|
-
$key: #{$module}-#{$red}-#{$rtkey};
|
|
57
|
-
$compval: is-map; // #{string.slice(#{#ss($rtval)}, 4)};
|
|
58
|
-
|
|
59
|
-
$comp: if($type== map or $type == list, #{$compval}, #{$rtval});
|
|
60
|
-
|
|
61
|
-
--cssfabric-#{$key}: #{$comp};
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
@if (type_of($rt) == "list") {
|
|
65
|
-
$key: #{$module}-#{$red};
|
|
66
|
-
--cssfabric-#{$key}: #{string.slice(#{#ss($rt)}, 4)};
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@mixin alphaTize($key,$color,$ranges: (_:0.3,low:0.8,high:0.1)) {
|
|
72
|
-
@each $range, $val in $ranges {
|
|
73
|
-
$rg: if($range==_,'',-#{$range});
|
|
74
|
-
#{$key}-alpha#{$rg} : #{color.change($color,$alpha:$val)};
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@function getGraySteps($steps, $gray-start, $gray-end) {
|
|
79
|
-
$gray-schemes: ();
|
|
80
|
-
|
|
81
|
-
@for $i from 0 through $steps {
|
|
82
|
-
|
|
83
|
-
$color: mix($gray-end, $gray-start, math.div($i , $steps) * 100%);
|
|
84
|
-
|
|
85
|
-
$gray-schemes: map.set($gray-schemes, #{($i+1) * 100}, $color);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@return $gray-schemes;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
@function applyColorEffect($theme-level, $color) {
|
|
92
|
-
$switch-named: map-get(
|
|
93
|
-
(
|
|
94
|
-
light: lighten($color, 15%),
|
|
95
|
-
lighter: lighten($color, 30%),
|
|
96
|
-
dark: darken($color, 10%),
|
|
97
|
-
darker: darken($color, 20%),
|
|
98
|
-
complement: complement($color),
|
|
99
|
-
invert: invert($color)
|
|
100
|
-
),
|
|
101
|
-
$theme-level
|
|
102
|
-
);
|
|
103
|
-
|
|
104
|
-
@return $switch-named;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@function getColorPropertyType($fabric-tag) {
|
|
108
|
-
/** get property for #{$fabric-tag} */
|
|
109
|
-
@return map-get(
|
|
110
|
-
(
|
|
111
|
-
color: color,
|
|
112
|
-
text: color,
|
|
113
|
-
foreground: color,
|
|
114
|
-
bg: background-color,
|
|
115
|
-
bg-themed: background-color,
|
|
116
|
-
border: border-color
|
|
117
|
-
),
|
|
118
|
-
$fabric-tag
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@function getThemeLevels($declinations-config, $color_primary) {
|
|
123
|
-
$out: ();
|
|
124
|
-
// primary secondary tertiary
|
|
125
|
-
@each $color-grade, $color-value in $declinations-config {
|
|
126
|
-
$color: $color-value;
|
|
127
|
-
$out: map.set($out, $color-grade, $color);
|
|
128
|
-
@each $theme-level in (light lighter dark darker complement invert) {
|
|
129
|
-
$new-theme-level: #{$color-grade}-#{$theme-level};
|
|
130
|
-
$newColor: applyColorEffect($theme-level, $color);
|
|
131
|
-
$out: map.set($out, $new-theme-level, $newColor);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
@return $out;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@function getBoxIterator($iterator, $unit-config,$_unit-size-config) {
|
|
139
|
-
$out: ("_": "_");
|
|
140
|
-
|
|
141
|
-
@for $grid_size_value from 1 through $iterator {
|
|
142
|
-
$css_size_value: ($grid_size_value * $_unit-size-config) + $unit-config;
|
|
143
|
-
$out: map.set($out, $grid_size_value, $css_size_value);
|
|
144
|
-
}
|
|
145
|
-
@return $out
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
@function getShadowIterator($factors,$box-shadows-steps) {
|
|
149
|
-
$out: ();
|
|
150
|
-
|
|
151
|
-
$v_fact: map-get($factors, v_fact);
|
|
152
|
-
$h_fact: map-get($factors, h_fact);
|
|
153
|
-
|
|
154
|
-
$v_fact_2: map-get($factors, v_fact_2);
|
|
155
|
-
$h_fact_2: map-get($factors, h_fact_2);
|
|
156
|
-
|
|
157
|
-
$acc: 1;
|
|
158
|
-
|
|
159
|
-
@for $shadows_step from 1 through $box-shadows-steps {
|
|
160
|
-
$acc: $acc * 2;
|
|
161
|
-
$v: $shadows_step * 2;
|
|
162
|
-
|
|
163
|
-
$v_val: math.div($acc, $v_fact);
|
|
164
|
-
$h_val: math.div($acc, $h_fact);
|
|
165
|
-
|
|
166
|
-
$v_val_2: math.div($acc, $v_fact_2);
|
|
167
|
-
$h_val_2: math.div($acc, $h_fact_2);
|
|
168
|
-
|
|
169
|
-
$out: map.set($out, $acc, #{$v_val} + #{$h_val});
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
@return $out;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
@function cssDimensionPropertyBuilder($scale_prop,$dimensions_grid_ratio) {
|
|
176
|
-
$out: ();
|
|
177
|
-
|
|
178
|
-
@for $z_value from 1 through $dimensions_grid_ratio {
|
|
179
|
-
$key: $z_value + "-" + $dimensions_grid_ratio;
|
|
180
|
-
$val: (math.div($z_value , $dimensions_grid_ratio) * 100) +#{"%"};
|
|
181
|
-
|
|
182
|
-
$out: map.set($out, $key, $val);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
@return $out
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
@function getObjectKeys($object) {
|
|
189
|
-
$out: ();
|
|
190
|
-
@each $key, $value in $object {
|
|
191
|
-
$out: append($out, $key);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
@return $out;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
@function getObjectValues($object) {
|
|
198
|
-
@return $object;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
@function getObjectKeyValues($object) {
|
|
202
|
-
@return $object;
|
|
203
|
-
}
|
package/src/cssfabric/index.d.ts
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "sass:math";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// prefix ?
|
|
6
|
-
// scoped ?
|
|
7
|
-
|
|
8
|
-
// dimensions
|
|
9
|
-
|
|
10
|
-
// grays
|
|
11
|
-
$has-color-gray: true;
|
|
12
|
-
$has-color-gray-responsive: true;
|
|
13
|
-
// text - done conditionals
|
|
14
|
-
$has-text-transform: true;
|
|
15
|
-
$has-text-transform-responsive: false;
|
|
16
|
-
$has-text-align: true;
|
|
17
|
-
$has-text-align-responsive: false;
|
|
18
|
-
$has-text-font: true;
|
|
19
|
-
$has-text-font-responsive: false;
|
|
20
|
-
$has-text-shadow-color-scheme: true;
|
|
21
|
-
$has-text-shadow-color-scheme-responsive: false;
|
|
22
|
-
$has-text-shadow-color-palette: true;
|
|
23
|
-
$has-text-shadow-color-palette-responsive: false;
|
|
24
|
-
|
|
25
|
-
// colors
|
|
26
|
-
$has-color-palette: true;
|
|
27
|
-
$has-color-palette-responsive: false;
|
|
28
|
-
$has-color-scheme: true;
|
|
29
|
-
$has-color-scheme-responsive: false;
|
|
30
|
-
$has-color-gray: true;
|
|
31
|
-
$has-color-gray-responsive: false;
|
|
32
|
-
|
|
33
|
-
$has-color-foreground: true;
|
|
34
|
-
$has-color-bg: true;
|
|
35
|
-
$has-color-bg-themed: true;
|
|
36
|
-
$has-color-border: true;
|
|
37
|
-
|
|
38
|
-
$theme-color-primary: rgb(32, 23, 0) !default;
|
|
39
|
-
$theme-color-secondary: #D14B02 !default;
|
|
40
|
-
$theme-color-tertiary: #88D102 !default;
|
|
41
|
-
|
|
42
|
-
$theme-color-foreground: #282230 !default;
|
|
43
|
-
$theme-color-background: #ffffff !default;
|
|
44
|
-
$theme-color-paper: #f1f1f1 !default;
|
|
45
|
-
|
|
46
|
-
$theme-dark-color-foreground: #f1f1f1 !default;
|
|
47
|
-
$theme-dark-color-background: #27323a !default;
|
|
48
|
-
$theme-dark-color-paper: #3a3b3b !default;
|
|
49
|
-
|
|
50
|
-
$gray-start: #f4f4f4 !default;
|
|
51
|
-
$gray-end: #999 !default;
|
|
52
|
-
$gray-steps: 5 !default;
|
|
53
|
-
|
|
54
|
-
$densities-ratios: (small:0.5, default:1, large:1.75);
|
|
55
|
-
|
|
56
|
-
$box-position-shorthand: pos !default;
|
|
57
|
-
$box-display-shorthand: dsp !default;
|
|
58
|
-
$box-shadow-shorthand: shad !default;
|
|
59
|
-
$box-border-shorthand: border !default;
|
|
60
|
-
$box-padding-shorthand: pad !default;
|
|
61
|
-
$box-margin-shorthand: marg !default;
|
|
62
|
-
|
|
63
|
-
$box-unit-presets: (tiny:0.5, small:1, medium:3, large:4) !default;
|
|
64
|
-
$box-radius: (tiny:4px, small:8px, medium:16px) !default;
|
|
65
|
-
|
|
66
|
-
$scale-tag-width-shorthand: w!default;
|
|
67
|
-
$scale-tag-height-shorthand: h!default;;
|
|
68
|
-
|
|
69
|
-
$cssfabric-metadata: (
|
|
70
|
-
title: "cssfabric",
|
|
71
|
-
tag: "cssfabric",
|
|
72
|
-
description: "cssfabric global config variables"
|
|
73
|
-
);
|
|
74
|
-
|
|
75
|
-
// vars
|
|
76
|
-
$vars-box-density: --box-density!default;
|
|
77
|
-
$vars-box-density-preset: --box-density-preset!default;
|
|
78
|
-
|
|
79
|
-
$cssfabric-config: (
|
|
80
|
-
cfg-has-dimension-strict: true,
|
|
81
|
-
CFG_HAS_DIMENSION_MIN: true,
|
|
82
|
-
CFG_HAS_DIMENSION_MAX: true,
|
|
83
|
-
size_step: 0.5rem,
|
|
84
|
-
size-step-unit: rem,
|
|
85
|
-
sep: "-",
|
|
86
|
-
sizes: (
|
|
87
|
-
tiny: 32,
|
|
88
|
-
small: 64,
|
|
89
|
-
medium: 128,
|
|
90
|
-
large: 256,
|
|
91
|
-
full: 100%
|
|
92
|
-
),
|
|
93
|
-
media_quey_sizes: (
|
|
94
|
-
xxl: 1300,
|
|
95
|
-
xl: 1200,
|
|
96
|
-
lg: 960,
|
|
97
|
-
md: 760
|
|
98
|
-
),
|
|
99
|
-
densities-ratios: $densities-ratios,
|
|
100
|
-
themes:(
|
|
101
|
-
light:(
|
|
102
|
-
foreground: $theme-color-foreground,
|
|
103
|
-
background: $theme-color-background,
|
|
104
|
-
paper: $theme-color-paper,
|
|
105
|
-
),
|
|
106
|
-
dark:(
|
|
107
|
-
foreground: $theme-dark-color-foreground,
|
|
108
|
-
background: $theme-dark-color-background,
|
|
109
|
-
paper: $theme-dark-color-paper
|
|
110
|
-
),
|
|
111
|
-
),
|
|
112
|
-
theme: (
|
|
113
|
-
primary: $theme-color-primary,
|
|
114
|
-
secondary: $theme-color-secondary,
|
|
115
|
-
tertiary: $theme-color-tertiary,
|
|
116
|
-
foreground: $theme-color-foreground,
|
|
117
|
-
background: $theme-color-background,
|
|
118
|
-
paper: $theme-color-paper,
|
|
119
|
-
),
|
|
120
|
-
scheme: (
|
|
121
|
-
discrete: #ccc,
|
|
122
|
-
success: green,
|
|
123
|
-
info: #FFDD57FF,
|
|
124
|
-
warning: hsl(48, 96%, 46%),
|
|
125
|
-
alert: hsl(27, 100%, 50%),
|
|
126
|
-
error: red
|
|
127
|
-
),
|
|
128
|
-
palette: (
|
|
129
|
-
'yellow': #ffb900,
|
|
130
|
-
'orange': #d83b01,
|
|
131
|
-
'red': #d13438,
|
|
132
|
-
'magenta': #b4009e,
|
|
133
|
-
'purple': #5c2d91,
|
|
134
|
-
'green': #107c10,
|
|
135
|
-
'teal': #008272,
|
|
136
|
-
'blue': #0078d4,
|
|
137
|
-
'dark': #323232,
|
|
138
|
-
),
|
|
139
|
-
border-radius:(
|
|
140
|
-
tiny:4px, small:8px, medium:16px
|
|
141
|
-
),
|
|
142
|
-
gray: getGraySteps($gray-steps, $gray-start, $gray-end),
|
|
143
|
-
gray-config: (
|
|
144
|
-
start: $gray-start,
|
|
145
|
-
end: $gray-end,
|
|
146
|
-
steps: $gray-steps
|
|
147
|
-
)
|
|
148
|
-
);
|
|
149
|
-
|
|
150
|
-
@function getGraySteps($steps, $gray-start, $gray-end) {
|
|
151
|
-
$gray-schemes: ();
|
|
152
|
-
|
|
153
|
-
@for $i from 0 through $steps {
|
|
154
|
-
|
|
155
|
-
$color: mix($gray-end, $gray-start, math.div($i , $steps) * 100%);
|
|
156
|
-
|
|
157
|
-
$gray-schemes: map.set($gray-schemes, #{($i+1) * 100}, $color);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
@return $gray-schemes;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
$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
|
-
}
|