mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 13:18:04 +08:00
2acb7b217a
* site: use css token * fix: fix * fix: fix * fix: fix * fix: fix * fix: fix * fix: fix * fix: fix
72 lines
1.5 KiB
TypeScript
72 lines
1.5 KiB
TypeScript
import React from 'react';
|
|
import { css, Global } from '@emotion/react';
|
|
import { useTheme } from 'antd-style';
|
|
|
|
export default () => {
|
|
const token = useTheme();
|
|
|
|
const { iconCls } = token;
|
|
|
|
return (
|
|
<Global
|
|
styles={css`
|
|
.icon-pic-searcher {
|
|
display: inline-block;
|
|
margin: 0 ${token.marginXS}px;
|
|
|
|
.icon-pic-btn {
|
|
color: ${token.colorIcon};
|
|
cursor: pointer;
|
|
transition: all ${token.motionDurationSlow};
|
|
|
|
&:hover {
|
|
color: ${token.colorIconHover};
|
|
}
|
|
}
|
|
}
|
|
|
|
.icon-pic-preview {
|
|
width: 66px;
|
|
height: 66px;
|
|
margin-top: 10px;
|
|
padding: ${token.paddingXS}px;
|
|
text-align: center;
|
|
border: 1px solid ${token.colorBorder};
|
|
border-radius: ${token.borderRadiusSM}px;
|
|
|
|
> img {
|
|
max-width: 50px;
|
|
max-height: 50px;
|
|
}
|
|
}
|
|
|
|
.icon-pic-search-result {
|
|
min-height: 50px;
|
|
padding: 0 10px;
|
|
|
|
> .result-tip {
|
|
padding: 10px 0;
|
|
color: ${token.colorTextSecondary};
|
|
}
|
|
|
|
> table {
|
|
width: 100%;
|
|
|
|
.col-icon {
|
|
width: 80px;
|
|
padding: 10px 0;
|
|
|
|
> ${iconCls} {
|
|
font-size: ${token.fontSizeHeading2}px;
|
|
:hover {
|
|
color: ${token.colorLinkHover};
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`}
|
|
/>
|
|
);
|
|
};
|