fix(ui): 统一认证页输入框 36px 与视觉样式
This commit is contained in:
+134
-5
@@ -340,7 +340,7 @@ html.dark body[data-ui-scope='admin'] {
|
||||
.ui-header-navigation .ui-header-nav-item.nav-item-active::after {
|
||||
border-bottom-color: var(--ui-color-primary);
|
||||
}
|
||||
/* Other auth pages retain their continuous background. Login uses the standard header. */
|
||||
/* 客户端授权页保留透出背景的顶栏;登录 / 注册 / 找回密码统一使用标准登录顶栏。 */
|
||||
body[data-ui-scope='admin'] .auth-layout-header,
|
||||
body[data-ui-scope='admin'] .auth-layout-header header {
|
||||
background: transparent;
|
||||
@@ -365,8 +365,9 @@ body[data-ui-scope='admin'] .auth-layout-header header {
|
||||
transform: none;
|
||||
transition: none;
|
||||
}
|
||||
/* 字段节奏统一 24px:与必填字段预留的一行报错高度一致,报错出现时布局不跳动 */
|
||||
.auth-login-page .ant-form-item {
|
||||
margin-bottom: 16px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
/* Zero margin avoids Ant Form's error compensation; control height reserves one error line. */
|
||||
.auth-login-page .auth-login-required-field {
|
||||
@@ -374,7 +375,7 @@ body[data-ui-scope='admin'] .auth-layout-header header {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.auth-login-page .auth-login-required-field .ant-form-item-control {
|
||||
min-height: 58px;
|
||||
min-height: calc(var(--auth-control-height) + 24px);
|
||||
}
|
||||
.auth-login-page .ant-form-item-label {
|
||||
padding-bottom: 6px;
|
||||
@@ -390,7 +391,8 @@ body[data-ui-scope='admin'] .auth-layout-header header {
|
||||
gap: 12px;
|
||||
}
|
||||
.auth-login-fields .ant-form-item {
|
||||
margin-bottom: 0;
|
||||
/* 与 gap 12px 叠加后字段节奏同为 24px,和其他认证表单一致 */
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.auth-login-page .auth-login-actions {
|
||||
display: flex;
|
||||
@@ -428,9 +430,136 @@ body[data-ui-scope='admin'] .auth-layout-header header {
|
||||
color: color-mix(in srgb, var(--ui-color-text-1) 50%, black);
|
||||
}
|
||||
.auth-login-page .auth-login-register {
|
||||
margin-top: 12px;
|
||||
margin-top: 16px;
|
||||
line-height: 20px;
|
||||
}
|
||||
/*
|
||||
* 认证页统一视觉:/login、/org/login、/org/:slug/login、/register、/org/register、
|
||||
* /reset、/user/reset 及其弹窗(两步验证、微信验证码)。
|
||||
* 控件统一 36px 高、8px 圆角;间距统一 4 的倍数;去掉光晕 / 漂移光斑 / 星标等装饰。
|
||||
*/
|
||||
.auth-login-page,
|
||||
.auth-login-modal {
|
||||
--auth-control-height: 36px;
|
||||
}
|
||||
.auth-login-page .login-card-glow,
|
||||
.auth-login-page .login-card-halo,
|
||||
.auth-login-page .login-glass-aurora,
|
||||
.auth-login-page .auth-card-logo-halo,
|
||||
.auth-login-page .auth-card-sparkle {
|
||||
display: none;
|
||||
}
|
||||
.auth-login-page .auth-card-header {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.auth-login-page .auth-card-logo {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.auth-login-page .auth-card-logo-box {
|
||||
box-shadow: none;
|
||||
border: 1px solid var(--ui-color-border-light);
|
||||
}
|
||||
.auth-login-page .auth-card-title {
|
||||
font-size: 20px;
|
||||
line-height: 28px;
|
||||
font-weight: 650;
|
||||
}
|
||||
.auth-login-page .auth-card-subtitle {
|
||||
margin-top: 2px;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
/* 输入框 / 密码框 / 下拉(含 AutoComplete)统一 36px */
|
||||
.auth-login-page .ant-input-affix-wrapper,
|
||||
.auth-login-page input.ant-input-outlined,
|
||||
.auth-login-modal .ant-input-affix-wrapper,
|
||||
.auth-login-modal input.ant-input-outlined {
|
||||
height: var(--auth-control-height);
|
||||
padding-block: 0;
|
||||
border-radius: var(--ui-border-radius-medium);
|
||||
}
|
||||
.auth-login-page .ant-select-single,
|
||||
.auth-login-page .ant-select-single .ant-select-selector {
|
||||
height: var(--auth-control-height);
|
||||
border-radius: var(--ui-border-radius-medium);
|
||||
}
|
||||
/* 主按钮 / 整行按钮 / 弹窗底部按钮统一 36px */
|
||||
.auth-login-page .ant-btn-block,
|
||||
.auth-login-modal .ant-btn-block,
|
||||
.auth-login-modal .ant-modal-footer .ant-btn {
|
||||
height: var(--auth-control-height);
|
||||
border-radius: var(--ui-border-radius-medium);
|
||||
}
|
||||
.auth-login-page .auth-login-submit {
|
||||
gap: 6px;
|
||||
}
|
||||
.auth-login-page .auth-oauth-button {
|
||||
font-weight: 500;
|
||||
}
|
||||
.auth-login-page .auth-oauth-icon {
|
||||
display: inline-flex;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.auth-login-page .auth-oauth-icon svg {
|
||||
max-width: 16px;
|
||||
max-height: 16px;
|
||||
}
|
||||
/* 第三方登录列表:8px 行距,分隔线上下对称 */
|
||||
.auth-login-page .auth-option-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
.auth-login-page .auth-option-list .auth-divider {
|
||||
margin-block: 4px;
|
||||
}
|
||||
.auth-divider {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-block: 16px;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
color: var(--ui-color-text-2);
|
||||
}
|
||||
.auth-divider-line {
|
||||
flex: 1;
|
||||
height: 1px;
|
||||
background: var(--ui-color-border-light);
|
||||
}
|
||||
.auth-login-fields .auth-divider {
|
||||
margin-block: 4px 0;
|
||||
}
|
||||
.auth-login-page .auth-login-agreement {
|
||||
margin-top: 16px;
|
||||
}
|
||||
.auth-login-page .auth-login-banner {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.auth-login-page .auth-login-security {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
margin-top: 12px;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
color: var(--ui-color-text-2);
|
||||
}
|
||||
.auth-modal-title-icon {
|
||||
display: inline-flex;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
flex-shrink: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: var(--ui-border-radius-medium);
|
||||
background: var(--ui-color-highlight-bg);
|
||||
color: var(--ui-color-focus-border);
|
||||
}
|
||||
body[data-ui-scope='admin'] [data-page-background] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user