index.scss 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. /* theme color */
  2. /* icon font path, required */
  3. $--font-path: '~element-ui/lib/theme-chalk/fonts';
  4. @import "~element-ui/packages/theme-chalk/src/index";
  5. // 布局样式
  6. .bs-container {
  7. height: 100% !important;
  8. width: 100%;
  9. position: absolute;
  10. box-sizing: border-box;
  11. padding:0 16px;
  12. .inner-container {
  13. height: 100% !important;
  14. background-color: var(--bs-background-2);
  15. .filter-container {
  16. padding: 16px 16px 6px;
  17. .filter-item:not(:last-child) {
  18. margin-right: 10px;
  19. }
  20. .filter-item {
  21. display: inline-block;
  22. vertical-align: middle;
  23. margin-bottom: 10px;
  24. }
  25. .el-input {
  26. width: auto;
  27. }
  28. .el-select {
  29. width: auto;
  30. }
  31. }
  32. // page页样式
  33. .bs-pagination {
  34. padding: 0 0 4px 16px;
  35. }
  36. //输入框样式
  37. .el-input__inner {
  38. height: 30px;
  39. line-height: 30px;
  40. font-size: 12px;
  41. }
  42. .el-input__icon {
  43. line-height: 30px;
  44. }
  45. .el-form {
  46. .el-input__inner {
  47. width: 300px;
  48. }
  49. .el-select {
  50. .el-input__inner {
  51. width: auto;
  52. }
  53. }
  54. }
  55. //时间选择器样式
  56. .el-date-editor .el-range-input {
  57. height: 94%;
  58. font-size: 12px;
  59. }
  60. .el-date-editor .el-range__icon {
  61. line-height: 26px;
  62. }
  63. .el-date-editor .el-range-separator {
  64. line-height: 26px;
  65. font-size: 12px;
  66. }
  67. }
  68. }
  69. //表格样式
  70. .bs-table-box {
  71. padding: 0 16px;
  72. // height: calc(100vh - 340px);
  73. // margin-bottom: 16px;
  74. .el-table {
  75. // height: 100%;
  76. overflow-y: auto !important;
  77. background-color: transparent !important;
  78. border: 1px solid #e4e4e4 !important;
  79. th > .cell {
  80. padding-left: 14px !important;
  81. }
  82. th.gutter {
  83. background-color: #fafafa;
  84. }
  85. tr td {
  86. border-bottom: none !important;
  87. }
  88. tr:last-child td {
  89. border-bottom: none !important;
  90. }
  91. /ddeep/ .el-table::before {
  92. display: none !important;
  93. }
  94. .el-table thead {
  95. color: #36474f !important;
  96. }
  97. .el-table td {
  98. border-bottom: none !important;
  99. }
  100. .el-table--enable-row-hover .el-table__body tr:hover > td {
  101. background-color: #e6f6ff;
  102. }
  103. .el-table .cell {
  104. line-height: 24px !important;
  105. }
  106. .gc-table--grey th.is-leaf {
  107. border: none !important;
  108. background: #f5f5f5;
  109. }
  110. .el-table th, .el-table td {
  111. padding: 8px 0 !important;
  112. }
  113. // th.is-leaf {
  114. // border-bottom: 2px solid var(--bs-el-color-primary) !important;
  115. // }
  116. /* 滚动条样式设置*/
  117. .el-table__body-wrapper::-webkit-scrollbar {
  118. width: 12px !important;
  119. height: 12px !important;
  120. }
  121. .el-table__body-wrapper::-webkit-scrollbar-corner {
  122. background: transparent !important;
  123. }
  124. .el-table__body-wrapper::-webkit-scrollbar-track {
  125. border-radius: 10px !important;
  126. }
  127. .el-table__body-wrapper::-webkit-scrollbar-thumb {
  128. min-height: 20px !important;
  129. background-clip: content-box !important;
  130. border: 2px solid transparent !important;
  131. border-radius: 10px !important;
  132. // background-color: #ddd;
  133. }
  134. .el-table__fixed::before,
  135. .el-table__fixed-right::before {
  136. display: none !important;
  137. }
  138. }
  139. // 全局表格内部button行样式
  140. .el-table .cell {
  141. line-height: 22px;
  142. }
  143. .cell .el-button {
  144. padding: 5px 8px !important;
  145. }
  146. }
  147. //分页样式
  148. .bs-pagination {
  149. .el-pagination.is-background .btn-prev,
  150. .el-pagination.is-background .btn-next,
  151. .el-pagination.is-background .el-pager li {
  152. color: #bfbfbf;
  153. background-color: var(--bs-el-background-2);
  154. &:hover {
  155. color: var(--bs-el-text);
  156. background-color: var(--bs-el-color-primary);
  157. }
  158. }
  159. .el-pagination.is-background .btn-prev:disabled,
  160. .el-pagination.is-background .btn-next:disabled {
  161. color: #bfbfbf;
  162. background-color: var(--bs-el-background-2);
  163. }
  164. .el-pagination__total {
  165. color: #bfbfbf;
  166. }
  167. .el-pagination .el-select .el-input .el-input__inner {
  168. color: #bfbfbf;
  169. &:hover {
  170. color: var(--bs-el-color-primary);
  171. }
  172. }
  173. .el-pagination {
  174. text-align: right !important;
  175. font-weight: normal !important;
  176. }
  177. .el-pager li {
  178. padding: 0 !important;
  179. min-width: 32px !important;
  180. height: 32px !important;
  181. line-height: 32px !important;
  182. border-radius: 2px !important;
  183. }
  184. .el-pager li:not(.disabled).active {
  185. background-color: var(--bs-el-color-primary) !important;
  186. }
  187. .el-pagination span:not([class*=suffix]), .el-pagination button {
  188. font-size: 14px !important;
  189. min-width: 0 !important;
  190. height: 32px !important;
  191. line-height: 32px !important;
  192. }
  193. .el-pagination .el-input--mini .el-input__inner {
  194. height: 32px !important;
  195. line-height: 32px !important;
  196. }
  197. .el-pagination__editor.el-input .el-input__inner {
  198. height: 32px !important;
  199. }
  200. }
  201. /*解决el-scroll底部出现空白滚动条*/
  202. .el-scrollbar__wrap {
  203. overflow-x: hidden !important;
  204. }
  205. // dialog设置
  206. .bs-dialog-wrap {
  207. .el-dialog__wrapper {
  208. overflow: hidden !important;
  209. }
  210. // .el-dialog {
  211. // margin-bottom: 100px !important;
  212. // }
  213. .el-dialog__body {
  214. padding: 18px 24px !important;
  215. max-height: calc(90vh - 200px) !important;
  216. min-height: 200px;
  217. overflow-y: auto;
  218. }
  219. // dialog头部
  220. .el-dialog__header {
  221. background: #f5f5f5;
  222. background-color: #F5F5F5;
  223. padding: 0 !important;
  224. height: 40px;
  225. line-height: 40px;
  226. font-size: 15px;
  227. font-weight: 700;
  228. .el-dialog__headerbtn {
  229. position: absolute;
  230. top: 10px;
  231. right: 20px;
  232. padding: 0;
  233. background: 0 0;
  234. border: none;
  235. outline: 0;
  236. cursor: pointer;
  237. font-size: 16px;
  238. }
  239. }
  240. .el-dialog__title {
  241. display: inline-block;
  242. font-size: 16px;
  243. border-left: 4px solid var(--bs-el-color-primary);
  244. padding-left: 16px;
  245. }
  246. }