| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299 |
- @import '../common/abstracts/variable';
- @import '../common/abstracts/mixin';
- .wot-theme-dark {
- @include b(tabs) {
- background: $-dark-background2;
- @include e(nav) {
- background: $-dark-background2;
- }
- @include e(nav-item) {
- color: $-dark-color3;
- @include when(active) {
- font-weight: 600;
- color: $-dark-color;
- }
- @include when(disabled) {
- color: $-dark-color-gray;
- }
- }
- @include e(map-nav-btn) {
- background-color: $-dark-background4;
- color: $-dark-color3;
- @include when(active) {
- color: $-dark-color;
- border: 1px solid $-tabs-nav-active-color;
- background-color: $-dark-background;
- }
- @include when(disabled) {
- color: $-dark-color-gray;
- border-color: #f4f4f4;
- }
- }
- @include e(map-btn) {
- background: $-dark-background2;
- color: $-dark-color3;
- }
- @include e(map-header) {
- background: $-dark-background2;
- color: $-dark-color;
- &::after {
- background: $-dark-background4;
- }
- }
- @include e(map-body) {
- background: $-dark-background2;
- }
- }
- }
- @include b(tabs) {
- position: relative;
- background: #fff;
- width: 100%;
- @include e(nav) {
- left: 0;
- right: 0;
- height: $-tabs-nav-height;
- background-color: #fff;
- width: 100%;
- position: relative;
- @include m(wrap) {
- height: 100%;
- overflow: hidden;
- }
- @include m(sticky) {
- width: 100vw;
- }
- }
- @include e(nav-container) {
- position: relative;
- display: flex;
- user-select: none;
- }
- @include e(nav-item) {
- position: relative;
- display: flex;
- align-items: center;
- justify-content: center;
- flex: 1;
- min-width: 0;
- height: $-tabs-nav-height;
- font-size: $-tabs-nav-fs;
- color: $-tabs-nav-color;
- transition: color .3s;
- @include when(active) {
- font-weight: 600;
- }
- @include when(disabled) {
- color: $-tabs-nav-disabled-color;
- }
- }
- @include e(nav-item-text) {
- @include lineEllipsis();
- }
- @include edeep(nav-item-badge){
- display: flex;
- align-items: center;
- justify-content: center;
- max-width: 100%;
- min-width: 0;
- }
- @include e(line) {
- position: absolute;
- bottom: 4px;
- left: 0;
- z-index: 1;
- height: $-tabs-nav-line-height;
- width: $-tabs-nav-line-width;
- background: $-tabs-nav-line-bg-color;
- border-radius: calc($-tabs-nav-line-height / 2);
- @include m(inner) {
- left: 50%;
- transform: translateX(-50%)
- }
- }
- @include e(container) {
- overflow: hidden;
- }
- @include e(body) {
- position: relative;
- width: 100%;
- height: 100%;
- @include when(animated) {
- display: flex;
- transition-property: left;
- }
- }
- @include e(map) {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- z-index: 1;
- }
- @include e(map-btn) {
- position: absolute;
- right: 0;
- top: 0;
- width: $-tabs-nav-height;
- height: $-tabs-nav-height;
- line-height: $-tabs-nav-height;
- text-align: center;
- color: $-tabs-nav-map-arrow-color;
- z-index: 1;
- background: $-tabs-nav-bg;
- -webkit-tap-highlight-color: transparent;
- &::before {
- position: absolute;
- content: '';
- top: 0;
- left: -24px;
- width: 24px;
- height: $-tabs-nav-height - 1;
- background: $-tabs-nav-map-btn-before-bg;
- }
- }
- @include e(map-arrow) {
- display: block;
- transition: transform .3s;
- @include when(open) {
- transform: rotate(180deg);
- }
- }
- @include e(map-header) {
- position: relative;
- padding-left: 17px;
- height: $-tabs-nav-height;
- line-height: $-tabs-nav-height;
- font-size: $-tabs-nav-map-fs;
- color: $-tabs-nav-map-color;
- transition: opacity .3s;
- background: #fff;
- opacity: 0;
- @include halfPixelBorder;
- &::after {
- z-index: 3;
- }
- }
- @include e(map-body) {
- display: flex;
- flex-wrap: wrap;
- padding: 20px 15px 10px;
- background: #fff;
- transition: transform .3s;
- transform: scaleY(0);
- transform-origin: center top;
- @include when(open) {
- transform: scaleY(1);
- }
- }
- @include e(map-nav-item) {
- flex-basis: 33%;
- &:nth-child(3n + 2) {
- text-align: center;
- }
- &:nth-child(3n + 3) {
- text-align: right;
- }
- }
- @include e(map-nav-btn) {
- @include buttonClear;
- @include lineEllipsis;
- display: inline-block;
- width: 107px;
- height: 32px;
- line-height: 32px;
- background-color: $-tabs-nav-map-button-back-color;
- border-color: transparent;
- margin-bottom: 10px;
- border-radius: $-tabs-nav-map-button-radius;
- color: $-tabs-nav-map-color;
- font-size: $-tabs-nav-map-fs;
- text-align: center;
- transition: color .3s, border-color .3s;
- @include when(active) {
- color: $-tabs-nav-active-color;
- border: 1px solid $-tabs-nav-active-color;
- background-color: $-tabs-nav-bg
- }
- @include when(disabled) {
- color: $-tabs-nav-disabled-color;
- border-color: #f4f4f4;
- }
- }
- @include e(mask) {
- position: absolute;
- top: $-tabs-nav-height;
- left: 0;
- right: 0;
- bottom: 0;
- background: $-tabs-nav-map-modal-bg;
- opacity: 0;
- transition: opacity .3s;
- }
- @include when(slide) {
- .wd-tabs__nav-item {
- flex: 0 0 auto;
- padding: 0 17px;
- }
- }
- @include when(map) {
- .wd-tabs__nav--wrap {
- padding-right: 40px;
- }
- }
- }
- @media screen and (max-width: 330px) {
- .wd-tabs__map-nav-btn {
- width: 90px;
- }
- }
|