el-table.less 1.9 KB

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