mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
601 lines
13 KiB
CSS
601 lines
13 KiB
CSS
@import "tailwindcss";
|
|
|
|
@theme {
|
|
--color-background: #0a0a0a;
|
|
--color-background-gradient: #0d0d0d;
|
|
--color-foreground: #fafafa;
|
|
--color-card: #141414;
|
|
--color-card-hover: #1a1a1a;
|
|
--color-border: #2a2a2a;
|
|
--color-primary: #1d4ed8;
|
|
--color-primary-hover: #1e40af;
|
|
--color-primary-foreground: #fafafa;
|
|
--color-muted-foreground: #d4d4d8;
|
|
--color-accent: #27272a;
|
|
--color-input: #323232;
|
|
--color-muted: #18181b;
|
|
--color-popover: #18181b;
|
|
--color-destructive: #dc2626;
|
|
--color-destructive-foreground: #ffffff;
|
|
--color-secondary: #27272a;
|
|
--color-secondary-foreground: #fafafa;
|
|
--color-accent-foreground: #fafafa;
|
|
--color-success: #34d399;
|
|
--color-success-foreground: #ffffff;
|
|
--color-warning: #fbbf24;
|
|
--color-warning-foreground: #0a0a0a;
|
|
--color-info: #60a5fa;
|
|
--color-info-foreground: #ffffff;
|
|
--color-highlight: #fb923c;
|
|
--color-highlight-foreground: #ffffff;
|
|
--color-diff-add: #22c55e;
|
|
--color-diff-delete: #ef4444;
|
|
--color-agent-plan: #edb2f1;
|
|
--color-agent-build: #89b5ff;
|
|
--color-agent-docs: #ffb224;
|
|
--color-agent-ask: #0091ff;
|
|
--color-syntax-comment: #8b949e;
|
|
--color-syntax-keyword: #ff7b72;
|
|
--color-syntax-string: #a5d6ff;
|
|
--color-syntax-primitive: #d2a8ff;
|
|
--color-syntax-property: #79c0ff;
|
|
--color-syntax-type: #ffa657;
|
|
--color-syntax-constant: #79c0ff;
|
|
--color-syntax-variable: #ffa657;
|
|
--color-syntax-operator: #79c0ff;
|
|
--color-syntax-punctuation: #d4d4d8;
|
|
}
|
|
|
|
:root:not(.dark) {
|
|
--color-background: #ffffff;
|
|
--color-background-gradient: #f0f0f0;
|
|
--color-foreground: #111827;
|
|
--color-card: #f9fafb;
|
|
--color-card-hover: #f3f4f6;
|
|
--color-border: #e5e7eb;
|
|
--color-primary: #1d4ed8;
|
|
--color-primary-hover: #1e40af;
|
|
--color-primary-foreground: #ffffff;
|
|
--color-muted-foreground: #6b7280;
|
|
--color-accent: #f3f4f6;
|
|
--color-input: #e5e7eb;
|
|
--color-muted: #f4f4f5;
|
|
--color-popover: #ffffff;
|
|
--color-destructive: #dc2626;
|
|
--color-destructive-foreground: #ffffff;
|
|
--color-secondary: #f4f4f5;
|
|
--color-secondary-foreground: #111827;
|
|
--color-accent-foreground: #111827;
|
|
--color-success: #059669;
|
|
--color-success-foreground: #ffffff;
|
|
--color-warning: #d97706;
|
|
--color-warning-foreground: #ffffff;
|
|
--color-info: #2563eb;
|
|
--color-info-foreground: #ffffff;
|
|
--color-highlight: #ea580c;
|
|
--color-highlight-foreground: #ffffff;
|
|
--color-diff-add: #16a34a;
|
|
--color-diff-delete: #dc2626;
|
|
--color-agent-plan: #a753ae;
|
|
--color-agent-build: #034cff;
|
|
--color-agent-docs: #ffb224;
|
|
--color-agent-ask: #0091ff;
|
|
--color-syntax-comment: #6a737d;
|
|
--color-syntax-keyword: #d73a49;
|
|
--color-syntax-string: #032f62;
|
|
--color-syntax-primitive: #6f42c1;
|
|
--color-syntax-property: #005cc5;
|
|
--color-syntax-type: #e36209;
|
|
--color-syntax-constant: #005cc5;
|
|
--color-syntax-variable: #e36209;
|
|
--color-syntax-operator: #005cc5;
|
|
--color-syntax-punctuation: #6b7280;
|
|
}
|
|
|
|
:root {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
:root:not(.dark) {
|
|
color-scheme: light;
|
|
}
|
|
|
|
html {
|
|
background-color: var(--color-background);
|
|
min-height: calc(100% + env(safe-area-inset-top));
|
|
overscroll-behavior-x: none;
|
|
}
|
|
|
|
body {
|
|
background: linear-gradient(to bottom right, var(--color-background), var(--color-background-gradient), var(--color-background));
|
|
color: var(--color-foreground);
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
overflow: hidden;
|
|
position: fixed;
|
|
width: 100%;
|
|
overscroll-behavior-x: none;
|
|
}
|
|
|
|
#root {
|
|
height: 100vh;
|
|
height: 100dvh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Custom animations */
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.animate-spin {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
/* Loading states */
|
|
.loading-dots::after {
|
|
content: '';
|
|
animation: dots 1.5s steps(4, end) infinite;
|
|
}
|
|
|
|
@keyframes dots {
|
|
0%, 20% { content: ''; }
|
|
40% { content: '.'; }
|
|
60% { content: '..'; }
|
|
80%, 100% { content: '...'; }
|
|
}
|
|
|
|
@keyframes pulse-subtle {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.95; }
|
|
}
|
|
|
|
.animate-pulse-subtle {
|
|
animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
}
|
|
|
|
@keyframes page-slide-in-from-right {
|
|
from { transform: translateX(100%); }
|
|
to { transform: translateX(0); }
|
|
}
|
|
|
|
@keyframes page-slide-in-from-left {
|
|
from { transform: translateX(-30%); opacity: 0.7; }
|
|
to { transform: translateX(0); opacity: 1; }
|
|
}
|
|
|
|
.page-slide-in-push {
|
|
animation: page-slide-in-from-right 300ms cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
|
|
}
|
|
|
|
.page-slide-in-pop {
|
|
animation: page-slide-in-from-left 300ms cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
|
|
}
|
|
|
|
@theme {
|
|
--animate-voice-wave-bar: voice-wave-bar 0.9s ease-in-out infinite;
|
|
|
|
@keyframes voice-wave-bar {
|
|
0%, 100% { transform: scaleY(0.25); }
|
|
50% { transform: scaleY(1); }
|
|
}
|
|
}
|
|
|
|
@keyframes prompt-takeover-rise {
|
|
from { transform: translateY(24px); opacity: 0; }
|
|
to { transform: translateY(0); opacity: 1; }
|
|
}
|
|
|
|
.animate-prompt-takeover-rise {
|
|
animation: prompt-takeover-rise 240ms cubic-bezier(0.2, 1.2, 0.4, 1);
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.animate-prompt-takeover-rise {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
@keyframes shine-loading {
|
|
0% {
|
|
background-position: -200% 0;
|
|
}
|
|
100% {
|
|
background-position: 200% 0;
|
|
}
|
|
}
|
|
|
|
.shine-loading {
|
|
background: linear-gradient(90deg,
|
|
rgba(255, 255, 255, 0.2) 0%,
|
|
rgba(255, 255, 255, 0.2) 40%,
|
|
rgba(255, 255, 255, 0.4) 50%,
|
|
rgba(255, 255, 255, 0.6) 60%,
|
|
rgba(255, 255, 255, 0.8) 70%,
|
|
rgba(255, 255, 255, 1) 80%,
|
|
rgba(255, 255, 255, 0.2) 100%
|
|
);
|
|
background-size: 200% 100%;
|
|
background-clip: text;
|
|
-webkit-background-clip: text;
|
|
color: transparent;
|
|
animation: shine-loading 3s linear infinite;
|
|
}
|
|
|
|
.prose-enhanced {
|
|
line-height: 1.7;
|
|
word-break: break-word;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.prose-enhanced p {
|
|
margin-top: 1em;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.prose-enhanced h1,
|
|
.prose-enhanced h2,
|
|
.prose-enhanced h3,
|
|
.prose-enhanced h4,
|
|
.prose-enhanced h5,
|
|
.prose-enhanced h6 {
|
|
margin-top: 1.5em;
|
|
margin-bottom: 0.75em;
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.prose-enhanced h1 { font-size: 1.5em; }
|
|
.prose-enhanced h2 { font-size: 1.3em; }
|
|
.prose-enhanced h3 { font-size: 1.15em; }
|
|
|
|
.prose-enhanced ul,
|
|
.prose-enhanced ol {
|
|
margin-top: 1em;
|
|
margin-bottom: 1em;
|
|
padding-left: 1.5em;
|
|
}
|
|
|
|
.prose-enhanced li {
|
|
margin-top: 0.5em;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.prose-enhanced strong {
|
|
font-weight: 600;
|
|
color: var(--color-foreground);
|
|
}
|
|
|
|
.prose-enhanced a {
|
|
color: var(--color-info);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.prose-enhanced a:hover {
|
|
color: color-mix(in oklab, var(--color-info) 80%, var(--color-foreground));
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.prose-enhanced hr {
|
|
margin-top: 2em;
|
|
margin-bottom: 2em;
|
|
border-color: var(--color-border);
|
|
}
|
|
|
|
.prose-enhanced blockquote {
|
|
margin-top: 1em;
|
|
margin-bottom: 1em;
|
|
padding-left: 1em;
|
|
border-left: 3px solid var(--color-border);
|
|
color: var(--color-muted-foreground);
|
|
}
|
|
|
|
.prose-enhanced pre {
|
|
margin-top: 1.5em;
|
|
margin-bottom: 1.5em;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.prose-enhanced code {
|
|
word-break: break-all;
|
|
}
|
|
|
|
.prose-enhanced .table-wrapper {
|
|
overflow-x: auto;
|
|
margin: 1em 0;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.prose-enhanced table {
|
|
border-collapse: collapse;
|
|
min-width: 100%;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.prose-enhanced th,
|
|
.prose-enhanced td {
|
|
padding: 0.5rem 0.75rem;
|
|
border: 1px solid var(--color-border);
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.prose-enhanced th {
|
|
background-color: var(--color-accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.prose-enhanced tr:nth-child(even) {
|
|
background-color: var(--color-accent);
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.prose-enhanced pre {
|
|
padding: 0.5rem;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.prose-enhanced code {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.prose-enhanced th,
|
|
.prose-enhanced td {
|
|
padding: 0.375rem 0.5rem;
|
|
font-size: 0.75rem;
|
|
}
|
|
}
|
|
|
|
.prose-enhanced :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.prose-enhanced :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
@utility pt-safe {
|
|
padding-top: constant(safe-area-inset-top);
|
|
padding-top: env(safe-area-inset-top);
|
|
}
|
|
|
|
@utility pb-safe {
|
|
padding-bottom: constant(safe-area-inset-bottom);
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
|
|
@utility pb-mobile-tabbar {
|
|
padding-bottom: calc(env(safe-area-inset-bottom) + 4.25rem);
|
|
}
|
|
|
|
/* Prevent iOS zoom on all input elements */
|
|
@media (max-width: 768px) {
|
|
input[type="text"],
|
|
input[type="email"],
|
|
input[type="password"],
|
|
input[type="number"],
|
|
input[type="search"],
|
|
input[type="tel"],
|
|
input[type="url"],
|
|
textarea,
|
|
select {
|
|
font-size: 16px !important;
|
|
}
|
|
|
|
/* ContentEditable elements */
|
|
[contenteditable="true"] {
|
|
font-size: 16px !important;
|
|
}
|
|
}
|
|
|
|
/* Normalize autofill backgrounds in dark mode */
|
|
input:-webkit-autofill,
|
|
input:-webkit-autofill:hover,
|
|
input:-webkit-autofill:focus,
|
|
input:-webkit-autofill:active {
|
|
-webkit-text-fill-color: var(--color-foreground) !important;
|
|
caret-color: var(--color-foreground);
|
|
-webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
|
|
transition: background-color 5000s ease-in-out 0s;
|
|
}
|
|
|
|
/* Syntax highlighting for markdown code blocks */
|
|
.hljs {
|
|
display: block;
|
|
overflow-x: auto;
|
|
padding: 0.5em;
|
|
background: var(--color-accent);
|
|
color: var(--color-foreground);
|
|
}
|
|
|
|
.hljs-comment,
|
|
.hljs-quote,
|
|
.hljs-code,
|
|
.hljs-formula,
|
|
.hljs-meta {
|
|
color: var(--color-syntax-comment);
|
|
}
|
|
|
|
.hljs-keyword,
|
|
.hljs-doctag,
|
|
.hljs-meta .hljs-keyword,
|
|
.hljs-template-tag,
|
|
.hljs-selector-tag,
|
|
.hljs-name {
|
|
color: var(--color-syntax-keyword);
|
|
}
|
|
|
|
.hljs-string,
|
|
.hljs-regexp,
|
|
.hljs-meta .hljs-string,
|
|
.hljs-char.escape_ {
|
|
color: var(--color-syntax-string);
|
|
}
|
|
|
|
.hljs-title,
|
|
.hljs-title.function_,
|
|
.hljs-built_in,
|
|
.hljs-section {
|
|
color: var(--color-syntax-primitive);
|
|
}
|
|
|
|
.hljs-type,
|
|
.hljs-title.class_,
|
|
.hljs-title.class_.inherited__ {
|
|
color: var(--color-syntax-type);
|
|
}
|
|
|
|
.hljs-literal,
|
|
.hljs-number,
|
|
.hljs-symbol,
|
|
.hljs-bullet,
|
|
.hljs-link,
|
|
.hljs-variable.language_,
|
|
.hljs-variable.constant_ {
|
|
color: var(--color-syntax-constant);
|
|
}
|
|
|
|
.hljs-attr,
|
|
.hljs-attribute,
|
|
.hljs-property,
|
|
.hljs-selector-attr,
|
|
.hljs-selector-class,
|
|
.hljs-selector-id,
|
|
.hljs-selector-pseudo {
|
|
color: var(--color-syntax-property);
|
|
}
|
|
|
|
.hljs-variable,
|
|
.hljs-template-variable,
|
|
.hljs-params,
|
|
.hljs-subst {
|
|
color: var(--color-syntax-variable);
|
|
}
|
|
|
|
.hljs-operator {
|
|
color: var(--color-syntax-operator);
|
|
}
|
|
|
|
.hljs-punctuation,
|
|
.hljs-tag {
|
|
color: var(--color-syntax-punctuation);
|
|
}
|
|
|
|
.hljs-section,
|
|
.hljs-strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.hljs-emphasis {
|
|
font-style: italic;
|
|
}
|
|
|
|
.hljs-addition {
|
|
color: var(--color-diff-add);
|
|
background-color: color-mix(in oklab, var(--color-diff-add) 15%, transparent);
|
|
}
|
|
|
|
.hljs-deletion {
|
|
color: var(--color-diff-delete);
|
|
background-color: color-mix(in oklab, var(--color-diff-delete) 15%, transparent);
|
|
}
|
|
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--color-border) transparent;
|
|
}
|
|
|
|
*::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
*::-webkit-scrollbar-track,
|
|
*::-webkit-scrollbar-corner {
|
|
background: transparent;
|
|
}
|
|
|
|
*::-webkit-scrollbar-thumb {
|
|
background-color: var(--color-border);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
*::-webkit-scrollbar-thumb:hover {
|
|
background-color: var(--color-muted-foreground);
|
|
}
|
|
|
|
/* Progress bar animation for download dialog */
|
|
@keyframes progress {
|
|
0% {
|
|
width: 0%;
|
|
}
|
|
50% {
|
|
width: 70%;
|
|
}
|
|
100% {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.animate-progress {
|
|
animation: progress 2s ease-in-out infinite;
|
|
}
|
|
|
|
.scanner-track {
|
|
mask-image: repeating-linear-gradient(
|
|
90deg,
|
|
#000 0 4px,
|
|
transparent 4px 6px
|
|
);
|
|
-webkit-mask-image: repeating-linear-gradient(
|
|
90deg,
|
|
#000 0 4px,
|
|
transparent 4px 6px
|
|
);
|
|
}
|
|
|
|
@keyframes scanner-sweep {
|
|
from { left: -15%; }
|
|
to { left: 85%; }
|
|
}
|
|
|
|
.scanner-sweep {
|
|
left: -15%;
|
|
width: 30%;
|
|
background-image: linear-gradient(
|
|
90deg,
|
|
transparent,
|
|
color-mix(in oklab, currentColor 12%, transparent) 20%,
|
|
color-mix(in oklab, currentColor 40%, transparent) 35%,
|
|
currentColor 50%,
|
|
color-mix(in oklab, currentColor 40%, transparent) 65%,
|
|
color-mix(in oklab, currentColor 12%, transparent) 80%,
|
|
transparent
|
|
);
|
|
animation: scanner-sweep 2.8s ease-in-out infinite alternate;
|
|
}
|
|
|
|
:root [data-sonner-toaster][data-sonner-theme] {
|
|
--normal-bg: var(--color-popover);
|
|
--normal-bg-hover: var(--color-accent);
|
|
--normal-border: var(--color-border);
|
|
--normal-border-hover: var(--color-border);
|
|
--normal-text: var(--color-foreground);
|
|
--success-bg: var(--color-popover);
|
|
--success-border: var(--color-success);
|
|
--success-text: var(--color-success);
|
|
--info-bg: var(--color-popover);
|
|
--info-border: var(--color-info);
|
|
--info-text: var(--color-info);
|
|
--warning-bg: var(--color-popover);
|
|
--warning-border: var(--color-warning);
|
|
--warning-text: var(--color-warning);
|
|
--error-bg: var(--color-popover);
|
|
--error-border: var(--color-destructive);
|
|
--error-text: var(--color-destructive);
|
|
}
|