@medyll/cssfabric 0.0.11 → 0.0.15
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/.idea/cssfabric.iml +1 -4
- package/css/mystyles.css +280 -0
- package/css/mystyles.css.map +1 -0
- package/lib/scripts/index.d.ts +2 -0
- package/lib/scripts/index.js +6 -0
- package/lib/styles/core/box/box.css +832 -832
- package/lib/styles/core/box/box.min.css +1 -1
- package/lib/styles/core/box/box.responsive.css +4165 -6430
- package/lib/styles/core/box/box.responsive.min.css +1 -1
- package/lib/styles/core/color/color.responsive.css +5 -930
- package/lib/styles/core/color/color.responsive.min.css +1 -1
- package/lib/styles/core/flex/flex.css +56 -72
- package/lib/styles/core/flex/flex.min.css +1 -1
- package/lib/styles/core/flex/flex.responsive.css +286 -508
- package/lib/styles/core/flex/flex.responsive.min.css +1 -1
- package/lib/styles/core/grid/grid.css +103 -34
- package/lib/styles/core/grid/grid.min.css +1 -1
- package/lib/styles/core/grid/grid.responsive.css +506 -213
- package/lib/styles/core/grid/grid.responsive.min.css +1 -1
- package/lib/styles/core/menu/menu.responsive.css +5 -86
- package/lib/styles/core/menu/menu.responsive.min.css +1 -1
- package/lib/styles/core/overflow/overflow.responsive.css +5 -66
- package/lib/styles/core/overflow/overflow.responsive.min.css +1 -1
- package/lib/styles/core/scale/scale.css +192 -192
- package/lib/styles/core/scale/scale.min.css +1 -1
- package/lib/styles/core/scale/scale.responsive.css +965 -1606
- package/lib/styles/core/scale/scale.responsive.min.css +1 -1
- package/lib/styles/core/table/table.responsive.css +5 -79
- package/lib/styles/core/table/table.responsive.min.css +1 -1
- package/lib/styles/core/text/text.responsive.css +5 -154
- package/lib/styles/core/text/text.responsive.min.css +1 -1
- package/lib/styles/core/vars.css +47 -47
- package/lib/styles/core/vars.min.css +1 -1
- package/lib/styles/core/zindex/zindex.css +16 -252
- package/lib/styles/core/zindex/zindex.min.css +1 -1
- package/lib/styles/cssfabric.css +1650 -4096
- package/lib/styles/cssfabric.min.css +7 -7
- package/lib/styles/cssfabric.responsive.css +13802 -17927
- package/lib/styles/cssfabric.responsive.min.css +9 -9
- package/package.json +3 -4
- package/src/_generated/export.variables.json +125 -121
- package/src/_generated/readme.md +0 -0
- package/src/cssfabric/_utils.scss +4 -16
- package/src/cssfabric/modules/_cssfabric-config.scss +14 -13
- package/src/cssfabric/modules/animation/animation.scss +2 -2
- package/src/cssfabric/modules/base/_base-vars.scss +4 -2
- package/src/cssfabric/modules/box/_box-build.scss +2 -2
- package/src/cssfabric/modules/box/box-responsive.scss +1 -1
- package/src/cssfabric/modules/color/color.scss +8 -2
- package/src/cssfabric/modules/flex/_flex-build.scss +35 -54
- package/src/cssfabric/modules/flex/_flex-vars.scss +3 -6
- package/src/cssfabric/modules/grid/_grid-build.scss +42 -49
- package/src/cssfabric/modules/grid/_grid-vars.scss +6 -5
- package/src/cssfabric/modules/grid/grid.scss +4 -1
- package/src/cssfabric/modules/menu/menu.scss +5 -2
- package/src/cssfabric/modules/overflow/overflow.scss +2 -0
- package/src/cssfabric/modules/scale/_scale-build.scss +1 -1
- package/src/cssfabric/modules/scale/scale.scss +5 -0
- package/src/cssfabric/modules/table/table.scss +7 -2
- package/src/cssfabric/modules/text/text.scss +3 -2
- package/src/cssfabric/modules/theme/_theme-build.scss +4 -5
- package/src/cssfabric/modules/theme/_theme-vars.scss +11 -3
- package/src/cssfabric/modules/theme/theme.scss +2 -1
- package/src/cssfabric/modules/vars.scss +5 -7
- package/src/cssfabric/modules/zindex/_zindex-vars.scss +8 -13
- package/src/cssfabric/modules/zindex/zindex.scss +6 -9
- package/src/scripts/index.d.ts +2 -0
- package/src/scripts/index.ts +8 -0
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/lib/styles/core/main.css +0 -2263
- package/src/cssfabric/modules/animation/_animation-build.scss +0 -121
- package/src/cssfabric/modules/main.scss +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use '../../utils';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
$_grow-shrink-steps:
|
|
4
|
+
$_grow-shrink-steps: 2;
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
$_grid-align: (top middle bottom left right center middle-center stretch);
|
|
@@ -72,16 +72,13 @@ $flex-docs: (// add align-middle non generated className // grow + shrink
|
|
|
72
72
|
classNames: (
|
|
73
73
|
align: $_grid-align,
|
|
74
74
|
grid:utils.getObjectKeys(map-get($_cssProps, flexWrap)), // add inline !
|
|
75
|
-
//items: utils.getObjectKeys(map-get($_cssProps, grid-items)),
|
|
76
|
-
//content:utils.getObjectKeys(map-get($_cssProps, grid-content)),
|
|
77
|
-
//justify:utils.getObjectKeys(map-get($_cssProps, grid-justify))
|
|
78
75
|
),
|
|
79
|
-
about: "a classic grid system, and hey, it gets height !"
|
|
76
|
+
about: "a classic flex grid system, and hey, it gets height !"
|
|
80
77
|
),
|
|
81
78
|
self:(
|
|
82
79
|
tag: self,
|
|
83
80
|
keys: utils.getObjectKeys(map-get($_cssItemsProps, self)),
|
|
84
|
-
about: "
|
|
81
|
+
about: "flex children specific classnames"
|
|
85
82
|
)
|
|
86
83
|
)
|
|
87
84
|
);
|
|
@@ -19,6 +19,9 @@ $gridFullWidth: map-get($grid-config, gridFullWidth);
|
|
|
19
19
|
|
|
20
20
|
$grow-shrink-steps: map-get($grid-config, grow-shrink-steps);
|
|
21
21
|
|
|
22
|
+
$grid-max-cols: map-get($grid-config, grid-max-cols);
|
|
23
|
+
$grid-max-rows: map-get($grid-config, grid-max-rows);
|
|
24
|
+
|
|
22
25
|
$grid-code-sep: #{$grid-code}#{$sep};
|
|
23
26
|
|
|
24
27
|
@mixin makeGrid($mqKey) {
|
|
@@ -26,66 +29,56 @@ $grid-code-sep: #{$grid-code}#{$sep};
|
|
|
26
29
|
$h_prop: #{$prefix}#{$sep}#{$grid-h};
|
|
27
30
|
$v_prop: #{$prefix}#{$sep}#{$grid-v};
|
|
28
31
|
|
|
29
|
-
|
|
30
|
-
display: grid;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.#{$h_prop} {
|
|
32
|
+
.#{$grid-code} {
|
|
34
33
|
display: grid;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
& > .#{$grid-code-sep}#{$gridFullWidth} {
|
|
38
|
-
flex: 1 1 0;
|
|
34
|
+
&-auto-flow-cols {
|
|
35
|
+
grid-auto-flow: column;
|
|
39
36
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.#{$v_prop} {
|
|
45
|
-
display: grid;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
|
|
48
|
-
& > .#{$grid-code-sep}#{$gridFullWidth} {
|
|
49
|
-
flex: 1 1 0;
|
|
50
|
-
max-height: 100%;
|
|
37
|
+
&-auto-cols-auto {
|
|
38
|
+
grid-auto-columns: auto;
|
|
51
39
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
justify-content: center;
|
|
40
|
+
&-auto-cols-min {
|
|
41
|
+
grid-auto-columns: min-content;
|
|
55
42
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
& > *:not(.#{$grid-code-sep}#{$gridFullWidth}) {
|
|
63
|
-
flex: 0 0 auto;
|
|
43
|
+
&-auto-cols-max {
|
|
44
|
+
grid-auto-columns: max-content;
|
|
45
|
+
}
|
|
46
|
+
&-auto-cols {
|
|
47
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
64
48
|
}
|
|
65
49
|
|
|
66
|
-
|
|
67
|
-
|
|
50
|
+
&-auto-flow-rows {
|
|
51
|
+
grid-auto-flow: row;
|
|
52
|
+
}
|
|
53
|
+
&-auto-rows-auto {
|
|
54
|
+
grid-auto-rows: auto;
|
|
55
|
+
}
|
|
56
|
+
&-auto-rows-min {
|
|
57
|
+
grid-auto-rows: min-content;
|
|
58
|
+
}
|
|
59
|
+
&-auto-rows-max {
|
|
60
|
+
grid-auto-rows: max-content;
|
|
61
|
+
}
|
|
62
|
+
&-auto-rows {
|
|
63
|
+
grid-auto-rows: minmax(0, 1fr);
|
|
68
64
|
}
|
|
69
65
|
|
|
66
|
+
|
|
70
67
|
}
|
|
71
68
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
69
|
+
.#{$grid-code-sep}inline {
|
|
70
|
+
display: inline-grid;
|
|
71
|
+
}
|
|
72
|
+
/* template-columns */
|
|
73
|
+
@for $col-row from 1 through $grid-max-cols {
|
|
74
|
+
.#{$grid-code}-cols-#{$col-row} {
|
|
75
|
+
grid-template-columns: repeat(#{$col-row}, minmax(0, 1fr));
|
|
80
76
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
77
|
+
}
|
|
78
|
+
/* template-rows */
|
|
79
|
+
@for $col-row from 1 through $grid-max-rows {
|
|
80
|
+
.#{$grid-code}-rows-#{$col-row} {
|
|
81
|
+
grid-template-rows: repeat(#{$col-row}, minmax(0, 1fr));
|
|
87
82
|
}
|
|
88
83
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
84
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
$_grow-shrink-steps: 4;
|
|
5
5
|
|
|
6
|
+
$grid-max-cols: 12;
|
|
7
|
+
$grid-max-rows: 8;
|
|
6
8
|
|
|
7
9
|
$_grid-align: (top middle bottom left right center middle-center stretch);
|
|
8
10
|
|
|
@@ -61,7 +63,9 @@ $grid-config: (
|
|
|
61
63
|
gridFullWidth: main,
|
|
62
64
|
grow-shrink-steps:$_grow-shrink-steps,
|
|
63
65
|
cssProps: $_cssProps,
|
|
64
|
-
cssItemsProps: $_cssItemsProps
|
|
66
|
+
cssItemsProps: $_cssItemsProps,
|
|
67
|
+
grid-max-rows: $grid-max-rows,
|
|
68
|
+
grid-max-cols: $grid-max-cols
|
|
65
69
|
);
|
|
66
70
|
|
|
67
71
|
$grid-docs: (// add align-middle non generated className // grow + shrink
|
|
@@ -72,11 +76,8 @@ $grid-docs: (// add align-middle non generated className // grow + shrink
|
|
|
72
76
|
classNames: (
|
|
73
77
|
align: $_grid-align,
|
|
74
78
|
grid:utils.getObjectKeys(map-get($_cssProps, flexWrap)), // add inline !
|
|
75
|
-
//items: utils.getObjectKeys(map-get($_cssProps, grid-items)),
|
|
76
|
-
//content:utils.getObjectKeys(map-get($_cssProps, grid-content)),
|
|
77
|
-
//justify:utils.getObjectKeys(map-get($_cssProps, grid-justify))
|
|
78
79
|
),
|
|
79
|
-
about: "a classic grid system
|
|
80
|
+
about: "a classic grid system"
|
|
80
81
|
),
|
|
81
82
|
self:(
|
|
82
83
|
tag: self,
|
|
@@ -32,7 +32,7 @@ $unit-tag-config: map-get($scale-config, unit-tag-config)!default;
|
|
|
32
32
|
#{$scale_prop_short}-#{$media_query_code}-#{$size_code},
|
|
33
33
|
#{$scale_prop_short}-#{$size_code}
|
|
34
34
|
);
|
|
35
|
-
.#{$tag}, .scale-#{$tag}
|
|
35
|
+
.#{$tag} { // , .scale-#{$tag}
|
|
36
36
|
#{$scale_prop}: $size_value;
|
|
37
37
|
|
|
38
38
|
@if ($_has_dimensions_max) {
|
|
@@ -13,16 +13,14 @@ $theme-levels: map-get($theme-config, theme-level-config);
|
|
|
13
13
|
$theme-properties-apply-config: map-get($theme-config, theme-properties-apply-config);
|
|
14
14
|
|
|
15
15
|
$color-primary: map-get($color-themes, primary);
|
|
16
|
-
$color-secondary:
|
|
17
|
-
$color-tertiary:
|
|
16
|
+
$color-secondary: map-get($color-themes, secondary);
|
|
17
|
+
$color-tertiary: map-get($color-themes, tertiary);
|
|
18
18
|
|
|
19
19
|
$declinations-config: map-get($theme-config, declinations-config);
|
|
20
20
|
|
|
21
21
|
@mixin fabric_theme($mq_size_key: null) {
|
|
22
22
|
// loop on each color grades
|
|
23
23
|
@each $color-grade in $declinations-config {
|
|
24
|
-
$switch-color-grad: utils.themeDeclinationColors($color-grade, $color-primary);
|
|
25
|
-
|
|
26
24
|
|
|
27
25
|
@each $text-or-bg-or-border in $theme-properties-apply-config {
|
|
28
26
|
$property_key: if($mq_size_key, #{$text-or-bg-or-border}-#{$mq_size_key}, #{$text-or-bg-or-border});
|
|
@@ -73,5 +71,6 @@ $declinations-config: map-get($theme-config, declinations-config);
|
|
|
73
71
|
}
|
|
74
72
|
|
|
75
73
|
@mixin buildTheme($mq_size_key: null) {
|
|
76
|
-
|
|
74
|
+
|
|
75
|
+
@include fabric_theme($mq_size_key);
|
|
77
76
|
}
|
|
@@ -6,11 +6,16 @@ $config: cssfabric-config.$cssfabric-config;
|
|
|
6
6
|
|
|
7
7
|
$theme: map-get($config, theme);
|
|
8
8
|
|
|
9
|
-
$
|
|
9
|
+
$color-primary: map-get($theme, primary) !default;
|
|
10
|
+
$color-secondary: map-get($theme, secondary) !default;
|
|
11
|
+
$color-tertiary: map-get($theme, tertiary) !default;
|
|
12
|
+
|
|
10
13
|
$_foreground: map-get($theme, foreground) !default;
|
|
11
14
|
$_background: map-get($theme, background) !default;
|
|
12
15
|
|
|
13
16
|
$_declinations-config: (primary, secondary, tertiary);
|
|
17
|
+
$themeii: (primary: $color-primary, secondary:$color-secondary, tertiary:$color-tertiary);
|
|
18
|
+
|
|
14
19
|
$_theme-levels: (light lighter dark darker complement invert);
|
|
15
20
|
$_theme-properties-apply: (text, bg, border);
|
|
16
21
|
|
|
@@ -28,14 +33,17 @@ $theme-config: (
|
|
|
28
33
|
moduleName: theme,
|
|
29
34
|
moduleNameShort: theme,
|
|
30
35
|
color-default-config: (
|
|
31
|
-
primary: $
|
|
36
|
+
primary: $color-primary,
|
|
37
|
+
secondary: $color-secondary,
|
|
38
|
+
tertiary: $color-tertiary,
|
|
32
39
|
foreground: $_foreground,
|
|
33
40
|
background: $_background
|
|
34
41
|
),
|
|
35
42
|
declinations-config:$_declinations-config,
|
|
36
43
|
theme-level-config:$_theme-levels,
|
|
37
44
|
theme-properties-apply-config:$_theme-properties-apply,
|
|
38
|
-
|
|
45
|
+
// primary secondary tertiary
|
|
46
|
+
color: utils.getThemeLevels($themeii, $color-primary)
|
|
39
47
|
);
|
|
40
48
|
|
|
41
49
|
$theme-docs: (attributes:(
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
@use "../../cssfabric/modules/theme/theme-build" as themeBuild;
|
|
8
8
|
@use "../../cssfabric/modules/text/text-build" as textBuild;
|
|
9
9
|
|
|
10
|
+
|
|
10
11
|
$config: cssfabric-config.$cssfabric-config;
|
|
11
12
|
/* cssFabric vars */
|
|
12
13
|
|
|
@@ -49,11 +50,8 @@ $box-shadow-shorthand-config: map-get($box-config, shadow-shorthand-config) !def
|
|
|
49
50
|
--theme-color-background: #{map-get($theme-light, background)};
|
|
50
51
|
--theme-color-paper: #{map-get($theme-light, paper)};
|
|
51
52
|
|
|
52
|
-
--theme-color-border:
|
|
53
|
-
--theme-color-overlay:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
--theme-color-border: rgba(208, 191, 151, 0.3);
|
|
54
|
+
--theme-color-overlay: rgba(208, 191, 151, 0.2);
|
|
57
55
|
|
|
58
56
|
/* color-scheme */
|
|
59
57
|
@each $type-key, $type-prop in $color-schemes {
|
|
@@ -112,8 +110,8 @@ $box-shadow-shorthand-config: map-get($box-config, shadow-shorthand-config) !def
|
|
|
112
110
|
--theme-color-background: #{map-get($theme-dark, background)};
|
|
113
111
|
--theme-color-paper: #{map-get($theme-dark, paper)};
|
|
114
112
|
|
|
115
|
-
--theme-color-border:
|
|
116
|
-
--theme-color-overlay:
|
|
113
|
+
--theme-color-border: rgba(255, 255, 255, 0.2);
|
|
114
|
+
--theme-color-overlay: rgba(255,255,255,0.1);
|
|
117
115
|
}
|
|
118
116
|
|
|
119
117
|
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
$zindex-metadata: (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
title: zindex,
|
|
3
|
+
tag: zI,
|
|
4
|
+
description: "cssfabric zindex module to set z-index on all html elements",
|
|
5
5
|
);
|
|
6
6
|
$zindex-config: (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
d,
|
|
12
|
-
e,
|
|
13
|
-
f,
|
|
14
|
-
g,
|
|
15
|
-
),
|
|
7
|
+
z_groups: (
|
|
8
|
+
a,
|
|
9
|
+
z
|
|
10
|
+
),
|
|
16
11
|
);
|
|
17
12
|
$zindex-docs: (
|
|
18
|
-
|
|
13
|
+
z_groups: _,
|
|
19
14
|
);
|
|
@@ -5,14 +5,11 @@ $zindex-config: zindex-vars.$zindex-config;
|
|
|
5
5
|
@use '../../_utils';
|
|
6
6
|
|
|
7
7
|
// read variables
|
|
8
|
-
$z_groups: map-get($zindex-config, z_groups);
|
|
9
|
-
|
|
8
|
+
$z_groups: map-get($zindex-config, z_groups);
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
z-index: ($i * 100) + (($z_value + 1) * 10);
|
|
16
|
-
}
|
|
10
|
+
|
|
11
|
+
@for $z_value from 0 through 10 {
|
|
12
|
+
.zI-#{$z_value} {
|
|
13
|
+
z-index: (($z_value) * 100);
|
|
17
14
|
}
|
|
18
|
-
}
|
|
15
|
+
}
|