Skip to content

Commit

Permalink
feat: 样式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
weifang.jiagweifan committed Sep 18, 2024
1 parent d212287 commit 37c8adf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions compiled/alipay/src/Collapse/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
display: flex;
flex: 1;
border-bottom: 1px solid @COLOR_BORDER;
padding: 0 @collapse-title-padding @collapse-title-padding 0;
padding: @collapse-title-padding;
}
&-title {
position: relative;
Expand All @@ -27,7 +27,6 @@
align-items: center;
justify-content: space-between;
line-height: 48 * @rpx;
padding: @collapse-title-padding 0 0 @collapse-title-padding;
font-size: @collapse-title-size;
color: @collapse-title-color;
background-color: @collapse-title-background-color;
Expand Down Expand Up @@ -86,10 +85,9 @@
&-content {
color: @COLOR_TEXT_PRIMARY;
border-bottom: 1px solid @COLOR_BORDER;
padding: 24 * @rpx 24 * @rpx 24 * @rpx 0;
box-sizing: border-box;
padding: 24 * @rpx;
&-container {
padding-left: 24 * @rpx;
background: @COLOR_WHITE_CHANGE;
}
&-wrap {
Expand Down
6 changes: 2 additions & 4 deletions compiled/wechat/src/Collapse/index.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
display: flex;
flex: 1;
border-bottom: 1px solid #eeeeee;
padding: 0 12px 12px 0;
padding: 12px;
}
.ant-collapse-item-title {
position: relative;
Expand All @@ -19,7 +19,6 @@
align-items: center;
justify-content: space-between;
line-height: 24px;
padding: 12px 0 0 12px;
font-size: 17px;
color: #333333;
background-color: #ffffff;
Expand Down Expand Up @@ -69,11 +68,10 @@
.ant-collapse-item-content {
color: #333333;
border-bottom: 1px solid #eeeeee;
padding: 12px 12px 12px 0;
box-sizing: border-box;
padding: 12px;
}
.ant-collapse-item-content-container {
padding-left: 12px;
background: #ffffff;
}
.ant-collapse-item-content-wrap {
Expand Down
6 changes: 2 additions & 4 deletions src/Collapse/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
display: flex;
flex: 1;
border-bottom: 1px solid @COLOR_BORDER;
padding: 0 @collapse-title-padding @collapse-title-padding 0;
padding: @collapse-title-padding;
}
&-title {
position: relative;
Expand All @@ -27,7 +27,6 @@
align-items: center;
justify-content: space-between;
line-height: 48 * @rpx;
padding: @collapse-title-padding 0 0 @collapse-title-padding;
font-size: @collapse-title-size;
color: @collapse-title-color;
background-color: @collapse-title-background-color;
Expand Down Expand Up @@ -86,10 +85,9 @@
&-content {
color: @COLOR_TEXT_PRIMARY;
border-bottom: 1px solid @COLOR_BORDER;
padding: 24 * @rpx 24 * @rpx 24 * @rpx 0;
box-sizing: border-box;
padding: 24 * @rpx;
&-container {
padding-left: 24 * @rpx;
background: @COLOR_WHITE_CHANGE;
}
&-wrap {
Expand Down

0 comments on commit 37c8adf

Please sign in to comment.