mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
optimize icon docs
This commit is contained in:
parent
c7069b27fe
commit
4d681c7fd3
@ -28,9 +28,9 @@ ReactDOM.render(
|
||||
);
|
||||
````
|
||||
|
||||
```css
|
||||
<style>
|
||||
.icons-list > .anticon {
|
||||
margin-right: 6px;
|
||||
font-size: 16px;
|
||||
font-size: 24px;
|
||||
}
|
||||
```
|
||||
</style>
|
||||
|
@ -29,10 +29,3 @@ ReactDOM.render(
|
||||
mountNode
|
||||
);
|
||||
````
|
||||
|
||||
```css
|
||||
.icons-list > .anticon {
|
||||
margin-right: 6px;
|
||||
font-size: 16px;
|
||||
}
|
||||
```
|
||||
|
@ -25,10 +25,3 @@ ReactDOM.render(
|
||||
mountNode
|
||||
);
|
||||
````
|
||||
|
||||
```css
|
||||
.icons-list > .anticon {
|
||||
margin-right: 6px;
|
||||
font-size: 16px;
|
||||
}
|
||||
```
|
||||
|
@ -117,11 +117,6 @@ const Icon: React.SFC<IconProps> = (props) => {
|
||||
if (theme) {
|
||||
computedType = withThemeSuffix(type, theme);
|
||||
}
|
||||
// default outlined
|
||||
const computedType = withThemeSuffix(
|
||||
getTypeWithoutTheme(type),
|
||||
theme || 'outlined',
|
||||
);
|
||||
return (
|
||||
<i className={classString} title={title} style={style} onClick={onClick}>
|
||||
<ReactIcon
|
||||
|
@ -19,7 +19,7 @@ ul.anticons-list {
|
||||
padding: 10px 0 0;
|
||||
.anticon {
|
||||
font-size: 36px;
|
||||
margin: 12px 0 16px;
|
||||
margin: 12px 0 8px;
|
||||
transition: transform .3s ease-in-out;
|
||||
will-change: transform;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user