index.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. @import 'src/styles/variables.module';
  2. @import 'src/styles/element-plus-dark';
  3. @import "./fontIndex.scss";
  4. @import './mixin.scss';
  5. @import './transition.scss';
  6. @import 'src/styles/element-plus';
  7. @import './sidebar.scss';
  8. @import './reset.scss';
  9. @import './project_normal.scss';
  10. // 涉及element-plus的全局样式类改造&&新增修饰
  11. @import './lance-element-ui.scss';
  12. // 涉及lance-element-ui的全局组件样式
  13. @import './lance-element-vue.scss';
  14. // 加入布局样式
  15. @import "./flex.scss";
  16. html {
  17. height: 100%;
  18. box-sizing: border-box;
  19. }
  20. body {
  21. margin: 0;
  22. padding: 0;
  23. height: 100%;
  24. -moz-osx-font-smoothing: grayscale;
  25. -webkit-font-smoothing: antialiased;
  26. text-rendering: optimizeLegibility;
  27. //font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  28. font-size: 12px;
  29. }
  30. /*label {
  31. font-weight: 700;
  32. }*/
  33. #app {
  34. height: 100%;
  35. }
  36. *,
  37. *:before,
  38. *:after {
  39. box-sizing: inherit;
  40. }
  41. a:focus,
  42. a:active {
  43. outline: none;
  44. }
  45. a,
  46. a:focus,
  47. a:hover {
  48. cursor: pointer;
  49. color: inherit;
  50. text-decoration: none;
  51. }
  52. div:focus {
  53. outline: none;
  54. }
  55. .clearfix {
  56. &:after {
  57. visibility: hidden;
  58. display: block;
  59. font-size: 0;
  60. content: ' ';
  61. clear: both;
  62. height: 0;
  63. }
  64. }
  65. // main-container global css
  66. .app-container {
  67. padding: 10px;
  68. }
  69. ::-webkit-scrollbar {
  70. width: 6px;
  71. height: 6px;
  72. }
  73. ::-webkit-scrollbar-track {
  74. border-radius: 4px;
  75. background: $le-bg-color_1;
  76. }
  77. ::-webkit-scrollbar-track:hover {
  78. background-color: rgba(0, 0, 0, 0.06);
  79. box-shadow: 0 0 0 #fff inset, 0 0 0 rgba(255, 255, 255, 0.9) inset, 0 0 0 rgba(255, 255, 255, 0.9) inset, 0 0 0 rgba(255, 255, 255, 0.9) inset;
  80. }
  81. ::-webkit-scrollbar-track:active {
  82. background-color: rgba(0, 0, 0, 0.1);
  83. }
  84. ::-webkit-scrollbar-thumb {
  85. border-radius: 4px;
  86. background-color: rgba(0, 0, 0, 0.1);
  87. box-shadow: 0 0 0 #fff inset, 0 0 0 #fff inset, 0 0 0 rgba(255, 255, 255, 0.9) inset, 0 0 0 rgba(255, 255, 255, 0.9) inset;
  88. }
  89. ::-webkit-scrollbar-thumb:hover {
  90. background-color: rgba(0, 0, 0, 0.4);
  91. }
  92. ::-webkit-scrollbar-thumb:active {
  93. background: rgba(0, 0, 0, 0.6);
  94. }
  95. /* 公用样式 */
  96. // 公用path页面外壳
  97. .column-page-wrap {
  98. flex: 1;
  99. display: flex;
  100. height: 100%;
  101. min-height: 0;
  102. flex-direction: column;
  103. background-color: var(--el-bg-color-page);
  104. }
  105. // 文字超出隐藏
  106. .text-overflow_ellipsis {
  107. overflow: hidden;
  108. text-overflow: ellipsis;
  109. white-space: nowrap;
  110. }
  111. @mixin text-overflow_ellipsis_line($line: 2) {
  112. white-space: normal;
  113. text-overflow: -o-ellipsis-lastline;
  114. overflow: hidden;
  115. text-overflow: ellipsis;
  116. display: -webkit-box; // 作为弹性伸缩盒子模型显示。
  117. -webkit-box-orient: vertical; // 设置伸缩盒子的子元素排列方式--从上到下垂直排列
  118. -webkit-line-clamp: $line; // 显示的行
  119. -webkit-box-orient: vertical;
  120. }
  121. .text-overflow_ellipsis_line_2 {
  122. @include text-overflow_ellipsis_line;
  123. }
  124. // table下 按钮集合的外壳样式
  125. .#{$prefix}button-wrap {
  126. padding-bottom: 12px;
  127. }
  128. // hover下 背景转化为 带透明度的 --el-color-primary
  129. //.#{$prefix}hover-effect--bg {
  130. .le-hover-effect--bg {
  131. cursor: pointer;
  132. @include hover-bg-opacity();
  133. }