diff --git a/tuniao-ui/components/tn-subsection/tn-subsection.vue b/tuniao-ui/components/tn-subsection/tn-subsection.vue index c47f41f..fef2dc6 100644 --- a/tuniao-ui/components/tn-subsection/tn-subsection.vue +++ b/tuniao-ui/components/tn-subsection/tn-subsection.vue @@ -1,410 +1,414 @@ + .tn-subsection { + /* #ifndef APP-PLUS */ + display: flex; + flex-direction: row; + /* #endif */ + align-items: center; + overflow: hidden; + position: relative; + + &__item { + /* #ifndef APP-PLUS */ + display: flex; + flex-direction: row; + /* #endif */ + flex: 1; + text-align: center; + font-size: 26rpx; + height: 100%; + align-items: center; + justify-content: center; + color: #FFFFFF; + padding: 0 6rpx; + + + &--text { + transition: all 0.3s; + color: #FFFFFF; + /* #ifndef APP-PLUS */ + display: flex; + flex-direction: row; + /* #endif */ + align-items: center; + position: relative; + z-index: 3; + } + + &--first { + border-top-left-radius: 8rpx; + border-bottom-left-radius: 8rpx; + } + + &--last { + border-top-right-radius: 8rpx; + border-bottom-right-radius: 8rpx; + } + + &--none-border-right { + border-right: none !important; + } + } + + &__bg { + background-color: $tn-main-color; + position: absolute; + z-index: -1; + transition-property: all; + transition-duration: 0s; + transition-timing-function: linear; + + &__animation { + transition-duration: 0.25s !important; + + &--cubic-bezier { + transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55) !important; + } + } + } + } + \ No newline at end of file