mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-12 11:55:23 +08:00
bdceb5f083
* Fix style * Fix style * fix lint * Fix more styles * Fix more styles * update snap
78 lines
1.4 KiB
Plaintext
78 lines
1.4 KiB
Plaintext
@import "../../style/themes/default";
|
|
@import "../../style/mixins/index";
|
|
|
|
@anchor-border-width: 2px;
|
|
|
|
.@{ant-prefix}-anchor {
|
|
.reset-component;
|
|
position: relative;
|
|
padding-left: @anchor-border-width;
|
|
&-wrapper {
|
|
background-color: @component-background;
|
|
}
|
|
|
|
&-ink {
|
|
position: absolute;
|
|
height: 100%;
|
|
left: 0;
|
|
top: 0;
|
|
&:before {
|
|
content: ' ';
|
|
position: relative;
|
|
width: @anchor-border-width;
|
|
height: 100%;
|
|
display: block;
|
|
background-color: @border-color-split;
|
|
margin: 0 auto;
|
|
}
|
|
&-ball {
|
|
display: none;
|
|
position: absolute;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 8px;
|
|
border: 2px solid @primary-color;
|
|
background-color: @component-background;
|
|
left: 50%;
|
|
transition: top .3s ease-in-out;
|
|
transform: translateX(-50%);
|
|
&.visible {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.fixed &-ink &-ink-ball {
|
|
display: none;
|
|
}
|
|
|
|
&-link {
|
|
padding: 8px 0 8px 16px;
|
|
line-height: 1;
|
|
|
|
&-title {
|
|
display: block;
|
|
position: relative;
|
|
transition: all .3s;
|
|
color: @text-color;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-bottom: 8px;
|
|
|
|
&:only-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
&-active > &-title {
|
|
color: @primary-color;
|
|
}
|
|
}
|
|
|
|
&-link &-link {
|
|
padding-top: 6px;
|
|
padding-bottom: 6px;
|
|
}
|
|
}
|