@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.
Files changed (76) hide show
  1. package/.idea/cssfabric.iml +1 -4
  2. package/bin/index.js +2 -0
  3. package/css/mystyles.css +280 -0
  4. package/css/mystyles.css.map +1 -0
  5. package/lib/scripts/index.d.ts +2 -0
  6. package/lib/scripts/index.js +6 -0
  7. package/lib/styles/core/box/box.css +832 -832
  8. package/lib/styles/core/box/box.min.css +1 -1
  9. package/lib/styles/core/box/box.responsive.css +4165 -6430
  10. package/lib/styles/core/box/box.responsive.min.css +1 -1
  11. package/lib/styles/core/color/color.css +36 -36
  12. package/lib/styles/core/color/color.min.css +1 -1
  13. package/lib/styles/core/color/color.responsive.css +185 -1110
  14. package/lib/styles/core/color/color.responsive.min.css +1 -1
  15. package/lib/styles/core/flex/flex.css +56 -72
  16. package/lib/styles/core/flex/flex.min.css +1 -1
  17. package/lib/styles/core/flex/flex.responsive.css +286 -508
  18. package/lib/styles/core/flex/flex.responsive.min.css +1 -1
  19. package/lib/styles/core/grid/grid.css +103 -34
  20. package/lib/styles/core/grid/grid.min.css +1 -1
  21. package/lib/styles/core/grid/grid.responsive.css +506 -213
  22. package/lib/styles/core/grid/grid.responsive.min.css +1 -1
  23. package/lib/styles/core/menu/menu.responsive.css +5 -86
  24. package/lib/styles/core/menu/menu.responsive.min.css +1 -1
  25. package/lib/styles/core/overflow/overflow.responsive.css +5 -66
  26. package/lib/styles/core/overflow/overflow.responsive.min.css +1 -1
  27. package/lib/styles/core/scale/scale.css +192 -192
  28. package/lib/styles/core/scale/scale.min.css +1 -1
  29. package/lib/styles/core/scale/scale.responsive.css +965 -1606
  30. package/lib/styles/core/scale/scale.responsive.min.css +1 -1
  31. package/lib/styles/core/table/table.responsive.css +5 -79
  32. package/lib/styles/core/table/table.responsive.min.css +1 -1
  33. package/lib/styles/core/text/text.responsive.css +5 -154
  34. package/lib/styles/core/text/text.responsive.min.css +1 -1
  35. package/lib/styles/core/vars.css +47 -47
  36. package/lib/styles/core/vars.min.css +1 -1
  37. package/lib/styles/core/zindex/zindex.css +16 -252
  38. package/lib/styles/core/zindex/zindex.min.css +1 -1
  39. package/lib/styles/cssfabric.css +1277 -3723
  40. package/lib/styles/cssfabric.min.css +7 -7
  41. package/lib/styles/cssfabric.responsive.css +13007 -17132
  42. package/lib/styles/cssfabric.responsive.min.css +9 -9
  43. package/package.json +6 -4
  44. package/src/_generated/export.variables.json +28 -24
  45. package/src/_generated/readme.md +0 -0
  46. package/src/cssfabric/_utils.scss +4 -16
  47. package/src/cssfabric/modules/_cssfabric-config.scss +14 -13
  48. package/src/cssfabric/modules/animation/animation.scss +2 -2
  49. package/src/cssfabric/modules/base/_base-vars.scss +4 -2
  50. package/src/cssfabric/modules/box/_box-build.scss +2 -2
  51. package/src/cssfabric/modules/box/box-responsive.scss +1 -1
  52. package/src/cssfabric/modules/color/_color-build.scss +1 -1
  53. package/src/cssfabric/modules/color/color.scss +8 -2
  54. package/src/cssfabric/modules/flex/_flex-build.scss +35 -54
  55. package/src/cssfabric/modules/flex/_flex-vars.scss +3 -6
  56. package/src/cssfabric/modules/grid/_grid-build.scss +42 -49
  57. package/src/cssfabric/modules/grid/_grid-vars.scss +6 -5
  58. package/src/cssfabric/modules/grid/grid.scss +4 -1
  59. package/src/cssfabric/modules/menu/menu.scss +5 -2
  60. package/src/cssfabric/modules/overflow/overflow.scss +2 -0
  61. package/src/cssfabric/modules/scale/_scale-build.scss +1 -1
  62. package/src/cssfabric/modules/scale/scale.scss +5 -0
  63. package/src/cssfabric/modules/table/table.scss +7 -2
  64. package/src/cssfabric/modules/text/text.scss +3 -2
  65. package/src/cssfabric/modules/theme/_theme-build.scss +4 -5
  66. package/src/cssfabric/modules/theme/_theme-vars.scss +11 -3
  67. package/src/cssfabric/modules/theme/theme.scss +2 -1
  68. package/src/cssfabric/modules/vars.scss +5 -7
  69. package/src/cssfabric/modules/zindex/_zindex-vars.scss +8 -13
  70. package/src/cssfabric/modules/zindex/zindex.scss +6 -9
  71. package/src/scripts/index.d.ts +2 -0
  72. package/src/scripts/index.ts +8 -0
  73. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  74. package/lib/styles/core/main.css +0 -2263
  75. package/src/cssfabric/modules/animation/_animation-build.scss +0 -121
  76. package/src/cssfabric/modules/main.scss +0 -3
@@ -1,3 +1,6 @@
1
+
2
+ // load _build
1
3
  @use '_grid-build' as build;
2
4
 
3
- @include build.makeGrid(null);
5
+
6
+ @include build.makeGrid(null);
@@ -1,3 +1,6 @@
1
- @use 'menu-build' as build;
2
1
 
3
- @include build.buildMenu(null);
2
+ // load scss config file
3
+ @use 'menu-build' as build;
4
+
5
+
6
+ @include build.buildMenu(null)
@@ -1,3 +1,5 @@
1
+
2
+ // load scss config file
1
3
  @use '_overflow-build' as build;
2
4
 
3
5
  @include build.buildOverflow();
@@ -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) {
@@ -1,3 +1,8 @@
1
+
2
+
3
+ // load scss config file
4
+ @use '../../_utils';
1
5
  @use '_scale-build'as build;
2
6
 
7
+ // builder
3
8
  @include build.buildScale(null);
@@ -1,3 +1,8 @@
1
- @use '_table-build' as build;
2
1
 
3
- @include build.buildTable();
2
+
3
+ // load scss config file
4
+ @use '../../_utils';
5
+ @use '_table-build' as build;
6
+
7
+
8
+ @include build.buildTable(null);
@@ -1,5 +1,6 @@
1
- @use '_text-build' as build;
1
+
2
+ @use '_text-build' as build;
2
3
 
3
- @include build.buildText();
4
+ @include build.buildText(null);
4
5
 
5
6
 
@@ -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: complement($color-primary);
17
- $color-tertiary: complement(invert($color-primary));
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
- @include fabric_theme($mq_size_key);
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
- $_color-primary: map-get($theme, primary) !default;
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: $_color-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
- color: utils.getThemeLevels($_declinations-config, $_color-primary)
45
+ // primary secondary tertiary
46
+ color: utils.getThemeLevels($themeii, $color-primary)
39
47
  );
40
48
 
41
49
  $theme-docs: (attributes:(
@@ -1,4 +1,5 @@
1
- @use '_theme-build' as build;
1
+
2
+ @use '_theme-build' as build;
2
3
 
3
4
  @include build.buildTheme(null);
4
5
 
@@ -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: var(--theme-color-primary-alpha-mid);
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: var(--theme-color-primary-alpha-mid);
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
- title: zindex,
3
- tag: zI,
4
- description: "cssfabric zindex module to set z-index on all html elements",
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
- z_groups: (
8
- a,
9
- b,
10
- c,
11
- d,
12
- e,
13
- f,
14
- g,
15
- ),
7
+ z_groups: (
8
+ a,
9
+ z
10
+ ),
16
11
  );
17
12
  $zindex-docs: (
18
- z_groups: _,
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
- @each $z_group in $z_groups {
12
- $i: index($z_groups, $z-group);
13
- @for $z_value from 0 through 9 {
14
- .zI-#{$z_group}-#{$z_value} {
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
+ }
@@ -0,0 +1,2 @@
1
+ declare function buildReadme(): void;
2
+ export default buildReadme;
@@ -0,0 +1,8 @@
1
+
2
+
3
+ function buildReadme(vars: string){
4
+ return "readme"
5
+ }
6
+
7
+
8
+ export default buildReadme;
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
4
- </state>
5
- </component>