mirror of
https://github.com/yibaiba/hideck.git
synced 2026-12-06 00:01:20 +00:00
fix(web): bump navy radii so login and console read as pills
Raise shared radius tokens and Element Plus variables so cards/dialogs sit at 20–24px, and keep inputs/buttons/textareas on capsule radii. Co-authored-by: yibaiba <yibaiba@users.noreply.github.com>
This commit is contained in:
1 parent
69ba878e57
commit
b8b2b4e142
5 files changed
+31
-21
No files matched your search
@@ -186,11 +186,9 @@ const emit = defineEmits<{
|
||||
.stream-state { gap: 5px; color: var(--ui-warning); font-size: var(--ui-font-caption); }
|
||||
.stream-state.online { color: var(--ui-success); }
|
||||
.record-count { display: block; margin-top: 3px; color: var(--ui-muted); font: var(--ui-font-caption) "v-mono", monospace; }
|
||||
.chat-actions { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: 0; }
|
||||
.chat-actions :deep(.el-button) { min-height: 36px; margin: 0; border-radius: 0; }
|
||||
.chat-actions :deep(.el-button + .el-button) { margin-left: -1px; }
|
||||
.chat-actions :deep(.el-button:first-child) { border-radius: var(--ui-radius-sm) 0 0 var(--ui-radius-sm); }
|
||||
.chat-actions :deep(.el-button:last-child) { border-radius: 0 var(--ui-radius-sm) var(--ui-radius-sm) 0; }
|
||||
.chat-actions { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
|
||||
.chat-actions :deep(.el-button) { min-height: 36px; margin: 0; border-radius: var(--ui-radius-pill); }
|
||||
.chat-actions :deep(.el-button + .el-button) { margin-left: 0; }
|
||||
.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); }
|
||||
|
||||
+21
-9
@@ -45,9 +45,9 @@
|
||||
--ui-font-page-title: 24px;
|
||||
--ui-font-weight-body: 500;
|
||||
--ui-font-weight-title: 700;
|
||||
--ui-radius-sm: 12px;
|
||||
--ui-radius-md: 16px;
|
||||
--ui-radius-lg: 20px;
|
||||
--ui-radius-sm: 16px;
|
||||
--ui-radius-md: 20px;
|
||||
--ui-radius-lg: 24px;
|
||||
--ui-radius-xl: 24px;
|
||||
--ui-radius-pill: 999px;
|
||||
--ui-shadow-sm: none;
|
||||
@@ -85,8 +85,8 @@
|
||||
--el-color-danger-light-8: #F0CBC8;
|
||||
--el-color-danger-light-9: #FDECEC;
|
||||
--el-color-danger-dark-2: #8F1C13;
|
||||
--el-border-radius-base: 16px;
|
||||
--el-border-radius-small: 12px;
|
||||
--el-border-radius-base: 20px;
|
||||
--el-border-radius-small: 16px;
|
||||
--el-border-color: var(--ui-border);
|
||||
--el-border-color-light: var(--ui-border-muted);
|
||||
--el-fill-color-light: var(--ui-surface-muted);
|
||||
@@ -511,7 +511,7 @@ html.dark .el-table td.el-table__cell {
|
||||
}
|
||||
|
||||
.el-textarea__inner {
|
||||
border-radius: var(--ui-radius-md) !important;
|
||||
border-radius: var(--ui-radius-xl) !important;
|
||||
box-shadow: 0 0 0 1px var(--ui-border) inset !important;
|
||||
}
|
||||
|
||||
@@ -524,9 +524,12 @@ html.dark .el-table td.el-table__cell {
|
||||
.el-dialog,
|
||||
.el-drawer,
|
||||
.el-message-box,
|
||||
.el-popover.el-popper {
|
||||
.el-popover.el-popper,
|
||||
.el-select-dropdown,
|
||||
.el-dropdown-menu,
|
||||
.el-picker-panel {
|
||||
border: 1px solid var(--ui-border);
|
||||
border-radius: var(--ui-radius-lg);
|
||||
border-radius: var(--ui-radius-xl);
|
||||
background: var(--ui-surface-strong);
|
||||
box-shadow: var(--ui-shadow-lg);
|
||||
}
|
||||
@@ -582,11 +585,20 @@ html.dark .el-table td.el-table__cell {
|
||||
--el-menu-text-color: var(--ui-nav-text);
|
||||
}
|
||||
|
||||
.el-radio-button__inner {
|
||||
border-radius: var(--ui-radius-pill) !important;
|
||||
}
|
||||
|
||||
.el-radio-group {
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.el-menu-item {
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
margin: 2px 8px;
|
||||
border-radius: var(--ui-radius-md);
|
||||
border-radius: var(--ui-radius-sm);
|
||||
}
|
||||
|
||||
.el-menu-item.is-active {
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
.number-field button { width: 48px; border: 0; background: transparent; color: var(--ui-text-muted); cursor: pointer; font-size: 20px; }
|
||||
.number-field button:disabled { opacity: .3; }
|
||||
.number-field small { color: var(--ui-danger); font-size: 10px; text-align: center; }
|
||||
.dial-button, .restore-button, .secondary-button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ui-primary); border-radius: 24px; background: var(--ui-primary-solid); color: #fff; cursor: pointer; font-weight: 650; }
|
||||
.dial-button, .restore-button, .secondary-button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ui-primary); border-radius: var(--ui-radius-pill); background: var(--ui-primary-solid); color: #fff; cursor: pointer; font-weight: 650; }
|
||||
.dial-button:disabled, .restore-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .45; }
|
||||
.call-mode-actions { width: 320px; max-width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
|
||||
.call-mode-actions .dial-button { width: 100%; padding: 0 14px; }
|
||||
@@ -83,7 +83,7 @@
|
||||
.call-identity strong { margin-top: 8px; display: block; overflow-wrap: anywhere; color: var(--ui-text); font-family: "v-mono", monospace; font-size: clamp(26px, 4vw, 36px); }
|
||||
.call-identity p { margin: 5px 0 0; color: var(--ui-text-muted); font-variant-numeric: tabular-nums; }
|
||||
.call-waiting-hint { margin: 8px 0 0; color: var(--ui-warning); font-size: 12px; }
|
||||
.call-meta { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ui-border); border-radius: var(--ui-radius-md); overflow: hidden; }
|
||||
.call-meta { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ui-border); border-radius: var(--ui-radius-xl); overflow: hidden; }
|
||||
.call-meta div { min-width: 0; padding: 10px; border-right: 1px solid var(--ui-border); text-align: center; }
|
||||
.call-meta div:last-child { border-right: 0; }
|
||||
.call-meta dt { color: var(--ui-text-muted); font-size: 9px; font-weight: 600; text-transform: uppercase; }
|
||||
|
||||
@@ -378,7 +378,7 @@ async function redirectAfterLogin() {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 1px solid var(--ui-accent);
|
||||
border-radius: var(--ui-radius-md);
|
||||
border-radius: 50%;
|
||||
background: var(--ui-accent);
|
||||
color: #fff;
|
||||
font-size: 18px;
|
||||
@@ -441,7 +441,7 @@ async function redirectAfterLogin() {
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
border: 1px solid var(--ui-border);
|
||||
border-radius: var(--ui-radius-md);
|
||||
border-radius: var(--ui-radius-pill);
|
||||
background: var(--ui-surface);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,9 +40,9 @@ test('navy-light tokens match the approved palette', () => {
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-warning-surface: #F8F1DE;/)
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-danger: #B42318;/)
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-danger-surface: #FDECEC;/)
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-radius-sm: 12px;/)
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-radius-md: 16px;/)
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-radius-lg: 20px;/)
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-radius-sm: 16px;/)
|
||||
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-pill: 999px;/)
|
||||
assert.match(globalStyles, /:root \{[\s\S]*--ui-font-weight-body: 500;/)
|
||||
|
||||
Reference in new issue
Block a user