flockstr/app/globals.css

133 lines
3.3 KiB
CSS
Raw Normal View History

2023-10-13 08:39:50 -04:00
@tailwind base;
@tailwind components;
@tailwind utilities;
2023-10-13 09:23:11 -04:00
@layer base {
2023-10-13 08:39:50 -04:00
:root {
2023-10-13 09:23:11 -04:00
--background: 0 0% 100%;
--foreground: 20 14.3% 4.1%;
--card: 0 0% 100%;
--card-foreground: 20 14.3% 4.1%;
--popover: 0 0% 100%;
--popover-foreground: 20 14.3% 4.1%;
--primary: 24.6 95% 53.1%;
--primary-foreground: 60 9.1% 97.8%;
--secondary: 60 4.8% 95.9%;
--secondary-foreground: 24 9.8% 10%;
--muted: 60 4.8% 95.9%;
--muted-foreground: 25 5.3% 44.7%;
--accent: 60 4.8% 95.9%;
--accent-foreground: 24 9.8% 10%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 60 9.1% 97.8%;
--border: 20 5.9% 90%;
--input: 20 5.9% 90%;
--ring: 24.6 95% 53.1%;
--radius: 0.75rem;
2023-10-13 19:02:59 -04:00
--sidebar-open-width: 300px;
--sidebar-closed-width: 80px;
--header-height: 72px;
--bottom-nav-height: 56px;
2023-10-13 09:23:11 -04:00
}
2023-10-13 19:02:59 -04:00
2023-10-13 09:23:11 -04:00
.dark {
--background: 20 14.3% 4.1%;
--foreground: 60 9.1% 97.8%;
--card: 20 14.3% 4.1%;
--card-foreground: 60 9.1% 97.8%;
--popover: 20 14.3% 4.1%;
--popover-foreground: 60 9.1% 97.8%;
--primary: 20.5 90.2% 48.2%;
--primary-foreground: 60 9.1% 97.8%;
--secondary: 12 6.5% 15.1%;
--secondary-foreground: 60 9.1% 97.8%;
--muted: 12 6.5% 15.1%;
--muted-foreground: 24 5.4% 63.9%;
--accent: 12 6.5% 15.1%;
--accent-foreground: 60 9.1% 97.8%;
--destructive: 0 72.2% 50.6%;
--destructive-foreground: 60 9.1% 97.8%;
--border: 12 6.5% 15.1%;
--input: 12 6.5% 15.1%;
--ring: 20.5 90.2% 48.2%;
2023-10-13 19:02:59 -04:00
--sidebar-open-width: 300px;
--sidebar-closed-width: 80px;
--header-height: 72px;
--bottom-nav-height: 56px;
2023-10-13 08:39:50 -04:00
}
2023-10-16 19:40:56 -04:00
/* @media (min-width: 640px) {
:root {
--header-height: 64px;
}
} */
2023-10-14 23:15:32 -04:00
@media all and (display-mode: standalone) {
:root {
--bottom-nav-height: 76px;
}
.dark {
--bottom-nav-height: 76px;
}
2023-10-15 00:14:22 -04:00
.bottom-tabs {
padding-bottom: 20px;
}
.standalone-pb-8 {
padding-bottom: 24px;
}
2023-10-15 00:17:04 -04:00
.standalone-hide {
2023-10-15 00:26:14 -04:00
display: none !important;
2023-10-15 00:17:04 -04:00
}
2023-10-14 23:15:32 -04:00
}
2023-10-13 08:39:50 -04:00
}
2023-10-13 09:23:11 -04:00
@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
}
2023-10-13 19:02:59 -04:00
.layout-grid-small-sidebar {
grid: var(--header-height) 1fr / var(--sidebar-closed-width) 1fr;
}
.layout-grid-large-sidebar {
grid: var(--header-height) 1fr / var(--sidebar-open-width) 1fr;
}
.app-layout {
@apply sm:layout-grid-small-sidebar xl:layout-grid-large-sidebar flex flex-col sm:grid;
}
2023-10-14 12:09:44 -04:00
.lg-feed-cols {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
justify-items: stretch;
justify-content: stretch;
width: 100%;
}
.md-feed-cols {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
justify-items: stretch;
justify-content: stretch;
width: 100%;
}
.sm-feed-cols {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
justify-items: stretch;
justify-content: stretch;
width: 100%;
}
2023-10-13 08:39:50 -04:00
}
2023-10-13 09:23:11 -04:00
@layer components {
.center {
@apply flex items-center justify-center;
}
2023-10-25 15:15:56 -04:00
.invisible-input {
@apply resize-none break-words !rounded-none !border-0 !bg-transparent !p-0 text-foreground !shadow-none !outline-none placeholder:text-muted/20 focus-visible:!ring-0;
}
2023-10-13 19:02:59 -04:00
}
2023-10-23 14:14:56 -04:00
input[type="time"]::-webkit-calendar-picker-indicator {
background: none;
display: none;
}