1
0

index.less 2.4 KB

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