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