@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.
Files changed (72) hide show
  1. package/.idea/cssfabric.iml +1 -4
  2. package/css/mystyles.css +280 -0
  3. package/css/mystyles.css.map +1 -0
  4. package/lib/scripts/index.d.ts +2 -0
  5. package/lib/scripts/index.js +6 -0
  6. package/lib/styles/core/box/box.css +832 -832
  7. package/lib/styles/core/box/box.min.css +1 -1
  8. package/lib/styles/core/box/box.responsive.css +4165 -6430
  9. package/lib/styles/core/box/box.responsive.min.css +1 -1
  10. package/lib/styles/core/color/color.responsive.css +5 -930
  11. package/lib/styles/core/color/color.responsive.min.css +1 -1
  12. package/lib/styles/core/flex/flex.css +56 -72
  13. package/lib/styles/core/flex/flex.min.css +1 -1
  14. package/lib/styles/core/flex/flex.responsive.css +286 -508
  15. package/lib/styles/core/flex/flex.responsive.min.css +1 -1
  16. package/lib/styles/core/grid/grid.css +103 -34
  17. package/lib/styles/core/grid/grid.min.css +1 -1
  18. package/lib/styles/core/grid/grid.responsive.css +506 -213
  19. package/lib/styles/core/grid/grid.responsive.min.css +1 -1
  20. package/lib/styles/core/menu/menu.responsive.css +5 -86
  21. package/lib/styles/core/menu/menu.responsive.min.css +1 -1
  22. package/lib/styles/core/overflow/overflow.responsive.css +5 -66
  23. package/lib/styles/core/overflow/overflow.responsive.min.css +1 -1
  24. package/lib/styles/core/scale/scale.css +192 -192
  25. package/lib/styles/core/scale/scale.min.css +1 -1
  26. package/lib/styles/core/scale/scale.responsive.css +965 -1606
  27. package/lib/styles/core/scale/scale.responsive.min.css +1 -1
  28. package/lib/styles/core/table/table.responsive.css +5 -79
  29. package/lib/styles/core/table/table.responsive.min.css +1 -1
  30. package/lib/styles/core/text/text.responsive.css +5 -154
  31. package/lib/styles/core/text/text.responsive.min.css +1 -1
  32. package/lib/styles/core/vars.css +47 -47
  33. package/lib/styles/core/vars.min.css +1 -1
  34. package/lib/styles/core/zindex/zindex.css +16 -252
  35. package/lib/styles/core/zindex/zindex.min.css +1 -1
  36. package/lib/styles/cssfabric.css +1650 -4096
  37. package/lib/styles/cssfabric.min.css +7 -7
  38. package/lib/styles/cssfabric.responsive.css +13802 -17927
  39. package/lib/styles/cssfabric.responsive.min.css +9 -9
  40. package/package.json +3 -4
  41. package/src/_generated/export.variables.json +125 -121
  42. package/src/_generated/readme.md +0 -0
  43. package/src/cssfabric/_utils.scss +4 -16
  44. package/src/cssfabric/modules/_cssfabric-config.scss +14 -13
  45. package/src/cssfabric/modules/animation/animation.scss +2 -2
  46. package/src/cssfabric/modules/base/_base-vars.scss +4 -2
  47. package/src/cssfabric/modules/box/_box-build.scss +2 -2
  48. package/src/cssfabric/modules/box/box-responsive.scss +1 -1
  49. package/src/cssfabric/modules/color/color.scss +8 -2
  50. package/src/cssfabric/modules/flex/_flex-build.scss +35 -54
  51. package/src/cssfabric/modules/flex/_flex-vars.scss +3 -6
  52. package/src/cssfabric/modules/grid/_grid-build.scss +42 -49
  53. package/src/cssfabric/modules/grid/_grid-vars.scss +6 -5
  54. package/src/cssfabric/modules/grid/grid.scss +4 -1
  55. package/src/cssfabric/modules/menu/menu.scss +5 -2
  56. package/src/cssfabric/modules/overflow/overflow.scss +2 -0
  57. package/src/cssfabric/modules/scale/_scale-build.scss +1 -1
  58. package/src/cssfabric/modules/scale/scale.scss +5 -0
  59. package/src/cssfabric/modules/table/table.scss +7 -2
  60. package/src/cssfabric/modules/text/text.scss +3 -2
  61. package/src/cssfabric/modules/theme/_theme-build.scss +4 -5
  62. package/src/cssfabric/modules/theme/_theme-vars.scss +11 -3
  63. package/src/cssfabric/modules/theme/theme.scss +2 -1
  64. package/src/cssfabric/modules/vars.scss +5 -7
  65. package/src/cssfabric/modules/zindex/_zindex-vars.scss +8 -13
  66. package/src/cssfabric/modules/zindex/zindex.scss +6 -9
  67. package/src/scripts/index.d.ts +2 -0
  68. package/src/scripts/index.ts +8 -0
  69. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  70. package/lib/styles/core/main.css +0 -2263
  71. package/src/cssfabric/modules/animation/_animation-build.scss +0 -121
  72. 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;
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: "grid children specific classnames"
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
- %flex {
30
- display: grid;
31
- }
32
-
33
- .#{$h_prop} {
32
+ .#{$grid-code} {
34
33
  display: grid;
35
- flex-direction: row;
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
- &.align-middle, &.#{$grid-code-sep}align-middle {
54
- justify-content: center;
40
+ &-auto-cols-min {
41
+ grid-auto-columns: min-content;
55
42
  }
56
-
57
- }
58
-
59
- .#{$h_prop},
60
- .#{$v_prop} {
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
- &.#{$grid-code-sep}inline {
67
- display: inline-grid;
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
- /** raw css properties distribution */
73
- .#{$h_prop},
74
- .#{$v_prop} {
75
- // wrap rules
76
- &.#{$grid-code} {
77
- @each $fabricRule, $value in map-get($cssProps, flexWrap) {
78
- @include utils.fabricAttributes('&'+$sep, $fabricRule, 'flex-wrap', $value);
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
- // align-self rules for children */
83
- & .self {
84
- @each $fabricRule, $value in map-get($cssItemsProps, self) {
85
- @include utils.fabricAttributes('&-', $fabricRule, 'align-self', $value);
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, and hey, it gets height !"
80
+ about: "a classic grid system"
80
81
  ),
81
82
  self:(
82
83
  tag: self,
@@ -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>