2016-10-28 14:02:55 +08:00
|
|
|
@import "../../style/themes/default";
|
2017-09-22 18:33:29 +08:00
|
|
|
@import "../../style/mixins/index";
|
2016-10-28 14:02:55 +08:00
|
|
|
|
2017-11-06 21:28:51 +08:00
|
|
|
@anchor-border-width: 2px;
|
|
|
|
|
2017-09-21 14:16:01 +08:00
|
|
|
.@{ant-prefix}-anchor {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2017-09-21 14:16:01 +08:00
|
|
|
position: relative;
|
2017-11-06 21:28:51 +08:00
|
|
|
padding-left: @anchor-border-width;
|
2017-09-21 14:16:01 +08:00
|
|
|
&-wrapper {
|
|
|
|
background-color: @component-background;
|
|
|
|
}
|
2016-11-09 20:17:02 +08:00
|
|
|
|
2017-09-21 14:16:01 +08:00
|
|
|
&-ink {
|
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
&:before {
|
|
|
|
content: ' ';
|
|
|
|
position: relative;
|
2017-11-06 21:28:51 +08:00
|
|
|
width: @anchor-border-width;
|
2016-11-09 20:17:02 +08:00
|
|
|
height: 100%;
|
2017-09-21 14:16:01 +08:00
|
|
|
display: block;
|
|
|
|
background-color: @border-color-split;
|
|
|
|
margin: 0 auto;
|
2016-10-28 16:53:59 +08:00
|
|
|
}
|
2017-09-21 14:16:01 +08:00
|
|
|
&-ball {
|
2016-11-09 21:06:43 +08:00
|
|
|
display: none;
|
2017-09-21 14:16:01 +08:00
|
|
|
position: absolute;
|
2017-10-18 17:16:14 +08:00
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
border-radius: 8px;
|
|
|
|
border: 2px solid @primary-color;
|
2017-09-21 14:16:01 +08:00
|
|
|
background-color: @component-background;
|
|
|
|
left: 50%;
|
|
|
|
transition: top .3s ease-in-out;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
&.visible {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2016-11-09 21:06:43 +08:00
|
|
|
}
|
2016-10-28 16:53:59 +08:00
|
|
|
}
|
2016-11-09 20:17:02 +08:00
|
|
|
|
2017-09-21 14:16:01 +08:00
|
|
|
&.fixed &-ink &-ink-ball {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2017-09-23 12:02:11 +08:00
|
|
|
&-link {
|
2017-11-06 21:28:51 +08:00
|
|
|
padding: 8px 0 8px 16px;
|
2016-11-09 15:26:22 +08:00
|
|
|
line-height: 1;
|
2016-11-03 16:45:13 +08:00
|
|
|
|
|
|
|
&-title {
|
2016-11-09 14:40:31 +08:00
|
|
|
display: block;
|
2016-11-03 16:45:13 +08:00
|
|
|
position: relative;
|
2016-11-09 14:40:31 +08:00
|
|
|
transition: all .3s;
|
|
|
|
color: @text-color;
|
2016-11-10 11:35:12 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2016-11-13 19:08:52 +08:00
|
|
|
margin-bottom: 8px;
|
|
|
|
|
2017-09-21 14:16:01 +08:00
|
|
|
&:only-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2016-11-03 16:45:13 +08:00
|
|
|
}
|
|
|
|
|
2016-11-09 14:40:31 +08:00
|
|
|
&-active > &-title {
|
2016-11-03 16:45:13 +08:00
|
|
|
color: @primary-color;
|
|
|
|
}
|
2017-09-21 14:16:01 +08:00
|
|
|
}
|
2016-10-28 16:53:59 +08:00
|
|
|
|
2017-09-23 12:02:11 +08:00
|
|
|
&-link &-link {
|
2017-09-21 14:16:01 +08:00
|
|
|
padding-top: 6px;
|
|
|
|
padding-bottom: 6px;
|
2016-11-03 16:45:13 +08:00
|
|
|
}
|
|
|
|
}
|