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

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

View File

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

View File

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