refactor code style

This commit is contained in:
afc163 2017-09-21 14:16:01 +08:00
parent 39993fc749
commit afce275d25

View File

@ -1,7 +1,6 @@
@import "../../style/themes/default";
.@{ant-prefix} {
&-anchor {
.@{ant-prefix}-anchor {
position: relative;
&-wrapper {
background-color: @component-background;
@ -41,17 +40,11 @@
&.fixed &-ink &-ink-ball {
display: none;
}
}
&-anchor-link {
padding: 8px 0 8px 18px;
line-height: 1;
& & {
padding-top: 6px;
padding-bottom: 6px;
}
&-title {
display: block;
position: relative;
@ -61,18 +54,19 @@
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 8px;
}
&-title:only-child {
&:only-child {
margin-bottom: 0;
}
}
&-active > &-title {
color: @primary-color;
}
}
& > & {
font-size: @font-size-base;
}
&-anchor-link &-anchor-link {
padding-top: 6px;
padding-bottom: 6px;
}
}