UNPKG

acud

Version:

acg react 组件库

98 lines (86 loc) • 1.92 kB
@import '../../style/themes/index'; @import '../../style/mixins/index'; .@{acud-prefix}-anchor { .reset-component(); position: relative; padding-left: @anchor-border-width; &-wrapper { margin-left: -4px; padding-left: 4px; overflow: auto; background-color: @anchor-bg; } &-ink { position: absolute; top: 0; left: 0; height: 100%; &::before { position: relative; display: block; width: @anchor-border-width; height: 100%; margin: 0 auto; background-color: @anchor-border-color; content: ' '; } &-ball { position: absolute; left: 50%; display: none; width: @anchor-border-width; height: @anchor-link-height; background-color: @B6; transform: translate(-50%, -50%); transition: top 0.3s ease-in-out; &.visible { display: inline-block; } } } // 选中态 hover &-ink.hover &-ink-ball { background-color: @B5; } // 选中态 点击 &-ink.click &-ink-ball { background-color: @B7; } &.fixed &-ink &-ink-ball { display: none; } &-link { &-title { height: @anchor-link-height; line-height: @anchor-link-height; font-size: @anchor-link-font-size; font-family: @font-family; padding-left: 10px; position: relative; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: all 0.3s; .basic-tp-config(@anchor-title-tp); &:only-child { margin-bottom: 0; } &-disabled, &-disabled:hover, &-disabled:focus, &-disabled:active, &-disabled:visited { color: #B8BABF; cursor: not-allowed; } } &-title-active { .basic-tp-config(@anchor-title-tp-active); } } &-link &-link { padding-left: 12px; } } @import './rtl';