index.scss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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, .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: 12px !important;
  124. height: 12px !important;
  125. }
  126. .el-table__body-wrapper::-webkit-scrollbar-corner {
  127. background: transparent !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: 2px solid transparent !important;
  136. border-radius: 10px !important;
  137. // background-color: #ddd;
  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.is-background .btn-prev,
  155. .el-pagination.is-background .btn-next,
  156. .el-pagination.is-background .el-pager li {
  157. color: #bfbfbf;
  158. background-color: var(--bs-el-background-2);
  159. &:hover {
  160. color: var(--bs-el-text);
  161. background-color: var(--bs-el-color-primary);
  162. }
  163. }
  164. .el-pagination.is-background .btn-prev:disabled,
  165. .el-pagination.is-background .btn-next:disabled {
  166. color: #bfbfbf;
  167. background-color: var(--bs-el-background-2);
  168. }
  169. .el-pagination__total {
  170. color: #bfbfbf;
  171. }
  172. .el-pagination .el-select .el-input .el-input__inner {
  173. color: #bfbfbf;
  174. &:hover {
  175. color: var(--bs-el-color-primary);
  176. }
  177. }
  178. .el-pagination {
  179. text-align: right !important;
  180. font-weight: normal !important;
  181. }
  182. .el-pager li {
  183. padding: 0 !important;
  184. min-width: 32px !important;
  185. height: 32px !important;
  186. line-height: 32px !important;
  187. border-radius: 2px !important;
  188. }
  189. .el-pager li:not(.disabled).active {
  190. background-color: var(--bs-el-color-primary) !important;
  191. }
  192. .el-pagination span:not([class*=suffix]), .el-pagination button {
  193. font-size: 14px !important;
  194. min-width: 0 !important;
  195. height: 32px !important;
  196. line-height: 32px !important;
  197. }
  198. .el-pagination .el-input--mini .el-input__inner {
  199. height: 32px !important;
  200. line-height: 32px !important;
  201. }
  202. .el-pagination__editor.el-input .el-input__inner {
  203. height: 32px !important;
  204. }
  205. }
  206. /*解决el-scroll底部出现空白滚动条*/
  207. .el-scrollbar__wrap {
  208. overflow-x: hidden !important;
  209. }
  210. // dialog设置
  211. .bs-dialog-wrap {
  212. .el-select{
  213. display: inline-block !important;
  214. position: relative !important;
  215. width: auto !important;
  216. }
  217. .el-dialog{
  218. margin-top: 13vh !important;
  219. }
  220. .el-dialog__wrapper {
  221. overflow: hidden !important;
  222. }
  223. .el-dialog__body {
  224. padding: 18px 24px !important;
  225. max-height: calc(90vh - 250px) !important;
  226. min-height: 200px;
  227. overflow-y: auto;
  228. }
  229. // dialog头部
  230. .el-dialog__header {
  231. background: #f5f5f5;
  232. background-color: #F5F5F5;
  233. padding: 0 !important;
  234. height: 40px;
  235. line-height: 40px;
  236. font-size: 15px;
  237. font-weight: 700;
  238. .el-dialog__headerbtn {
  239. position: absolute;
  240. top: 10px;
  241. right: 20px;
  242. padding: 0;
  243. background: 0 0;
  244. border: none;
  245. outline: 0;
  246. cursor: pointer;
  247. font-size: 16px;
  248. }
  249. }
  250. .el-dialog__title {
  251. display: inline-block;
  252. font-size: 16px;
  253. position: relative;
  254. padding-left: 20px;
  255. border-left: none !important;
  256. }
  257. .el-dialog__title::before {
  258. content: "" !important;
  259. height: 16px !important;
  260. position: absolute !important;
  261. left: 0 !important;
  262. top: 50% !important;
  263. transform: translateY(-50%) !important;
  264. border-left: 4px solid var(--bs-el-color-primary) !important;
  265. }
  266. }