@acorex/styles 7.4.1 → 7.4.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "7.4.1",
3
+ "version": "7.4.4",
4
4
  "main": "index.js",
5
5
  "author": "Ali Safari",
6
6
  "license": "ISC",
@@ -18,3 +18,17 @@
18
18
  @content;
19
19
  }
20
20
  }
21
+ @mixin direction($dir) {
22
+ html {
23
+ @if ($dir == 'rtl') {
24
+ &[dir='rtl'] {
25
+ @content;
26
+ }
27
+ }
28
+ @if ($dir == 'ltr') {
29
+ &[dir='ltr'] {
30
+ @content;
31
+ }
32
+ }
33
+ }
34
+ }
@@ -186,3 +186,16 @@
186
186
  }
187
187
  }
188
188
  }
189
+ span.ripple {
190
+ position: absolute;
191
+ border-radius: 50%;
192
+ transform: scale(0);
193
+ animation: ripple 300ms linear;
194
+ background-color: rgba(var(--ax-color-white), 0.7);
195
+ @keyframes ripple {
196
+ to {
197
+ transform: scale(4);
198
+ opacity: 0;
199
+ }
200
+ }
201
+ }
@@ -17,9 +17,12 @@
17
17
  --ax-color-input-surface: 255, 255, 255;
18
18
  --ax-color-input-surface-fore: 22, 22, 22;
19
19
 
20
- --ax-color-default: 239, 241, 245;
20
+ --ax-color-default: 229, 231, 235;
21
21
  --ax-color-default-fore: 22, 22, 22;
22
22
 
23
+ --ax-color-ghost: 255, 255, 255;
24
+ --ax-color-ghost-fore: 22, 22, 22;
25
+
23
26
  --ax-color-primary-fore: 255, 255, 255;
24
27
  --ax-color-primary-50: 239, 246, 255;
25
28
  --ax-color-primary-100: 219, 234, 254;
@@ -116,4 +119,7 @@
116
119
 
117
120
  --ax-color-default: 77, 91, 113;
118
121
  --ax-color-default-fore: 255, 255, 255;
122
+
123
+ --ax-color-ghost: 77, 91, 113;
124
+ --ax-color-ghost-fore: 255, 255, 255;
119
125
  }
@@ -1,71 +1,80 @@
1
1
  @mixin screen($breakpoint) {
2
- // $breakpoint is simply a variable that can have several values
2
+ // $breakpoint is simply a variable that can have several values
3
3
 
4
- @if $breakpoint == extraSmall {
5
- // Media query for 320px and less
6
- @media (max-width: 320px) {
7
- @content;
8
- }
9
- @media (min-width: 321px) and (max-width: 480px) {
10
- @content;
11
- }
4
+ @if $breakpoint == extraSmall {
5
+ // Media query for 320px and less
6
+ @media (max-width: 320px) {
7
+ @content;
12
8
  }
9
+ @media (min-width: 321px) and (max-width: 480px) {
10
+ @content;
11
+ }
12
+ }
13
13
 
14
- @if $breakpoint == tablet {
15
- // here `laptop` is the value of $breakpoint
16
- // when call laptop, we mean the following piece of code
14
+ @if $breakpoint == tablet {
15
+ // here `laptop` is the value of $breakpoint
16
+ // when call laptop, we mean the following piece of code
17
17
 
18
- @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {
19
- @content;
20
- }
18
+ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {
19
+ @content;
21
20
  }
21
+ }
22
22
 
23
- @if $breakpoint == mobile {
24
- @media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
25
- @content;
26
- }
23
+ @if $breakpoint == mobile {
24
+ @media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
25
+ @content;
27
26
  }
27
+ }
28
28
 
29
- @if $breakpoint == laptop {
30
- @media screen and (min-device-width: 1200px) and (max-device-width: 1600px) and (-webkit-min-device-pixel-ratio: 1) {
31
- @content;
32
- }
29
+ @if $breakpoint == laptop {
30
+ @media screen and (min-device-width: 1200px) and (max-device-width: 1600px) and (-webkit-min-device-pixel-ratio: 1) {
31
+ @content;
33
32
  }
33
+ }
34
34
  }
35
35
 
36
-
37
- @mixin responsive($media){
38
- @if $media == 'phone'{
39
- @media (max-width: 599px) { @content; }
36
+ @mixin responsive($media) {
37
+ @if $media == 'phone' {
38
+ @media (max-width: 599px) {
39
+ @content;
40
40
  }
41
- @if $media == 'tablet'{
42
- @media (min-width: 600px) { @content; }
41
+ }
42
+ @if $media == 'tablet' {
43
+ @media (min-width: 600px) {
44
+ @content;
43
45
  }
44
- @if $media == 'tablet-landscape'{
45
- @media (min-width: 900px) { @content; }
46
+ }
47
+ @if $media == 'tablet-landscape' {
48
+ @media (min-width: 900px) {
49
+ @content;
46
50
  }
47
- @if $media == 'desktop'{
48
- @media (min-width: 1200px) { @content; }
51
+ }
52
+ @if $media == 'desktop' {
53
+ @media (min-width: 1200px) {
54
+ @content;
49
55
  }
50
- @if $media == 'desktop-large'{
51
- @media (min-width: 1800px) { @content; }
56
+ }
57
+ @if $media == 'desktop-large' {
58
+ @media (min-width: 1800px) {
59
+ @content;
52
60
  }
61
+ }
53
62
  }
54
63
 
55
64
  @mixin color-look-generator() {
56
- $colors: ("primary", "secondary", "success", "warning", "danger", "info", "light", "dark");
57
- $looks: ("default", "outline", "twotone", "blank");
58
- @each $c in $colors {
59
- @each $l in $looks {
60
- &.ax-#{$c}-#{$l} {
61
- @include color-look($c, $l);
62
- }
63
- }
65
+ $colors: ('primary', 'secondary', 'success', 'warning', 'danger', 'info', 'light', 'dark');
66
+ $looks: ('default', 'outline', 'twotone', 'blank');
67
+ @each $c in $colors {
68
+ @each $l in $looks {
69
+ &.ax-#{$c}-#{$l} {
70
+ @include color-look($c, $l);
71
+ }
64
72
  }
73
+ }
65
74
  }
66
75
 
67
76
  @mixin rtl {
68
- .ax-rtl {
69
- @content;
70
- }
77
+ .ax-rtl {
78
+ @content;
79
+ }
71
80
  }