index.scss 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. @import './variables.scss';
  2. @import './mixin.scss';
  3. @import './transition.scss';
  4. @import './element-ui.scss';
  5. @import './sidebar.scss';
  6. body {
  7. height: 100%;
  8. -moz-osx-font-smoothing: grayscale;
  9. -webkit-font-smoothing: antialiased;
  10. text-rendering: optimizeLegibility;
  11. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  12. }
  13. label {
  14. font-weight: 700;
  15. }
  16. html {
  17. height: 100%;
  18. box-sizing: border-box;
  19. }
  20. #app {
  21. height: 100%;
  22. }
  23. *,
  24. *:before,
  25. *:after {
  26. box-sizing: inherit;
  27. }
  28. a:focus,
  29. a:active {
  30. outline: none;
  31. }
  32. a,
  33. a:focus,
  34. a:hover {
  35. cursor: pointer;
  36. color: inherit;
  37. text-decoration: none;
  38. }
  39. div:focus {
  40. outline: none;
  41. }
  42. .clearfix {
  43. &:after {
  44. visibility: hidden;
  45. display: block;
  46. font-size: 0;
  47. content: " ";
  48. clear: both;
  49. height: 0;
  50. }
  51. }
  52. .cursorP {
  53. cursor: pointer
  54. }
  55. .el-button--primary {
  56. background-color: #5C88FA;
  57. border-color: #5C88FA;
  58. }
  59. .el-button--success {
  60. background-color: #8DCF6E;
  61. border-color: #8DCF6E;
  62. }
  63. .el-button--danger {
  64. color: #FFF;
  65. background-color: #E06969;
  66. border-color: #E06969;
  67. }
  68. // main-container global css
  69. .app-container {
  70. margin: 15px;
  71. background: #f4f4f4;
  72. min-height: calc(100vh - 80px);
  73. padding: 15px
  74. }
  75. .subtitle {
  76. line-height: 30px;
  77. font-size: 16px;
  78. }
  79. // 筛选条件样式
  80. .filter-container {
  81. // margin: 20px 0;
  82. font-size: 14px;
  83. overflow: hidden;
  84. .el-input__inner {
  85. height: 30px;
  86. line-height: 30px
  87. }
  88. .el-button {
  89. padding: 7px 12px
  90. }
  91. // .el-input {
  92. // margin-left: 5px;
  93. // }
  94. }
  95. .el-input__icon {
  96. line-height: 30px
  97. }
  98. .filter-left {
  99. float: left;
  100. }
  101. .filter-item {
  102. display: inline-block;
  103. }
  104. .search-button,
  105. .filter-item {
  106. margin: 10px 10px 0 0;
  107. }
  108. .handle-button-right {
  109. float: right;
  110. margin: 10px 0 0;
  111. }
  112. .el-table .el-button {
  113. border-width: 0px;
  114. background: rgba(0, 0, 0, 0);
  115. }
  116. .el-table .el-button:hover {
  117. opacity: 0.7;
  118. }
  119. // 重写表格样式
  120. .el-table td,
  121. .el-table th.is-leaf,
  122. .el-table--border,
  123. .el-table--group {
  124. border-color: #d9d9d9;
  125. }
  126. .el-table--border::after,
  127. .el-table--group::after,
  128. .el-table::before {
  129. background-color: #d9d9d9;
  130. }
  131. .el-table td,
  132. .el-table th {
  133. text-align: center !important;
  134. }
  135. .el-table .cell,
  136. .el-table--border td:first-child .cell,
  137. .el-table--border th:first-child .cell {
  138. padding-left: 0px;
  139. padding-right: 0px;
  140. }
  141. .el-table .cell {
  142. height: 23px
  143. }
  144. .el-table td {
  145. // padding: 0;
  146. .el-button {
  147. padding: 0px 2px
  148. }
  149. }
  150. .el-table th,
  151. .el-table td {
  152. padding: 0;
  153. line-height: 40px;
  154. height: 40px
  155. }
  156. //横线
  157. .el-divider--horizontal {
  158. width: calc(100% + 30px);
  159. position: relative;
  160. left: -15px;
  161. }
  162. // 重写弹出框样式
  163. .el-input__inner {
  164. height: 30px;
  165. line-height: 30px;
  166. }
  167. .el-dialog {
  168. display: flex;
  169. flex-direction: column;
  170. margin: 0 !important;
  171. position: absolute;
  172. top: 50%;
  173. left: 50%;
  174. width: 40%;
  175. min-width: 500px;
  176. transform: translate(-50%, -50%);
  177. max-height: calc(100% - 30px);
  178. max-width: calc(100% - 30px);
  179. .el-form-item {
  180. margin-bottom: 20px
  181. }
  182. .el-form-item__content,
  183. .el-form-item__label {
  184. line-height: 30px
  185. }
  186. .el-form-item__label {
  187. padding-right: 20px
  188. }
  189. }
  190. .el-dialog .el-dialog__body {
  191. flex: 1;
  192. overflow: auto;
  193. }
  194. .el-dialog__header {
  195. background: #eaeef7;
  196. padding: 0 20px;
  197. line-height: 50px;
  198. }
  199. .el-dialog__footer {
  200. text-align: center;
  201. }
  202. .el-dialog__footer .el-button+.el-button {
  203. margin-left: 100px;
  204. }
  205. .el-dialog__footer .el-button {
  206. width: 78px;
  207. line-height: 30px;
  208. height: 30px;
  209. padding: 0;
  210. }
  211. .el-dialog .el-form-item {
  212. width: 350px;
  213. margin: 0 auto 20px;
  214. }
  215. // 巡检路线详情弹框
  216. .routeDialog .el-dialog__body {
  217. padding: 0!important
  218. }
  219. .routeDialogVisible .filter-container {
  220. border: 1px solid #d9d9d9;
  221. border-bottom: 0
  222. }
  223. .routeDialogVisible .filter-item {
  224. width: 50%;
  225. padding: 10px 20px;
  226. margin: 0;
  227. }
  228. //删除弹框样式
  229. .el-message-box__header {
  230. background: #EAEEF7
  231. }
  232. //分页重置样式
  233. .el-pagination {
  234. position: absolute;
  235. bottom: 10px;
  236. right: 10px;
  237. z-index: 11
  238. }
  239. .el-pagination.is-background .btn-next,
  240. .el-pagination.is-background .btn-prev,
  241. .el-pagination.is-background .el-pager li {
  242. background-color: #fff;
  243. border: 1px solid #606266;
  244. color: #606266
  245. }
  246. // 日期选择器样式重置
  247. .el-range-editor.el-input__inner {
  248. padding: 0 10px
  249. }
  250. // 选择文件样式重置
  251. // .chooseFile {
  252. // background: #aaa;
  253. // border-color: rgba(0, 0, 0, 0);
  254. // color: #fff
  255. // }
  256. // .chooseFile:hover {
  257. // background: #aaa;
  258. // border-color: rgba(0, 0, 0, 0);
  259. // opacity: .7;
  260. // color: #fff
  261. // }
  262. .check {
  263. // text-decoration: underline;
  264. cursor: pointer;
  265. color: #5c88fa;
  266. }
  267. .check:hover {
  268. text-decoration: underline;
  269. /* color: #5c88fa; */
  270. }
  271. .el-dialog__body {
  272. height: 600px!important;
  273. overflow: auto;
  274. }
  275. // 下拉框箭头样式重置
  276. .el-icon-arrow-up:before {
  277. content: "\e78f"!important
  278. }
  279. .el-select .el-input .el-select__caret {
  280. color: #757575
  281. }
  282. // 弹框关闭图标样式重置
  283. .el-dialog__headerbtn {
  284. top: 11px;
  285. right: 15px;
  286. font-size: 25px;
  287. }
  288. .el-dialog__headerbtn .el-dialog__close {
  289. color: #303133
  290. }