index.less 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. @import (reference) '../../../../design/index.less';
  2. @border-color: #cecece4d;
  3. .basic-table {
  4. &-title {
  5. display: flex;
  6. justify-content: space-between;
  7. align-items: center;
  8. }
  9. &-row__striped {
  10. td {
  11. background: #fafafa;
  12. }
  13. }
  14. &-img__preview {
  15. display: flex;
  16. img {
  17. margin-right: 4px;
  18. }
  19. }
  20. &-action {
  21. display: flex;
  22. button {
  23. display: flex;
  24. align-items: center;
  25. }
  26. }
  27. &-toolbar {
  28. display: flex;
  29. align-items: center;
  30. > * {
  31. margin-right: 10px;
  32. }
  33. }
  34. .ant-table-wrapper {
  35. padding: 8px;
  36. background: #fff;
  37. border-radius: 2px;
  38. .ant-table-title {
  39. padding: 0 0 8px 0 !important;
  40. }
  41. .ant-table.ant-table-bordered .ant-table-title {
  42. border: none !important;
  43. }
  44. }
  45. &.inset {
  46. .ant-table-wrapper {
  47. padding: 0;
  48. }
  49. }
  50. //
  51. .ant-table {
  52. border: none;
  53. &-title {
  54. display: flex;
  55. justify-content: space-between;
  56. align-items: center;
  57. padding: 8px 6px;
  58. border-bottom: none;
  59. }
  60. .ant-table-thead > tr > th,
  61. .ant-table-header {
  62. background: #f1f3f4;
  63. background-color: #f1f3f4 !important;
  64. }
  65. .ant-table-tbody > tr.ant-table-row-selected td {
  66. background: fade(@primary-color, 8%) !important;
  67. }
  68. }
  69. .ant-table-bordered .ant-table-header > table,
  70. .ant-table-bordered .ant-table-body > table,
  71. .ant-table-bordered .ant-table-fixed-left table,
  72. .ant-table-bordered .ant-table-fixed-right table {
  73. border: 1px solid @border-color !important;
  74. }
  75. .ant-table-thead {
  76. tr {
  77. border: none;
  78. }
  79. th {
  80. border: none;
  81. }
  82. }
  83. .ant-table-bordered .ant-table-tbody > tr > td {
  84. border-bottom: 1px solid @border-color !important;
  85. &:last-child {
  86. border-right: none !important;
  87. }
  88. }
  89. .ant-table.ant-table-bordered .ant-table-footer,
  90. .ant-table.ant-table-bordered .ant-table-title {
  91. border: 1px solid @border-color !important;
  92. }
  93. .ant-table-bordered.ant-table-empty .ant-table-placeholder {
  94. border: 1px solid @border-color !important;
  95. }
  96. .ant-table td {
  97. white-space: nowrap;
  98. }
  99. .ant-table-row-cell-last {
  100. border-right: none !important;
  101. }
  102. .ant-table-bordered .ant-table-thead > tr > th,
  103. .ant-table-bordered .ant-table-tbody > tr > td {
  104. border-right: 1px solid @border-color !important;
  105. }
  106. .ant-pagination {
  107. margin: 10px 0 0 0;
  108. }
  109. .ant-table-body {
  110. overflow-x: auto !important;
  111. overflow-y: scroll !important;
  112. }
  113. .ant-table-header {
  114. margin-bottom: 0 !important;
  115. overflow-x: hidden !important;
  116. overflow-y: scroll !important;
  117. }
  118. .ant-table-fixed-right .ant-table-header {
  119. border-left: 1px solid @border-color !important;
  120. .ant-table-fixed {
  121. border-bottom: none;
  122. .ant-table-thead th {
  123. background: rgb(241, 243, 244);
  124. }
  125. }
  126. }
  127. .ant-table-fixed-left {
  128. .ant-table-header {
  129. overflow-y: hidden !important;
  130. }
  131. .ant-table-fixed {
  132. border-bottom: none;
  133. }
  134. }
  135. .ant-radio {
  136. &-inner {
  137. border-color: @text-color-base;
  138. }
  139. }
  140. .ant-checkbox {
  141. &:not(.ant-checkbox-checked) {
  142. .ant-checkbox-inner {
  143. border-color: @text-color-base;
  144. }
  145. }
  146. }
  147. .ant-table-bordered .ant-table-thead > tr:not(:last-child) > th,
  148. .ant-table-tbody > tr > td {
  149. word-break: break-word;
  150. border-color: @border-color !important;
  151. }
  152. .ant-table-footer {
  153. padding: 0;
  154. .ant-table-wrapper {
  155. padding: 0;
  156. }
  157. table {
  158. border: none !important;
  159. }
  160. .ant-table-body {
  161. overflow-x: hidden !important;
  162. overflow-y: scroll !important;
  163. }
  164. td {
  165. padding: 12px 8px;
  166. }
  167. }
  168. }
  169. .table-form-container {
  170. padding: 16px;
  171. .ant-form {
  172. padding: 20px 20px 4px 12px;
  173. margin-bottom: 18px;
  174. background: #fff;
  175. border-radius: 2px;
  176. }
  177. .ant-table-wrapper {
  178. border-radius: 2px;
  179. }
  180. }