style.less 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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;
  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. margin-right: 20px;
  23. }
  24. }
  25. // 表格内容
  26. .t-con {
  27. padding-top: 49px; // 为了能上下滚动,overflow的值不能是visible,导致此元素是个BFC,导致绝对定位的tip在第一行无法显示在此元素区域外,只好让此元素具有padding-top以供第一行的tip显示。
  28. margin-top: -49px;
  29. height: calc(100vh - 325px); // 必须指定高度,element-ui的无限滚动指令才能生效
  30. overflow: auto;
  31. .t-item {
  32. display: flex;
  33. align-items: center;
  34. width: 100%;
  35. padding: 10px 0 10px 16px;
  36. .showWhenHover {
  37. visibility: hidden;
  38. }
  39. &:hover {
  40. background: #F7F7F7;
  41. .showWhenHover {
  42. visibility: visible;
  43. }
  44. &[active-txt] {
  45. // 关键列,会加粗显示且有hover效果。
  46. >.themetxt {
  47. span {
  48. word-break: break-all;
  49. font-weight: bold;
  50. &:hover {
  51. color: #1FE4DC !important;
  52. cursor: pointer;
  53. }
  54. }
  55. }
  56. }
  57. }
  58. li {
  59. text-align: left;
  60. display: inline-block;
  61. box-sizing: content-box;
  62. margin-right: 10px;
  63. span {
  64. word-break: break-all;
  65. color: #909090;
  66. // display: inline-block;
  67. }
  68. }
  69. }
  70. .bottom-line {
  71. min-height: 50px;
  72. border-bottom: 1px solid rgba(#202020, 0.1);
  73. }
  74. }
  75. }