main
css 95 lines 1.83 KB
Raw
1 @tailwind base;
2 @tailwind components;
3 @tailwind utilities;
4
5 ::-webkit-scrollbar {
6 width: 0px;
7 display: none;
8 }
9
10 /* Disable zoom */
11 :root {
12 touch-action: pan-x pan-y;
13 height: 100%;
14 }
15
16 /* Safe Area Support */
17 .safe-area {
18 padding-top: env(safe-area-inset-top);
19 padding-bottom: env(safe-area-inset-bottom);
20 padding-left: env(safe-area-inset-left);
21 padding-right: env(safe-area-inset-right);
22 }
23
24 .top-nav-safe {
25 padding-top: max(0.5rem, env(safe-area-inset-top));
26 }
27
28 /* Optional: Give bottom nav extra safe-area padding */
29 .bottom-nav-safe {
30 padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
31 }
32
33 /* Animations */
34 @layer utilities {
35 .fade-in {
36 animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
37 }
38 @keyframes fadeIn {
39 from {
40 opacity: 0;
41 transform: translateY(12px);
42 }
43 to {
44 opacity: 1;
45 transform: translateY(0);
46 }
47 }
48 .wiggle {
49 animation: wiggle 0.25s linear;
50 }
51 @keyframes wiggle {
52 0% {
53 transform: rotate(-2deg);
54 }
55 25% {
56 transform: rotate(2deg);
57 }
58 50% {
59 transform: rotate(-2deg);
60 }
61 75% {
62 transform: rotate(2deg);
63 }
64 100% {
65 transform: rotate(0);
66 }
67 }
68
69 /* Modal animations */
70 .animate-fadeIn {
71 animation: modalFadeIn 0.2s ease-out;
72 }
73 @keyframes modalFadeIn {
74 from {
75 opacity: 0;
76 }
77 to {
78 opacity: 1;
79 }
80 }
81
82 .animate-slideUp {
83 animation: modalSlideUp 0.3s ease-out;
84 }
85 @keyframes modalSlideUp {
86 from {
87 opacity: 0;
88 transform: translateY(20px);
89 }
90 to {
91 opacity: 1;
92 transform: translateY(0);
93 }
94 }
95 }