791 lines
30 KiB
CSS
791 lines
30 KiB
CSS
@import "tailwindcss";
|
|
@import "katex/dist/katex.min.css";
|
|
|
|
/* include utility classes in streamdown */
|
|
@source '../node_modules/streamdown/dist/index.js';
|
|
@source '../components/canvas/**/*.tsx';
|
|
@source not '../.next*/**';
|
|
@source not '../.qa/**';
|
|
@source not '../services/pascal-editor';
|
|
|
|
/* custom variant for setting dark mode programmatically */
|
|
@custom-variant dark (&:is(.dark, .dark *));
|
|
|
|
/* include plugins */
|
|
@plugin "tailwindcss-animate";
|
|
@plugin "@tailwindcss/typography";
|
|
|
|
@font-face {
|
|
font-family: "JetBrains Mono";
|
|
src: url("/fonts/jetbrains-mono/JetBrainsMono-ExtraLight.woff2") format("woff2");
|
|
font-display: swap;
|
|
font-style: normal;
|
|
font-weight: 200;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "JetBrains Mono";
|
|
src: url("/fonts/jetbrains-mono/JetBrainsMono-Light.woff2") format("woff2");
|
|
font-display: swap;
|
|
font-style: normal;
|
|
font-weight: 300;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "JetBrains Mono";
|
|
src: url("/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2") format("woff2");
|
|
font-display: swap;
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "JetBrains Mono";
|
|
src: url("/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2") format("woff2");
|
|
font-display: swap;
|
|
font-style: normal;
|
|
font-weight: 500;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "JetBrains Mono";
|
|
src: url("/fonts/jetbrains-mono/JetBrainsMono-Bold.woff2") format("woff2");
|
|
font-display: swap;
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* define design tokens (light mode) */
|
|
:root {
|
|
color-scheme: light;
|
|
--font-jetbrains-mono: "JetBrains Mono", "PingFang SC", "Hiragino Sans GB",
|
|
"Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
|
|
--font-geist: var(--font-jetbrains-mono);
|
|
--font-geist-mono: var(--font-jetbrains-mono);
|
|
--background: hsl(0 0% 100%);
|
|
--foreground: hsl(240 10% 3.9%);
|
|
--card: hsl(0 0% 100%);
|
|
--card-foreground: hsl(240 10% 3.9%);
|
|
--popover: hsl(0 0% 100%);
|
|
--popover-foreground: hsl(240 10% 3.9%);
|
|
--primary: hsl(240 5.9% 10%);
|
|
--primary-foreground: hsl(0 0% 98%);
|
|
--secondary: hsl(240 4.8% 95.9%);
|
|
--secondary-foreground: hsl(240 5.9% 10%);
|
|
--muted: hsl(240 4.8% 95.9%);
|
|
--muted-foreground: hsl(240 3.8% 46.1%);
|
|
--accent: hsl(240 4.8% 95.9%);
|
|
--accent-foreground: hsl(240 5.9% 10%);
|
|
--destructive: hsl(0 84.2% 60.2%);
|
|
--destructive-foreground: hsl(0 0% 98%);
|
|
--border: hsl(240 5.9% 90%);
|
|
--input: hsl(240 5.9% 90%);
|
|
--ring: hsl(240 10% 3.9%);
|
|
--chart-1: hsl(12 76% 61%);
|
|
--chart-2: hsl(173 58% 39%);
|
|
--chart-3: hsl(197 37% 24%);
|
|
--chart-4: hsl(43 74% 66%);
|
|
--chart-5: hsl(27 87% 67%);
|
|
--sidebar-background: hsl(0 0% 98%);
|
|
--sidebar-foreground: hsl(240 5.3% 26.1%);
|
|
--sidebar-primary: hsl(240 5.9% 10%);
|
|
--sidebar-primary-foreground: hsl(0 0% 98%);
|
|
--sidebar-accent: hsl(240 4.8% 95.9%);
|
|
--sidebar-accent-foreground: hsl(240 5.9% 10%);
|
|
--sidebar-border: hsl(220 13% 91%);
|
|
--sidebar-ring: hsl(217.2 91.2% 59.8%);
|
|
/* border radius unit */
|
|
--radius: 0.5rem;
|
|
--ui-control-sm: 2rem;
|
|
--ui-control-md: 2.25rem;
|
|
--ui-control-lg: 2.5rem;
|
|
--ui-icon-sm: 0.875rem;
|
|
--ui-icon-md: 1rem;
|
|
--ui-radius-control: 0.4375rem;
|
|
--ui-radius-panel: 0.75rem;
|
|
--ui-motion-fast: 120ms;
|
|
--ui-motion-panel: 160ms;
|
|
--sidebar: hsl(0 0% 98%);
|
|
--chat-user-bubble-bg: hsl(214 100% 50%);
|
|
--chat-user-bubble-foreground: hsl(0 0% 100%);
|
|
--chat-user-bubble-border: hsl(214 100% 46%);
|
|
}
|
|
|
|
/* define design tokens (dark mode) */
|
|
.dark {
|
|
color-scheme: dark;
|
|
--background: hsl(240 10% 3.9%);
|
|
--foreground: hsl(0 0% 98%);
|
|
--card: hsl(240 10% 3.9%);
|
|
--card-foreground: hsl(0 0% 98%);
|
|
--popover: hsl(240 10% 3.9%);
|
|
--popover-foreground: hsl(0 0% 98%);
|
|
--primary: hsl(0 0% 98%);
|
|
--primary-foreground: hsl(240 5.9% 10%);
|
|
--secondary: hsl(240 3.7% 15.9%);
|
|
--secondary-foreground: hsl(0 0% 98%);
|
|
--muted: hsl(240 3.7% 15.9%);
|
|
--muted-foreground: hsl(240 5% 64.9%);
|
|
--accent: hsl(240 3.7% 15.9%);
|
|
--accent-foreground: hsl(0 0% 98%);
|
|
--destructive: hsl(0 62.8% 30.6%);
|
|
--destructive-foreground: hsl(0 0% 98%);
|
|
--border: hsl(240 3.7% 15.9%);
|
|
--input: hsl(240 3.7% 15.9%);
|
|
--ring: hsl(240 4.9% 83.9%);
|
|
--chart-1: hsl(220 70% 50%);
|
|
--chart-2: hsl(160 60% 45%);
|
|
--chart-3: hsl(30 80% 55%);
|
|
--chart-4: hsl(280 65% 60%);
|
|
--chart-5: hsl(340 75% 55%);
|
|
--sidebar-background: hsl(240 5.9% 10%);
|
|
--sidebar-foreground: hsl(240 4.8% 95.9%);
|
|
--sidebar-primary: hsl(224.3 76.3% 48%);
|
|
--sidebar-primary-foreground: hsl(0 0% 100%);
|
|
--sidebar-accent: hsl(240 3.7% 15.9%);
|
|
--sidebar-accent-foreground: hsl(240 4.8% 95.9%);
|
|
--sidebar-border: hsl(240 3.7% 15.9%);
|
|
--sidebar-ring: hsl(217.2 91.2% 59.8%);
|
|
--sidebar: hsl(240 5.9% 10%);
|
|
--chat-user-bubble-bg: hsl(217 92% 58%);
|
|
--chat-user-bubble-foreground: hsl(0 0% 100%);
|
|
--chat-user-bubble-border: hsl(217 92% 66% / 0.42);
|
|
}
|
|
|
|
/* define theme */
|
|
@theme {
|
|
--font-sans: var(--font-geist);
|
|
--font-mono: var(--font-geist-mono);
|
|
|
|
--breakpoint-toast-mobile: 600px;
|
|
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--color-card: var(--card);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-destructive: var(--destructive);
|
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
--color-border: var(--border);
|
|
--color-input: var(--input);
|
|
--color-ring: var(--ring);
|
|
--color-sidebar: var(--sidebar);
|
|
--color-sidebar-background: var(--sidebar-background);
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
--color-chart-1: var(--chart-1);
|
|
--color-chart-2: var(--chart-2);
|
|
--color-chart-3: var(--chart-3);
|
|
--color-chart-4: var(--chart-4);
|
|
--color-chart-5: var(--chart-5);
|
|
|
|
--radius-lg: var(--radius);
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
--radius-sm: calc(var(--radius) - 4px);
|
|
|
|
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
--animate-caret-blink: caret-blink 1.25s ease-out infinite;
|
|
|
|
@keyframes accordion-down {
|
|
from {
|
|
height: 0;
|
|
}
|
|
to {
|
|
height: var(--radix-accordion-content-height);
|
|
}
|
|
}
|
|
|
|
@keyframes accordion-up {
|
|
from {
|
|
height: var(--radix-accordion-content-height);
|
|
}
|
|
to {
|
|
height: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes caret-blink {
|
|
0%,
|
|
70%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
20%,
|
|
50% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* utility classes */
|
|
@utility container {
|
|
margin-inline: auto;
|
|
padding-inline: 2rem;
|
|
@media (width >= --theme(--breakpoint-sm)) {
|
|
max-width: none;
|
|
}
|
|
@media (width >= 1400px) {
|
|
max-width: 1400px;
|
|
}
|
|
}
|
|
|
|
/*
|
|
The default border color has changed to `currentColor` in Tailwind CSS v4,
|
|
so we've added these compatibility styles to make sure everything still
|
|
looks the same as it did with Tailwind CSS v3.
|
|
|
|
If we ever want to remove these styles, we need to add an explicit border
|
|
color utility to any element that depends on these defaults.
|
|
*/
|
|
@layer base {
|
|
*,
|
|
::after,
|
|
::before,
|
|
::backdrop,
|
|
::file-selector-button {
|
|
border-color: var(--border, currentColor);
|
|
}
|
|
|
|
html,
|
|
body,
|
|
button,
|
|
input,
|
|
textarea,
|
|
select {
|
|
font-family: var(--font-jetbrains-mono);
|
|
}
|
|
|
|
body {
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
button,
|
|
a,
|
|
[role="button"] {
|
|
touch-action: manipulation;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
button:not(:disabled):active,
|
|
[role="button"]:not([aria-disabled="true"]):active {
|
|
opacity: 0.82;
|
|
}
|
|
|
|
@media (width >= 768px) {
|
|
html {
|
|
font-size: 15px;
|
|
}
|
|
}
|
|
|
|
.drawnix,
|
|
.drawnix *,
|
|
.drawnix-tutorial,
|
|
.drawnix-tutorial * {
|
|
--ui-font: var(--font-jetbrains-mono);
|
|
font-family: var(--font-jetbrains-mono) !important;
|
|
}
|
|
}
|
|
|
|
@layer utilities {
|
|
@keyframes canvas-generated-pulse {
|
|
0% {
|
|
opacity: 0.9;
|
|
transform: scale(0.985);
|
|
box-shadow:
|
|
0 0 0 0 rgba(124, 156, 255, 0.3),
|
|
0 0 26px rgba(124, 156, 255, 0.2);
|
|
}
|
|
55% {
|
|
opacity: 0.35;
|
|
transform: scale(1.03);
|
|
box-shadow:
|
|
0 0 0 12px rgba(124, 156, 255, 0.02),
|
|
0 0 42px rgba(124, 156, 255, 0.1);
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
transform: scale(1.055);
|
|
box-shadow:
|
|
0 0 0 18px rgba(124, 156, 255, 0),
|
|
0 0 52px rgba(124, 156, 255, 0);
|
|
}
|
|
}
|
|
|
|
.agent-dark-scrollbar {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: rgba(255, 255, 255, 0.18) rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
.agent-dark-scrollbar::-webkit-scrollbar {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
|
|
.agent-dark-scrollbar::-webkit-scrollbar-track {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.agent-dark-scrollbar::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.18);
|
|
border: 2px solid rgba(0, 0, 0, 0);
|
|
background-clip: padding-box;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.agent-dark-scrollbar::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(255, 255, 255, 0.26);
|
|
background-clip: padding-box;
|
|
}
|
|
|
|
.chat-card-x-scroll {
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-gutter: stable;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: rgba(148, 163, 184, 0.42) rgba(148, 163, 184, 0.14);
|
|
}
|
|
|
|
.chat-card-x-scroll > table,
|
|
.chat-card-x-scroll > svg {
|
|
max-width: none;
|
|
}
|
|
|
|
.chat-card-x-scroll::-webkit-scrollbar {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
|
|
.chat-card-x-scroll::-webkit-scrollbar-track {
|
|
background: rgba(148, 163, 184, 0.14);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.chat-card-x-scroll::-webkit-scrollbar-thumb {
|
|
background: rgba(148, 163, 184, 0.42);
|
|
border: 2px solid transparent;
|
|
background-clip: padding-box;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.chat-card-x-scroll::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(148, 163, 184, 0.58);
|
|
background-clip: padding-box;
|
|
}
|
|
|
|
.step {
|
|
counter-increment: step;
|
|
}
|
|
|
|
.step:before {
|
|
@apply absolute inline-flex h-9 w-9 items-center justify-center rounded-full border-4 border-white bg-zinc-100 text-center font-mono text-base font-medium text-zinc-700 -indent-px;
|
|
@apply ml-[-50px] mt-[-4px];
|
|
content: counter(step);
|
|
}
|
|
|
|
.pattern-grid-lg {
|
|
background-image: linear-gradient(to right, currentColor 1px, transparent 1px),
|
|
linear-gradient(to bottom, currentColor 1px, transparent 1px);
|
|
background-size: 40px 40px;
|
|
}
|
|
}
|
|
|
|
/* Dense, shared system-settings language. Scoped so canvas tools keep their own scale. */
|
|
.video-canvas-workspace {
|
|
/* Match the compact typography used by the reference canvas. */
|
|
--canvas-font-caption: 12px;
|
|
--canvas-font-body: 13px;
|
|
--canvas-font-heading: 14px;
|
|
font-size: var(--canvas-font-body);
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.settings-workspace {
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.settings-workspace [class*="tracking-"] {
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.settings-workspace [data-slot="card"] {
|
|
border-radius: 8px;
|
|
box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
|
|
}
|
|
|
|
.settings-workspace [data-slot="card-header"] {
|
|
row-gap: 4px;
|
|
padding: 14px 16px 10px;
|
|
}
|
|
|
|
.settings-workspace [data-slot="card-title"] {
|
|
font-size: 15px;
|
|
line-height: 1.4;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.settings-workspace [data-slot="card-description"] {
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.settings-workspace [data-slot="card-content"] {
|
|
padding: 0 16px 16px;
|
|
}
|
|
|
|
.settings-workspace [data-slot="card-footer"] {
|
|
padding: 0 16px 16px;
|
|
}
|
|
|
|
.settings-workspace [data-slot="label"] {
|
|
font-size: 12px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.settings-workspace .text-3xl {
|
|
font-size: 20px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.settings-workspace .text-2xl {
|
|
font-size: 18px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.settings-workspace .text-xl {
|
|
font-size: 16px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.settings-workspace .text-lg {
|
|
font-size: 15px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.settings-workspace .rounded-2xl,
|
|
.settings-workspace .rounded-xl {
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.settings-workspace .gap-6 {
|
|
gap: 16px;
|
|
}
|
|
|
|
.settings-workspace .space-y-6 > :not([hidden]) ~ :not([hidden]) {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.settings-workspace button .lucide,
|
|
.settings-workspace a .lucide {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.settings-workspace button,
|
|
.settings-workspace a,
|
|
.settings-workspace [role="button"] {
|
|
transition-duration: 120ms;
|
|
}
|
|
|
|
@media (width < 640px) {
|
|
.settings-workspace [data-slot="card-header"] {
|
|
padding: 12px 12px 8px;
|
|
}
|
|
|
|
.settings-workspace [data-slot="card-content"] {
|
|
padding: 0 12px 12px;
|
|
}
|
|
|
|
.settings-workspace [data-slot="card-footer"] {
|
|
padding: 0 12px 12px;
|
|
}
|
|
}
|
|
|
|
/* Lovart surface typography and controls, scoped to the home and image canvas. */
|
|
.lovart-home-surface,
|
|
.lovart-canvas-surface {
|
|
font-family: Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
.lovart-suggestion {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
gap: 8px;
|
|
height: 32px;
|
|
padding: 0 14px;
|
|
border: 1px solid #e5e5e5;
|
|
border-radius: 999px;
|
|
background: white;
|
|
color: #333;
|
|
font-size: 13px;
|
|
white-space: nowrap;
|
|
transition: background-color 150ms, border-color 150ms;
|
|
}
|
|
.lovart-suggestion:hover { background: #f7f7f7; border-color: #d5d5d5; }
|
|
.lovart-suggestion:focus-visible,
|
|
.lovart-start-action:focus-visible { outline: 2px solid #8c8c8c; outline-offset: 3px; }
|
|
|
|
.lovart-start-action {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
gap: 9px;
|
|
min-width: 172px;
|
|
height: 40px;
|
|
padding: 0 16px;
|
|
border: 1px solid #e5e5e5;
|
|
border-radius: 999px;
|
|
background: white;
|
|
color: #333;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
|
|
transition: background-color 150ms, border-color 150ms;
|
|
}
|
|
.lovart-start-action:hover { background: #f7f7f7; border-color: #d4d4d4; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] .lovart-chat-header { border-bottom: 0; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] .lovart-chat-composer { padding: 0 8px 8px; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] .lovart-chat-composer > [data-canvas-chat-input-anchor] {
|
|
min-height: 120px;
|
|
border-color: #e5e5e5;
|
|
box-shadow: 0 1px 3px rgb(0 0 0 / 5%);
|
|
}
|
|
/* The promo backplate continues underneath the composer's rounded corners. */
|
|
.lovart-chat-promo-connected { padding: 0 8px; }
|
|
.lovart-chat-promo-surface { padding-bottom: 24px; border-radius: 24px 24px 0 0; background: #ebebeb; }
|
|
.lovart-chat-promo-row { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 16px; }
|
|
.lovart-chat-promo-message { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; padding: 0; border: 0; background: transparent; color: #202020; font-size: 14px; font-weight: 400; line-height: 20px; text-align: left; cursor: pointer; }
|
|
.lovart-chat-promo-message:disabled { cursor: default; opacity: 1; }
|
|
.lovart-chat-promo-message > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.lovart-chat-promo-badge { flex-shrink: 0; }
|
|
.lovart-chat-promo-close { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #262626; cursor: pointer; }
|
|
.lovart-chat-promo-close:hover { background: rgb(0 0 0 / 5%); }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] .lovart-chat-promo-connected + .lovart-chat-composer { position: relative; z-index: 1; margin-top: -24px; background: transparent; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] .lovart-chat-composer > [data-canvas-chat-input-anchor][data-canvas-composer-mode="image"] { min-height: 184px; border-radius: 24px; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] .lovart-reference-upload { margin: 8px 8px 0; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] .lovart-reference-tile { flex-direction: column; gap: 8px; width: 56px; height: 68px; border: 0; border-radius: 18px; background: #f5f5f5; color: #aaa; font-size: 12px; font-weight: 400; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] .lovart-reference-tile:hover { background: #ececec; color: #777; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] .lovart-reference-tile > svg { width: 14px; height: 14px; stroke-width: 1.5; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] [data-canvas-composer-mode="image"] .lovart-composer-text-region { padding: 12px 16px 0; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] [data-canvas-composer-mode="image"] [role="textbox"] { min-height: 40px; font-size: 14px; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] [data-canvas-composer-mode="image"] [role="textbox"]:empty::before { color: #b0b0b0; }
|
|
.dark .lovart-chat-promo-surface { background: #27272a; }
|
|
.dark .lovart-chat-promo-message, .dark .lovart-chat-promo-close { color: #eee; }
|
|
.dark .lovart-chat-promo-close:hover { background: rgb(255 255 255 / 10%); }
|
|
.dark .lovart-canvas-surface [data-lovart-chat="true"] .lovart-reference-tile { background: #27272a; color: #a1a1aa; }
|
|
.dark .lovart-canvas-surface [data-lovart-chat="true"] .lovart-reference-tile:hover { background: #3f3f46; color: #eee; }
|
|
.dark .lovart-suggestion,
|
|
.dark .lovart-start-action { border-color: rgb(255 255 255 / 12%); background: #18181b; color: #eee; }
|
|
.dark .lovart-suggestion:hover,
|
|
.dark .lovart-start-action:hover { background: #27272a; border-color: rgb(255 255 255 / 22%); }
|
|
.dark .lovart-canvas-surface [data-lovart-chat="true"] .lovart-chat-header { border-color: rgb(255 255 255 / 10%); }
|
|
.dark .lovart-canvas-surface [data-lovart-chat="true"] .lovart-chat-composer > [data-canvas-chat-input-anchor] { border-color: rgb(255 255 255 / 12%); }
|
|
@media (max-width: 640px) {
|
|
.lovart-home-surface main { padding-top: calc(72px + var(--home-banner-offset, 0px)); }
|
|
.lovart-hero { margin-top: 16px; }
|
|
.lovart-home-composer { border-radius: 20px; }
|
|
.lovart-suggestion { padding: 0 11px; font-size: 12px; }
|
|
.lovart-start-action { min-width: 160px; }
|
|
.lovart-chat-welcome h1 { font-size: 15px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.lovart-home-surface *, .lovart-canvas-surface * { scroll-behavior: auto !important; }
|
|
}
|
|
|
|
.lovart-home-surface :is(button, input, textarea, select),
|
|
.lovart-canvas-surface :is(button, input, textarea, select) { font-family: inherit; }
|
|
@media (max-width: 640px) {
|
|
.lovart-canvas-surface[data-canvas-panel-open="true"] :is([data-canvas-topbar], [data-canvas-floating-toolbar], [data-canvas-compact-controls]) { display: none; }
|
|
}
|
|
|
|
/* Reference icon sizing is independent of the application's root rem scale. */
|
|
.lovart-suggestion { gap: 8px; padding: 0 12px; }
|
|
.lovart-start-action { min-width: 172.71875px; gap: 8px; padding: 0 12px; }
|
|
.lovart-canvas-surface [data-canvas-floating-toolbar] button { min-width: 32px; height: 32px; border-radius: 8px; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] [data-canvas-composer-mode="image"] .lovart-composer-mode-selector { width: 90px; height: 32px; padding: 0 8px; background: transparent; font-size: 14px; font-weight: 400; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] [data-canvas-composer-mode="image"] .lovart-composer-mode-selector > span { font-size: 13px; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] [data-canvas-composer-mode="image"] .lovart-composer-mode-selector:hover,
|
|
.lovart-canvas-surface [data-lovart-chat="true"] .lovart-image-params:hover,
|
|
.lovart-canvas-surface [data-lovart-chat="true"] .lovart-model-selector:hover { background: rgb(0 0 0 / 4%); }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] .lovart-image-params { width: 105.3828125px; min-width: 105.3828125px; height: 32px; padding: 0 4px 0 12px; background: transparent; font-size: 13px; gap: 4px; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] .lovart-model-selector { flex: 0 0 121px; width: 121px; height: 32px; padding: 0 4px 0 8px; gap: 0; border: 0; background: transparent; box-shadow: none; font-size: 13px; font-weight: 400; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] .lovart-model-selector > [data-reference-icon]:first-child { margin-right: 8px; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] .lovart-model-selector > span:not([data-reference-icon]) { max-width: 65px; }
|
|
.dark .lovart-canvas-surface [data-lovart-chat="true"] :is(.lovart-model-selector, .lovart-image-params) { color: #eee; }
|
|
.dark .lovart-canvas-surface [data-lovart-chat="true"] :is(.lovart-model-selector, .lovart-image-params, .lovart-composer-mode-selector):hover { background: rgb(255 255 255 / 8%); }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] [data-canvas-composer-mode="image"] .lovart-composer-footer { padding: 0 8px 8px; gap: 0; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] [data-canvas-composer-mode="image"] .lovart-composer-footer > div:first-child { flex: 0 0 90px; padding-right: 0; overflow: visible; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] [data-canvas-composer-mode="image"] .lovart-composer-footer > div:last-child { flex: 1 1 0; min-width: 0; gap: 0; }
|
|
.lovart-canvas-surface [data-lovart-chat="true"] [data-canvas-composer-mode="image"] .lovart-composer-send { min-width: 32px; width: auto; height: 32px; padding: 0 8px; gap: 2px; font-size: 13px; font-weight: 400; }
|
|
|
|
/* The existing image toolbar is scaled to 80%; these dimensions render at
|
|
the reference's 44px bar, 32px buttons, and 20px icons. */
|
|
.lovart-image-action-bar {
|
|
height: 55px;
|
|
gap: 5px;
|
|
padding: 0 7.5px;
|
|
border: 1.25px solid rgba(0, 0, 0, 0.07);
|
|
border-radius: 17.5px;
|
|
background: #fff !important;
|
|
color: #000;
|
|
box-shadow: 0 1.25px 2.5px rgba(0, 0, 0, 0.04);
|
|
backdrop-filter: none;
|
|
}
|
|
.lovart-image-action-bar::before { display: none; }
|
|
.lovart-image-action-bar > button {
|
|
width: 40px;
|
|
min-width: 40px;
|
|
height: 40px;
|
|
margin: 0;
|
|
gap: 0;
|
|
padding: 0;
|
|
border-radius: 10px;
|
|
background: transparent;
|
|
color: #000;
|
|
font-size: 0;
|
|
font-weight: 400;
|
|
box-shadow: none;
|
|
}
|
|
.lovart-image-action-bar > button:hover,
|
|
.lovart-image-action-bar > button[data-state="open"],
|
|
.lovart-image-action-bar > button[data-reference-active="true"] {
|
|
background: rgba(0, 0, 0, 0.04);
|
|
color: #000;
|
|
}
|
|
.lovart-image-action-bar > button:disabled {
|
|
background: transparent;
|
|
color: rgba(0, 0, 0, 0.3);
|
|
}
|
|
.lovart-image-action-bar > button > svg,
|
|
.lovart-image-action-bar > button > [data-reference-icon],
|
|
.lovart-image-action-bar > button > span[aria-hidden="true"],
|
|
.lovart-image-action-bar > button > img {
|
|
width: 25px;
|
|
height: 25px;
|
|
margin: 0;
|
|
flex-shrink: 0;
|
|
}
|
|
.lovart-image-action-bar > button > img { filter: brightness(0); }
|
|
.lovart-image-action-bar > div.h-px,
|
|
.lovart-image-action-bar > div.w-px {
|
|
width: 1.25px;
|
|
height: 55px;
|
|
margin: 0 2.5px;
|
|
background: rgba(0, 0, 0, 0.07);
|
|
}
|
|
.lovart-image-action-menu [role="menuitem"] > svg,
|
|
.lovart-image-action-menu [role="menuitem"] > [data-reference-icon] {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
.dark .lovart-image-action-bar {
|
|
border-color: rgba(255, 255, 255, 0.1);
|
|
background: #18191c !important;
|
|
color: #fff;
|
|
}
|
|
.dark .lovart-image-action-bar > button { color: #fff; }
|
|
.dark .lovart-image-action-bar > button:hover,
|
|
.dark .lovart-image-action-bar > button[data-state="open"],
|
|
.dark .lovart-image-action-bar > button[data-reference-active="true"] {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: #fff;
|
|
}
|
|
.dark .lovart-image-action-bar > button:disabled { color: rgba(255, 255, 255, 0.3); }
|
|
.dark .lovart-image-action-bar > button > img { filter: brightness(0) invert(1); }
|
|
.dark .lovart-image-action-bar > div.w-px { background: rgba(255, 255, 255, 0.1); }
|
|
|
|
.lovart-image-action-bar[data-show-tool-names="true"] > button[data-tool-key] { width: auto; gap: 7.5px; padding: 0 12.5px; font-size: 16.25px; }
|
|
.lovart-image-tool-label { white-space: nowrap; }
|
|
.lovart-image-tool-tooltip { z-index: 10030; border: 0; border-radius: 6px; background: #1b1b1b; padding: 6px 9px; color: #fff; font-size: 13px; line-height: 18px; box-shadow: 0 4px 10px #00000012; --tw-ring-shadow: 0 0 transparent; }
|
|
.lovart-image-custom-more { min-width: 172px; padding: 6px 12px; border: 1px solid #e8e8e8; border-radius: 12px; background: #fff; }
|
|
.lovart-image-custom-more [role="menuitem"] { min-height: 32px; gap: 10px; padding: 4px 0; font-size: 14px; font-weight: 400; }
|
|
.lovart-image-custom-more .lovart-customize-entry { justify-content: center; gap: 5px; }
|
|
.lovart-toolbar-customizer-overlay { z-index: 10010; background: #0006; }
|
|
.lovart-toolbar-customizer { z-index: 10020; display: flex; flex-direction: column; width: min(720px, calc(100vw - 32px)); max-width: 720px; max-height: calc(100dvh - 48px); gap: 0; padding: 20px 24px 24px; border: 1px solid #e5e5e5; border-radius: 16px; background: #fff; color: #242424; box-shadow: 0 8px 24px #00000012; }
|
|
.lovart-customizer-header { display: flex; flex-shrink: 0; justify-content: space-between; align-items: flex-start; gap: 16px; }
|
|
.lovart-customizer-header h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
|
|
.lovart-customizer-header p { margin-top: 2px; color: inherit; font-size: 14px; line-height: 22px; }
|
|
.lovart-customizer-header-actions { display: flex; gap: 4px; }
|
|
.lovart-customizer-header-actions button { display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 7px; }
|
|
.lovart-customizer-header-actions button:last-child { background: #f1f1f1; }
|
|
.lovart-customizer-header-actions button:hover { background: #e9e9e9; }
|
|
.lovart-customizer-body { min-height: 0; overflow-y: auto; margin: 24px 0 20px; }
|
|
.lovart-customizer-preview { display: flex; height: 180px; align-items: center; overflow: hidden; padding: 16px; border-radius: 10px; background: #e5edef url("/icons/lovart/toolbar-preview.png") center / cover; }
|
|
.lovart-customizer-preview-bar { display: flex; align-items: center; flex: 1; min-width: 0; gap: 4px; padding: 5px 8px; border: 1px solid #e5e5e5; border-radius: 14px; background: #fff; overflow-x: auto; scrollbar-width: thin; }
|
|
.lovart-preview-fixed,.lovart-preview-chip { display: flex; align-items: center; flex-shrink: 0; height: 32px; gap: 8px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
|
|
.lovart-preview-chip { position: relative; margin-top: 5px; margin-bottom: 5px; border-radius: 8px; background: #f4f4f4; cursor: grab; }
|
|
.lovart-preview-chip:active { cursor: grabbing; }
|
|
.lovart-preview-chip > button:last-child { position: absolute; top: -5px; right: -3px; display: flex; width: 16px; height: 16px; align-items: center; justify-content: center; border: 1px solid #e6e6e6; border-radius: 50%; background: #fff; color: #888; }
|
|
.lovart-customizer-tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 24px; }
|
|
.lovart-customizer-tools > button { display: flex; align-items: center; gap: 10px; height: 36px; min-width: 0; padding: 0 12px; border: 1px solid #e2e2e2; border-radius: 8px; background: #fff; font-size: 14px; text-align: left; }
|
|
.lovart-customizer-tools > button > span:not([aria-hidden]) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.lovart-customizer-tools > button > svg:last-child { flex-shrink: 0; }
|
|
.lovart-customizer-tools > button:hover { background: #f7f7f7; }
|
|
.lovart-customizer-footer { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; }
|
|
.lovart-customizer-footer > label,.lovart-customizer-footer > div { display: flex; align-items: center; gap: 8px; font-size: 14px; }
|
|
.lovart-customizer-switch { width: 32px; height: 18px; padding: 2px; border-radius: 20px; background: #d5d5d5; }
|
|
.lovart-customizer-switch > span { display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
|
|
.lovart-customizer-switch[aria-checked="true"] { background: #2c2c2c; }
|
|
.lovart-customizer-switch[aria-checked="true"] > span { transform: translateX(14px); }
|
|
.lovart-customizer-footer > div > button { width: 80px; height: 36px; border: 1px solid #e3e3e3; border-radius: 8px; font-size: 14px; }
|
|
.lovart-customizer-footer .lovart-customizer-save { border-color: #2c2c2c; background: #2c2c2c; color: #fff; }
|
|
.lovart-customizer-footer > div > button:hover { opacity: .8; }
|
|
.lovart-toolbar-customizer button:focus-visible,.lovart-preview-chip:focus-visible { outline: 2px solid #397dff; outline-offset: 2px; }
|
|
.dark .lovart-toolbar-customizer,.dark .lovart-image-custom-more { background: #202124; border-color: #3d3e40; color: #f5f5f5; }
|
|
.dark .lovart-customizer-preview-bar,.dark .lovart-customizer-tools > button { background: #26272a; border-color: #46474a; }
|
|
.dark .lovart-preview-chip,.dark .lovart-customizer-header-actions button:last-child { background: #35363a; }
|
|
.dark .lovart-preview-chip > button:last-child { background: #26272a; border-color: #46474a; color: #ccc; }
|
|
.dark .lovart-customizer-tools > button:hover { background: #35363a; }
|
|
@media(max-width:600px) { .lovart-toolbar-customizer { padding: 18px; } .lovart-customizer-tools { grid-template-columns: repeat(2,minmax(0,1fr)); } .lovart-customizer-preview { height: 140px; } }
|
|
|
|
.lovart-preview-handle { display: flex; align-items: center; gap: 8px; white-space: nowrap; cursor: grab; }
|
|
|
|
.lovart-image-tool-tooltip { display: flex; align-items: center; gap: 8px; }
|
|
.lovart-image-tool-cost { margin-left: auto; padding: 0; background: transparent; color: #999; font-size: 12px; font-weight: 400; box-shadow: none; }
|
|
.lovart-image-tool-cost > svg { width: 12px; height: 12px; }
|
|
|
|
/* Preserve the canvas's own skills as the primary welcome content. */
|
|
.canvas-welcome-action {
|
|
display: inline-flex;
|
|
min-height: 36px;
|
|
min-width: 0;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 6px 8px;
|
|
border: 1px solid #e5e5e5;
|
|
border-radius: 999px;
|
|
background: white;
|
|
color: #333;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
transition: background-color 150ms, border-color 150ms;
|
|
}
|
|
.canvas-welcome-action:hover { background: #f7f7f7; border-color: #d4d4d4; }
|
|
.canvas-welcome-action:focus-visible { outline: 2px solid #8c8c8c; outline-offset: 3px; }
|
|
.dark .canvas-welcome-action { border-color: rgb(255 255 255 / 12%); background: #18181b; color: #eee; }
|
|
.dark .canvas-welcome-action:hover { background: #27272a; border-color: rgb(255 255 255 / 22%); }
|