2019-05-06 12:04:39 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-12-07 16:17:45 +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 {
|
2020-12-22 11:08:12 +08:00
|
|
|
.reset-component();
|
2019-04-15 10:52:00 +08:00
|
|
|
|
2017-09-21 14:16:01 +08:00
|
|
|
position: relative;
|
2017-11-06 21:28:51 +08:00
|
|
|
padding-left: @anchor-border-width;
|
2017-12-28 13:13:27 +08:00
|
|
|
|
2017-09-21 14:16:01 +08:00
|
|
|
&-wrapper {
|
2017-12-28 13:13:27 +08:00
|
|
|
margin-left: -4px;
|
2019-02-15 10:48:07 +08:00
|
|
|
padding-left: 4px;
|
|
|
|
overflow: auto;
|
2019-11-27 19:50:53 +08:00
|
|
|
background-color: @anchor-bg;
|
2017-09-21 14:16:01 +08:00
|
|
|
}
|
2016-11-09 20:17:02 +08:00
|
|
|
|
2017-09-21 14:16:01 +08:00
|
|
|
&-ink {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
left: 0;
|
|
|
|
height: 100%;
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2019-02-15 10:48:07 +08:00
|
|
|
&::before {
|
2017-09-21 14:16:01 +08:00
|
|
|
position: relative;
|
2019-02-15 10:48:07 +08:00
|
|
|
display: block;
|
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
|
|
|
margin: 0 auto;
|
2019-08-23 22:19:04 +08:00
|
|
|
background-color: @anchor-border-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
content: ' ';
|
2016-10-28 16:53:59 +08:00
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2017-09-21 14:16:01 +08:00
|
|
|
&-ball {
|
|
|
|
position: absolute;
|
2019-02-15 10:48:07 +08:00
|
|
|
left: 50%;
|
|
|
|
display: none;
|
2017-10-18 17:16:14 +08:00
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
2017-09-21 14:16:01 +08:00
|
|
|
background-color: @component-background;
|
2019-02-15 10:48:07 +08:00
|
|
|
border: 2px solid @primary-color;
|
|
|
|
border-radius: 8px;
|
2017-09-21 14:16:01 +08:00
|
|
|
transform: translateX(-50%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transition: top 0.3s ease-in-out;
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2017-09-21 14:16:01 +08:00
|
|
|
&.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
|
|
|
|
2021-12-04 17:13:00 +08:00
|
|
|
&-fixed &-ink &-ink-ball {
|
2017-09-21 14:16:01 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2017-09-23 12:02:11 +08:00
|
|
|
&-link {
|
2020-04-28 11:16:01 +08:00
|
|
|
padding: @anchor-link-padding;
|
2018-10-10 19:15:55 +08:00
|
|
|
line-height: 1.143;
|
2016-11-03 16:45:13 +08:00
|
|
|
|
|
|
|
&-title {
|
|
|
|
position: relative;
|
2019-02-15 10:48:07 +08:00
|
|
|
display: block;
|
|
|
|
margin-bottom: 6px;
|
|
|
|
overflow: hidden;
|
2016-11-09 14:40:31 +08:00
|
|
|
color: @text-color;
|
2016-11-10 11:35:12 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2019-02-15 10:48:07 +08:00
|
|
|
transition: all 0.3s;
|
2016-11-13 19:08:52 +08:00
|
|
|
|
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 {
|
2018-10-10 19:15:55 +08:00
|
|
|
padding-top: 5px;
|
|
|
|
padding-bottom: 5px;
|
2016-11-03 16:45:13 +08:00
|
|
|
}
|
|
|
|
}
|
2020-04-07 10:55:36 +08:00
|
|
|
|
|
|
|
@import './rtl';
|