Skip to content

Commit 0a94f8e

Browse files
committed
feat: button 下边距调整
1 parent 25601fa commit 0a94f8e

File tree

11 files changed

+35
-26
lines changed

11 files changed

+35
-26
lines changed

demo/pages/Button/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
button {
1+
.ant-button {
22
margin-bottom: 8px;
33
}

demo/pages/Dialog/index.less

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@
1010
color: #fff;
1111
}
1212

13-
.list button {
13+
.list .ant-button {
1414
margin-bottom: 8px;
1515
}
1616

1717
.activity-dialog {
18-
.ant-dialog-body {
19-
background-image: linear-gradient(0deg, #FFFFFF 75%, rgba(255,255,255,0.95) 91%, rgba(255,242,218,0.93) 100%);
20-
box-shadow: 0 2px 56px 0 rgba(0,0,0,0.18);
18+
.ant-dialog-body {
19+
background-image: linear-gradient(
20+
0deg,
21+
#ffffff 75%,
22+
rgba(255, 255, 255, 0.95) 91%,
23+
rgba(255, 242, 218, 0.93) 100%
24+
);
25+
box-shadow: 0 2px 56px 0 rgba(0, 0, 0, 0.18);
2126
}
2227
.ant-dialog-body-title {
2328
padding-bottom: 10rpx;
@@ -46,12 +51,12 @@
4651
align-items: center;
4752
flex-direction: column;
4853
&-button {
49-
background: #FF4000;
54+
background: #ff4000;
5055
border-radius: 55rpx;
5156
font-weight: 500;
5257
font-size: 36rpx;
5358
line-height: 50rpx;
54-
color: #FFFFFF;
59+
color: #ffffff;
5560
text-align: center;
5661
width: 360rpx;
5762
height: 96rpx;
@@ -85,10 +90,14 @@
8590
width: 528rpx;
8691
margin-top: 60rpx;
8792
}
88-
.ant-dialog-body {
89-
background-image: linear-gradient(180deg, rgba(255,255,255,0.57) 0%, rgba(255,255,255,0.91) 8%, #FFFFFF 17%);
93+
.ant-dialog-body {
94+
background-image: linear-gradient(
95+
180deg,
96+
rgba(255, 255, 255, 0.57) 0%,
97+
rgba(255, 255, 255, 0.91) 8%,
98+
#ffffff 17%
99+
);
90100
box-shadow: 0;
91101
padding-top: 30rpx;
92102
}
93103
}
94-

demo/pages/GuideTour/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
text-align: center;
77
}
88

9-
.list button {
9+
.list .ant-button {
1010
margin-bottom: 8px;
1111
}

demo/pages/InputTextarea/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ textarea {
44
min-height: 100px;
55
}
66

7-
button {
7+
.ant-button {
88
margin-top: 8px;
99
}

demo/pages/Modal/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
color: #fff;
1111
}
1212

13-
.list button {
13+
.list .ant-button {
1414
margin-bottom: 8px;
1515
}

demo/pages/Popup/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.list button {
1+
.list .ant-button {
22
margin-bottom: 8px;
33
}
44
.customize-top-image-popup {

demo/pages/Result/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
button {
1+
.ant-button {
22
margin-bottom: 12px;
33
}
44

demo/pages/Steps/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
button {
1+
.ant-button {
22
margin: 8px;
33
}

src/Button/index.less

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
box-sizing: border-box;
1717
font-size: @button-font-size;
1818
z-index: 2;
19-
/// #if ALIPAYNATIVE
20-
margin-bottom: 16rpx;
21-
/// #endif
2219

2320
&-large {
2421
font-size: @button-large-font-size;

src/Dialog/index.less

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@
5151
&:last-child {
5252
margin-bottom: 0;
5353
}
54-
/// #if ALIPAYNATIVE
55-
.ant-button {
56-
margin-bottom: 0;
57-
}
58-
/// #endif
5954
}
6055
}
6156
&-horizontal {

src/Empty/index.less

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,24 @@
7272
display: flex;
7373
justify-content: center;
7474
align-items: center;
75-
gap: @empty-horizontal-button-gap;
75+
.ant-button {
76+
margin-right: @empty-horizontal-button-gap;
77+
&:last-child {
78+
margin-right: 0;
79+
}
80+
}
7681
}
7782
&-layout-vertical {
7883
display: flex;
7984
flex-direction: column;
8085
justify-content: flex-start;
8186
align-items: center;
82-
gap: @empty-vertical-button-gap;
8387
.ant-button {
8488
min-width: @empty-vertical-button-width;
89+
margin-bottom: @empty-vertical-button-gap;
90+
&:last-child {
91+
margin-bottom: 0;
92+
}
8593
}
8694
}
8795
}

0 commit comments

Comments
 (0)