@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
package/src/mixins/_util.scss
CHANGED
@@ -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
|
+
}
|
package/src/themes/default.scss
CHANGED
@@ -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:
|
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
|
}
|
package/src/utility/_mixins.scss
CHANGED
@@ -1,71 +1,80 @@
|
|
1
1
|
@mixin screen($breakpoint) {
|
2
|
-
|
2
|
+
// $breakpoint is simply a variable that can have several values
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
-
|
15
|
-
|
16
|
-
|
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
|
-
|
19
|
-
|
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
|
-
|
24
|
-
|
25
|
-
|
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
|
-
|
30
|
-
|
31
|
-
|
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
|
-
@
|
38
|
-
@
|
39
|
-
|
36
|
+
@mixin responsive($media) {
|
37
|
+
@if $media == 'phone' {
|
38
|
+
@media (max-width: 599px) {
|
39
|
+
@content;
|
40
40
|
}
|
41
|
-
|
42
|
-
|
41
|
+
}
|
42
|
+
@if $media == 'tablet' {
|
43
|
+
@media (min-width: 600px) {
|
44
|
+
@content;
|
43
45
|
}
|
44
|
-
|
45
|
-
|
46
|
+
}
|
47
|
+
@if $media == 'tablet-landscape' {
|
48
|
+
@media (min-width: 900px) {
|
49
|
+
@content;
|
46
50
|
}
|
47
|
-
|
48
|
-
|
51
|
+
}
|
52
|
+
@if $media == 'desktop' {
|
53
|
+
@media (min-width: 1200px) {
|
54
|
+
@content;
|
49
55
|
}
|
50
|
-
|
51
|
-
|
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
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
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
|
-
|
69
|
-
|
70
|
-
|
77
|
+
.ax-rtl {
|
78
|
+
@content;
|
79
|
+
}
|
71
80
|
}
|