34 lines
653 B
Plaintext
34 lines
653 B
Plaintext
@import '../../style/theme.less';
|
|
@import '../../assets/fonts/iconfont.less';
|
|
|
|
.toy-icon-root {
|
|
margin: 0;
|
|
padding: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
vertical-align: middle;
|
|
font-size: inherit;
|
|
color: inherit;
|
|
line-height: 1;
|
|
box-sizing: border-box;
|
|
|
|
&--image {
|
|
width: @font-size-icon;
|
|
height: @font-size-icon;
|
|
}
|
|
|
|
&__image {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
/* 内层 text 显示 iconfont 字形 */
|
|
> text {
|
|
display: inline-block;
|
|
line-height: 1;
|
|
font-style: normal;
|
|
}
|
|
}
|