@medyll/cssfabric 0.0.10 → 0.0.14

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 (44) hide show
  1. package/.idea/cssfabric.iml +1 -4
  2. package/lib/scripts/index.d.ts +2 -0
  3. package/lib/scripts/index.js +6 -0
  4. package/lib/styles/core/animation/animation.css +215 -0
  5. package/lib/styles/core/animation/animation.min.css +1 -0
  6. package/lib/styles/core/overflow/overflow.css +83 -59
  7. package/lib/styles/core/overflow/overflow.min.css +1 -1
  8. package/lib/styles/core/overflow/overflow.responsive.css +486 -366
  9. package/lib/styles/core/table/table.css +70 -71
  10. package/lib/styles/core/vars.css +11 -11
  11. package/lib/styles/core/vars.min.css +1 -1
  12. package/lib/styles/core/zindex/zindex.css +348 -278
  13. package/lib/styles/cssfabric.css +20 -20
  14. package/lib/styles/cssfabric.min.css +1 -1
  15. package/package.json +4 -4
  16. package/src/_generated/export.variables.json +3 -3
  17. package/src/_generated/readme.md +0 -0
  18. package/src/cssfabric/_utils.scss +3 -15
  19. package/src/cssfabric/modules/_cssfabric-config.scss +9 -7
  20. package/src/cssfabric/modules/base/_base-vars.scss +4 -2
  21. package/src/cssfabric/modules/box/box-responsive.scss +1 -1
  22. package/src/cssfabric/modules/color/color-responsive.scss +1 -1
  23. package/src/cssfabric/modules/color/color.scss +8 -2
  24. package/src/cssfabric/modules/grid/grid-responsive.scss +1 -1
  25. package/src/cssfabric/modules/grid/grid.scss +4 -1
  26. package/src/cssfabric/modules/menu/menu-responsive.scss +1 -1
  27. package/src/cssfabric/modules/menu/menu.scss +5 -2
  28. package/src/cssfabric/modules/overflow/overflow-responsive.scss +1 -1
  29. package/src/cssfabric/modules/overflow/overflow.scss +2 -0
  30. package/src/cssfabric/modules/scale/scale-responsive.scss +1 -1
  31. package/src/cssfabric/modules/scale/scale.scss +5 -0
  32. package/src/cssfabric/modules/table/table-responsive.scss +1 -1
  33. package/src/cssfabric/modules/table/table.scss +7 -2
  34. package/src/cssfabric/modules/text/text-responsive.scss +1 -1
  35. package/src/cssfabric/modules/text/text.scss +3 -2
  36. package/src/cssfabric/modules/theme/_theme-build.scss +4 -7
  37. package/src/cssfabric/modules/theme/_theme-vars.scss +11 -3
  38. package/src/cssfabric/modules/theme/theme.scss +2 -1
  39. package/src/cssfabric/modules/vars.scss +1 -2
  40. package/src/cssfabric/modules/zindex/zindex.scss +1 -0
  41. package/src/scripts/index.d.ts +2 -0
  42. package/src/scripts/index.ts +8 -0
  43. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  44. package/src/cssfabric/modules/animation/_animation-build.scss +0 -121
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
4
- </state>
5
- </component>
@@ -1,121 +0,0 @@
1
- @use 'animation-vars';
2
-
3
- $animation-config: animation-vars.$animation-config;
4
-
5
- // load scss config file
6
- @use '../../_utils' as utils;
7
-
8
- $fabric_attention_props: map-get($animation-config, attention_props);
9
- $fabric_in_out_props: map-get($animation-config, in_out_props);
10
-
11
- $vectorDirections: (up right bottom left);
12
-
13
-
14
- // up down right left
15
- @function getVectorPropertyObject($vectorDirection) {
16
-
17
- $move: '';
18
- $direction: '';
19
-
20
- $model: (up:(translation:translateY, direction: '-'),
21
- bottom:(translation:translateY, direction: '+'),
22
- right:(translation:translateX, direction: '+'),
23
- left:(translation:translateX, direction: '-'));
24
-
25
- $test: map-get($model, $vectorDirection);
26
-
27
- @return (translation:map-get($test, translation), direction:map-get($test, direction));
28
-
29
- }
30
-
31
- @function draw ($vectorMove, $vectorDirection, $vectorValue) {
32
-
33
- @return (#{$vectorMove}(#{$vectorDirection}#{$vectorValue}));
34
- }
35
-
36
- //
37
- @mixin debug($family, $vector, $corner) {
38
-
39
- $vectorMove: null;
40
- $cornerMove: null;
41
-
42
- $vectorProperty: getVectorPropertyObject($vector);
43
-
44
- $vectorMove: map-get($vectorProperty, translation); // 'translate' XY
45
- $vectorDirection: map-get($vectorProperty, direction); // + || -
46
-
47
- $val: draw($vectorMove, $vectorDirection, '10px');
48
-
49
- @if $corner {
50
- $cornerProperty: getVectorPropertyObject($corner);
51
-
52
- $cornerMove: map-get($cornerProperty, translation); // 'translate' XY
53
- $cornerDirection: map-get($cornerProperty, direction); // + || -
54
-
55
- $val: #{$val} draw($cornerMove, $cornerDirection, '10px');;
56
- }
57
-
58
- $fabricClassName: 'animate-'+$family+'-'+$vector+if($corner, '-'+$corner, null);
59
-
60
- @if $vectorMove !=$cornerMove {
61
-
62
- @keyframes #{$fabricClassName} {
63
-
64
- 0% {
65
- transform: scale(1);
66
- opacity: 1;
67
- }
68
-
69
- 30% {
70
- transform: #{$val} scale(0.7);
71
- opacity: 0.7;
72
- }
73
-
74
- 100% {
75
- transform: #{$val} scale(0.7);
76
- opacity: 0.5;
77
- }
78
- }
79
-
80
- .#{$fabricClassName} {
81
- animation-name: #{$val};
82
- }
83
- }
84
- }
85
-
86
-
87
- @mixin fabric_animation() {
88
- // left right down up #{$anim_dir_more}
89
- @each $animate_style in $fabric_in_out_props {
90
-
91
- $treatedDirections: ();
92
-
93
- @each $inOut in (In Out) {
94
-
95
- @each $vectorDirection in $vectorDirections {
96
-
97
- $treatedDirections: append($treatedDirections, $vectorDirection);
98
- //
99
- @include debug($animate_style+$inOut, $vectorDirection, null);
100
-
101
- @each $vectorCornerDirection in $vectorDirections {
102
-
103
- $alreadyDone: index($treatedDirections, $vectorCornerDirection);
104
-
105
- @if $vectorCornerDirection !=$vectorDirection and not $alreadyDone {
106
-
107
- @if $vectorDirection !=$vectorCornerDirection {
108
- //
109
- @include debug($animate_style+$inOut, $vectorDirection, $vectorCornerDirection);
110
- }
111
- }
112
- }
113
- }
114
- }
115
- }
116
- }
117
-
118
-
119
- @mixin buildAnimation() {
120
- // @include fabric_animation();
121
- }