@acorex/styles 20.2.30 → 20.2.32
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/components/_uploader.scss +118 -12
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use '../mixins/index.scss' as mixin;
|
|
2
|
+
|
|
2
3
|
.ax-uploader-overlay-state {
|
|
3
4
|
border-radius: inherit;
|
|
4
5
|
pointer-events: none;
|
|
@@ -12,17 +13,97 @@
|
|
|
12
13
|
cursor: pointer;
|
|
13
14
|
flex-direction: column;
|
|
14
15
|
align-items: center;
|
|
15
|
-
justify-content:
|
|
16
|
-
gap:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
justify-content: space-evenly;
|
|
17
|
+
gap: 1rem /* 16px */;
|
|
18
|
+
|
|
19
|
+
// Enhanced backdrop with blur and gradient
|
|
20
|
+
background: linear-gradient(
|
|
21
|
+
135deg,
|
|
22
|
+
rgba(var(--ax-sys-color-primary-500), 0.15) 0%,
|
|
23
|
+
rgba(var(--ax-sys-color-primary-400), 0.2) 100%
|
|
24
|
+
);
|
|
25
|
+
backdrop-filter: blur(8px);
|
|
26
|
+
-webkit-backdrop-filter: blur(8px);
|
|
27
|
+
|
|
28
|
+
// Modern border design
|
|
29
|
+
border: 2px dashed rgba(var(--ax-sys-color-primary-500), 0.6);
|
|
30
|
+
box-shadow:
|
|
31
|
+
0 4px 16px rgba(var(--ax-sys-color-primary-500), 0.15),
|
|
32
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
|
33
|
+
|
|
34
|
+
// Typography
|
|
35
|
+
font-size: 0.9375rem /* 15px */;
|
|
36
|
+
line-height: 1.5rem /* 24px */;
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
color: rgba(var(--ax-sys-color-primary-700));
|
|
39
|
+
text-align: center;
|
|
40
|
+
|
|
41
|
+
// Smooth transitions
|
|
23
42
|
transition-property: all;
|
|
24
43
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
25
|
-
transition-duration:
|
|
44
|
+
transition-duration: 200ms;
|
|
45
|
+
|
|
46
|
+
// Icon styling
|
|
47
|
+
.ax-icon {
|
|
48
|
+
height: 3rem;
|
|
49
|
+
font-size: 2.5rem /* 40px */;
|
|
50
|
+
color: rgba(var(--ax-sys-color-primary-600));
|
|
51
|
+
filter: drop-shadow(0 2px 4px rgba(var(--ax-sys-color-primary-500), 0.2));
|
|
52
|
+
transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
53
|
+
animation: pulse 2s ease-in-out infinite;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Text styling
|
|
57
|
+
> span:not(.ax-icon) {
|
|
58
|
+
max-width: 80%;
|
|
59
|
+
padding: 0 1rem;
|
|
60
|
+
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Subtle animation on mount
|
|
64
|
+
animation: fadeInScale 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
65
|
+
|
|
66
|
+
// Exit animation class
|
|
67
|
+
&.ax-uploader-overlay-exiting {
|
|
68
|
+
animation: fadeOutScale 200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Pulse animation for icon
|
|
73
|
+
@keyframes pulse {
|
|
74
|
+
0%,
|
|
75
|
+
100% {
|
|
76
|
+
transform: scale(1);
|
|
77
|
+
opacity: 1;
|
|
78
|
+
}
|
|
79
|
+
50% {
|
|
80
|
+
transform: scale(1.05);
|
|
81
|
+
opacity: 0.9;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Fade in and scale animation
|
|
86
|
+
@keyframes fadeInScale {
|
|
87
|
+
from {
|
|
88
|
+
opacity: 0;
|
|
89
|
+
transform: scale(0.95);
|
|
90
|
+
}
|
|
91
|
+
to {
|
|
92
|
+
opacity: 1;
|
|
93
|
+
transform: scale(1);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Fade out and scale animation
|
|
98
|
+
@keyframes fadeOutScale {
|
|
99
|
+
from {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
transform: scale(1);
|
|
102
|
+
}
|
|
103
|
+
to {
|
|
104
|
+
opacity: 0;
|
|
105
|
+
transform: scale(0.95);
|
|
106
|
+
}
|
|
26
107
|
}
|
|
27
108
|
|
|
28
109
|
.ax-drop-zone {
|
|
@@ -37,8 +118,33 @@
|
|
|
37
118
|
|
|
38
119
|
@include mixin.darkMode() {
|
|
39
120
|
.ax-uploader-overlay-state {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
121
|
+
// Dark mode gradient
|
|
122
|
+
background: linear-gradient(
|
|
123
|
+
135deg,
|
|
124
|
+
rgba(var(--ax-sys-color-primary-600), 0.2) 0%,
|
|
125
|
+
rgba(var(--ax-sys-color-primary-500), 0.25) 100%
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
// Dark mode border
|
|
129
|
+
border-color: rgba(var(--ax-sys-color-primary-400), 0.5);
|
|
130
|
+
|
|
131
|
+
// Dark mode shadow
|
|
132
|
+
box-shadow:
|
|
133
|
+
0 4px 16px rgba(var(--ax-sys-color-primary-900), 0.3),
|
|
134
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
|
135
|
+
|
|
136
|
+
// Dark mode text
|
|
137
|
+
color: rgba(var(--ax-sys-color-primary-300));
|
|
138
|
+
|
|
139
|
+
// Dark mode icon
|
|
140
|
+
.ax-icon {
|
|
141
|
+
color: rgba(var(--ax-sys-color-primary-400));
|
|
142
|
+
filter: drop-shadow(0 2px 4px rgba(var(--ax-sys-color-primary-900), 0.4));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Dark mode text shadow
|
|
146
|
+
> span:not(.ax-icon) {
|
|
147
|
+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
148
|
+
}
|
|
43
149
|
}
|
|
44
150
|
}
|