feat(assets): 文件夹主题 - 新增多主题皮肤并同步主线
This commit is contained in:
@@ -783,6 +783,7 @@
|
||||
--prompt-panel-label-fs: var(--fs-label); /* 11px 标签 */
|
||||
--settings-model-option-min-height: 76px;
|
||||
--prompt-panel-heading-fs: var(--fs-heading); /* 16px 区标题 */
|
||||
--creation-media-pending-max-width: 320px;
|
||||
|
||||
/* 进度条(对应 #98 决策3 任务进度)*/
|
||||
--progress-bar-height: 6px;
|
||||
@@ -3201,23 +3202,6 @@
|
||||
html:not(.dark) .creation-chat-control:hover,
|
||||
html:not(.dark) .creation-chat-composer .creation-model-picker.canvas-composer-model-picker:hover { border-color: rgba(20, 26, 35, .2) !important; background: #e9edf1 !important; }
|
||||
|
||||
.creation-chat-submit {
|
||||
display: grid;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
flex: 0 0 auto;
|
||||
place-items: center;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
background: #303540;
|
||||
color: #f1f3f5;
|
||||
transition: background-color 140ms ease, color 140ms ease, transform 140ms var(--motion-ease-out);
|
||||
}
|
||||
.creation-chat-submit:hover:not(:disabled) { background: #f3f4f6; color: #121417; transform: translateY(-1px); }
|
||||
.creation-chat-submit:active:not(:disabled) { transform: scale(.96); }
|
||||
.creation-chat-submit:disabled { cursor: not-allowed; background: #282c33; color: #5c6370; }
|
||||
.creation-chat-submit.is-stopping { background: #bd4949; color: white; }
|
||||
|
||||
.creation-control-popover-surface {
|
||||
border: 0 !important;
|
||||
border-radius: 12px !important;
|
||||
@@ -3317,7 +3301,6 @@
|
||||
.creation-chat-controls { max-width: calc(100% - 42px); gap: 5px; }
|
||||
.creation-chat-control, .creation-chat-composer .creation-model-picker.canvas-composer-model-picker { height: 34px !important; padding: 0 8px !important; font-size: 11px; }
|
||||
.creation-chat-composer .creation-model-picker.canvas-composer-model-picker { width: min(152px, 48vw) !important; }
|
||||
.creation-chat-submit { width: 36px; height: 36px; }
|
||||
.creation-thread-stage { padding-top: 28px; }
|
||||
.creation-assistant-message { margin-bottom: 32px; }
|
||||
.creation-message-content, .creation-message-error { padding-left: 0; }
|
||||
@@ -4075,8 +4058,9 @@
|
||||
.task-record-dot.is-queued { background: var(--palette-status-loading); }
|
||||
.task-record-dot.is-failed { background: var(--palette-status-error); }
|
||||
.task-record-dot.is-idle { background: color-mix(in srgb, var(--foreground) 30%, transparent); }
|
||||
.task-record-thumb { position: relative; display: grid; width: 84px; height: 60px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 0; border-radius: var(--r-md); background: color-mix(in srgb, var(--foreground) 4%, transparent); color: color-mix(in srgb, var(--foreground) 28%, transparent); }
|
||||
.task-record-thumb img, .task-record-thumb video { width: 100%; height: 100%; object-fit: cover; }
|
||||
.task-record-thumb { position: relative; display: grid; width: 84px; height: 60px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 0; border-radius: var(--r-md); background: color-mix(in srgb, var(--foreground) 4%, transparent); padding: 0; color: color-mix(in srgb, var(--foreground) 28%, transparent); }
|
||||
/* 媒体脱离 Grid 固有尺寸计算,避免竖图按原始宽高比把固定缩略图撑出任务行。 */
|
||||
.task-record-thumb img, .task-record-thumb video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
|
||||
.task-record-meta { display: flex; min-width: 0; align-items: center; gap: 8px; margin-top: 7px; overflow: hidden; color: color-mix(in srgb, var(--foreground) 40%, transparent); font-size: var(--fs-label); white-space: nowrap; }
|
||||
.task-record-meta-canvas { display: inline-flex; min-width: 0; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; }
|
||||
.task-record-meta-canvas svg { flex: 0 0 auto; opacity: .7; }
|
||||
@@ -5098,16 +5082,17 @@
|
||||
box-shadow: 0 24px 72px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
|
||||
}
|
||||
|
||||
/* Dock 命令按钮:BottomMenu 式干净状态——透明默认 + hover/active 仅换底色,
|
||||
去掉描边/内阴影/发光阴影的多层反馈,hover 与 active 用同一套视觉语言,
|
||||
保持 dock 整体性(参考 uselayouts BottomMenu 的 bg-muted/bg-accent 切换)。*/
|
||||
.aceternity-dock-command {
|
||||
border-color: color-mix(in srgb, currentColor 11%, transparent);
|
||||
background: var(--dock-command-bg);
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 5px 15px rgba(15, 23, 42, 0.08);
|
||||
box-shadow: none;
|
||||
transition:
|
||||
border-color var(--motion-instant) ease-out,
|
||||
background-color var(--motion-instant) ease-out,
|
||||
color var(--motion-instant) ease-out,
|
||||
box-shadow var(--motion-instant) ease-out;
|
||||
color var(--motion-instant) ease-out;
|
||||
}
|
||||
|
||||
.aceternity-dock-command > span:first-child svg {
|
||||
@@ -5117,33 +5102,12 @@
|
||||
}
|
||||
|
||||
.aceternity-dock-command:hover:not(:disabled) {
|
||||
border-color: color-mix(in srgb, currentColor 20%, transparent);
|
||||
background: var(--dock-command-hover);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 30px rgba(15, 23, 42, 0.14);
|
||||
}
|
||||
|
||||
.aceternity-dock-command.is-labeled {
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.aceternity-dock-command.is-labeled:hover:not(:disabled) {
|
||||
border-color: transparent;
|
||||
background: var(--dock-command-hover);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.aceternity-dock-command.is-labeled.is-active {
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.aceternity-dock-command.is-active {
|
||||
border-color: color-mix(in srgb, var(--dock-command-active) 28%, transparent);
|
||||
background: var(--dock-command-active);
|
||||
color: var(--dock-command-active-text);
|
||||
box-shadow: 0 12px 30px color-mix(in srgb, var(--dock-command-active) 22%, transparent);
|
||||
}
|
||||
|
||||
.aceternity-dock-command.is-active > span:first-child,
|
||||
@@ -5153,19 +5117,6 @@
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.aceternity-dock-command.is-quiet {
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.aceternity-dock-command.is-quiet:hover:not(:disabled),
|
||||
.aceternity-dock-command.is-quiet.is-active {
|
||||
border-color: transparent;
|
||||
background: var(--dock-command-hover);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.aceternity-dock-command.is-danger {
|
||||
color: var(--dock-command-danger);
|
||||
}
|
||||
@@ -7218,6 +7169,7 @@ html:not(.dark) .creation-chat-reference:hover:not(:disabled) { background: rgba
|
||||
.creation-chat-controls {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex: 1 1 auto;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
@@ -7267,26 +7219,6 @@ html:not(.dark) .creation-chat-control.is-mode,
|
||||
html:not(.dark) .creation-chat-control:hover,
|
||||
html:not(.dark) .creation-chat-composer .creation-model-picker.canvas-composer-model-picker:hover { background: rgba(29, 33, 37, .06) !important; color: var(--creation-text) !important; }
|
||||
|
||||
.creation-chat-submit {
|
||||
display: grid;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
flex: 0 0 auto;
|
||||
place-items: center;
|
||||
border: 0;
|
||||
border-radius: 9px;
|
||||
background: #f3f4f5;
|
||||
color: #1b1d21;
|
||||
cursor: pointer;
|
||||
transition: transform 140ms var(--motion-ease-out), background-color 140ms ease;
|
||||
}
|
||||
|
||||
.creation-chat-submit:hover:not(:disabled) { background: #fff; transform: translateY(-1px); }
|
||||
.creation-chat-submit:disabled { background: #292d34; color: #606771; cursor: not-allowed; }
|
||||
.creation-chat-submit.is-stopping { background: #d06060; color: #fff; }
|
||||
html:not(.dark) .creation-chat-submit { background: #202328; color: #fff; }
|
||||
html:not(.dark) .creation-chat-submit:hover:not(:disabled) { background: #2d3139; }
|
||||
|
||||
.creation-control-popover-surface,
|
||||
.creation-model-picker-surface {
|
||||
overflow: hidden;
|
||||
@@ -7396,7 +7328,7 @@ html:not(.dark) .creation-model-picker-menu .canvas-model-picker-option > span:f
|
||||
.creation-empty-workspace { width: calc(100% - 28px); padding-bottom: 8vh; }
|
||||
.creation-chat-writing-surface, .creation-chat-composer.is-empty .creation-chat-writing-surface { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 14px 12px 5px; }
|
||||
.creation-chat-dock { align-items: flex-end; padding: 4px 7px 8px 8px; }
|
||||
.creation-chat-controls { max-width: calc(100% - 38px); }
|
||||
.creation-chat-controls { max-width: none; }
|
||||
.creation-chat-control, .creation-chat-composer .creation-model-picker.canvas-composer-model-picker { height: 29px !important; padding: 0 6px !important; font-size: 10px; }
|
||||
.creation-chat-composer .creation-model-picker.canvas-composer-model-picker { width: min(136px, 42vw) !important; }
|
||||
.creation-thread-stage, .creation-thread-composer { width: calc(100% - 28px); }
|
||||
@@ -7405,8 +7337,7 @@ html:not(.dark) .creation-model-picker-menu .canvas-model-picker-option > span:f
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.creation-empty-composer,
|
||||
.creation-chat-reference,
|
||||
.creation-chat-submit { animation: none; transition: none; }
|
||||
.creation-chat-reference { animation: none; transition: none; }
|
||||
}
|
||||
|
||||
/* 创作入口与空间导航在同一块画布上,避免视觉断层。 */
|
||||
@@ -7839,44 +7770,15 @@ html:not(.dark) .app-workspace-shell.is-creation-workspace .app-workspace-stage
|
||||
.creation-chat-reference.is-paper:hover:not(:disabled) { background: #2b2e37; color: #f1f3f5; transform: rotate(-4deg) translateY(-2px); }
|
||||
.creation-chat-reference.is-paper:active:not(:disabled) { transform: rotate(-4deg) translateY(0) scale(.97); }
|
||||
.creation-chat-reference.is-paper:focus-visible { outline: 2px solid var(--control-focus-ring); outline-offset: 3px; }
|
||||
.creation-chat-reference-slot {
|
||||
position: relative;
|
||||
width: 58px;
|
||||
height: 74px;
|
||||
align-self: start;
|
||||
}
|
||||
.creation-chat-reference-preview {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--creation-border);
|
||||
border-radius: var(--r-sm);
|
||||
background: var(--creation-surface);
|
||||
padding: 0;
|
||||
cursor: zoom-in;
|
||||
}
|
||||
.creation-chat-reference-preview img,
|
||||
.creation-chat-reference-preview video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--motion-instant) var(--motion-ease-out); }
|
||||
.creation-chat-reference-preview > span { position: absolute; bottom: var(--space-1); left: var(--space-1); display: grid; width: var(--space-5); height: var(--space-5); place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .68); color: white; opacity: 0; transition: opacity var(--motion-instant) ease; }
|
||||
.creation-chat-reference-preview > span svg { width: var(--space-3); height: var(--space-3); }
|
||||
.creation-chat-reference-preview:hover img,
|
||||
.creation-chat-reference-preview:hover video { transform: scale(1.035); }
|
||||
.creation-chat-reference-preview:hover > span,
|
||||
.creation-chat-reference-preview:focus-visible > span { opacity: 1; }
|
||||
.creation-chat-reference-preview:focus-visible { outline: 2px solid var(--control-focus-ring); outline-offset: var(--space-half); }
|
||||
.creation-chat-reference-remove,
|
||||
.creation-chat-reference-add { position: absolute; z-index: 1; display: grid; place-items: center; border: 0; border-radius: 50%; color: white; transition: transform var(--motion-instant) var(--motion-ease-out), opacity var(--motion-instant) ease; }
|
||||
.creation-chat-reference-remove { top: calc(var(--space-1) * -1); right: calc(var(--space-1) * -1); width: var(--space-5); height: var(--space-5); background: rgba(0, 0, 0, .78); opacity: 0; }
|
||||
.creation-chat-reference-add { right: calc(var(--space-1) * -1); bottom: calc(var(--space-1) * -1); width: var(--space-6); height: var(--space-6); background: var(--btn-solid-bg); color: var(--btn-solid-fg); box-shadow: var(--elevation-card); }
|
||||
.creation-chat-reference-remove svg,
|
||||
.creation-chat-reference-add svg { width: var(--space-3); height: var(--space-3); }
|
||||
.creation-chat-reference-slot:hover .creation-chat-reference-remove,
|
||||
.creation-chat-reference-remove:focus-visible { opacity: 1; }
|
||||
.creation-chat-reference-remove:hover,
|
||||
.creation-chat-reference-add:hover:not(:disabled) { transform: scale(1.06); }
|
||||
.creation-chat-reference-add:disabled,
|
||||
.creation-chat-reference-remove:disabled { opacity: .42; }
|
||||
.creation-chat-reference-media { position: relative; overflow: hidden; padding: 0; }
|
||||
.creation-chat-reference-media .creation-chat-attachment-preview > span { display: grid; }
|
||||
.creation-chat-reference-media:hover .creation-chat-attachment-remove,
|
||||
.creation-chat-reference-media .creation-chat-attachment-remove:focus-visible { opacity: 1; }
|
||||
.creation-chat-reference-media button svg { width: var(--space-3); height: var(--space-3); }
|
||||
.creation-chat-reference-add { position: absolute; bottom: var(--space-1); left: var(--space-1); display: grid; width: var(--space-5); height: var(--space-5); place-items: center; border: var(--stroke-1) solid color-mix(in srgb, var(--color-neutral-0) 18%, transparent); border-radius: var(--r-xs); background: color-mix(in srgb, var(--color-neutral-950) 76%, transparent); color: var(--color-neutral-0); transition: background-color var(--motion-dur-fast) var(--motion-ease-out), transform var(--motion-dur-fast) var(--motion-ease-out); }
|
||||
.creation-chat-reference-add:hover { background: color-mix(in srgb, var(--color-neutral-950) 90%, transparent); transform: translateY(-1px); }
|
||||
.creation-chat-reference-add:active { transform: scale(.96); }
|
||||
.creation-chat-reference-add:focus-visible { outline: var(--stroke-2) solid var(--control-focus-ring); outline-offset: var(--space-half); }
|
||||
.creation-chat-composer .creation-chat-writing-surface { grid-template-columns: 62px minmax(0, 1fr); gap: 16px; }
|
||||
|
||||
.creation-custom-value {
|
||||
@@ -8503,11 +8405,15 @@ html:not(.dark) .creation-history-drawer-root {
|
||||
.creation-history-search input::placeholder { color: var(--creation-history-muted); }
|
||||
|
||||
.creation-history-list { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
|
||||
.creation-history-list > li { min-width: 0; }
|
||||
.creation-history-list button { display: flex; width: 100%; min-height: 78px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; padding: 12px 10px 13px; color: var(--creation-history-text); text-align: left; transition: background-color 150ms ease, border-color 150ms ease; }
|
||||
.creation-history-list button:hover { background: var(--creation-history-hover); }
|
||||
.creation-history-list button:focus-visible { outline: 2px solid color-mix(in srgb, var(--creation-history-accent) 68%, transparent); outline-offset: -2px; }
|
||||
.creation-history-list > li.is-active button { border-color: color-mix(in srgb, var(--creation-history-accent) 28%, transparent); background: color-mix(in srgb, var(--creation-history-accent) 7%, var(--creation-history-surface)); }
|
||||
.creation-history-list > li { position: relative; min-width: 0; }
|
||||
.creation-history-item-main { display: flex; width: 100%; min-height: 78px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; padding: 12px 50px 13px 10px; color: var(--creation-history-text); text-align: left; transition: background-color 150ms ease, border-color 150ms ease; }
|
||||
.creation-history-item-main:hover { background: var(--creation-history-hover); }
|
||||
.creation-history-item-main:focus-visible { outline: 2px solid color-mix(in srgb, var(--creation-history-accent) 68%, transparent); outline-offset: -2px; }
|
||||
.creation-history-list > li.is-active .creation-history-item-main { border-color: color-mix(in srgb, var(--creation-history-accent) 28%, transparent); background: color-mix(in srgb, var(--creation-history-accent) 7%, var(--creation-history-surface)); }
|
||||
.creation-history-delete { position: absolute; z-index: 1; top: 50%; right: 9px; display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--creation-history-muted); transform: translateY(-50%); transition: background-color 150ms ease, color 150ms ease; }
|
||||
.creation-history-delete svg { width: 16px; height: 16px; }
|
||||
.creation-history-delete:hover { background: color-mix(in srgb, var(--destructive) 12%, transparent); color: var(--destructive); }
|
||||
.creation-history-delete:focus-visible { outline: 2px solid color-mix(in srgb, var(--destructive) 60%, transparent); outline-offset: 1px; }
|
||||
.creation-history-time { display: flex; width: 100%; align-items: center; justify-content: space-between; color: var(--creation-history-muted); font-size: var(--fs-micro); font-variant-numeric: tabular-nums; line-height: 1.3; }
|
||||
.creation-history-time em { border: 1px solid var(--creation-history-line); border-radius: var(--r-xs); padding: 2px 5px; color: var(--creation-history-muted); font-size: var(--fs-micro); font-style: normal; }
|
||||
.creation-history-item-heading { width: 100%; min-width: 0; overflow: hidden; font-size: var(--fs-label); font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
|
||||
@@ -10908,3 +10814,322 @@ html:not(.dark) .creation-home .storyboard-workbench-bar-action:hover { backgrou
|
||||
vertical-align: -0.08em;
|
||||
accent-color: var(--primary);
|
||||
}
|
||||
|
||||
/* ===== 创作页 · 连续对话与媒体状态 ===== */
|
||||
.creation-home .creation-thread-workbench {
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.creation-home .creation-thread-toolbar {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-3) var(--space-6);
|
||||
}
|
||||
|
||||
.creation-home .creation-thread-scroll {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
|
||||
.creation-home .creation-view-switch {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-1);
|
||||
border-radius: var(--r-md);
|
||||
background: var(--creation-surface-muted);
|
||||
padding: var(--space-1);
|
||||
}
|
||||
|
||||
.creation-home .creation-view-switch button {
|
||||
display: inline-flex;
|
||||
min-height: var(--space-8);
|
||||
align-items: center;
|
||||
gap: var(--space-1);
|
||||
border: 0;
|
||||
border-radius: var(--r-sm);
|
||||
background: transparent;
|
||||
color: var(--creation-muted);
|
||||
padding: 0 var(--space-3);
|
||||
font-size: var(--fs-caption);
|
||||
cursor: pointer;
|
||||
transition: background-color var(--motion-state) ease, color var(--motion-state) ease;
|
||||
}
|
||||
|
||||
.creation-home .creation-view-switch button[aria-pressed="true"] {
|
||||
background: var(--creation-surface-selected);
|
||||
color: var(--creation-text);
|
||||
}
|
||||
|
||||
.creation-home .creation-view-switch button:focus-visible {
|
||||
outline: 2px solid var(--creation-accent);
|
||||
outline-offset: 1px;
|
||||
}
|
||||
|
||||
.creation-home .creation-view-switch svg { width: var(--space-4); height: var(--space-4); }
|
||||
|
||||
.creation-home .storyboard-workbench-bar-actions .creation-view-switch { margin-right: var(--space-2); }
|
||||
|
||||
.creation-home .creation-thread-stage {
|
||||
width: min(900px, calc(100% - 56px));
|
||||
min-height: 100%;
|
||||
margin: 0 auto;
|
||||
padding: var(--space-8) 0 var(--space-6);
|
||||
}
|
||||
|
||||
.creation-home .creation-thread-composer {
|
||||
position: relative;
|
||||
z-index: 20;
|
||||
bottom: auto;
|
||||
width: min(900px, calc(100% - 56px));
|
||||
margin: 0 auto;
|
||||
padding: var(--space-2) 0 var(--space-5);
|
||||
background: var(--creation-bg);
|
||||
}
|
||||
|
||||
.creation-home .creation-user-message {
|
||||
display: flex;
|
||||
width: min(680px, 86%);
|
||||
max-width: none;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: var(--space-2);
|
||||
margin: 0 0 var(--space-10) auto;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
color: var(--creation-text);
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
html:not(.dark) .creation-home .creation-user-message { background: transparent; }
|
||||
|
||||
.creation-home .creation-user-message-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
color: var(--creation-faint);
|
||||
font-size: var(--fs-label);
|
||||
}
|
||||
|
||||
.creation-home .creation-user-message-meta time,
|
||||
.creation-home .creation-message-heading time { color: var(--creation-faint); font-size: var(--fs-micro); }
|
||||
|
||||
.creation-home .creation-user-message-copy {
|
||||
display: grid;
|
||||
width: var(--space-5);
|
||||
height: var(--space-5);
|
||||
flex: 0 0 var(--space-5);
|
||||
place-items: center;
|
||||
border: 0;
|
||||
border-radius: var(--r-xs);
|
||||
background: transparent;
|
||||
color: var(--creation-faint);
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
opacity: .66;
|
||||
transition: background-color var(--motion-state) ease, color var(--motion-state) ease, opacity var(--motion-state) ease;
|
||||
}
|
||||
|
||||
.creation-home .creation-user-message-copy:hover {
|
||||
background: var(--creation-surface-hover);
|
||||
color: var(--creation-text);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.creation-home .creation-user-message-copy:focus-visible { outline: 2px solid var(--creation-accent); outline-offset: 1px; }
|
||||
.creation-home .creation-user-message-copy svg { width: var(--space-3); height: var(--space-3); }
|
||||
|
||||
.creation-home .creation-user-message-copy-wrap {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.creation-home .creation-user-message-copy-wrap p {
|
||||
margin: 0;
|
||||
color: var(--creation-text);
|
||||
font-size: var(--fs-body);
|
||||
line-height: 1.75;
|
||||
text-align: right;
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.creation-home .creation-assistant-message {
|
||||
width: min(760px, 100%);
|
||||
max-width: none;
|
||||
margin: 0 0 var(--space-10);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.creation-home .creation-message-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.creation-home .creation-message-heading strong { color: var(--creation-text); font-size: var(--fs-body); font-weight: 620; }
|
||||
.creation-home .creation-message-progress-copy { color: var(--creation-muted); font-size: var(--fs-body); }
|
||||
|
||||
.creation-home .creation-message-content {
|
||||
max-width: 720px;
|
||||
padding: var(--space-3) 0 0 var(--space-8);
|
||||
}
|
||||
|
||||
.creation-home .creation-media-pending {
|
||||
position: relative;
|
||||
display: grid;
|
||||
width: min(var(--creation-media-pending-max-width), calc(100% - var(--space-8)));
|
||||
min-height: 0;
|
||||
isolation: isolate;
|
||||
place-items: center;
|
||||
overflow: hidden;
|
||||
margin: var(--space-3) 0 0 var(--space-8);
|
||||
border: 0;
|
||||
border-radius: var(--r-lg);
|
||||
background: linear-gradient(115deg, color-mix(in srgb, var(--status-loading) 16%, var(--creation-surface-muted)), color-mix(in srgb, var(--creation-text) 7%, var(--creation-surface)), color-mix(in srgb, var(--status-loading) 28%, var(--creation-surface-muted)), color-mix(in srgb, var(--creation-text) 10%, var(--creation-surface)));
|
||||
background-size: 280% 280%;
|
||||
padding: 0;
|
||||
animation: creation-media-breathe 2.4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.creation-home .creation-media-pending::before {
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
inset: 0;
|
||||
background: linear-gradient(105deg, transparent 12%, color-mix(in srgb, var(--status-loading) 24%, transparent) 48%, color-mix(in srgb, var(--creation-text) 12%, transparent) 58%, transparent 88%);
|
||||
content: "";
|
||||
opacity: .38;
|
||||
transform: translateX(-38%);
|
||||
animation: creation-media-breathe-layer 2.4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.creation-home .creation-media-pending-icon {
|
||||
display: grid;
|
||||
width: var(--space-12);
|
||||
height: var(--space-12);
|
||||
place-items: center;
|
||||
border-radius: var(--r-md);
|
||||
background: color-mix(in srgb, var(--creation-surface) 72%, transparent);
|
||||
color: var(--creation-text);
|
||||
animation: creation-media-icon-breathe 1.8s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.creation-home .creation-media-pending-icon svg { width: var(--space-5); height: var(--space-5); }
|
||||
|
||||
.creation-home .creation-media-pending > button {
|
||||
position: absolute;
|
||||
right: var(--space-3);
|
||||
bottom: var(--space-3);
|
||||
min-height: var(--space-8);
|
||||
border: 0;
|
||||
border-radius: var(--r-sm);
|
||||
background: color-mix(in srgb, var(--creation-surface) 78%, transparent);
|
||||
color: var(--creation-muted);
|
||||
padding: 0 var(--space-3);
|
||||
font-size: var(--fs-label);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.creation-home .creation-media-result { max-width: 680px; padding: var(--space-3) 0 0 var(--space-8); }
|
||||
.creation-home .creation-image-result-grid { display: flex; max-width: 680px; flex-wrap: wrap; gap: var(--space-2); }
|
||||
.creation-home .creation-image-result { width: min(320px, 100%); aspect-ratio: auto; background: var(--creation-surface-muted); }
|
||||
.creation-home .creation-image-result img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; }
|
||||
.creation-home .creation-video-result { width: min(680px, 100%); }
|
||||
.creation-home .creation-video-result video { display: block; width: 100%; height: 100%; object-fit: contain; }
|
||||
|
||||
.creation-home .creation-media-error {
|
||||
display: flex;
|
||||
width: min(680px, calc(100% - var(--space-8)));
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
margin: var(--space-3) 0 0 var(--space-8);
|
||||
color: var(--status-error);
|
||||
font-size: var(--fs-caption);
|
||||
}
|
||||
|
||||
.creation-home .creation-media-error button {
|
||||
display: inline-flex;
|
||||
min-height: var(--space-8);
|
||||
align-items: center;
|
||||
gap: var(--space-1);
|
||||
border: 0;
|
||||
border-radius: var(--r-sm);
|
||||
background: color-mix(in srgb, var(--status-error) 10%, transparent);
|
||||
color: inherit;
|
||||
padding: 0 var(--space-3);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.creation-home .creation-media-error svg { width: var(--space-4); height: var(--space-4); }
|
||||
|
||||
.creation-home .creation-chat-attachment-preview.is-file {
|
||||
width: min(220px, 100%);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.creation-home .creation-chat-file-icon {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
color: var(--creation-muted);
|
||||
padding: 0 var(--space-2);
|
||||
}
|
||||
|
||||
.creation-home .creation-chat-file-icon > svg { width: var(--space-4); height: var(--space-4); flex: 0 0 auto; }
|
||||
.creation-home .creation-chat-file-icon em { overflow: hidden; font-size: var(--fs-label); font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
.creation-home .creation-user-message-attachments button.is-file {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: var(--creation-surface-muted);
|
||||
color: var(--creation-muted);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.creation-home .creation-user-message-attachments button.is-file > svg { width: var(--space-4); height: var(--space-4); }
|
||||
|
||||
@keyframes creation-media-breathe {
|
||||
0%, 100% { background-position: 0% 50%; filter: brightness(.9) saturate(.82); }
|
||||
50% { background-position: 100% 50%; filter: brightness(1.12) saturate(1.18); }
|
||||
}
|
||||
|
||||
@keyframes creation-media-breathe-layer {
|
||||
0%, 100% { opacity: .24; transform: translateX(-38%) scale(1); }
|
||||
50% { opacity: .72; transform: translateX(38%) scale(1.04); }
|
||||
}
|
||||
|
||||
@keyframes creation-media-icon-breathe {
|
||||
0%, 100% { opacity: .58; transform: scale(.94); }
|
||||
50% { opacity: 1; transform: scale(1); }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.creation-home .creation-media-pending,
|
||||
.creation-home .creation-media-pending::before,
|
||||
.creation-home .creation-media-pending-icon { animation: none; }
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
.creation-home .creation-thread-toolbar { align-items: flex-end; padding: var(--space-3); }
|
||||
.creation-home .creation-view-switch button { padding: 0 var(--space-2); }
|
||||
.creation-home .creation-thread-stage,
|
||||
.creation-home .creation-thread-composer { width: calc(100% - 28px); }
|
||||
.creation-home .creation-thread-stage { padding-top: var(--space-5); }
|
||||
.creation-home .creation-user-message { width: 92%; max-width: none; }
|
||||
.creation-home .creation-message-content,
|
||||
.creation-home .creation-media-result { padding-left: 0; }
|
||||
.creation-home .creation-media-pending { width: min(var(--creation-media-pending-max-width), 100%); margin-left: 0; }
|
||||
.creation-home .creation-media-error { width: 100%; margin-left: 0; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user