feat(web): 工作台与创作区 - 收敛彩虹选中色并补中性滑动指示与边框高光
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
d7388fa9a9
commit
9c9a7c47cd
7 files changed
+251
-105
No files matched your search
@@ -1,21 +1,13 @@
|
||||
/* Creation-specific geometry. Shared controls still use the workspace tokens. */
|
||||
.creation-mode-tabs { position: relative; isolation: isolate; display: grid; width: min(456px, 100%); margin: 0 auto 20px; padding: 4px; border-radius: 18px; background: var(--user-surface-muted); }
|
||||
.creation-mode-indicator { position: absolute; z-index: -1; top: 4px; left: 4px; bottom: 4px; border-radius: 14px; background: var(--user-surface); box-shadow: 0 2px 8px color-mix(in srgb, var(--user-ink) 5%, transparent); }
|
||||
.creation-mode-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 44px; padding: 0 12px; border: 0; border-radius: 14px; background: transparent; color: var(--user-ink-muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: color var(--user-motion), transform var(--user-motion); }
|
||||
.creation-mode-button svg { width: 18px; height: 18px; stroke-width: 1.8; }
|
||||
.creation-mode-button[data-mode="video"] svg { color: var(--user-accent); }
|
||||
.creation-mode-button[data-mode="image"] svg { color: var(--product-accent-green); }
|
||||
.creation-mode-button[data-mode="text"] svg { color: var(--product-accent-orange); }
|
||||
.creation-mode-button[data-mode="agent"] svg { color: var(--product-accent-blue); }
|
||||
.creation-mode-indicator { position: absolute; z-index: -1; inset: 0; border-radius: 14px; background: var(--user-surface); box-shadow: 0 2px 8px color-mix(in srgb, var(--user-ink) 5%, transparent); }
|
||||
.creation-mode-button { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 44px; padding: 0 12px; border: 0; border-radius: 14px; background: transparent; color: var(--user-ink-muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: color var(--user-motion), transform var(--user-motion); }
|
||||
.creation-mode-button svg { width: 18px; height: 18px; stroke-width: 1.8; color: currentColor; }
|
||||
.creation-mode-button[aria-pressed="true"], .creation-mode-button:hover { color: var(--user-ink); }
|
||||
.creation-mode-button:active { transform: scale(.97); }
|
||||
.creation-mode-button:focus-visible { outline: 2px solid var(--user-accent); outline-offset: 2px; }
|
||||
.creation-mode-spark { width: 5px; height: 5px; border-radius: 50%; background: var(--user-accent); box-shadow: 0 0 0 3px var(--user-accent-soft); }
|
||||
.creation-mode-tabs[data-active-mode="agent"] .creation-mode-indicator { background: linear-gradient(115deg, var(--user-accent-soft), color-mix(in srgb, var(--product-accent-blue) 12%, var(--user-surface))); }
|
||||
.creation-mode-tabs[data-active-mode="video"] .creation-mode-indicator { background: linear-gradient(115deg, var(--user-surface), var(--user-accent-soft)); }
|
||||
.creation-mode-tabs[data-active-mode="image"] .creation-mode-indicator { background: color-mix(in srgb, var(--product-accent-green) 9%, var(--user-surface)); }
|
||||
.creation-mode-tabs[data-active-mode="text"] .creation-mode-indicator { background: color-mix(in srgb, var(--product-accent-orange) 9%, var(--user-surface)); }
|
||||
.creation-agent-entry { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 16px 24px; padding: 28px; margin-bottom: 20px; border-radius: var(--user-radius-card); background: radial-gradient(ellipse at top right, var(--user-accent-soft), transparent 60%), var(--user-surface); animation: product-card-enter var(--product-enter) var(--product-ease) backwards; }
|
||||
.creation-mode-spark { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .42; box-shadow: none; }
|
||||
.creation-agent-entry { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 16px 24px; padding: 28px; margin-bottom: 20px; border-radius: var(--user-radius-card); background: var(--user-surface); animation: product-card-enter var(--product-enter) var(--product-ease) backwards; }
|
||||
.creation-agent-orb { grid-row: span 2; }
|
||||
.creation-agent-eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .14em; color: var(--user-accent); }
|
||||
.creation-agent-copy h2 { margin: 4px 0 8px; font-size: 21px; font-weight: 650; color: var(--user-ink); }
|
||||
@@ -69,34 +61,27 @@
|
||||
min-width: 36px !important;
|
||||
height: 36px !important;
|
||||
border-radius: 999px !important;
|
||||
background: color-mix(in srgb, var(--product-accent-blue) 12%, var(--user-surface-muted)) !important;
|
||||
color: var(--product-accent-blue) !important;
|
||||
background: var(--user-surface-muted) !important;
|
||||
color: var(--user-ink-muted) !important;
|
||||
transition: background var(--user-motion), color var(--user-motion), transform var(--user-motion), box-shadow var(--user-motion) !important;
|
||||
}
|
||||
.app-user-workspace .creation-voice-trigger.ant-btn:hover,
|
||||
.app-user-workspace .creation-voice-trigger.ant-btn:focus-visible {
|
||||
background: color-mix(in srgb, var(--product-accent-blue) 20%, var(--user-surface)) !important;
|
||||
color: var(--product-accent-blue) !important;
|
||||
background: var(--user-surface-hover) !important;
|
||||
color: var(--user-ink) !important;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 8px 18px color-mix(in srgb, var(--product-accent-blue) 18%, transparent);
|
||||
box-shadow: 0 8px 18px color-mix(in srgb, var(--user-ink) 8%, transparent);
|
||||
}
|
||||
.app-user-workspace .creation-chat-control > svg:first-child,
|
||||
.app-user-workspace .creation-model-picker .canvas-model-picker-trigger-icon { transition: transform var(--user-motion), color var(--user-motion); }
|
||||
.app-user-workspace .creation-model-picker .canvas-model-picker-trigger-icon { transition: transform var(--user-motion), color var(--user-motion); color: currentColor; }
|
||||
.app-user-workspace .creation-chat-control:hover > svg:first-child,
|
||||
.app-user-workspace .creation-model-picker:hover .canvas-model-picker-trigger-icon { transform: scale(1.08); }
|
||||
.app-user-workspace .creation-chat-control:has(.lucide-wand-sparkles) > svg:first-child { color: var(--product-accent-violet); }
|
||||
.app-user-workspace .creation-chat-control:has(.lucide-clock-3) > svg:first-child { color: var(--product-accent-orange); }
|
||||
.app-user-workspace .creation-chat-control:has(.lucide-sliders-horizontal) > svg:first-child { color: var(--product-accent-green); }
|
||||
.app-user-workspace .creation-chat-control:has(.lucide-waves) > svg:first-child { color: var(--product-accent-cyan); }
|
||||
.app-user-workspace .creation-chat-control:has(.lucide-brain) > svg:first-child { color: var(--product-accent-blue); }
|
||||
.app-user-workspace .creation-chat-control.is-clear > svg:first-child { color: #c45b5b; }
|
||||
.app-user-workspace .creation-chat-control.is-clear:hover { background: color-mix(in srgb, #c45b5b 12%, var(--user-surface)) !important; color: #c45b5b !important; }
|
||||
.app-user-workspace .creation-model-picker .canvas-model-picker-trigger-icon { color: var(--product-accent-orange); }
|
||||
.app-user-workspace .creation-model-picker:hover .canvas-model-picker-trigger-icon { transform: scale(1.06); }
|
||||
.app-user-workspace .creation-chat-control.is-clear:hover { background: color-mix(in srgb, var(--status-error, #c45b5b) 12%, var(--user-surface)) !important; color: var(--status-error, #c45b5b) !important; }
|
||||
.app-user-workspace .creation-launchpad .creation-reference-add-button:hover:not(:disabled) {
|
||||
border-style: solid;
|
||||
border-color: var(--user-accent);
|
||||
background: color-mix(in srgb, var(--user-accent) 12%, var(--user-surface));
|
||||
color: var(--user-accent);
|
||||
border-color: var(--user-border-strong);
|
||||
background: var(--user-surface-hover);
|
||||
color: var(--user-ink);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.app-user-workspace .creation-launchpad .creation-reference-add-button:active:not(:disabled) { transform: scale(.97); }
|
||||
|
||||
Reference in new issue
Block a user