index.scss 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /** EleAdmin 动态主题及全量基础样式 */
  2. $--ele-font-path: '~ele-admin/es/style/fonts';
  3. @import '~ele-admin/es/style/themes/dynamic.scss';
  4. @import '~ele-admin/es/style/index.scss';
  5. /*
  6. * 仅独立运行时接管 html/body。
  7. * 乾坤嵌入时若改主应用滚动根节点,会把 WT 左侧菜单冲掉(与 EOM 一致:嵌入不污染全局)。
  8. */
  9. html.hr-standalone,
  10. html.hr-standalone body {
  11. width: 100%;
  12. height: 100%;
  13. }
  14. html.hr-standalone {
  15. overflow-x: hidden;
  16. overflow-y: auto;
  17. }
  18. html.hr-standalone body {
  19. overflow-x: visible;
  20. overflow-y: visible;
  21. }
  22. /* 与 eom 一致:长表单弹框可滚动,避免只露出底部流程图 */
  23. .long-dialog-form .el-dialog__body {
  24. max-height: calc(100vh - 129px);
  25. overflow-y: auto;
  26. padding-bottom: 30px;
  27. }
  28. /*
  29. * 左侧菜单内列表页:表格卡片撑满可视区域。
  30. * 数据少/为空时不再只显示半截白卡片,避免下方大片灰底空白。
  31. * 取最后一个 .workspace-card(通常是主表格)拉伸;前面的筛选/指标区保持自然高度。
  32. */
  33. main[class*='-page'] {
  34. box-sizing: border-box;
  35. min-height: calc(100vh - 100px);
  36. display: flex;
  37. flex-direction: column;
  38. }
  39. main[class*='-page'] > .workspace-card:last-of-type {
  40. flex: 1 1 auto;
  41. display: flex;
  42. flex-direction: column;
  43. min-height: 0;
  44. }
  45. main[class*='-page'] > .workspace-card:last-of-type > .ele-pro-table,
  46. main[class*='-page'] > .workspace-card:last-of-type > .el-table {
  47. flex: 1 1 auto;
  48. display: flex;
  49. flex-direction: column;
  50. min-height: 0;
  51. width: 100%;
  52. }
  53. main[class*='-page'] > .workspace-card:last-of-type .ele-pro-table {
  54. flex: 1 1 auto;
  55. display: flex;
  56. flex-direction: column;
  57. min-height: 0;
  58. }
  59. main[class*='-page'] > .workspace-card:last-of-type .el-table {
  60. flex: 1 1 auto;
  61. }
  62. main[class*='-page'] > .workspace-card:last-of-type .el-table__body-wrapper {
  63. min-height: 320px;
  64. }
  65. main[class*='-page'] > .workspace-card:last-of-type .el-table__empty-block {
  66. min-height: 320px;
  67. }
  68. /* 表格操作列 / 操作按钮统一左对齐 */
  69. .el-table .el-table__fixed-right th.el-table__cell .cell,
  70. .el-table .el-table__fixed-right td.el-table__cell .cell {
  71. text-align: left;
  72. }
  73. .el-table td.el-table__cell .action-cell,
  74. .el-table td.el-table__cell .row-actions,
  75. .el-table td.el-table__cell .table-actions {
  76. display: flex;
  77. justify-content: flex-start;
  78. text-align: left;
  79. }