@medyll/cssfabric 0.2.0 → 0.2.1-beta.2
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 +58 -38
- package/dist/NewMenu.svelte +41 -0
- package/dist/NewMenu.svelte.d.ts +19 -0
- package/dist/css/animation/animation.css +2 -0
- package/dist/css/base/base.css +47 -0
- package/dist/css/base/base.min.css +1 -0
- package/{styles → dist/css}/box/box.css +118 -0
- package/dist/css/box/box.min.css +1 -0
- package/{styles → dist/css}/box/box.responsive.css +3063 -1550
- package/dist/css/box/box.responsive.min.css +1 -0
- package/{styles → dist/css}/color/color.css +11 -9
- package/{styles → dist/css}/color/color.responsive.css +3446 -1932
- package/dist/css/color/color.responsive.min.css +1 -0
- package/dist/css/cssfabric.css +5167 -0
- package/dist/css/cssfabric.min.css +4877 -0
- package/dist/css/cssfabric.responsive.css +20419 -0
- package/dist/css/cssfabric.responsive.min.css +1 -0
- package/{styles → dist/css}/flex/flex.css +2 -0
- package/{styles → dist/css}/flex/flex.responsive.css +192 -114
- package/dist/css/flex/flex.responsive.min.css +1 -0
- package/{styles → dist/css}/grid/grid.css +2 -0
- package/{styles → dist/css}/grid/grid.responsive.css +230 -212
- package/dist/css/grid/grid.responsive.min.css +1 -0
- package/{styles → dist/css}/menu/menu.css +2 -0
- package/{styles → dist/css}/menu/menu.responsive.css +165 -78
- package/dist/css/menu/menu.responsive.min.css +1 -0
- package/{styles → dist/css}/overflow/overflow.css +2 -0
- package/{styles → dist/css}/overflow/overflow.responsive.css +98 -105
- package/dist/css/overflow/overflow.responsive.min.css +1 -0
- package/{styles → dist/css}/scale/scale.css +2 -0
- package/{styles → dist/css}/scale/scale.responsive.css +1520 -1152
- package/dist/css/scale/scale.responsive.min.css +1 -0
- package/{styles → dist/css}/table/table.css +2 -0
- package/{styles → dist/css}/table/table.responsive.css +162 -86
- package/dist/css/table/table.responsive.min.css +1 -0
- package/{styles → dist/css}/text/text.css +2 -0
- package/{styles → dist/css}/text/text.responsive.css +76 -55
- package/dist/css/text/text.responsive.min.css +1 -0
- package/{styles → dist/css}/theme/theme.css +51 -0
- package/{styles → dist/css}/theme/theme.min.css +1 -1
- package/{styles → dist/css}/vars.css +66 -67
- package/dist/css/vars.min.css +1 -0
- package/{styles → dist/css}/zindex/zindex.css +2 -0
- package/dist/cssFabric/config.d.ts +29 -0
- package/dist/cssFabric/config.js +29 -0
- package/dist/cssFabric/cssFabricSheet.d.ts +1226 -0
- package/dist/cssFabric/cssFabricSheet.js +1270 -0
- package/dist/cssFabric/cssProperties.d.ts +27 -0
- package/dist/cssFabric/cssProperties.js +343 -0
- package/dist/cssFabric/cssVariationsAi.d.ts +12 -0
- package/dist/cssFabric/cssVariationsAi.js +111 -0
- package/dist/cssFabric/index.d.ts +113 -0
- package/dist/cssFabric/index.js +341 -0
- package/dist/cssf/README.md +197 -0
- package/{init/importCssVars.d.ts → dist/cssf/cssf.d.ts} +1 -1
- package/dist/cssf/cssf.js +12 -0
- package/dist/cssf/cssfGuide.d.ts +14 -0
- package/dist/cssf/cssfGuide.js +50 -0
- package/dist/cssf/cssfLib.d.ts +134 -0
- package/dist/cssf/cssfLib.js +116 -0
- package/dist/cssf/cssfModel.d.ts +8 -0
- package/dist/cssf/cssfModel.js +59 -0
- package/dist/cssf/cssfPlugin.d.ts +3 -0
- package/dist/cssf/cssfPlugin.js +37 -0
- package/dist/cssf/cssfTransformer.d.ts +2 -0
- package/dist/cssf/cssfTransformer.js +100 -0
- package/dist/cssf/index.d.ts +6 -0
- package/dist/cssf/index.js +7 -0
- package/dist/cssfVsCode/.vscode/launch.json +17 -0
- package/dist/cssfVsCode/.vscodeignore +4 -0
- package/dist/cssfVsCode/CHANGELOG.md +9 -0
- package/dist/cssfVsCode/README.md +65 -0
- package/dist/cssfVsCode/language-configuration.json +36 -0
- package/dist/cssfVsCode/package.json +40 -0
- package/dist/cssfVsCode/syntaxes/cssf.tmLanguage.json +1868 -0
- package/dist/cssfVsCode/test.cssf +6 -0
- package/dist/cssfVsCode/vsc-extension-quickstart.md +29 -0
- package/{_generated → dist/generated}/cssFabric.vars.json +4 -4
- package/{_generated/export.variables.md → dist/generated/cssFabric.vars.md} +268 -240
- package/dist/index.d.ts +119 -0
- package/dist/index.js +120 -0
- package/dist/scripts/cssfabric.d.ts +24 -0
- package/{scripts → dist/scripts}/cssfabric.js +43 -43
- package/{scripts → dist/scripts}/cssfabricClassNames.d.ts +14 -14
- package/{scripts → dist/scripts}/cssfabricClassNames.js +146 -146
- package/dist/scripts/index.d.ts +2 -0
- package/{scripts → dist/scripts}/index.js +4 -4
- package/{scripts → dist/scripts}/utils.d.ts +5 -5
- package/{scripts → dist/scripts}/utils.js +38 -38
- package/dist/scss/_utils.scss +203 -0
- package/dist/scss/modules/_cssfabric-config.scss +178 -0
- package/dist/scss/modules/_mixins.scss +1 -0
- package/dist/scss/modules/animation/_animation-vars.scss +17 -0
- package/dist/scss/modules/animation/animation.scss +3 -0
- package/dist/scss/modules/base/_base-vars.scss +19 -0
- package/dist/scss/modules/base/base.scss +58 -0
- package/dist/scss/modules/box/_box-build.scss +305 -0
- package/dist/scss/modules/box/_box-vars.scss +121 -0
- package/dist/scss/modules/box/box-responsive.scss +18 -0
- package/dist/scss/modules/box/box.scss +3 -0
- package/dist/scss/modules/color/_color-build.scss +196 -0
- package/dist/scss/modules/color/_color-vars.scss +80 -0
- package/dist/scss/modules/color/color-responsive.scss +23 -0
- package/dist/scss/modules/color/color.scss +9 -0
- package/dist/scss/modules/css-fabric.scss +1 -0
- package/dist/scss/modules/flex/_flex-build.scss +150 -0
- package/dist/scss/modules/flex/_flex-vars.scss +84 -0
- package/dist/scss/modules/flex/flex-responsive.scss +25 -0
- package/dist/scss/modules/flex/flex.scss +3 -0
- package/dist/scss/modules/grid/_grid-build.scss +87 -0
- package/dist/scss/modules/grid/_grid-vars.scss +88 -0
- package/dist/scss/modules/grid/grid-responsive.scss +25 -0
- package/dist/scss/modules/grid/grid.scss +6 -0
- package/dist/scss/modules/menu/_menu-build.scss +120 -0
- package/dist/scss/modules/menu/_menu-vars.scss +29 -0
- package/dist/scss/modules/menu/menu-responsive.scss +19 -0
- package/dist/scss/modules/menu/menu.scss +6 -0
- package/dist/scss/modules/overflow/_overflow-build.scss +22 -0
- package/dist/scss/modules/overflow/_overflow-vars.scss +31 -0
- package/dist/scss/modules/overflow/overflow-responsive.scss +25 -0
- package/dist/scss/modules/overflow/overflow.scss +7 -0
- package/dist/scss/modules/scale/_scale-build.scss +142 -0
- package/dist/scss/modules/scale/_scale-vars.scss +84 -0
- package/dist/scss/modules/scale/scale-responsive.scss +23 -0
- package/dist/scss/modules/scale/scale.scss +8 -0
- package/dist/scss/modules/table/_table-build.scss +134 -0
- package/dist/scss/modules/table/_table-vars.scss +30 -0
- package/dist/scss/modules/table/table-responsive.scss +24 -0
- package/dist/scss/modules/table/table.scss +8 -0
- package/dist/scss/modules/text/_text-build.scss +166 -0
- package/dist/scss/modules/text/_text-vars.scss +87 -0
- package/dist/scss/modules/text/text-responsive.scss +26 -0
- package/dist/scss/modules/text/text.scss +6 -0
- package/dist/scss/modules/theme/_theme-build.scss +128 -0
- package/dist/scss/modules/theme/_theme-vars.scss +46 -0
- package/dist/scss/modules/theme/theme.scss +6 -0
- package/dist/scss/modules/vars.scss +46 -0
- package/dist/scss/modules/zindex/_zindex-vars.scss +14 -0
- package/dist/scss/modules/zindex/zindex.scss +15 -0
- package/package.json +70 -113
- package/_generated/readme.md +0 -0
- package/init/importCssVars.js +0 -2
- package/scripts/cssfabric.d.ts +0 -24
- package/scripts/index.d.ts +0 -2
- package/styles/animation/animation.css +0 -0
- package/styles/base/base.css +0 -215
- package/styles/base/base.min.css +0 -1
- package/styles/box/box.min.css +0 -1
- package/styles/box/box.responsive.min.css +0 -1
- package/styles/color/color.responsive.min.css +0 -1
- package/styles/cssfabric.css +0 -61792
- package/styles/cssfabric.min.css +0 -168
- package/styles/cssfabric.responsive.css +0 -200596
- package/styles/cssfabric.responsive.min.css +0 -108
- package/styles/flex/flex.responsive.min.css +0 -1
- package/styles/grid/grid.responsive.min.css +0 -1
- package/styles/menu/menu.responsive.min.css +0 -1
- package/styles/overflow/overflow.responsive.min.css +0 -1
- package/styles/scale/scale.responsive.min.css +0 -1
- package/styles/table/table.responsive.min.css +0 -1
- package/styles/text/text.responsive.min.css +0 -1
- package/styles/vars.min.css +0 -1
- /package/{styles → dist/css}/animation/animation.min.css +0 -0
- /package/{styles → dist/css}/color/color.min.css +0 -0
- /package/{styles → dist/css}/flex/flex.min.css +0 -0
- /package/{styles → dist/css}/grid/grid.min.css +0 -0
- /package/{styles → dist/css}/menu/menu.min.css +0 -0
- /package/{styles → dist/css}/overflow/overflow.min.css +0 -0
- /package/{styles → dist/css}/scale/scale.min.css +0 -0
- /package/{styles → dist/css}/table/table.min.css +0 -0
- /package/{styles → dist/css}/text/text.min.css +0 -0
- /package/{styles → dist/css}/zindex/zindex.min.css +0 -0
- /package/{_generated → dist/scss}/index.d.ts +0 -0
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
const utils = {
|
|
2
|
-
isArrayOfTypes: (arr) => {
|
|
3
|
-
let ret = '';
|
|
4
|
-
if (!Array.isArray(arr)) {
|
|
5
|
-
return false;
|
|
6
|
-
}
|
|
7
|
-
if (arr.every(x => Array.isArray(x)))
|
|
8
|
-
ret = 'arrays';
|
|
9
|
-
if (arr.every(x => typeof x === 'number' || typeof x === 'string'))
|
|
10
|
-
ret = 'strings';
|
|
11
|
-
if (arr.every(x => typeof x === 'string'))
|
|
12
|
-
ret = 'strings';
|
|
13
|
-
if (arr.every(x => typeof x === 'number'))
|
|
14
|
-
ret = 'numbers';
|
|
15
|
-
if (arr.every(x => typeof x === 'object' && !Array.isArray(x)))
|
|
16
|
-
ret = 'objects';
|
|
17
|
-
return ret;
|
|
18
|
-
},
|
|
19
|
-
isObjectOfTypes: (arr) => {
|
|
20
|
-
if (Array.isArray(arr)) {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
let ret = '';
|
|
24
|
-
let arrValues = Object.values(arr);
|
|
25
|
-
if (arrValues.every(x => typeof x === 'number' || typeof x === 'string'))
|
|
26
|
-
ret = 'strings';
|
|
27
|
-
if (arrValues.every(x => Array.isArray(x)))
|
|
28
|
-
ret = 'arrays';
|
|
29
|
-
if (arrValues.every(x => typeof x === 'string'))
|
|
30
|
-
ret = 'strings';
|
|
31
|
-
if (arrValues.every(x => typeof x === 'number'))
|
|
32
|
-
ret = 'numbers';
|
|
33
|
-
if (arrValues.every(x => typeof x === 'object' && !Array.isArray(x)))
|
|
34
|
-
ret = 'objects';
|
|
35
|
-
return ret;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
export default utils;
|
|
1
|
+
const utils = {
|
|
2
|
+
isArrayOfTypes: (arr) => {
|
|
3
|
+
let ret = '';
|
|
4
|
+
if (!Array.isArray(arr)) {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
if (arr.every(x => Array.isArray(x)))
|
|
8
|
+
ret = 'arrays';
|
|
9
|
+
if (arr.every(x => typeof x === 'number' || typeof x === 'string'))
|
|
10
|
+
ret = 'strings';
|
|
11
|
+
if (arr.every(x => typeof x === 'string'))
|
|
12
|
+
ret = 'strings';
|
|
13
|
+
if (arr.every(x => typeof x === 'number'))
|
|
14
|
+
ret = 'numbers';
|
|
15
|
+
if (arr.every(x => typeof x === 'object' && !Array.isArray(x)))
|
|
16
|
+
ret = 'objects';
|
|
17
|
+
return ret;
|
|
18
|
+
},
|
|
19
|
+
isObjectOfTypes: (arr) => {
|
|
20
|
+
if (Array.isArray(arr)) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
let ret = '';
|
|
24
|
+
let arrValues = Object.values(arr);
|
|
25
|
+
if (arrValues.every(x => typeof x === 'number' || typeof x === 'string'))
|
|
26
|
+
ret = 'strings';
|
|
27
|
+
if (arrValues.every(x => Array.isArray(x)))
|
|
28
|
+
ret = 'arrays';
|
|
29
|
+
if (arrValues.every(x => typeof x === 'string'))
|
|
30
|
+
ret = 'strings';
|
|
31
|
+
if (arrValues.every(x => typeof x === 'number'))
|
|
32
|
+
ret = 'numbers';
|
|
33
|
+
if (arrValues.every(x => typeof x === 'object' && !Array.isArray(x)))
|
|
34
|
+
ret = 'objects';
|
|
35
|
+
return ret;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export default utils;
|
|
@@ -0,0 +1,203 @@
|
|
|
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: "min"; // 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} : rgba($color,$val); // #{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
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
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
|
+
|
|
39
|
+
$theme-color-primary: rgb(32, 23, 0) !default;
|
|
40
|
+
$theme-color-secondary: #D14B02 !default;
|
|
41
|
+
$theme-color-tertiary: #88D102 !default;
|
|
42
|
+
//light theme
|
|
43
|
+
$theme-color-foreground: #282230 !default;
|
|
44
|
+
$theme-color-background: #ffffff !default;
|
|
45
|
+
$theme-color-paper: #f1f1f1 !default;
|
|
46
|
+
|
|
47
|
+
$theme-color-shadow: green !default;
|
|
48
|
+
// dark theme
|
|
49
|
+
$theme-dark-color-foreground: #f1f1f1 !default;
|
|
50
|
+
$theme-dark-color-background: #27323a !default;
|
|
51
|
+
$theme-dark-color-paper: #3a3b3b !default;
|
|
52
|
+
|
|
53
|
+
$theme-dark-color-shadow: black !default;
|
|
54
|
+
|
|
55
|
+
// grays
|
|
56
|
+
$gray-start: #f4f4f4 !default;
|
|
57
|
+
$gray-end: #999 !default;
|
|
58
|
+
$gray-steps: 5 !default;
|
|
59
|
+
|
|
60
|
+
$densities-ratios: (small:0.5, default:1, large:1.75);
|
|
61
|
+
|
|
62
|
+
$box-position-shorthand: pos !default;
|
|
63
|
+
$box-display-shorthand: dsp !default;
|
|
64
|
+
$box-shadow-shorthand: shad !default;
|
|
65
|
+
$box-border-shorthand: border !default;
|
|
66
|
+
$box-padding-shorthand: pad !default;
|
|
67
|
+
$box-margin-shorthand: marg !default;
|
|
68
|
+
$box-gap-shorthand: gap !default;
|
|
69
|
+
|
|
70
|
+
$box-unit-presets: (tight:0.25,tiny:0.25, small:0.5, default: 1,medium:1.5, large:3) !default;
|
|
71
|
+
$box-radius: (tiny:4px, small:8px, medium:16px) !default;
|
|
72
|
+
|
|
73
|
+
$scale-tag-width-shorthand: w !default;
|
|
74
|
+
$scale-tag-height-shorthand: h !default;
|
|
75
|
+
|
|
76
|
+
$cssfabric-metadata: (
|
|
77
|
+
title: "cssfabric",
|
|
78
|
+
tag: "cssfabric",
|
|
79
|
+
description: "cssfabric global config variables"
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
// vars
|
|
83
|
+
$vars-box-density: --box-density !default;
|
|
84
|
+
$vars-box-density-preset: --box-density-preset !default;
|
|
85
|
+
|
|
86
|
+
$vars-theme-color-shadow: --theme-color-shadow !default;
|
|
87
|
+
$vars-theme-dark-color-shadow: --theme-dark-color-shadow !default;
|
|
88
|
+
|
|
89
|
+
$cssfabric-config: (
|
|
90
|
+
cfg-has-dimension-strict: true,
|
|
91
|
+
CFG_HAS_DIMENSION_MIN: true,
|
|
92
|
+
CFG_HAS_DIMENSION_MAX: true,
|
|
93
|
+
size_step: 0.5rem,
|
|
94
|
+
size-step-unit: rem,
|
|
95
|
+
sep: "-",
|
|
96
|
+
sizes: (
|
|
97
|
+
tiny: 32,
|
|
98
|
+
small: 64,
|
|
99
|
+
medium: 128,
|
|
100
|
+
large: 256,
|
|
101
|
+
full: 100%
|
|
102
|
+
),
|
|
103
|
+
media_quey_sizes: (
|
|
104
|
+
sm:640,
|
|
105
|
+
md:768,
|
|
106
|
+
lg:1024,
|
|
107
|
+
xl:1280,
|
|
108
|
+
xxl:1540
|
|
109
|
+
/* xxl: 1300,
|
|
110
|
+
xl: 1200,
|
|
111
|
+
lg: 960,
|
|
112
|
+
md: 760 */
|
|
113
|
+
),
|
|
114
|
+
densities-ratios: $densities-ratios,
|
|
115
|
+
themes:(
|
|
116
|
+
light:(
|
|
117
|
+
foreground: $theme-color-foreground,
|
|
118
|
+
background: $theme-color-background,
|
|
119
|
+
paper: $theme-color-paper,
|
|
120
|
+
),
|
|
121
|
+
dark:(
|
|
122
|
+
foreground: $theme-dark-color-foreground,
|
|
123
|
+
background: $theme-dark-color-background,
|
|
124
|
+
paper: $theme-dark-color-paper
|
|
125
|
+
),
|
|
126
|
+
),
|
|
127
|
+
theme: (
|
|
128
|
+
primary: $theme-color-primary,
|
|
129
|
+
secondary: $theme-color-secondary,
|
|
130
|
+
tertiary: $theme-color-tertiary,
|
|
131
|
+
foreground: $theme-color-foreground,
|
|
132
|
+
background: $theme-color-background,
|
|
133
|
+
paper: $theme-color-paper,
|
|
134
|
+
),
|
|
135
|
+
scheme: (
|
|
136
|
+
discrete: #ccc,
|
|
137
|
+
success: green,
|
|
138
|
+
info: #FFDD57FF,
|
|
139
|
+
warning: hsl(48, 96%, 46%),
|
|
140
|
+
alert: hsl(27, 100%, 50%),
|
|
141
|
+
error: red
|
|
142
|
+
),
|
|
143
|
+
palette: (
|
|
144
|
+
'yellow': #ffb900,
|
|
145
|
+
'orange': #d83b01,
|
|
146
|
+
'red': #d13438,
|
|
147
|
+
'magenta': #b4009e,
|
|
148
|
+
'purple': #5c2d91,
|
|
149
|
+
'green': #107c10,
|
|
150
|
+
'teal': #008272,
|
|
151
|
+
'blue': #0078d4,
|
|
152
|
+
'dark': #323232,
|
|
153
|
+
),
|
|
154
|
+
border-radius:(
|
|
155
|
+
tiny:4px, small:8px, medium:16px
|
|
156
|
+
),
|
|
157
|
+
gray: getGraySteps($gray-steps, $gray-start, $gray-end),
|
|
158
|
+
gray-config: (
|
|
159
|
+
start: $gray-start,
|
|
160
|
+
end: $gray-end,
|
|
161
|
+
steps: $gray-steps
|
|
162
|
+
)
|
|
163
|
+
);
|
|
164
|
+
|
|
165
|
+
@function getGraySteps($steps, $gray-start, $gray-end) {
|
|
166
|
+
$gray-schemes: ();
|
|
167
|
+
|
|
168
|
+
@for $i from 0 through $steps {
|
|
169
|
+
|
|
170
|
+
$color: mix($gray-end, $gray-start, math.div($i , $steps) * 100%);
|
|
171
|
+
|
|
172
|
+
$gray-schemes: map.set($gray-schemes, #{($i+1) * 100}, $color);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@return $gray-schemes;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
$cssfabric-docs: ();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
$animation-metadata: (
|
|
2
|
+
title: "animation",
|
|
3
|
+
description: "cssfabric simplest animation module"
|
|
4
|
+
);
|
|
5
|
+
$animation-config: (
|
|
6
|
+
attention_props: (),
|
|
7
|
+
in_out_props: (
|
|
8
|
+
back: () /* bounce: (),
|
|
9
|
+
slide: (),
|
|
10
|
+
fade: (),
|
|
11
|
+
zoom: () */
|
|
12
|
+
)
|
|
13
|
+
);
|
|
14
|
+
$animation-docs: (
|
|
15
|
+
attention_props: "",
|
|
16
|
+
in_out_props: ""
|
|
17
|
+
);
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
p {
|
|
4
|
+
margin: auto;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.hover-parent {
|
|
8
|
+
.hover-show {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.hover-hide {
|
|
13
|
+
display: initial;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:hover {
|
|
17
|
+
.hover-show {
|
|
18
|
+
display: initial;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.hover-hide {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.block:not(:last-child) {
|
|
28
|
+
margin-bottom: 1.5rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
h1,
|
|
32
|
+
h2,
|
|
33
|
+
h3,
|
|
34
|
+
h4,
|
|
35
|
+
h5,
|
|
36
|
+
h6 {
|
|
37
|
+
margin-block-start: 0 !important;
|
|
38
|
+
margin-block-end: 0 !important;
|
|
39
|
+
margin-inline-start: 0 !important;
|
|
40
|
+
margin-inline-end: 0 !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.box-content {
|
|
44
|
+
padding: 0.25rem;
|
|
45
|
+
margin: 0.25rem 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.cell-padding {
|
|
49
|
+
& > * {
|
|
50
|
+
padding: 0.25em;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.cell-spacing {
|
|
55
|
+
& > * {
|
|
56
|
+
margin: 0.25em;
|
|
57
|
+
}
|
|
58
|
+
}
|