feat 登录页面整改
This commit is contained in:
@@ -67,70 +67,58 @@ const localAgree = computed({
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
// 设计稿 #36(账号密码登录)纵向坐标:
|
||||
// 账号标签 457 → 密码标签 585(差 128)
|
||||
// 密码输入框底 ~648 → 勾选行 641 区间 → 登录按钮文字 688
|
||||
// 表单左边界与 title 内缩对齐:1032.5 - 982.5(title 层中心对齐后) ≈ 0,
|
||||
// 实测 title padding-left 17px 抵消 693/714 的差,故表单不再额外内缩。
|
||||
.login-form {
|
||||
.flex(column, flex-start, stretch);
|
||||
margin: 26px 0 0;
|
||||
gap: @spacing-lg;
|
||||
width: 100%;
|
||||
margin-top: @spacing-xl;
|
||||
|
||||
&__field {
|
||||
.flex(column, flex-start, stretch);
|
||||
// 标签底 474 → 输入框顶 480,间距 6px
|
||||
gap: 6px;
|
||||
gap: @spacing-sm;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
// 第一个字段底(480+40=520)→ 第二个字段标签顶 585,间距 65px
|
||||
&__field + &__field {
|
||||
margin-top: 65px;
|
||||
}
|
||||
|
||||
&__label {
|
||||
font-size: 13px;
|
||||
font-size: @font-size-sm;
|
||||
font-weight: 500;
|
||||
line-height: 17px;
|
||||
color: #1f2937;
|
||||
text-align: center;
|
||||
line-height: 1.4;
|
||||
color: @heading-color;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
&__input {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
padding: 0 12px;
|
||||
height: 44px;
|
||||
padding: 0 @spacing-base;
|
||||
border: 1px solid @border-color;
|
||||
border-radius: @radius-sm;
|
||||
background: @white;
|
||||
font-size: 13px;
|
||||
color: #1f2937;
|
||||
border-radius: @radius-base;
|
||||
background: @bg-color-light;
|
||||
font-size: @font-size-base;
|
||||
color: @heading-color;
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
transition: border-color 0.2s, background 0.2s;
|
||||
box-sizing: border-box;
|
||||
|
||||
&:focus {
|
||||
border-color: @primary-strong;
|
||||
background: @white;
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
color: #1f2937;
|
||||
color: @text-color-secondary;
|
||||
}
|
||||
}
|
||||
|
||||
// 设计稿 #36:勾选框 (1042.2,642) 7.5×14,文字 12px 起于 x=1059。
|
||||
// 注:设计稿勾选标注 y=642 与密码输入框底 648 重叠,二者无法同时满足,
|
||||
// 这里按视觉取勾选行落在输入框下方 8px。
|
||||
&__agree {
|
||||
.flex(row, flex-start, center);
|
||||
gap: 8px;
|
||||
margin-top: 8px;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
line-height: 16px;
|
||||
color: #6b7280;
|
||||
gap: @spacing-sm;
|
||||
margin: 0;
|
||||
font-size: @font-size-sm;
|
||||
line-height: 1.5;
|
||||
color: @text-color-secondary;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
|
||||
input {
|
||||
flex-shrink: 0;
|
||||
@@ -146,17 +134,15 @@ const localAgree = computed({
|
||||
}
|
||||
}
|
||||
|
||||
// 设计稿 #36:按钮文字 (1352,688) 54×20 居中,按钮盒约 693×46
|
||||
&__submit {
|
||||
width: 100%;
|
||||
height: 46px;
|
||||
// 勾选行底 657 → 按钮顶 674
|
||||
margin-top: 17px;
|
||||
height: 44px;
|
||||
margin: 0;
|
||||
border: none;
|
||||
border-radius: @radius-sm;
|
||||
border-radius: @radius-base;
|
||||
background: @primary-strong;
|
||||
color: @white;
|
||||
font-size: 15px;
|
||||
font-size: @font-size-base;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
|
||||
Reference in New Issue
Block a user