-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.css
474 lines (396 loc) · 10.3 KB
/
tailwind.css
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind variants;
/* Desabilita animações para acessibilidade */
@media screen and (prefers-reduced-motion: reduce) {
.animate {
animation: none !important;
}
}
/* Variáveis */
:root {
--primary: 5 77 165;
--dark-primary: 0 51 105;
--text: 16 21 25;
--light: 240 240 240;
--accent: 2 182 108;
--dark-accent: 0 99 28;
}
/* Propriedades especiais */
::selection {
@apply bg-primary text-light;
}
/* Change Autocomplete styles in Chrome*/
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
-webkit-text-fill-color: rgb(var(--primary));
}
/* Tables Scrollbar Styling Start */
div::-webkit-scrollbar {
height: 0.75em;
width: 0.75rem;
}
/* Track */
div::-webkit-scrollbar-track {
@apply bg-primary/10;
border-radius: 5px;
}
/* Handle */
div::-webkit-scrollbar-thumb {
@apply bg-primary/40;
border-radius: 5px;
}
/* Handle on hover */
div::-webkit-scrollbar-thumb:hover {
@apply bg-primary/50;
}
/* Propriedades gerais do documento */
*:focus {
@apply outline-none ring-1 ring-offset-1 ring-primary;
}
html {
@apply bg-gray-50 text-text scroll-smooth h-full;
font-family: "Jost", sans-serif;
}
/* Seções */
header {
@apply flex flex-col items-center justify-center bg-primary h-[150px] py-4 px-4 select-none sm:h-[200px];
}
main {
@apply w-full;
}
footer {
@apply flex flex-col items-center text-center w-full px-4 py-6 mx-auto border-t-2 border-t-gray-300 md:w-11/12;
}
footer img {
filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.024))
drop-shadow(2.3px 2.3px 4.5px rgba(0, 0, 0, 0.035))
drop-shadow(3.9px 3.9px 7.9px rgba(0, 0, 0, 0.043))
drop-shadow(6.3px 6.3px 12.5px rgba(0, 0, 0, 0.05))
drop-shadow(9.7px 9.7px 19.3px rgba(0, 0, 0, 0.057))
drop-shadow(15.1px 15.1px 30.1px rgba(0, 0, 0, 0.065))
drop-shadow(25px 25px 50px rgba(0, 0, 0, 0.076))
drop-shadow(50px 50px 100px rgba(0, 0, 0, 0.1));
}
.card {
@apply flex justify-center mx-auto py-8;
}
.success {
@apply text-green-900 bg-green-100 border border-green-300 rounded-md p-4 mb-4;
}
.error {
@apply text-red-900 bg-red-100 border border-red-500 rounded-md p-4 mb-4;
}
.error > ul,
.success > ul {
@apply list-disc px-4;
}
/* Itens */
/* Títulos */
h1,
h2,
h3,
h4 {
font-family: "Poppins", sans-serif;
@apply text-center tracking-wide;
}
h1 {
@apply text-light text-4xl font-bold sm:text-6xl;
filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.024))
drop-shadow(2.3px 2.3px 4.5px rgba(0, 0, 0, 0.035))
drop-shadow(3.9px 3.9px 7.9px rgba(0, 0, 0, 0.043))
drop-shadow(6.3px 6.3px 12.5px rgba(0, 0, 0, 0.05))
drop-shadow(9.7px 9.7px 19.3px rgba(0, 0, 0, 0.057))
drop-shadow(15.1px 15.1px 30.1px rgba(0, 0, 0, 0.065))
drop-shadow(25px 25px 50px rgba(0, 0, 0, 0.076))
drop-shadow(50px 50px 100px rgba(0, 0, 0, 0.1));
}
h2,
h3,
h4 {
@apply font-semibold;
}
h2 {
@apply text-2xl mt-2 mb-6 sm:text-4xl;
}
h3 {
@apply text-xl my-2 sm:text-2xl;
}
h4 {
@apply text-lg my-2 sm:text-xl;
}
h1 + small {
@apply text-sm text-gray-300 md:text-base lg:text-lg;
}
/* Links */
.reset-password {
@apply relative font-semibold text-primary px-3 overflow-hidden transition-colors duration-300 z-[1];
}
.reset-password:hover,
.reset-password:active {
@apply text-light transition-colors duration-300 no-underline;
}
.reset-password::before {
content: "";
@apply absolute left-0 top-0 w-full h-full bg-primary rounded-sm z-[-1] translate-x-[-101%] transition-transform duration-300 ease-in-out;
}
.reset-password:hover::before,
.reset-password:active::before {
@apply translate-x-0 transition-transform duration-300 ease-in-out;
}
.reset-password:focus {
@apply ring-0;
}
/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
@apply text-primary bg-gray-100 border border-gray-300 rounded-md px-3 py-1 w-full focus:bg-gray-50 focus:border-primary focus:ring-offset-0 focus:ring-opacity-0 focus:outline-none invalid:text-red-900 invalid:bg-red-100 invalid:border invalid:border-red-500 invalid:focus:text-red-900 invalid:focus:bg-red-100 invalid:focus:border invalid:focus:border-red-500;
}
.form-line {
@apply mb-4;
}
.required {
@apply text-red-600 font-semibold align-middle ml-1;
}
.validation-error {
@apply text-sm text-red-900 font-semibold bg-red-50 border border-red-200 -mt-1 pt-2 px-3 rounded-b-md transition-all duration-300;
}
/* Tables */
table {
@apply table-auto border-collapse text-xs md:text-base;
}
td,
th {
@apply bg-clip-padding;
}
td {
@apply bg-gray-100;
}
thead tr:first-child th:not(:first-child):not(:last-child) {
@apply border-x border-x-gray-300;
}
thead tr:nth-child(2n) th {
@apply border-t border-x border-gray-300;
}
tbody tr td:not(:first-child):not(:last-child) {
@apply border border-gray-300;
}
tbody tr td:first-child,
tbody tr td:last-child {
@apply border-y border-gray-300;
}
tbody tr:first-child td {
@apply border-t-0 !important;
}
thead tr th {
@apply bg-primary text-light p-4 lg:py-3 lg:px-4;
}
tbody tr td {
@apply p-1 sm:py-2 sm:px-3;
}
.zebrado {
@apply bg-primary/5;
}
.inativa td {
@apply bg-gray-400 text-gray-300 line-through;
}
th.auditado {
@apply bg-darkAccent;
}
.auditado {
@apply font-bold bg-accent/20;
}
/* Toggle */
input[type="checkbox"].toggle {
@apply opacity-0 absolute left-[-9000px];
}
input[type="checkbox"].toggle + label {
@apply relative flex items-center cursor-pointer;
}
input[type="checkbox"].toggle + label::before {
@apply bg-gray-500 mr-2 transition ease-in-out;
content: "";
width: 2rem;
height: 0.7rem;
border-radius: 1rem;
}
input[type="checkbox"].toggle + label::after {
@apply absolute left-0 bg-gray-200 transition ease-in-out;
content: "";
width: 1.2rem;
height: 1.2rem;
border-radius: 1rem;
}
input[type="checkbox"].toggle + label:focus {
@apply outline-none ring-2 ring-primary;
}
input[type="checkbox"].toggle:checked + label::before {
@apply bg-primary/50;
}
input[type="checkbox"].toggle:checked + label::after {
@apply bg-primary;
transform: translateX(1rem);
}
/* Buttons */
.button {
@apply font-semibold px-4 py-2 rounded-md transition-all duration-300;
}
.button-primary {
@apply text-gray-50 bg-accent;
}
.button-primary:hover {
@apply bg-darkAccent;
}
.button-secondary {
@apply text-primary border-solid border border-primary;
}
.button-secondary:hover {
@apply border-darkPrimary text-darkPrimary bg-gray-200;
}
.button-tertiary {
@apply text-primary;
}
.button-tertiary:hover {
@apply text-darkPrimary;
}
.floating-button {
@apply bg-primary text-light text-lg font-semibold w-16 h-16 rounded-full border border-gray-200 fixed bottom-6 right-6 z-20 md:bottom-8 md:right-8 md:w-20 md:h-20;
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.024),
2.3px 2.3px 4.5px rgba(0, 0, 0, 0.035),
3.9px 3.9px 7.9px rgba(0, 0, 0, 0.043),
6.3px 6.3px 12.5px rgba(0, 0, 0, 0.05),
9.7px 9.7px 19.3px rgba(0, 0, 0, 0.057),
15.1px 15.1px 30.1px rgba(0, 0, 0, 0.065),
25px 25px 50px rgba(0, 0, 0, 0.076), 50px 50px 100px rgba(0, 0, 0, 0.1);
}
.floating-button::before {
content: "";
animation: ring-1 3s linear infinite forwards;
@apply absolute inset-0 block w-1/5 h-1/5 m-auto rounded-full bg-primary -z-10;
}
.floating-button::after {
content: "";
animation: ring-2 3s linear infinite both;
@apply absolute inset-0 block w-1/5 h-1/5 m-auto rounded-full bg-primary -z-10;
}
.floating-button svg {
@apply mx-auto w-6 h-6 lg:w-auto lg:h-auto;
}
.button:hover,
.floating-button:hover {
@apply transition-all duration-300;
}
.floating-button:hover,
.floating-button:hover::after,
.floating-button:hover::before {
@apply bg-darkPrimary;
}
.button:active,
.floating-button:active {
@apply transform scale-95;
}
.button:disabled,
.button:disabled:hover,
.floating-button:disabled,
.floating-button:disabled:hover {
@apply bg-gray-300 border-gray-700 text-gray-400 filter-none shadow-none cursor-not-allowed;
}
@keyframes ring-1 {
0% {
transform: scale(1);
opacity: 1;
}
100% {
opacity: 0;
transform: scale(8);
}
}
@keyframes ring-2 {
0% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1);
opacity: 1;
}
100% {
opacity: 0;
transform: scale(8);
}
}
/* Logos */
img {
@apply h-fit;
}
/* Page Load animation */
.loader-wrapper {
@apply flex justify-center items-center fixed top-[-50vh] left-[-50vw] bg-gray-100 w-[200vw] h-[200vh] rounded-[50%] filter backdrop-blur-[2px] z-[1000];
}
.loader {
animation: ping 1.3s ease-in-out infinite both;
}
/* ----------------------------------------------
* Generated by Animista on 2022-3-11 10:1:15
* Licensed under FreeBSD License.
* See http://animista.net/license for more info.
* w: http://animista.net, t: @cssanimista
* ---------------------------------------------- */
/**
* ----------------------------------------
* animation ping
* ----------------------------------------
*/
@keyframes ping {
0% {
transform: scale(0.2);
opacity: 0.8;
}
80% {
transform: scale(1.2);
opacity: 0;
}
100% {
transform: scale(2.2);
opacity: 0;
}
}
/* Modal de saída */
.logout-modal {
@apply w-[50ch] bg-gray-100 py-4 px-8 rounded-md;
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.024),
2.3px 2.3px 4.5px rgba(0, 0, 0, 0.035),
3.9px 3.9px 7.9px rgba(0, 0, 0, 0.043),
6.3px 6.3px 12.5px rgba(0, 0, 0, 0.05),
9.7px 9.7px 19.3px rgba(0, 0, 0, 0.057),
15.1px 15.1px 30.1px rgba(0, 0, 0, 0.065),
25px 25px 50px rgba(0, 0, 0, 0.076), 50px 50px 100px rgba(0, 0, 0, 0.1);
}
.logout-modal::backdrop {
@apply bg-gray-600/90 backdrop-blur-sm;
}
.logout-modal-buttons {
@apply flex justify-end items-center gap-4 mt-8 pb-4;
}
/* Gráfico do dashboard */
#dashboardChart {
filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.024))
drop-shadow(2.3px 2.3px 4.5px rgba(0, 0, 0, 0.035))
drop-shadow(3.9px 3.9px 7.9px rgba(0, 0, 0, 0.043))
drop-shadow(6.3px 6.3px 12.5px rgba(0, 0, 0, 0.05))
drop-shadow(9.7px 9.7px 19.3px rgba(0, 0, 0, 0.057))
drop-shadow(15.1px 15.1px 30.1px rgba(0, 0, 0, 0.065))
drop-shadow(25px 25px 50px rgba(0, 0, 0, 0.076))
drop-shadow(50px 50px 100px rgba(0, 0, 0, 0.1));
}