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

@@ -39,40 +39,42 @@ const FALLBACK_ACTIVE: BusinessType[] = ['internet']
<style lang="less" scoped>
.home-business {
padding: 44px 70px 54px;
border: 1px solid @home-section-border;
border-radius: @radius-lg;
padding: @spacing-xl;
border: none;
border-radius: @radius-base;
background: @white;
&__title {
margin: 0 0 47px;
font-size: @font-size-xxl;
font-weight: 700;
margin: 0 0 @spacing-lg;
font-size: @font-size-xl;
font-weight: 600;
color: @home-ink;
}
&__grid {
display: flex;
gap: 22px;
gap: @spacing-base;
}
&__card {
position: relative;
.flex(column, flex-start, flex-start);
flex: 0 1 368px;
flex: 1 1 0;
min-width: 0;
height: 206px;
min-height: 160px;
box-sizing: border-box;
padding: 0 20px;
padding: @spacing-lg;
overflow: hidden;
border: 1px solid @home-business-border;
border: 1px solid @border-color;
border-radius: @radius-base;
background: @white;
transition:
transform 0.2s,
box-shadow 0.2s;
box-shadow 0.2s,
border-color 0.2s;
&:hover {
border-color: @primary-color;
box-shadow: @shadow-base;
transform: translateY(-2px);
}
@@ -102,37 +104,41 @@ const FALLBACK_ACTIVE: BusinessType[] = ['internet']
}
&__name {
margin: 104px 0 0;
font-size: @font-size-title;
margin: @spacing-xxl 0 0;
font-size: @font-size-lg;
font-weight: 500;
line-height: 41px;
line-height: 1.4;
color: @home-ink;
}
&__desc {
margin: 4px 0 0;
font-size: @font-size-md;
font-weight: 500;
line-height: 23px;
color: @home-ink;
.multi-ellipsis(1);
margin: @spacing-xs 0 0;
font-size: @font-size-sm;
font-weight: 400;
line-height: 1.5;
color: @text-color-secondary;
.multi-ellipsis(2);
}
&__card--active {
border-color: @primary-strong;
background: @primary-strong;
border-color: @primary-color;
background: @filter-selected-bg;
.home-business__check {
border-color: @white;
border-color: @primary-color;
&::after {
opacity: 1;
background: @primary-color;
}
}
.home-business__name,
.home-business__name {
color: @primary-strong;
}
.home-business__desc {
color: @white;
color: @text-color-secondary;
}
}
}