shu-c-view
Version:
rollup 打包vue组件库框架
84 lines (75 loc) • 1.76 kB
text/less
@anchor-prefix: ~'ivu-anchor';
// Anchor
@anchor-border-width: 2px;
@border-color-split: #e8eaec; // inside
@body-background: #fff;
@primary-color: #2d8cf0;
@transition-time: 0.2s;
@ease-in-out: ease-in-out;
@text-color: #515a6e;
.@{anchor-prefix} {
&-wrapper {
padding-left: 4px;
margin-left: -4px;
overflow: auto;
}
/* stylelint-disable no-duplicate-selectors */
& {
position: relative;
padding-left: @anchor-border-width;
&-ink {
position: absolute;
top: 0;
left: 0;
height: 100%;
&::before {
position: relative;
display: block;
width: @anchor-border-width;
height: 100%;
margin: 0 auto;
content: ' ';
background-color: @border-color-split;
}
&-ball {
position: absolute;
left: 50%;
display: inline-block;
width: 4px;
height: 4px;
background-color: @body-background;
border: 2px solid @primary-color;
border-radius: 50%;
transition: top @transition-time @ease-in-out;
transform: translate(-50%, 2px);
}
}
&.fixed &-ink &-ink-ball {
display: none;
}
}
&-link {
padding: 8px 0 8px 16px;
line-height: 1;
&-title {
position: relative;
display: block;
margin-bottom: 8px;
overflow: hidden;
color: @text-color;
text-overflow: ellipsis;
white-space: nowrap;
transition: all 0.3s;
&:only-child {
margin-bottom: 0;
}
}
&-active > &-title {
color: @primary-color;
}
}
&-link &-link {
padding-top: 6px;
padding-bottom: 6px;
}
}