mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-30 04:18:28 +08:00
23 lines
374 B
TypeScript
23 lines
374 B
TypeScript
|
import { createStyles } from 'antd-style';
|
||
|
|
||
|
const useStyles = createStyles(({ prefixCls, css }) => ({
|
||
|
container: css`
|
||
|
margin: 8px 0;
|
||
|
`,
|
||
|
|
||
|
alert: css`
|
||
|
.${prefixCls}-alert-message {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
`,
|
||
|
|
||
|
/* 使用 `&&` 加一点点权重 */
|
||
|
desc: css`
|
||
|
&& p {
|
||
|
margin: 0;
|
||
|
}
|
||
|
`,
|
||
|
}));
|
||
|
|
||
|
export default useStyles;
|