mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-19 11:58:41 +08:00
Fix List pagination margin, close #8562
This commit is contained in:
parent
f005974c56
commit
9b2ca4b1aa
components/list
@ -47,6 +47,7 @@ ReactDOM.render(
|
|||||||
size="large"
|
size="large"
|
||||||
pagination={pagination}
|
pagination={pagination}
|
||||||
dataSource={listData}
|
dataSource={listData}
|
||||||
|
bordered
|
||||||
renderItem={item => (
|
renderItem={item => (
|
||||||
<List.Item
|
<List.Item
|
||||||
key={item.title}
|
key={item.title}
|
||||||
|
@ -5,28 +5,36 @@
|
|||||||
padding-left: 24px;
|
padding-left: 24px;
|
||||||
padding-right: 24px;
|
padding-right: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{list-prefix-cls}-footer {
|
.@{list-prefix-cls}-footer {
|
||||||
padding-left: 24px;
|
padding-left: 24px;
|
||||||
padding-right: 24px;
|
padding-right: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{list-prefix-cls}-item {
|
.@{list-prefix-cls}-item {
|
||||||
border-bottom: 1px solid @border-color-split;
|
border-bottom: 1px solid @border-color-split;
|
||||||
padding-left: 24px;
|
padding-left: 24px;
|
||||||
padding-right: 24px;
|
padding-right: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.@{list-prefix-cls}-pagination {
|
||||||
|
margin: 16px 24px;
|
||||||
|
}
|
||||||
|
|
||||||
&.@{list-prefix-cls}-sm {
|
&.@{list-prefix-cls}-sm {
|
||||||
.@{list-prefix-cls}-item {
|
.@{list-prefix-cls}-item {
|
||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
padding-right: 16px;
|
padding-right: 16px;
|
||||||
}
|
}
|
||||||
.@{list-prefix-cls}-header, .@{list-prefix-cls}-footer {
|
.@{list-prefix-cls}-header,
|
||||||
|
.@{list-prefix-cls}-footer {
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.@{list-prefix-cls}-lg {
|
&.@{list-prefix-cls}-lg {
|
||||||
.@{list-prefix-cls}-header, .@{list-prefix-cls}-footer {
|
.@{list-prefix-cls}-header,
|
||||||
|
.@{list-prefix-cls}-footer {
|
||||||
padding: 16px 24px;
|
padding: 16px 24px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user