feat: improve mobile experience

This commit is contained in:
codytseng
2025-01-02 21:57:14 +08:00
parent 8ec0d46d58
commit 3946e603b3
98 changed files with 2508 additions and 1058 deletions

View File

@@ -3,6 +3,7 @@
@tailwind utilities;
@layer base {
* {
@apply border-border;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
@@ -18,13 +19,28 @@
}
body {
@apply bg-background text-foreground;
font-family: 'Inter', sans-serif;
overflow: hidden;
-webkit-overflow-scrolling: touch;
text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
.clickable {
cursor: pointer;
transition: background-color 0.2s ease;
&:active {
background-color: hsl(var(--muted) / 0.5);
}
}
@media (hover: hover) and (pointer: fine) {
.clickable:hover {
background-color: hsl(var(--muted) / 0.5);
}
}
:root {
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;
@@ -81,11 +97,3 @@
--highlight: 259 43% 56%;
}
}
@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
}
}