index.less 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. @import (reference) '../../../design/index.less';
  2. .multiple-tabs {
  3. z-index: 10;
  4. height: @multiple-height + 2;
  5. padding: 0 0 2px 0;
  6. margin-left: -1px;
  7. line-height: @multiple-height + 2;
  8. background: @white;
  9. box-shadow: 0 1px 2px 0 rgba(29, 35, 41, 0.05);
  10. .ant-tabs-small {
  11. height: @multiple-height;
  12. }
  13. .ant-tabs.ant-tabs-card {
  14. .ant-tabs-card-bar {
  15. height: @multiple-height;
  16. margin: 0;
  17. background: @white;
  18. border: 0;
  19. box-shadow: none;
  20. .ant-tabs-nav-container {
  21. height: @multiple-height;
  22. padding-top: 2px;
  23. }
  24. .ant-tabs-tab {
  25. height: calc(@multiple-height - 2px);
  26. padding-right: 12px;
  27. line-height: calc(@multiple-height - 2px);
  28. color: @text-color-call-out;
  29. background: @white;
  30. border: 1px solid darken(@border-color-light, 8%);
  31. transition: none;
  32. &:hover {
  33. .ant-tabs-close-x {
  34. opacity: 1;
  35. }
  36. }
  37. .ant-tabs-close-x {
  38. width: 8px;
  39. height: 12px;
  40. font-size: 12px;
  41. color: inherit;
  42. opacity: 0;
  43. transition: none;
  44. &:hover {
  45. svg {
  46. width: 0.75em;
  47. }
  48. }
  49. }
  50. > div {
  51. display: flex;
  52. justify-content: center;
  53. align-items: center;
  54. }
  55. svg {
  56. fill: @text-color-base;
  57. }
  58. }
  59. .ant-tabs-tab-active {
  60. position: relative;
  61. padding-left: 26px;
  62. color: @white;
  63. background: fade(@primary-color, 100%);
  64. border: 0;
  65. &::before {
  66. position: absolute;
  67. top: calc(50% - 3px);
  68. left: 8px;
  69. width: 6px;
  70. height: 6px;
  71. background: #fff;
  72. border-radius: 50%;
  73. content: '';
  74. transition: none;
  75. }
  76. .ant-tabs-close-x {
  77. opacity: 1;
  78. }
  79. svg {
  80. width: 0.7em;
  81. fill: @white;
  82. }
  83. }
  84. }
  85. .ant-tabs-nav > div:nth-child(1) {
  86. padding: 0 10px;
  87. .ant-tabs-tab {
  88. margin-right: 3px !important;
  89. }
  90. }
  91. }
  92. .ant-tabs-tab:not(.ant-tabs-tab-active) {
  93. .anticon-close {
  94. font-size: 12px;
  95. svg {
  96. width: 0.6em;
  97. }
  98. }
  99. }
  100. .ant-tabs-extra-content {
  101. margin-top: 2px;
  102. line-height: @multiple-height !important;
  103. }
  104. .ant-dropdown-trigger {
  105. display: inline-flex;
  106. }
  107. }
  108. .multiple-tabs-content {
  109. &__extra {
  110. display: inline-block;
  111. width: @multiple-height;
  112. height: @multiple-height;
  113. line-height: @multiple-height;
  114. color: #999;
  115. text-align: center;
  116. cursor: pointer;
  117. border-left: 1px solid #eee;
  118. &:hover {
  119. color: @text-color-base;
  120. }
  121. span[role='img'] {
  122. transform: rotate(90deg);
  123. }
  124. }
  125. &__content {
  126. display: inline-block;
  127. width: 100%;
  128. height: @multiple-height - 2;
  129. padding-left: 0;
  130. margin-left: -10px;
  131. font-size: 12px;
  132. cursor: pointer;
  133. user-select: none;
  134. }
  135. }