mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-19 03:54:28 +08:00
b7cf72d7cb
* docs(theme): improve built-in component style * chore: update style * chore: update style --------- Co-authored-by: MadCcc <madccc@foxmail.com>
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;
|