Files
Zero/apps/mail/app/globals.css
nizzy 3ae4e71ec5 Fixes (#585)
* input bg

* chnage loading state to be blue (consistent)
2025-04-05 00:07:50 -04:00

320 lines
6.8 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}
@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}
@layer utilities {
.text-balance {
text-wrap: balance;
}
}
@layer base {
:root {
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;
--card: 0 0% 100%;
--card-foreground: 240 10% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;
--primary: 240 5.9% 10%;
--primary-foreground: 0 0% 98%;
--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;
--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;
--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 10% 3.9%;
--chart-1: 12 76% 61%;
--chart-2: 173 58% 39%;
--chart-3: 197 37% 24%;
--chart-4: 43 74% 66%;
--chart-5: 27 87% 67%;
--radius: 0.5rem;
--sidebar-background: 0 0% 98%;
--sidebar-foreground: 240 5.3% 26.1%;
--sidebar-primary: 240 5.9% 10%;
--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: 217.2 91.2% 59.8%;
--icon-color: black;
}
.dark {
--background: 240 3.9% 7%;
--foreground: 0 0% 98%;
--card: 240 5.9% 10%;
--card-foreground: 0 0% 98%;
--popover: 240 3.4% 8%;
--popover-foreground: 0 0% 99%;
--primary: 0 0% 98%;
--primary-foreground: 240 5.9% 10%;
--secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0% 98%;
--muted: 240 3.7% 15.9%;
--muted-foreground: 240 5% 64.9%;
--accent: 240 3.7% 15.9%;
--accent-foreground: 0 0% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 0% 98%;
--border: 240 3.7% 20%;
--input: 240 3.7% 15.9%;
--ring: 240 4.9% 83.9%;
--chart-1: 220 70% 50%;
--chart-2: 160 60% 45%;
--chart-3: 30 80% 55%;
--chart-4: 280 65% 60%;
--chart-5: 340 75% 55%;
--sidebar-background: 240 3.9% 7%;
--sidebar-foreground: 240 4.8% 96.9%;
--sidebar-primary: 224.3 76.3% 48%;
--sidebar-primary-foreground: 0 0% 100%;
--sidebar-accent: 240 3.7% 15.9%;
--sidebar-accent-foreground: 240 4.8% 95.9%;
--sidebar-border: 240 3.7% 15.9%;
--sidebar-ring: 217.2 91.2% 59.8%;
--icon-color: currentColor;
}
}
@layer base {
* {
@apply border-border;
}
body {
@apply bg-background font-sans text-foreground;
}
}
.skeleton {
* {
pointer-events: none !important;
}
*[class^="text-"] {
color: transparent;
@apply animate-pulse select-none rounded-md bg-foreground/20;
}
.skeleton-bg {
@apply bg-foreground/10;
}
.skeleton-div {
@apply animate-pulse bg-foreground/20;
}
}
.ProseMirror {
outline: none;
}
.cm-editor,
.cm-gutters {
@apply bg-background outline-none selection:bg-zinc-900 dark:bg-zinc-800 !important;
}
.ͼo.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground,
.ͼo.cm-selectionBackground,
.ͼo.cm-content::selection {
@apply bg-zinc-200 dark:bg-zinc-900 !important;
}
.cm-activeLine,
.cm-activeLineGutter {
@apply bg-transparent !important;
}
.cm-activeLine {
@apply rounded-r-sm !important;
}
.cm-lineNumbers {
@apply min-w-7;
}
.cm-foldGutter {
@apply min-w-3;
}
.cm-lineNumbers .cm-activeLineGutter {
@apply rounded-l-sm !important;
}
.suggestion-highlight {
@apply bg-blue-200 hover:bg-blue-300 dark:bg-blue-500/40 dark:text-blue-50 dark:hover:bg-blue-400/50;
}
.dark [data-hide-on-theme="dark"],
.light [data-hide-on-theme="light"] {
display: none;
}
@media (prefers-reduced-motion: no-preference) {
::view-transition-new(theme-transition) {
clip-path: inset(0 0 100% 0);
animation: slide-in-from-top 0.65s forwards cubic-bezier(0.65, 0, 0.35, 1);
}
::view-transition-old(theme-transition) {
animation: none;
}
@keyframes slide-in-from-top {
to {
clip-path: inset(0 0 0 0);
}
}
}
/* Compose gradient styles */
@keyframes gradient-flow {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.compose-loading {
background: #016FFE;
animation: none;
}
.compose-gradient-animated {
background: linear-gradient(90deg, rgba(255, 213, 208, 1), rgba(219, 255, 228, 1), rgba(226, 214, 255, 1), rgba(255, 213, 208, 1));
background-size: 300% 100%;
animation: gradient-animation 8s ease infinite;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
@keyframes gradient-animation {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.compose-gradient-text {
background: linear-gradient(90deg, rgba(255, 213, 208, 1) 0%, rgba(219, 255, 228, 1) 50%, rgba(226, 214, 255, 1) 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
display: inline-block;
}
.compose-gradient-text-shiny {
background: linear-gradient(
90deg,
rgba(255, 213, 208, 1) 0%,
rgba(255, 255, 255, 1) 25%,
rgba(219, 255, 228, 1) 50%,
rgba(255, 255, 255, 1) 75%,
rgba(226, 214, 255, 1) 100%
);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
display: inline-block;
text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
}
.compose-gradient-text-shiny::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
transparent 0%,
rgba(255, 255, 255, 0.4) 50%,
transparent 100%
);
transform: translateX(-100%);
mix-blend-mode: overlay;
animation: shine-slow 3s ease-in-out infinite;
}
.compose-gradient-inner {
background-color: hsl(var(--background));
border-radius: 0.5rem;
padding: 0.5rem;
}
/* Hide scrollbar but keep functionality */
.hide-scrollbar {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
display: none; /* Chrome, Safari and Opera */
}
/* Animation keyframes */
@keyframes shine {
from {
background-position: 0% 0;
}
to {
background-position: -200% 0;
}
}
@keyframes shine-slow {
from {
background-position: 0% 0;
}
to {
background-position: -200% 0;
}
}
@keyframes blink {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0;
}
}
.animate-shine {
animation: shine 3s linear infinite;
}
.animate-shine-slow {
animation: shine-slow 8s linear infinite;
}
.animate-blink {
animation: blink 0.8s ease-in-out infinite;
}