index.scss 6.7 KB

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