mirror of
https://github.com/chartdb/chartdb.git
synced 2026-02-11 22:20:11 -06:00
* initial dbml apply * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix
184 lines
5.1 KiB
CSS
184 lines
5.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: 222.2 47.4% 11.2%;
|
|
--primary-foreground: 210 40% 98%;
|
|
--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: 210 40% 96.1%;
|
|
--accent-foreground: 222.2 47.4% 11.2%;
|
|
--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: 222.2 84% 4.9%;
|
|
--radius: 0.5rem;
|
|
--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%;
|
|
--subtitle: 215.3 19.3% 34.5%;
|
|
--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%;
|
|
}
|
|
|
|
.dark {
|
|
--background: 222.2 84% 4.9%;
|
|
--foreground: 210 40% 98%;
|
|
--card: 222.2 84% 4.9%;
|
|
--card-foreground: 210 40% 98%;
|
|
--popover: 222.2 84% 4.9%;
|
|
--popover-foreground: 210 40% 98%;
|
|
--primary: 210 40% 98%;
|
|
--primary-foreground: 222.2 47.4% 11.2%;
|
|
--secondary: 217.2 32.6% 17.5%;
|
|
--secondary-foreground: 210 40% 98%;
|
|
--muted: 217.2 32.6% 17.5%;
|
|
--muted-foreground: 215 20.2% 65.1%;
|
|
--accent: 217.2 32.6% 17.5%;
|
|
--accent-foreground: 210 40% 98%;
|
|
--destructive: 0 62.8% 30.6%;
|
|
--destructive-foreground: 210 40% 98%;
|
|
--border: 217.2 32.6% 17.5%;
|
|
--input: 217.2 32.6% 17.5%;
|
|
--ring: 212.7 26.8% 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%;
|
|
--subtitle: 212.7 26.8% 83.9%;
|
|
--sidebar-background: 240 5.9% 10%;
|
|
--sidebar-foreground: 240 4.8% 95.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%;
|
|
}
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
overscroll-behavior-x: none;
|
|
}
|
|
|
|
.text-editable {
|
|
@apply dark:group-hover:bg-slate-900 group-hover:bg-slate-100 group-hover:ring-[0.5px] rounded-md cursor-pointer;
|
|
}
|
|
}
|
|
|
|
.gradient-background {
|
|
/* Fallback: Set a background color. */
|
|
background-color: #f46b24;
|
|
|
|
/* Create the gradient. */
|
|
background-image: linear-gradient(
|
|
45deg,
|
|
#2e6579 20%,
|
|
#4fafca 20%,
|
|
#4fafca 40%,
|
|
#6dc630 40%,
|
|
#6dc630 60%,
|
|
#f9dc3a 60%,
|
|
#f9dc3a 80%,
|
|
#f46b24 80%
|
|
);
|
|
|
|
/* Set the background size and repeat properties. */
|
|
background-size: 100%;
|
|
background-repeat: repeat;
|
|
|
|
/* Use the text as a mask for the background. */
|
|
/* This will show the gradient as a text color rather than element bg. */
|
|
/* -webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent; */
|
|
|
|
/* Animate the text when loading the element. */
|
|
/* This animates it on page load and when hovering out. */
|
|
animation: rainbow-text-simple-animation-rev 0.75s ease forwards;
|
|
}
|
|
|
|
.gradient-background:hover {
|
|
animation: rainbow-text-simple-animation 0.5s ease-in forwards;
|
|
}
|
|
|
|
.dbml-error-line {
|
|
background-color: rgba(255, 0, 0, 0.2) !important;
|
|
}
|
|
|
|
@keyframes rainbow-text-simple-animation-rev {
|
|
0% {
|
|
background-size: 650%;
|
|
}
|
|
40% {
|
|
background-size: 650%;
|
|
}
|
|
100% {
|
|
background-size: 100%;
|
|
}
|
|
}
|
|
|
|
/* Move the background and make it larger. */
|
|
/* Animation shown when hovering over the text. */
|
|
@keyframes rainbow-text-simple-animation {
|
|
0% {
|
|
background-size: 100%;
|
|
}
|
|
80% {
|
|
background-size: 650%;
|
|
}
|
|
100% {
|
|
background-size: 650%;
|
|
}
|
|
}
|
|
|
|
/* Edit button emphasis animation */
|
|
@keyframes dbml_edit-button-emphasis {
|
|
0% {
|
|
transform: scale(1);
|
|
box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
|
|
background-color: rgba(59, 130, 246, 0);
|
|
}
|
|
50% {
|
|
transform: scale(1.1);
|
|
box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
|
|
background-color: rgba(59, 130, 246, 0.1);
|
|
}
|
|
100% {
|
|
transform: scale(1);
|
|
box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
|
|
background-color: rgba(59, 130, 246, 0);
|
|
}
|
|
}
|
|
|
|
.dbml-edit-button-emphasis {
|
|
animation: dbml_edit-button-emphasis 0.6s ease-in-out;
|
|
animation-iteration-count: 1;
|
|
position: relative;
|
|
z-index: 10;
|
|
}
|