_tabs.scss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Tabs
  2. .tab {
  3. align-items: center;
  4. border-bottom: $border-width solid $border-color;
  5. display: flex;
  6. flex-wrap: wrap;
  7. list-style: none;
  8. margin: $unit-1 0 ($unit-1 - $border-width) 0;
  9. .tab-item {
  10. margin-top: 0;
  11. a {
  12. border-bottom: $border-width-lg solid transparent;
  13. color: inherit;
  14. display: block;
  15. margin: 0 $unit-2 0 0;
  16. padding: $unit-2 $unit-1 $unit-2 - $border-width-lg $unit-1;
  17. text-decoration: none;
  18. &:focus,
  19. &:hover {
  20. color: $link-color;
  21. }
  22. }
  23. &.active a,
  24. a.active {
  25. border-bottom-color: $primary-color;
  26. color: $link-color;
  27. }
  28. &.tab-action {
  29. flex: 1 0 auto;
  30. text-align: right;
  31. }
  32. .btn-clear {
  33. margin-top: -$unit-1;
  34. }
  35. }
  36. &.tab-block {
  37. .tab-item {
  38. flex: 1 0 0;
  39. text-align: center;
  40. a {
  41. margin: 0;
  42. }
  43. .badge {
  44. &[data-badge]::after {
  45. position: absolute;
  46. right: $unit-h;
  47. top: $unit-h;
  48. transform: translate(0, 0);
  49. }
  50. }
  51. }
  52. }
  53. &:not(.tab-block) {
  54. .badge {
  55. padding-right: 0;
  56. }
  57. }
  58. }