精修 WebUI 第十七轮:sticky 章节 / 语义着色 / 搜索计数 / 空状态升级
- sectionTitle 改 sticky 在长 panel 内吸附顶部,背景渐变 + 6px 模糊;cardTitle/summary 不变 - 福袋统计语义着色:参与成功/中奖 → success;失败 → error;未中奖 → muted;通过 .stateOk/.stateError/.stateWarn/.stateMuted 类切换 - 配置搜索右侧加实时匹配计数徽章("X 项");搜索清空时隐藏 - 空状态占位升级:从单色边框圆点 → 28px 聊天泡 SVG icon (currentColor mask) + 双行布局,更显设计 - cache-bust v19 → v20
This commit is contained in:
1 parent
51d8d53a2b
commit
632951d004
3 files changed
+67
-10
No files matched your search
+45
-8
@@ -1019,6 +1019,25 @@ svg {
|
||||
transition: opacity var(--motion-fast);
|
||||
}
|
||||
|
||||
.workspaceSearchCount {
|
||||
position: absolute;
|
||||
right: 30px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
padding: 1px 7px;
|
||||
border-radius: 99px;
|
||||
background: var(--primary-soft);
|
||||
color: var(--primary-accent-text);
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
font-size: 10px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.workspaceSearchCount[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.workspaceSearch:focus-within .workspaceSearchKbd,
|
||||
.workspaceSearch input:not(:placeholder-shown) ~ .workspaceSearchKbd {
|
||||
opacity: 0;
|
||||
@@ -1224,6 +1243,18 @@ svg {
|
||||
text-transform: uppercase;
|
||||
line-height: 1.3;
|
||||
border-bottom: 1px solid var(--border);
|
||||
position: sticky;
|
||||
top: 64px;
|
||||
z-index: 4;
|
||||
background: linear-gradient(180deg, var(--surface) 70%, color-mix(in oklab, var(--surface) 0%, transparent));
|
||||
backdrop-filter: blur(6px);
|
||||
}
|
||||
|
||||
.cardTitle.sectionTitle,
|
||||
summary.sectionTitle {
|
||||
position: static;
|
||||
background: transparent;
|
||||
backdrop-filter: none;
|
||||
}
|
||||
|
||||
.sectionTitle::before {
|
||||
@@ -1462,11 +1493,12 @@ input[type="number"]::-webkit-outer-spin-button {
|
||||
.chart > .hint:only-child,
|
||||
.reservationsContent > .hint:only-child {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
min-height: 60px;
|
||||
padding: 16px;
|
||||
min-height: 80px;
|
||||
padding: 24px 16px;
|
||||
border: 1px dashed var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
background: color-mix(in oklab, var(--surface-soft) 60%, transparent);
|
||||
@@ -1479,12 +1511,13 @@ input[type="number"]::-webkit-outer-spin-button {
|
||||
.chart > .hint:only-child::before,
|
||||
.reservationsContent > .hint:only-child::before {
|
||||
content: "";
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border: 1.5px dashed currentColor;
|
||||
border-radius: 50%;
|
||||
opacity: 0.6;
|
||||
flex: 0 0 14px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
flex: 0 0 28px;
|
||||
background-color: currentColor;
|
||||
-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>") no-repeat center / contain;
|
||||
mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>") no-repeat center / contain;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.divider {
|
||||
@@ -1568,6 +1601,10 @@ input[type="number"]::-webkit-outer-spin-button {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.statValue.stateWarn {
|
||||
color: var(--warning);
|
||||
}
|
||||
|
||||
.statValue.hasCopy {
|
||||
position: relative;
|
||||
padding-right: 28px;
|
||||
|
||||
Reference in new issue
Block a user