feat 样式整改

This commit is contained in:
Ironsp
2026-10-13 15:12:51 +08:00
parent 631d54f269
commit b0e9fe6450
56 changed files with 1242 additions and 1143 deletions

View File

@@ -62,29 +62,27 @@ const keyword = computed<string>({
<style lang="less" scoped>
.case-search {
.flex(row, flex-start, center);
gap: 24px;
gap: @spacing-base;
width: 100%;
height: 128px;
min-height: 64px;
box-sizing: border-box;
// 设计稿 #31:输入框 x=653(栏左 606 + 47),重置 1305,搜索 1429
padding: 0 47px;
padding: 0 @spacing-lg;
border-radius: @radius-base;
background: @white;
&__field {
position: relative;
// 输入框右边界 1245 → 重置按钮 1305,设计稿间距 60
margin-right: 36px;
flex: 0 0 592px;
flex: 0 1 360px;
min-width: 0;
}
&__icon {
position: absolute;
top: 50%;
right: 16px;
right: @spacing-base;
left: auto;
width: 27px;
height: 27px;
width: 18px;
height: 18px;
transform: translateY(-50%);
fill: none;
stroke: @cases-icon;
@@ -93,15 +91,15 @@ const keyword = computed<string>({
&__input {
width: 100%;
height: 49px;
padding: 0 52px 0 20px;
height: 36px;
padding: 0 40px 0 @spacing-base;
border: 1px solid @cases-input-border;
border-radius: @radius-sm;
background: @white;
border-radius: @radius-round;
background: @input-bg;
color: @cases-text;
font-size: 20px;
font-size: @font-size-base;
outline: none;
transition: border-color 0.2s;
transition: border-color 0.2s, background-color 0.2s;
&::placeholder {
color: @text-color-disabled;
@@ -109,22 +107,24 @@ const keyword = computed<string>({
&:focus {
border-color: @cases-accent;
background: @white;
}
}
&__btn {
min-width: 100px;
height: 49px;
padding: 0 @spacing-base;
border-radius: @radius-sm;
background: @cases-accent;
color: @white;
font-size: 20px;
flex-shrink: 0;
min-width: 72px;
height: 36px;
padding: 0 @spacing-lg;
border-radius: @radius-round;
background: @pill-bg;
color: @text-color;
font-size: @font-size-base;
font-weight: 400;
transition: all 0.2s;
&:hover {
background: @primary-hover;
color: @primary-color;
}
&--primary {
@@ -143,7 +143,7 @@ const keyword = computed<string>({
gap: @spacing-xs;
margin-left: auto;
color: @heading-color;
font-size: 16px;
font-size: @font-size-base;
transition: color 0.2s;
&:hover,