index.scss 6.6 KB

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