el-table.less 1.8 KB

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