精修 WebUI 第四轮:表单细节 + 滚动行为
- inline2 双输入框视觉合并:连体边框、共享圆角、focus 时 z-index 提升 - inline2 内的 span(如 "~")改为正中对齐分隔符 - rowActions 加 border-top + padding-top;primary 按钮自然居前(order: -1) - html scroll-behavior smooth;prefers-reduced-motion 时回退 auto - cache-bust v6 → v7
This commit is contained in:
1 parent
276235408e
commit
aa5065590a
2 files changed
+57
-5
No files matched your search
+2
-2
@@ -15,7 +15,7 @@
|
||||
} catch (e) {}
|
||||
})();
|
||||
</script>
|
||||
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v6" />
|
||||
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v7" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="app">
|
||||
@@ -1222,6 +1222,6 @@
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script src="app.js?v=console-20260520-theme-v6"></script>
|
||||
<script src="app.js?v=console-20260520-theme-v7"></script>
|
||||
</body>
|
||||
</html>
|
||||
+55
-3
@@ -154,6 +154,16 @@ body {
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Inter", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
@@ -958,15 +968,57 @@ summary.sectionTitle {
|
||||
.inline2 {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
gap: 0;
|
||||
min-width: 0;
|
||||
border-radius: var(--radius-md);
|
||||
isolation: isolate;
|
||||
}
|
||||
|
||||
.inline2 > .input,
|
||||
.inline2 > input {
|
||||
border-radius: 0;
|
||||
margin-left: -1px;
|
||||
}
|
||||
|
||||
.inline2 > .input:first-child,
|
||||
.inline2 > input:first-child {
|
||||
border-top-left-radius: var(--radius-md);
|
||||
border-bottom-left-radius: var(--radius-md);
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.inline2 > .input:last-child,
|
||||
.inline2 > input:last-child {
|
||||
border-top-right-radius: var(--radius-md);
|
||||
border-bottom-right-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.inline2 > .input:focus-visible,
|
||||
.inline2 > input:focus-visible {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.inline2 > span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 6px;
|
||||
color: var(--muted);
|
||||
font-size: var(--text-sm);
|
||||
}
|
||||
|
||||
.rowActions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
gap: var(--space-2);
|
||||
margin-top: var(--space-4);
|
||||
padding-top: var(--space-3);
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.rowActions .btnPrimary {
|
||||
order: -1;
|
||||
}
|
||||
|
||||
.label {
|
||||
|
||||
Reference in new issue
Block a user