|
488 | 488 | } |
489 | 489 | } |
490 | 490 |
|
491 | | -.tabs-item-wrap { |
| 491 | +.tabs-chrome { |
492 | 492 | --bb-tabs-header-bg-color: var(--bs-border-color); |
493 | | - --bb-tabs-item-hover-bg-color: #b1cbe6; |
| 493 | + --bb-tabs-item-hover-bg-color: rgba(var(--bs-body-color-rgb), 0.1); |
494 | 494 | --bb-tabs-item-active-bg-color: var(--bs-body-color); |
495 | 495 | --bb-tabs-item-active-color: var(--bs-body-color); |
496 | 496 | --bb-tabs-item-hover-color: var(--bs-body-color); |
497 | | - overflow: hidden; |
498 | | - position: relative; |
499 | | - background-color: var(--bb-tabs-header-bg-color); |
500 | | - display: flex; |
501 | | - align-items: flex-end; |
502 | | - padding: 0 1rem; |
503 | | - z-index: 1; |
504 | 497 |
|
505 | | - &.active { |
506 | | - z-index: 5; |
| 498 | + .tabs-item-wrap { |
| 499 | + overflow: hidden; |
| 500 | + position: relative; |
| 501 | + background-color: var(--bb-tabs-header-bg-color); |
| 502 | + display: flex; |
| 503 | + align-items: flex-end; |
| 504 | + padding: 0 1rem; |
| 505 | + z-index: 1; |
507 | 506 |
|
508 | | - .tab-corner { |
509 | | - background-color: var(--bs-body-bg); |
510 | | - } |
511 | | - } |
| 507 | + &.active { |
| 508 | + z-index: 5; |
512 | 509 |
|
513 | | - &:not(.active) { |
514 | | - .tabs-item:not(.disabled) .tabs-item-body { |
515 | | - &:hover { |
516 | | - border-radius: 20px; |
517 | | - background-color: var(--bb-tabs-item-hover-bg-color); |
| 510 | + .tab-corner { |
| 511 | + background-color: var(--bs-body-bg); |
518 | 512 | } |
519 | 513 | } |
520 | | - } |
521 | | - |
522 | | - &:not(:first-child) { |
523 | | - margin-left: -2rem; |
524 | | - } |
525 | 514 |
|
526 | | - .tabs-item { |
527 | | - background-color: var(--bb-tabs-header-bg-color); |
528 | | - border: none !important; |
529 | | - border-top-left-radius: 10px; |
530 | | - border-top-right-radius: 10px; |
531 | | - height: 36px !important; |
| 515 | + &:not(.active) { |
| 516 | + .tabs-item:not(.disabled) .tabs-item-body { |
| 517 | + &:hover { |
| 518 | + border-radius: 20px; |
| 519 | + background-color: var(--bb-tabs-item-hover-bg-color); |
| 520 | + } |
| 521 | + } |
| 522 | + } |
532 | 523 |
|
533 | | - .active { |
534 | | - background-color: var(--bb-tabs-item-active-bg-color); |
| 524 | + &:not(:first-child) { |
| 525 | + margin-left: -2rem; |
535 | 526 | } |
536 | 527 |
|
537 | | - .tabs-item-body { |
538 | | - padding: 4px 10px; |
539 | | - display: flex; |
540 | | - align-items: center; |
541 | | - flex-wrap: nowrap; |
542 | | - margin-bottom: 4px; |
| 528 | + .tabs-item { |
| 529 | + background-color: var(--bb-tabs-header-bg-color); |
| 530 | + border: none !important; |
| 531 | + border-top-left-radius: 10px; |
| 532 | + border-top-right-radius: 10px; |
| 533 | + height: 36px !important; |
543 | 534 |
|
544 | | - .tabs-item-text { |
545 | | - padding: 0 .25rem; |
| 535 | + .active { |
| 536 | + background-color: var(--bb-tabs-item-active-bg-color); |
546 | 537 | } |
547 | 538 |
|
548 | | - .tabs-item-close { |
| 539 | + .tabs-item-body { |
| 540 | + padding: 4px 10px; |
549 | 541 | display: flex; |
550 | | - position: unset; |
551 | | - width: 21px; |
552 | | - height: 21px; |
553 | | - border-radius: 50%; |
| 542 | + align-items: center; |
| 543 | + flex-wrap: nowrap; |
| 544 | + margin-bottom: 4px; |
| 545 | + |
| 546 | + .tabs-item-text { |
| 547 | + padding: 0 .25rem; |
| 548 | + } |
| 549 | + |
| 550 | + .tabs-item-close { |
| 551 | + display: flex; |
| 552 | + position: unset; |
| 553 | + width: 21px; |
| 554 | + height: 21px; |
| 555 | + border-radius: 50%; |
| 556 | + } |
554 | 557 | } |
555 | 558 | } |
556 | | - } |
557 | | - |
558 | | - .tab-corner { |
559 | | - height: 2rem; |
560 | | - width: 2rem; |
561 | | - display: inline-flex; |
562 | | - justify-content: center; |
563 | | - align-items: center; |
564 | | - position: absolute; |
565 | 559 |
|
566 | | - &::after { |
567 | | - content: ''; |
| 560 | + .tab-corner { |
| 561 | + height: 2rem; |
| 562 | + width: 2rem; |
| 563 | + display: inline-flex; |
| 564 | + justify-content: center; |
| 565 | + align-items: center; |
568 | 566 | position: absolute; |
569 | | - height: 100%; |
570 | | - width: 100%; |
571 | | - background-color: var(--bb-tabs-header-bg-color); |
| 567 | + |
| 568 | + &::after { |
| 569 | + content: ''; |
| 570 | + position: absolute; |
| 571 | + height: 100%; |
| 572 | + width: 100%; |
| 573 | + background-color: var(--bb-tabs-header-bg-color); |
| 574 | + } |
572 | 575 | } |
573 | | - } |
574 | 576 |
|
575 | | - .tab-corner-left { |
576 | | - bottom: 0; |
577 | | - left: -1rem; |
| 577 | + .tab-corner-left { |
| 578 | + bottom: 0; |
| 579 | + left: -1rem; |
578 | 580 |
|
579 | | - &::after { |
580 | | - border-bottom-right-radius: 50%; |
| 581 | + &::after { |
| 582 | + border-bottom-right-radius: 50%; |
| 583 | + } |
581 | 584 | } |
582 | | - } |
583 | 585 |
|
584 | | - .tab-corner-right { |
585 | | - bottom: 0; |
586 | | - right: -1rem; |
| 586 | + .tab-corner-right { |
| 587 | + bottom: 0; |
| 588 | + right: -1rem; |
587 | 589 |
|
588 | | - &::after { |
589 | | - border-bottom-left-radius: 50%; |
| 590 | + &::after { |
| 591 | + border-bottom-left-radius: 50%; |
| 592 | + } |
590 | 593 | } |
591 | 594 | } |
| 595 | + |
| 596 | + .tabs-item-fix { |
| 597 | + background-color: var(--bb-tabs-header-bg-color); |
| 598 | + } |
592 | 599 | } |
0 commit comments