ant-design/components/anchor/style/index.less

82 lines
1.5 KiB
Plaintext
Raw Normal View History

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