style.less 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. .table-layout {
  2. width: 100%;
  3. color: #777;
  4. font-size: 14px;
  5. .check-cls {
  6. max-width: 20px;
  7. text-align: left !important;
  8. margin-left: 20px;
  9. }
  10. .t-header {
  11. display: flex;
  12. align-items: center;
  13. width: 100%;
  14. padding: 15px 16px 15px 16px;
  15. background-color: #F5F7FA;
  16. color: #646566;
  17. line-height: 19px;
  18. position: relative; // 为了设置z-index
  19. z-index: 1; // 为了避免.t-con向下滚动后覆盖本元素。因为.t-con的margin-top是负值。
  20. li {
  21. text-align: left;
  22. padding-right: 20px;
  23. flex-grow: 1;
  24. }
  25. }
  26. // 表格内容
  27. .t-con {
  28. padding-top: 49px; // 为了能上下滚动,overflow的值不能是visible,导致此元素是个BFC,导致绝对定位的tip在第一行无法显示在此元素区域外,只好让此元素具有padding-top以供第一行的tip显示。
  29. margin-top: -49px;
  30. height: calc(100vh - 325px); // 必须指定高度,element-ui的无限滚动指令才能生效
  31. overflow: auto;
  32. .t-item {
  33. display: flex;
  34. align-items: center;
  35. width: 100%;
  36. padding: 10px 16px 10px 16px;
  37. .showWhenHover {
  38. visibility: hidden;
  39. }
  40. &:hover {
  41. background: #F7F7F7;
  42. .showWhenHover {
  43. visibility: visible;
  44. }
  45. &[active-txt] {
  46. // 关键列,会加粗显示且有hover效果。
  47. >.themetxt {
  48. span {
  49. word-break: break-all;
  50. font-weight: bold;
  51. &:hover {
  52. color: #1FE4DC !important;
  53. cursor: pointer;
  54. }
  55. }
  56. }
  57. }
  58. }
  59. .multiLine {
  60. span {
  61. word-break: break-all;
  62. white-space: normal;
  63. display: -webkit-box;
  64. -webkit-box-orient: vertical;
  65. -webkit-line-clamp: 2;
  66. overflow: hidden;
  67. }
  68. }
  69. li {
  70. text-align: left;
  71. display: inline-block;
  72. padding-right: 20px;
  73. flex-grow: 1;
  74. span {
  75. color: #323233;
  76. word-break: keep-all;
  77. // white-space: nowrap;
  78. }
  79. }
  80. }
  81. .bottom-line {
  82. min-height: 50px;
  83. border-bottom: 1px solid rgba(#202020, 0.1);
  84. }
  85. }
  86. }