forked from Movalabs-crew/mova-store
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.css
More file actions
198 lines (167 loc) · 4.17 KB
/
Copy pathglobal.css
File metadata and controls
198 lines (167 loc) · 4.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
@tailwind base;
@tailwind components;
@tailwind utilities;
/* =============================================================================
Mova Store — Design Tokens
============================================================================= */
:root {
--mova-violet: #6d28d9;
--mova-violet-deep: #4c1d95;
--mova-violet-bright: #8b5cf6;
--mova-violet-soft: #c4b5fd;
--mova-violet-mist: #ede9fe;
--mova-ink: #1e1033;
--mova-surface: #f7f4ff;
--mova-focus: #7c3aed;
}
/* =============================================================================
Base Styles
============================================================================= */
html {
scroll-behavior: smooth;
}
html,
body {
height: 100%;
}
body {
color: var(--mova-ink);
background:
radial-gradient(1200px 600px at 10% -10%, rgba(139, 92, 246, 0.18), transparent 55%),
radial-gradient(900px 500px at 100% 0%, rgba(109, 40, 217, 0.12), transparent 50%),
linear-gradient(180deg, #faf8ff 0%, #f3efff 40%, #faf8ff 100%);
font-family: var(--font-mova-body), system-ui, sans-serif;
}
h1,
h2,
h3,
.font-display {
font-family: var(--font-mova-display), Georgia, serif;
}
/* =============================================================================
Accessibility
============================================================================= */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.sr-only.focus\:not-sr-only:focus,
.focus\:not-sr-only:focus {
position: fixed;
width: auto;
height: auto;
padding: inherit;
margin: inherit;
overflow: visible;
clip: auto;
white-space: normal;
}
:focus-visible {
outline: 2px solid var(--mova-focus);
outline-offset: 2px;
}
:focus:not(:focus-visible) {
outline: none;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
@media (prefers-contrast: high) {
button,
a {
border: 2px solid currentColor;
}
}
/* =============================================================================
Motion
============================================================================= */
@keyframes mova-fade-up {
from {
opacity: 0;
transform: translateY(18px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes mova-drift {
0%,
100% {
transform: translate3d(0, 0, 0) scale(1);
}
50% {
transform: translate3d(2%, -1.5%, 0) scale(1.03);
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.mova-fade-up {
animation: mova-fade-up 0.8s ease-out both;
}
.mova-fade-up-delay {
animation: mova-fade-up 0.9s ease-out 0.15s both;
}
.mova-fade-up-delay-2 {
animation: mova-fade-up 0.9s ease-out 0.3s both;
}
.mova-drift {
animation: mova-drift 18s ease-in-out infinite;
}
/* =============================================================================
Custom Components
============================================================================= */
.custom-image {
background-image: url("/images/mova-landing.png");
}
.loader {
border: 4px solid #e5e7eb;
border-top: 4px solid var(--mova-violet);
border-radius: 50%;
width: 3rem;
height: 3rem;
animation: spin 1s linear infinite;
}
/* =============================================================================
Form Accessibility
============================================================================= */
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
border-color: #dc2626;
background-color: #fef2f2;
}
label[data-required="true"]::after {
content: " *";
color: #dc2626;
}
/* =============================================================================
Interactive Element States
============================================================================= */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
opacity: 0.6;
cursor: not-allowed;
}
[aria-busy="true"] {
cursor: wait;
}