mirror of
https://github.com/yibaiba/hideck.git
synced 2026-12-05 16:02:17 +00:00
fix(web): keep single-line inputs at 16px and sidebar selection at 12px
QA wanted soft fields, not racetrack pills, and a 12px active nav chip. Cards stay 24px and primary buttons stay pill. Co-authored-by: yibaiba <yibaiba@users.noreply.github.com>
This commit is contained in:
8 files changed
+17
-11
No files matched your search
+1
-1
@@ -294,7 +294,7 @@ function retryStartup() {
|
||||
|
||||
.license-input {
|
||||
border: 1px solid var(--ui-border);
|
||||
border-radius: var(--ui-radius-pill);
|
||||
border-radius: var(--ui-radius-input);
|
||||
background: var(--ui-surface-subtle);
|
||||
color: var(--ui-text);
|
||||
}
|
||||
|
||||
@@ -213,7 +213,7 @@ function ruleSourceLabel(rule: CarrierQueryRule): string {
|
||||
.query-row { display: grid; grid-template-columns: minmax(0, 1fr); }
|
||||
.query-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
|
||||
.device-select { min-width: 0; }
|
||||
.query-row :deep(.el-input__wrapper) { min-height: 40px; border-radius: var(--ui-radius-pill); }
|
||||
.query-row :deep(.el-input__wrapper) { min-height: 40px; border-radius: var(--ui-radius-input); }
|
||||
.query-actions :deep(.el-button) { min-height: 40px; }
|
||||
.latest-result { display: flex; flex-direction: column; gap: 6px; padding: 15px 0; border-block: 1px solid var(--ui-border); }
|
||||
.latest-result > strong { color: var(--ui-primary); font-size: clamp(25px, 2.4vw, 36px); font-weight: 550; overflow-wrap: anywhere; }
|
||||
|
||||
@@ -192,7 +192,7 @@ const emit = defineEmits<{
|
||||
.chat-actions :deep(.el-button span) { display: inline-flex; align-items: center; gap: 6px; }
|
||||
.device-target { width: 220px; min-width: 0; grid-area: device; display: grid; gap: 5px; }
|
||||
.device-label { color: var(--ui-muted); font-size: var(--ui-font-caption); }
|
||||
.device-target :deep(.el-input__wrapper) { min-height: 36px; border-radius: var(--ui-radius-pill); }
|
||||
.device-target :deep(.el-input__wrapper) { min-height: 36px; border-radius: var(--ui-radius-input); }
|
||||
.sync-warning {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
|
||||
@@ -156,7 +156,7 @@ function submit() {
|
||||
.quick-list .el-icon { font-size: 14px; }
|
||||
.input-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
|
||||
.send-button { width: 44px; height: 40px; padding: 0; border-radius: var(--ui-radius-pill); }
|
||||
.input-row :deep(.el-input__wrapper) { min-height: 40px; border-radius: var(--ui-radius-pill); }
|
||||
.input-row :deep(.el-input__wrapper) { min-height: 40px; border-radius: var(--ui-radius-input); }
|
||||
.suggestions {
|
||||
position: absolute;
|
||||
z-index: 12;
|
||||
|
||||
@@ -312,7 +312,7 @@ const activeMenuItem = computed(() => menuItems.find((item) => item.index === ro
|
||||
min-height: 46px;
|
||||
line-height: 46px;
|
||||
margin: 0 0 5px;
|
||||
border-radius: var(--ui-radius-md);
|
||||
border-radius: var(--ui-radius-nav);
|
||||
padding-left: 14px !important;
|
||||
padding-right: 14px !important;
|
||||
font-size: 14px;
|
||||
@@ -376,7 +376,7 @@ const activeMenuItem = computed(() => menuItems.find((item) => item.index === ro
|
||||
min-height: 46px;
|
||||
line-height: 46px;
|
||||
margin: 0 auto 5px;
|
||||
border-radius: var(--ui-radius-md);
|
||||
border-radius: var(--ui-radius-nav);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 0 !important;
|
||||
|
||||
+5
-3
@@ -49,6 +49,8 @@
|
||||
--ui-radius-md: 20px;
|
||||
--ui-radius-lg: 24px;
|
||||
--ui-radius-xl: 24px;
|
||||
--ui-radius-input: 16px;
|
||||
--ui-radius-nav: 12px;
|
||||
--ui-radius-pill: 999px;
|
||||
--ui-shadow-sm: none;
|
||||
--ui-shadow-md: none;
|
||||
@@ -506,12 +508,12 @@ html.dark .el-table td.el-table__cell {
|
||||
.el-select__wrapper,
|
||||
.el-input-number,
|
||||
.el-date-editor {
|
||||
border-radius: var(--ui-radius-pill) !important;
|
||||
border-radius: var(--ui-radius-input) !important;
|
||||
box-shadow: 0 0 0 1px var(--ui-border) inset !important;
|
||||
}
|
||||
|
||||
.el-textarea__inner {
|
||||
border-radius: var(--ui-radius-xl) !important;
|
||||
border-radius: var(--ui-radius-input) !important;
|
||||
box-shadow: 0 0 0 1px var(--ui-border) inset !important;
|
||||
}
|
||||
|
||||
@@ -598,7 +600,7 @@ html.dark .el-table td.el-table__cell {
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
margin: 2px 8px;
|
||||
border-radius: var(--ui-radius-sm);
|
||||
border-radius: var(--ui-radius-nav);
|
||||
}
|
||||
|
||||
.el-menu-item.is-active {
|
||||
|
||||
@@ -441,7 +441,7 @@ async function redirectAfterLogin() {
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
border: 1px solid var(--ui-border);
|
||||
border-radius: var(--ui-radius-pill);
|
||||
border-radius: var(--ui-radius-xl);
|
||||
background: var(--ui-surface);
|
||||
}
|
||||
|
||||
@@ -535,7 +535,7 @@ label {
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
border: 1px solid var(--ui-border);
|
||||
border-radius: var(--ui-radius-pill);
|
||||
border-radius: var(--ui-radius-input);
|
||||
background: var(--ui-surface);
|
||||
color: var(--ui-text-muted);
|
||||
transition: border-color 160ms ease, box-shadow 160ms ease;
|
||||
|
||||
@@ -44,6 +44,8 @@ test('navy-light tokens match the approved palette', () => {
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-radius-md: 20px;/)
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-radius-lg: 24px;/)
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-radius-xl: 24px;/)
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-radius-input: 16px;/)
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-radius-nav: 12px;/)
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-radius-pill: 999px;/)
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-font-weight-body: 500;/)
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-font-weight-title: 700;/)
|
||||
@@ -76,6 +78,8 @@ test('classic preserves the previous dark theme tokens', () => {
|
||||
test('primary buttons are navy pills and selected nav uses the accent bar token', () => {
|
||||
assert.match(globalStyles, /\.el-button \{[\s\S]*border-radius: var\(--ui-radius-pill\);/)
|
||||
assert.match(globalStyles, /\.el-button--primary:not\(\.is-plain\):not\(\.is-text\):not\(\.is-link\) \{[\s\S]*var\(--ui-primary-solid\)/)
|
||||
assert.match(globalStyles, /\.el-input__wrapper,\s*\.el-select__wrapper,\s*\.el-input-number,\s*\.el-date-editor \{\s*border-radius: var\(--ui-radius-input\) !important;/)
|
||||
assert.match(globalStyles, /\.el-menu-item \{[\s\S]*border-radius: var\(--ui-radius-nav\);/)
|
||||
assert.match(globalStyles, /\.el-menu-item\.is-active \{[\s\S]*var\(--ui-selected\)/)
|
||||
assert.match(shell, /--sidebar-menu-active-bg: var\(--ui-selected\);/)
|
||||
assert.match(shell, /background: var\(--ui-accent\);/)
|
||||
|
||||
Reference in new issue
Block a user