mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-30 08:20:33 +00:00
260 lines
7.4 KiB
CSS
260 lines
7.4 KiB
CSS
@font-face {
|
|
font-family: "Geist Variable";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 100 900;
|
|
src: url("/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
|
|
unicode-range:
|
|
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
|
|
U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Geist Variable";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 100 900;
|
|
src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
|
|
unicode-range:
|
|
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
|
|
U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
}
|
|
|
|
@import "tailwindcss";
|
|
@source "../**/*.{vue,ts,tsx,js,jsx,html}";
|
|
|
|
@import "tw-animate-css";
|
|
|
|
@import "shadcn-vue/tailwind.css";
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme inline {
|
|
--font-sans:
|
|
"Geist Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
|
|
--font-heading: var(--font-sans);
|
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
--color-sidebar: var(--sidebar);
|
|
--color-chart-5: var(--chart-5);
|
|
--color-chart-4: var(--chart-4);
|
|
--color-chart-3: var(--chart-3);
|
|
--color-chart-2: var(--chart-2);
|
|
--color-chart-1: var(--chart-1);
|
|
--color-ring: var(--ring);
|
|
--color-input: var(--input);
|
|
--color-border: var(--border);
|
|
--color-destructive: var(--destructive);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-card: var(--card);
|
|
--color-foreground: var(--foreground);
|
|
--color-background: var(--background);
|
|
--radius-sm: calc(var(--radius) - 4px);
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) + 4px);
|
|
}
|
|
|
|
:root {
|
|
--background: oklch(1 0 0);
|
|
--foreground: oklch(0.145 0 0);
|
|
--card: oklch(1 0 0);
|
|
--card-foreground: oklch(0.145 0 0);
|
|
--popover: oklch(1 0 0);
|
|
--popover-foreground: oklch(0.145 0 0);
|
|
--primary: oklch(0.205 0 0);
|
|
--primary-foreground: oklch(0.985 0 0);
|
|
--secondary: oklch(0.97 0 0);
|
|
--secondary-foreground: oklch(0.205 0 0);
|
|
--muted: oklch(0.97 0 0);
|
|
--muted-foreground: oklch(0.556 0 0);
|
|
--accent: oklch(0.97 0 0);
|
|
--accent-foreground: oklch(0.205 0 0);
|
|
--destructive: oklch(0.577 0.245 27.325);
|
|
--border: oklch(0.922 0 0);
|
|
--input: oklch(0.922 0 0);
|
|
--ring: oklch(0.708 0 0);
|
|
--chart-1: oklch(0.87 0 0);
|
|
--chart-2: oklch(0.556 0 0);
|
|
--chart-3: oklch(0.439 0 0);
|
|
--chart-4: oklch(0.371 0 0);
|
|
--chart-5: oklch(0.269 0 0);
|
|
--radius: 0.625rem;
|
|
--sidebar: oklch(0.985 0 0);
|
|
--sidebar-foreground: oklch(0.145 0 0);
|
|
--sidebar-primary: oklch(0.205 0 0);
|
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
--sidebar-accent: oklch(0.97 0 0);
|
|
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
--sidebar-border: oklch(0.922 0 0);
|
|
--sidebar-ring: oklch(0.708 0 0);
|
|
}
|
|
|
|
.dark {
|
|
--background: oklch(0.145 0 0);
|
|
--foreground: oklch(0.985 0 0);
|
|
--card: oklch(0.205 0 0);
|
|
--card-foreground: oklch(0.985 0 0);
|
|
--popover: oklch(0.205 0 0);
|
|
--popover-foreground: oklch(0.985 0 0);
|
|
--primary: oklch(0.922 0 0);
|
|
--primary-foreground: oklch(0.205 0 0);
|
|
--secondary: oklch(0.269 0 0);
|
|
--secondary-foreground: oklch(0.985 0 0);
|
|
--muted: oklch(0.269 0 0);
|
|
--muted-foreground: oklch(0.708 0 0);
|
|
--accent: oklch(0.269 0 0);
|
|
--accent-foreground: oklch(0.985 0 0);
|
|
--destructive: oklch(0.704 0.191 22.216);
|
|
--border: oklch(1 0 0 / 10%);
|
|
--input: oklch(1 0 0 / 15%);
|
|
--ring: oklch(0.556 0 0);
|
|
--chart-1: oklch(0.87 0 0);
|
|
--chart-2: oklch(0.556 0 0);
|
|
--chart-3: oklch(0.439 0 0);
|
|
--chart-4: oklch(0.371 0 0);
|
|
--chart-5: oklch(0.269 0 0);
|
|
--sidebar: oklch(0.205 0 0);
|
|
--sidebar-foreground: oklch(0.985 0 0);
|
|
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
--sidebar-accent: oklch(0.269 0 0);
|
|
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
--sidebar-border: oklch(1 0 0 / 10%);
|
|
--sidebar-ring: oklch(0.556 0 0);
|
|
}
|
|
|
|
html.disable-transitions,
|
|
html.disable-transitions *,
|
|
html.disable-transitions *::before,
|
|
html.disable-transitions *::after {
|
|
transition-duration: 0s !important;
|
|
animation-duration: 0s !important;
|
|
}
|
|
|
|
body.dbx-table-reference-dragging,
|
|
body.dbx-table-reference-dragging * {
|
|
user-select: none !important;
|
|
-webkit-user-select: none !important;
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
@apply font-sans;
|
|
}
|
|
button,
|
|
[role="button"],
|
|
[role="menuitem"],
|
|
[role="option"],
|
|
[role="tab"],
|
|
[role="checkbox"],
|
|
[role="radio"],
|
|
[role="switch"],
|
|
select,
|
|
summary,
|
|
label,
|
|
a[href] {
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
}
|
|
|
|
.dbx-editor-font-family {
|
|
font-family: var(--dbx-editor-font-family, var(--font-mono, monospace));
|
|
}
|
|
|
|
/* Splitpanes */
|
|
.splitpanes--horizontal .splitpanes__pane {
|
|
transition: none !important;
|
|
}
|
|
.splitpanes--vertical > .splitpanes__splitter {
|
|
width: 3px !important;
|
|
border-left: 1px solid var(--border);
|
|
background: transparent;
|
|
cursor: col-resize;
|
|
}
|
|
.splitpanes--horizontal > .splitpanes__splitter {
|
|
height: 3px !important;
|
|
border-top: 1px solid var(--border);
|
|
background: transparent;
|
|
cursor: row-resize;
|
|
}
|
|
.splitpanes__splitter:hover {
|
|
background: oklch(0.6 0.15 250) !important;
|
|
}
|
|
|
|
/* Panel resize handles */
|
|
.app-panel-gutter {
|
|
background: oklch(0.965 0 0);
|
|
}
|
|
.dark .app-panel-gutter {
|
|
background: oklch(0.18 0 0);
|
|
}
|
|
.app-layout-classic .panel-resize-handle {
|
|
width: 3px;
|
|
}
|
|
.app-layout-classic .panel-resize-handle--right {
|
|
right: 0;
|
|
border-right: 1px solid var(--border);
|
|
}
|
|
.app-layout-classic .panel-resize-handle--left {
|
|
left: 0;
|
|
border-left: 1px solid var(--border);
|
|
}
|
|
.app-layout-classic .panel-resize-handle:hover,
|
|
.app-layout-classic .panel-resize-handle:active {
|
|
background: oklch(0.6 0.15 250);
|
|
}
|
|
|
|
.panel-resize-handle {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 7px;
|
|
cursor: col-resize;
|
|
z-index: 10;
|
|
background: transparent;
|
|
}
|
|
.panel-resize-handle--right {
|
|
right: -4px;
|
|
}
|
|
.panel-resize-handle--left {
|
|
left: -4px;
|
|
}
|
|
.panel-resize-handle::before {
|
|
display: none;
|
|
}
|
|
|
|
/* Frosted glass menus */
|
|
.cn-menu-translucent {
|
|
backdrop-filter: blur(16px) saturate(1.6) !important;
|
|
-webkit-backdrop-filter: blur(16px) saturate(1.6) !important;
|
|
background-color: oklch(1 0 0 / 0.95) !important;
|
|
box-shadow: none !important;
|
|
border: 0.5px solid oklch(0 0 0 / 0.12) !important;
|
|
--tw-ring-shadow: none !important;
|
|
}
|
|
.dark .cn-menu-translucent {
|
|
background-color: oklch(0.205 0 0 / 0.82) !important;
|
|
border-color: oklch(1 0 0 / 0.1) !important;
|
|
}
|