UNPKG

1.18 kBJavaScriptView Raw
1import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3import { useStyle as useAntdStyle } from '@ant-design/pro-provider';
4var genFooterToolBarStyle = function genFooterToolBarStyle(token) {
5 return _defineProperty({}, token.componentCls, {
6 marginBlock: 0,
7 marginBlockStart: 48,
8 marginBlockEnd: 24,
9 marginInline: 0,
10 paddingBlock: 0,
11 paddingInline: 16,
12 textAlign: 'center',
13 '&-list': {
14 marginBlockEnd: 8,
15 color: token.colorTextSecondary,
16 '&-link': {
17 color: token.colorTextSecondary,
18 textDecoration: token.linkDecoration
19 },
20 '*:not(:last-child)': {
21 marginInlineEnd: 8,
22 '&:hover': {
23 color: token.colorText
24 }
25 }
26 },
27 '&-copyright': {
28 fontSize: '14px',
29 color: token.colorText
30 }
31 });
32};
33export function useStyle(prefixCls) {
34 return useAntdStyle('ProLayoutFooter', function (token) {
35 var proCardToken = _objectSpread(_objectSpread({}, token), {}, {
36 componentCls: ".".concat(prefixCls)
37 });
38 return [genFooterToolBarStyle(proCardToken)];
39 });
40}
\No newline at end of file