mirror of
https://github.com/open-webui/computer.git
synced 2026-11-22 21:50:43 -05:00
197 lines
3.9 KiB
CSS
197 lines
3.9 KiB
CSS
@import 'tailwindcss';
|
|
@plugin "@tailwindcss/typography";
|
|
|
|
@custom-variant dark (&:where(.dark, .dark *));
|
|
@custom-variant hover (&:hover);
|
|
|
|
@theme {
|
|
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, sans-serif;
|
|
--font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
|
|
|
|
/* Exact Open WebUI gray scale - pure neutral, zero chroma */
|
|
--color-gray-50: oklch(0.98 0 0);
|
|
--color-gray-100: oklch(0.94 0 0);
|
|
--color-gray-200: oklch(0.92 0 0);
|
|
--color-gray-300: oklch(0.85 0 0);
|
|
--color-gray-400: oklch(0.77 0 0);
|
|
--color-gray-500: oklch(0.69 0 0);
|
|
--color-gray-600: oklch(0.51 0 0);
|
|
--color-gray-700: oklch(0.42 0 0);
|
|
--color-gray-800: oklch(0.32 0 0);
|
|
--color-gray-850: oklch(0.27 0 0);
|
|
--color-gray-900: oklch(0.2 0 0);
|
|
--color-gray-950: oklch(0.16 0 0);
|
|
}
|
|
|
|
@layer base {
|
|
*,
|
|
::after,
|
|
::before,
|
|
::backdrop,
|
|
::file-selector-button {
|
|
border-color: var(--color-gray-200, currentColor);
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100dvh;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
overscroll-behavior: none;
|
|
scrollbar-width: none;
|
|
-ms-overflow-style: none;
|
|
}
|
|
|
|
html::-webkit-scrollbar,
|
|
body::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
html {
|
|
color-scheme: dark light;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
button {
|
|
@apply cursor-pointer;
|
|
}
|
|
}
|
|
|
|
/* Scrollbar - Open WebUI style */
|
|
::-webkit-scrollbar-thumb {
|
|
--tw-border-opacity: 1;
|
|
background-color: rgba(215, 215, 215, 0.6);
|
|
border-color: rgba(255, 255, 255, var(--tw-border-opacity));
|
|
border-radius: 9999px;
|
|
border-width: 1px;
|
|
}
|
|
|
|
/* Dark theme scrollbar styles */
|
|
.dark ::-webkit-scrollbar-thumb {
|
|
background-color: rgba(67, 67, 67, 0.6);
|
|
border-color: rgba(0, 0, 0, var(--tw-border-opacity));
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
height: 0.45rem;
|
|
width: 0.45rem;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background-color: transparent;
|
|
border-radius: 9999px;
|
|
}
|
|
|
|
.scrollbar-hidden {
|
|
scrollbar-width: none;
|
|
-ms-overflow-style: none;
|
|
}
|
|
.scrollbar-hidden::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
/* CodeMirror - match Open WebUI */
|
|
.cm-editor {
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.cm-editor.cm-focused {
|
|
outline: none;
|
|
}
|
|
|
|
.dark .cm-editor {
|
|
background-color: #000 !important;
|
|
}
|
|
|
|
.dark .cm-gutters {
|
|
background-color: #000 !important;
|
|
border: none !important;
|
|
}
|
|
|
|
.dark .cm-activeLine {
|
|
background-color: rgba(255, 255, 255, 0.04) !important;
|
|
}
|
|
|
|
.dark .cm-activeLineGutter {
|
|
background-color: rgba(255, 255, 255, 0.04) !important;
|
|
}
|
|
|
|
:not(.dark) .cm-gutters {
|
|
border: none !important;
|
|
}
|
|
|
|
.cm-scroller:active::-webkit-scrollbar-thumb,
|
|
.cm-scroller:focus::-webkit-scrollbar-thumb,
|
|
.cm-scroller:hover::-webkit-scrollbar-thumb {
|
|
visibility: visible;
|
|
}
|
|
.cm-scroller::-webkit-scrollbar-thumb {
|
|
visibility: hidden;
|
|
}
|
|
.cm-scroller::-webkit-scrollbar-corner {
|
|
display: none;
|
|
}
|
|
|
|
/* Shimmer animation, Open WebUI style */
|
|
@keyframes shimmer {
|
|
0% {
|
|
background-position: 100% 0;
|
|
}
|
|
100% {
|
|
background-position: -100% 0;
|
|
}
|
|
}
|
|
|
|
.shimmer {
|
|
background: linear-gradient(
|
|
110deg,
|
|
#b4b4b4 0%,
|
|
#b4b4b4 43%,
|
|
#e8e8e8 50%,
|
|
#b4b4b4 57%,
|
|
#b4b4b4 100%
|
|
);
|
|
background-size: 200% 100%;
|
|
background-clip: text;
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
animation: shimmer 1.5s cubic-bezier(0.7, 0, 1, 0.4) infinite;
|
|
color: #b4b4b4;
|
|
}
|
|
|
|
.dark .shimmer {
|
|
background: linear-gradient(
|
|
110deg,
|
|
#9a9a9a 0%,
|
|
#9a9a9a 43%,
|
|
#5e5e5e 50%,
|
|
#9a9a9a 57%,
|
|
#9a9a9a 100%
|
|
);
|
|
background-size: 200% 100%;
|
|
background-clip: text;
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
animation: shimmer 1.5s cubic-bezier(0.7, 0, 1, 0.4) infinite;
|
|
color: #9a9a9a;
|
|
}
|
|
|
|
/* Inline code (codespan), Open WebUI style */
|
|
.codespan {
|
|
padding: 0.15rem 0.3rem;
|
|
font-size: 0.85em;
|
|
@apply font-mono rounded-md text-gray-800 bg-gray-100 dark:text-gray-200 dark:bg-gray-800 mx-0.5;
|
|
}
|
|
|
|
/* Tippy tooltip theme */
|
|
.tippy-box[data-theme~='cptr'] {
|
|
background: #1a1a1a;
|
|
color: #e0e0e0;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
padding: 2px 4px;
|
|
border-radius: 6px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
}
|