el-table.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. // el-table
  2. .main-body,
  3. .df-table {
  4. .el-table,
  5. .custom-table.el-table {
  6. background: transparent;
  7. border: 0px;
  8. &.el-table--border::after,
  9. &.el-table--group::after,
  10. &::before {
  11. background-color: transparent;
  12. }
  13. tr {
  14. &:hover {
  15. td {
  16. color: @green;
  17. background-color: transparent !important;
  18. }
  19. }
  20. }
  21. td {
  22. border: 0px;
  23. padding: 0;
  24. // height: 27px;
  25. // line-height: 27px;
  26. height: 37px;
  27. line-height: 37px;
  28. font-size: 12px;
  29. color: #b3bdc0;
  30. &.light,
  31. &.always-light {
  32. color: @green !important;
  33. }
  34. }
  35. th {
  36. border: 0px;
  37. padding: 0px;
  38. // height: 30px;
  39. // line-height: 30px;
  40. height: 37px;
  41. line-height: 37px;
  42. font-weight: normal;
  43. text-align: center;
  44. color: @gray-l;
  45. cursor: pointer;
  46. &.is-leaf {
  47. border: 0px;
  48. }
  49. &.light,
  50. &.always-light {
  51. color: @green !important;
  52. }
  53. }
  54. th,
  55. tr {
  56. background-color: transparent;
  57. border: 0px;
  58. }
  59. thead {
  60. color: @gray-l;
  61. font-weight: 500;
  62. font-size: @fontsize-s;
  63. border: 0px;
  64. th,
  65. &.is-group th {
  66. &.el-table__cell {
  67. background: #282f31;
  68. }
  69. // & > .cell {
  70. // }
  71. // background-color: fade(@gray, 20);
  72. }
  73. }
  74. .el-table__body {
  75. border: 0px;
  76. }
  77. &.el-table--striped .el-table__body tr.el-table__row--striped {
  78. &:hover td {
  79. background-color: fade(@gray, 20) !important;
  80. }
  81. td {
  82. background-color: fade(@gray, 20);
  83. }
  84. }
  85. &.el-table--border,
  86. &.el-table--group {
  87. border: none;
  88. }
  89. .ascending .sort-caret.ascending {
  90. border-bottom-color: @green;
  91. }
  92. .descending .sort-caret.descending {
  93. border-top-color: @green;
  94. }
  95. }
  96. .el-table__expanded-cell {
  97. background: transparent;
  98. }
  99. .el-table__footer-wrapper tbody td {
  100. background: #1a1f2fcc;
  101. }
  102. }
  103. .el-table__body tr.hover-row.current-row > td,
  104. .el-table__body tr.hover-row.el-table__row--striped.current-row > td,
  105. .el-table__body tr.hover-row.el-table__row--striped > td,
  106. .el-table__body tr.hover-row > td {
  107. background: transparent;
  108. color: @green;
  109. }