UNPKG

bin-ui

Version:

基于 vue2.6 / vue-cli3 的 UI 组件库

96 lines (90 loc) 2 kB
.bin-anchor { &-wrapper { overflow: auto; padding-left: 8px; margin-left: -8px; } & { position: relative; padding-left: 2px; &-ink { position: absolute; height: 100%; left: 0; top: 0; &:before { content: ' '; position: relative; width: 2px; height: 100%; display: block; background-color: #e8eaec; margin: 0 auto; } &-ball { display: inline-block; position: absolute; width: 10px; height: 10px; border-radius: 50%; border: 1px solid $color-primary; background-color: #fff; left: 50%; transition: top $animation-duration-base ease; transform: translate(-50%, 2px); } &-line { display: inline-block; position: absolute; left: 50%; width: 2px; height: 18px; background-color: $color-primary; transition: top $animation-duration-base ease; transform: translate(-50%, -2px); } .iconfont { position: absolute; width: 14px; height: 14px; font-size: 14px; color: $color-primary; transition: top $animation-duration-base ease; transform: translate(-6px, -1px); } } } &-link { padding: 8px 0 8px 16px; line-height: 1; &-title { display: block; position: relative; transition: all $animation-duration-base; color: $color-text-default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; &:only-child { margin-bottom: 0; } } &-active > &-title { color: $color-primary; } a { background: 0 0; text-decoration: none; outline: 0; cursor: pointer; &:hover { color: $color-primary; } } } &-link &-link { padding-top: 6px; padding-bottom: 6px; } }