字体太大了,优化了下 icon 动画

This commit is contained in:
2betop 2020-07-30 10:18:04 +08:00
parent d31dba1c99
commit e75ad1c7ea
2 changed files with 23 additions and 7 deletions

View File

@ -299,7 +299,7 @@ export class App extends React.PureComponent {
{nav.label}
{hasChildren ? (
<i
className={`iconfont icon-down-arrow ${
className={`iconfont icon-xialajiantou ${
isOpen ? '' : 'is-flipped'
}`}
onClick={e => this.toggleOpen(e, nav)}

View File

@ -292,8 +292,9 @@ body {
position: relative;
> a {
font-size: 16px;
font-weight: 700;
// font-size: 16px;
// font-weight: 700;
font-size: 14px;
color: #666;
padding-left: 0;
padding-right: 20px;
@ -305,10 +306,23 @@ body {
i {
font-size: 12px;
padding: 5px;
padding: 0;
display: block;
position: absolute;
right: 15px;
top: 0;
right: 20px;
top: 10px;
color: #666;
&:hover {
color: #333;
}
&:before {
display: block;
transform-origin: 50% 50%;
transform: rotate(0deg);
transition: transform 0.3s ease-out;
}
}
&.is-top {
@ -472,7 +486,9 @@ body {
}
.is-flipped {
transform: rotateX(180deg);
&::before {
transform: rotate(180deg);
}
}
> .schema-wrapper {