antd
Version:
An enterprise-class UI design language and React components implementation
40 lines (39 loc) • 949 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _cssinjs = require("@ant-design/cssinjs");
const genPaginationStyle = token => {
const {
componentCls,
antCls,
margin
} = token;
return {
[`${componentCls}-wrapper`]: {
// ========================== Pagination ==========================
[`${componentCls}-pagination${antCls}-pagination`]: {
margin: `${(0, _cssinjs.unit)(margin)} 0`
},
[`${componentCls}-pagination`]: {
display: 'flex',
flexWrap: 'wrap',
rowGap: token.paddingXS,
'> *': {
flex: 'none'
},
'&-left': {
justifyContent: 'flex-start'
},
'&-center': {
justifyContent: 'center'
},
'&-right': {
justifyContent: 'flex-end'
}
}
}
};
};
var _default = exports.default = genPaginationStyle;
;