34 lines
807 B
JavaScript
34 lines
807 B
JavaScript
import { unit } from '@ant-design/cssinjs';
|
|
const genPaginationStyle = token => {
|
|
const {
|
|
componentCls,
|
|
antCls,
|
|
margin
|
|
} = token;
|
|
return {
|
|
[`${componentCls}-wrapper`]: {
|
|
// ========================== Pagination ==========================
|
|
[`${componentCls}-pagination${antCls}-pagination`]: {
|
|
margin: `${unit(margin)} 0`
|
|
},
|
|
[`${componentCls}-pagination`]: {
|
|
display: 'flex',
|
|
flexWrap: 'wrap',
|
|
rowGap: token.paddingXS,
|
|
'> *': {
|
|
flex: 'none'
|
|
},
|
|
'&-start': {
|
|
justifyContent: 'flex-start'
|
|
},
|
|
'&-center': {
|
|
justifyContent: 'center'
|
|
},
|
|
'&-end': {
|
|
justifyContent: 'flex-end'
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|
|
export default genPaginationStyle; |