6d7375bb19
Remove global overscroll-behavior-y: contain from CSS. Instead, set it on document.documentElement via JS when the PullToRefresh component mounts and restore the previous value on unmount. This way other pages keep the browser's native pull-to-refresh behavior. Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
192 lines
4.1 KiB
CSS
192 lines
4.1 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
@layer base {
|
|
:root {
|
|
--background: 0 0% 100%;
|
|
--foreground: 222.2 84% 4.9%;
|
|
|
|
--card: 0 0% 100%;
|
|
--card-foreground: 222.2 84% 4.9%;
|
|
|
|
--popover: 0 0% 100%;
|
|
--popover-foreground: 222.2 84% 4.9%;
|
|
|
|
--primary: 258 70% 55%;
|
|
--primary-foreground: 0 0% 100%;
|
|
|
|
--secondary: 210 40% 96.1%;
|
|
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
|
|
--muted: 210 40% 96.1%;
|
|
--muted-foreground: 215.4 16.3% 46.9%;
|
|
|
|
--accent: 258 70% 55%;
|
|
--accent-foreground: 0 0% 100%;
|
|
|
|
--destructive: 0 84.2% 60.2%;
|
|
--destructive-foreground: 210 40% 98%;
|
|
|
|
--border: 214.3 31.8% 91.4%;
|
|
--input: 214.3 31.8% 91.4%;
|
|
--ring: 258 70% 55%;
|
|
|
|
--radius: 0.75rem;
|
|
|
|
--sidebar-background: 0 0% 98%;
|
|
--sidebar-foreground: 240 5.3% 26.1%;
|
|
--sidebar-primary: 258 70% 55%;
|
|
--sidebar-primary-foreground: 0 0% 98%;
|
|
--sidebar-accent: 240 4.8% 95.9%;
|
|
--sidebar-accent-foreground: 240 5.9% 10%;
|
|
--sidebar-border: 220 13% 91%;
|
|
--sidebar-ring: 258 70% 55%;
|
|
}
|
|
|
|
.dark {
|
|
--background: 228 20% 10%;
|
|
--foreground: 210 40% 98%;
|
|
|
|
--card: 228 20% 12%;
|
|
--card-foreground: 210 40% 98%;
|
|
|
|
--popover: 228 20% 12%;
|
|
--popover-foreground: 210 40% 98%;
|
|
|
|
--primary: 258 70% 60%;
|
|
--primary-foreground: 0 0% 100%;
|
|
|
|
--secondary: 228 16% 18%;
|
|
--secondary-foreground: 210 40% 98%;
|
|
|
|
--muted: 228 16% 18%;
|
|
--muted-foreground: 215 20.2% 65.1%;
|
|
|
|
--accent: 258 70% 60%;
|
|
--accent-foreground: 0 0% 100%;
|
|
|
|
--destructive: 0 72% 51%;
|
|
--destructive-foreground: 210 40% 98%;
|
|
|
|
--border: 228 14% 20%;
|
|
--input: 228 14% 20%;
|
|
--ring: 258 70% 60%;
|
|
|
|
--sidebar-background: 228 22% 8%;
|
|
--sidebar-foreground: 240 4.8% 95.9%;
|
|
--sidebar-primary: 258 70% 60%;
|
|
--sidebar-primary-foreground: 0 0% 100%;
|
|
--sidebar-accent: 228 16% 14%;
|
|
--sidebar-accent-foreground: 240 4.8% 95.9%;
|
|
--sidebar-border: 228 14% 20%;
|
|
--sidebar-ring: 258 70% 60%;
|
|
}
|
|
|
|
.black {
|
|
--background: 0 0% 0%;
|
|
--foreground: 0 0% 95%;
|
|
|
|
--card: 0 0% 5%;
|
|
--card-foreground: 0 0% 95%;
|
|
|
|
--popover: 0 0% 5%;
|
|
--popover-foreground: 0 0% 95%;
|
|
|
|
--primary: 258 70% 60%;
|
|
--primary-foreground: 0 0% 100%;
|
|
|
|
--secondary: 0 0% 10%;
|
|
--secondary-foreground: 0 0% 95%;
|
|
|
|
--muted: 0 0% 10%;
|
|
--muted-foreground: 0 0% 65%;
|
|
|
|
--accent: 258 70% 60%;
|
|
--accent-foreground: 0 0% 100%;
|
|
|
|
--destructive: 0 72% 51%;
|
|
--destructive-foreground: 0 0% 95%;
|
|
|
|
--border: 0 0% 15%;
|
|
--input: 0 0% 15%;
|
|
--ring: 258 70% 60%;
|
|
|
|
--sidebar-background: 0 0% 3%;
|
|
--sidebar-foreground: 0 0% 90%;
|
|
--sidebar-primary: 258 70% 60%;
|
|
--sidebar-primary-foreground: 0 0% 100%;
|
|
--sidebar-accent: 0 0% 8%;
|
|
--sidebar-accent-foreground: 0 0% 90%;
|
|
--sidebar-border: 0 0% 15%;
|
|
--sidebar-ring: 258 70% 60%;
|
|
}
|
|
|
|
.pink {
|
|
--background: 330 100% 96%;
|
|
--foreground: 330 30% 10%;
|
|
|
|
--card: 330 100% 99%;
|
|
--card-foreground: 330 30% 10%;
|
|
|
|
--popover: 330 100% 99%;
|
|
--popover-foreground: 330 30% 10%;
|
|
|
|
--primary: 330 90% 60%;
|
|
--primary-foreground: 0 0% 100%;
|
|
|
|
--secondary: 330 60% 90%;
|
|
--secondary-foreground: 330 30% 15%;
|
|
|
|
--muted: 330 60% 90%;
|
|
--muted-foreground: 330 25% 45%;
|
|
|
|
--accent: 330 90% 60%;
|
|
--accent-foreground: 0 0% 100%;
|
|
|
|
--destructive: 0 84.2% 60.2%;
|
|
--destructive-foreground: 210 40% 98%;
|
|
|
|
--border: 330 40% 85%;
|
|
--input: 330 40% 85%;
|
|
--ring: 330 90% 60%;
|
|
|
|
--sidebar-background: 330 80% 95%;
|
|
--sidebar-foreground: 330 30% 15%;
|
|
--sidebar-primary: 330 90% 60%;
|
|
--sidebar-primary-foreground: 0 0% 100%;
|
|
--sidebar-accent: 330 60% 88%;
|
|
--sidebar-accent-foreground: 330 30% 15%;
|
|
--sidebar-border: 330 40% 82%;
|
|
--sidebar-ring: 330 90% 60%;
|
|
}
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
*::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
}
|
|
}
|
|
|
|
@layer utilities {
|
|
.safe-area-bottom {
|
|
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@keyframes spin {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|