@import '../common/style/index.less'; @tab-item-height--horizontal: 92rpx; @tab-item-height--vertical: 108rpx; @tab-item-width--vertical: 208rpx; .@{prefix}-tabs { display: flex; font-size: 28rpx; background-color: #fff; .@{prefix}-is-active { font-weight: 700; color: #0052d9; } .@{prefix}-is-disabled { color: #c8c9cc; } &__item { flex: 1; font-weight: 400; } &__content { overflow: hidden; } &__nav { position: relative; z-index: 0; user-select: none; width: 100%; display: flex; flex-wrap: nowrap; align-items: center; } &__track { position: absolute; font-weight: 600; z-index: 1; } &__content-inner { display: block; } &.@{prefix}-tabs--top, &.@{prefix}-tabs--bottom { flex-wrap: wrap; .@{prefix}-tabs__content-inner { position: relative; width: 100%; height: 100%; display: flex; transition-property: transform; } .@{prefix}-tabs__scroll { position: relative; &::after { content: ''; } } .@{prefix}-tabs__item { height: @tab-item-height--horizontal; line-height: @tab-item-height--horizontal; text-align: center; min-width: 162rpx; } .@{prefix}-tabs__track { left: 0; bottom: 0; height: 4rpx; } .@{prefix}-tabs__content { width: 100%; } } &.@{prefix}-tabs--top { .@{prefix}-tabs__scroll { height: @tab-item-height--horizontal; border-bottom: solid 1rpx rgba(150, 95, 95, 0.12); } } &.@{prefix}-tabs--bottom { flex-direction: column-reverse; .@{prefix}-tabs__scroll { height: @tab-item-height--horizontal; } } &.@{prefix}-tabs--left, &.@{prefix}-tabs--right { .@{prefix}-tabs__content-inner { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; transition-property: transform; } .@{prefix}-tabs__scroll { width: auto; } .@{prefix}-tabs__nav { flex-direction: column; } .@{prefix}-tabs__item { text-align: center; height: @tab-item-height--vertical; line-height: @tab-item-height--vertical; width: @tab-item-width--vertical; background-color: rgb(243, 243, 243); &.@{prefix}-is-active { background-color: #fff; } } .@{prefix}-tabs__content { width: 100%; } } &.@{prefix}-tabs--left { .@{prefix}-tabs__track { left: 0; top: 0; width: 4rpx; } } &.@{prefix}-tabs--right { flex-direction: row-reverse; .@{prefix}-tabs__track { right: 0; top: 0; width: 4rpx; } } }