@medyll/cssfabric 0.0.12 → 0.0.16
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/bin/index.js +2 -0
- 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.css +36 -36
- package/lib/styles/core/color/color.min.css +1 -1
- package/lib/styles/core/color/color.responsive.css +185 -1110
- 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 +1277 -3723
- package/lib/styles/cssfabric.min.css +7 -7
- package/lib/styles/cssfabric.responsive.css +13007 -17132
- package/lib/styles/cssfabric.responsive.min.css +9 -9
- package/package.json +6 -4
- package/src/_generated/export.variables.json +28 -24
- 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-build.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
|
@@ -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
|
+
}
|