index.scss 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  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. // main-container global css
  53. .app-container {
  54. padding: 20px;
  55. }
  56. .fl {
  57. float: left;
  58. }
  59. .fr {
  60. float: right;
  61. }
  62. .tl {
  63. text-align: left;
  64. }
  65. .tr {
  66. text-align: right;
  67. }
  68. .ellipsis {
  69. white-space: nowrap;
  70. overflow: hidden;
  71. text-overflow: ellipsis;
  72. }
  73. .ellipsis-2 {
  74. overflow: hidden;
  75. text-overflow: ellipsis;
  76. display: -webkit-box;
  77. -webkit-line-clamp: 2;
  78. -webkit-box-orient: vertical;
  79. }
  80. //多选框未选中样式
  81. .el-checkbox__inner {
  82. border: 1px solid #409eff;
  83. }
  84. // 筛选区域样式
  85. .screen-container {
  86. background: #ffffff;
  87. .el-form-item {
  88. margin-bottom: 10px;
  89. }
  90. .top {
  91. height: 40px;
  92. .title {
  93. font-size: 16px;
  94. color: #333;
  95. font-weight: 600;
  96. }
  97. .control {
  98. font-size: 14px;
  99. color: #4e73df;
  100. cursor: pointer;
  101. }
  102. }
  103. // 选择器
  104. .el-select {
  105. width: 100%;
  106. }
  107. // 时间选择器
  108. .el-date-editor.el-input,
  109. .el-date-editor.el-input__inner {
  110. width: 100%;
  111. height: 29px;
  112. }
  113. .el-range-editor--small .el-range-separator {
  114. line-height: 28px;
  115. }
  116. //.el-col:last-child .el-form-item__content {
  117. // margin-left: 0 !important;
  118. //}
  119. // .el-form-item__label {
  120. // font-size: 13px;
  121. // }
  122. }
  123. .table {
  124. margin: 15px 0;
  125. // .el-button {
  126. // padding: 0;
  127. // }
  128. .el-button--mini {
  129. padding: 7px 10px;
  130. }
  131. .el-button--text {
  132. padding: 0;
  133. font-size: 13px;
  134. }
  135. .el-table {
  136. font-size: 13px;
  137. }
  138. .el-table td,
  139. .el-table th {
  140. padding: 5px 0;
  141. }
  142. input[type='number'] {
  143. text-align: right;
  144. }
  145. }
  146. // 主要内容区域样式
  147. .mymain-container {
  148. // margin-top: 15px;
  149. // margin-bottom: 20px;
  150. .btn-group {
  151. .text {
  152. font-size: 16px;
  153. color: #666;
  154. line-height: 32px;
  155. }
  156. }
  157. // 导入
  158. .import-btn {
  159. position: relative;
  160. }
  161. .el-upload-list {
  162. position: absolute;
  163. top: 20px;
  164. left: 0;
  165. }
  166. }
  167. // 抽屉样式
  168. .el-drawer {
  169. // 整体
  170. .el-drawer__body {
  171. overflow-y: scroll;
  172. }
  173. .drawer__content {
  174. padding: 0 20px;
  175. }
  176. .drawer__footer {
  177. position: sticky;
  178. bottom: 0;
  179. left: 0;
  180. width: 100%;
  181. background: #fff;
  182. padding: 20px;
  183. }
  184. .drawer__content .el-date-editor {
  185. width: 100%;
  186. }
  187. // 选择器
  188. .el-select {
  189. width: 100%;
  190. }
  191. // 图片墙
  192. .el-upload-list--picture-card .el-upload-list__item {
  193. width: 100px;
  194. height: 100px;
  195. }
  196. .el-upload--picture-card {
  197. width: 100px;
  198. height: 100px;
  199. line-height: 100px;
  200. .avatar-uploader-icon {
  201. font-size: 28px;
  202. color: #8c939d;
  203. width: 100px;
  204. height: 100px;
  205. line-height: 100px;
  206. text-align: center;
  207. }
  208. }
  209. }
  210. .el-popover-left {
  211. margin-left: 10px;
  212. }
  213. // 上传照片样式
  214. .avatar-uploader .el-upload {
  215. border: 1px dashed #d9d9d9;
  216. border-radius: 6px;
  217. cursor: pointer;
  218. position: relative;
  219. overflow: hidden;
  220. }
  221. .avatar-uploader .el-upload:hover {
  222. border-color: #409eff;
  223. }
  224. .avatar-uploader .el-upload-list {
  225. position: relative;
  226. top: unset;
  227. left: unset;
  228. }
  229. .avatar-uploader-icon {
  230. font-size: 28px;
  231. color: #8c939d;
  232. width: 120px;
  233. height: 120px;
  234. line-height: 120px;
  235. text-align: center;
  236. }
  237. .avatar {
  238. width: 120px;
  239. height: 120px;
  240. display: block;
  241. }
  242. // 系统设置
  243. .setting_title {
  244. font-size: 18px;
  245. padding-left: 15px;
  246. font-weight: 600;
  247. }
  248. .el-menu-item,
  249. .el-submenu__title {
  250. height: 44px;
  251. line-height: 44px;
  252. font-weight: 600 !important;
  253. }
  254. .el-submenu .el-menu-item {
  255. height: 44px;
  256. line-height: 44px;
  257. }
  258. .page-footer {
  259. height: 70px;
  260. .footer {
  261. position: fixed;
  262. bottom: 0;
  263. left: 0;
  264. z-index: 9;
  265. width: 100%;
  266. background: #fff;
  267. padding: 15px 40px;
  268. box-sizing: border-box;
  269. transition: all 0.28s;
  270. text-align: right;
  271. box-shadow: 0 2px 5px 0 rgb(0 0 0 / 50%), 0 2px 5px 0 rgb(0 0 0 / 10%);
  272. &.hideSidebar {
  273. margin-left: 54px;
  274. width: calc(100vw - 54px);
  275. }
  276. &.openSidebar {
  277. margin-left: 210px;
  278. width: calc(100vw - 210px);
  279. }
  280. }
  281. }
  282. .diy-table-1 {
  283. border: 1px solid #ebeef5;
  284. border-right: none;
  285. border-bottom: none;
  286. .item {
  287. display: flex;
  288. border-bottom: 1px solid #ebeef5;
  289. &.file {
  290. .label {
  291. height: 100px;
  292. }
  293. .value {
  294. height: 100px;
  295. }
  296. .file-list {
  297. display: flex;
  298. .file-item {
  299. // margin-top: 10px;
  300. margin-right: 10px;
  301. }
  302. }
  303. .img {
  304. width: 70px;
  305. height: 70px;
  306. display: block;
  307. border: 1px solid #e4e7ed;
  308. }
  309. .box2 {
  310. flex: 1;
  311. display: flex;
  312. padding: 10px;
  313. align-items: center;
  314. border: 1px solid #e4e7ed;
  315. width: 240px;
  316. height: 70px;
  317. cursor: pointer;
  318. img {
  319. width: 40px;
  320. height: 40px;
  321. display: block;
  322. }
  323. .name {
  324. flex: 1;
  325. color: #222;
  326. font-weight: 600;
  327. margin-left: 10px;
  328. }
  329. }
  330. }
  331. .label {
  332. width: 120px;
  333. height: 34px;
  334. display: flex;
  335. align-items: center;
  336. padding: 0 10px;
  337. box-sizing: border-box;
  338. background: #f5f7fa;
  339. border-right: 1px solid #ebeef5;
  340. font-size: 14px;
  341. color: #333333;
  342. }
  343. .value {
  344. flex: 1;
  345. height: 34px;
  346. display: flex;
  347. align-items: center;
  348. padding: 0 10px;
  349. box-sizing: border-box;
  350. border-right: 1px solid #ebeef5;
  351. font-size: 14px;
  352. color: #333333;
  353. input {
  354. border: none;
  355. padding: 0;
  356. height: 34px;
  357. }
  358. }
  359. }
  360. }
  361. .diy-table-2 {
  362. font-size: 14px;
  363. margin-top: 20px;
  364. margin-bottom: 20px;
  365. .el-row {
  366. margin-left: 0 !important;
  367. margin-right: 0 !important;
  368. border: 1px solid #ebeef5;
  369. border-right: none;
  370. }
  371. .el-col {
  372. padding-top: 14px;
  373. padding-bottom: 14px;
  374. border-right: 1px solid #ebeef5;
  375. }
  376. .head {
  377. color: #909399;
  378. font-weight: bold;
  379. background: #f5f7fa;
  380. }
  381. .body {
  382. color: #333333;
  383. .el-row {
  384. border-top: none;
  385. }
  386. }
  387. .foot {
  388. color: #333333;
  389. .el-row {
  390. border-top: none;
  391. }
  392. }
  393. }
  394. .diy-form-1 {
  395. .item {
  396. display: flex;
  397. height: 34px;
  398. .label {
  399. width: 100px;
  400. display: flex;
  401. align-items: center;
  402. padding-right: 10px;
  403. box-sizing: border-box;
  404. font-size: 14px;
  405. color: #606266;
  406. font-weight: 700;
  407. }
  408. .value {
  409. flex: 1;
  410. display: flex;
  411. align-items: center;
  412. box-sizing: border-box;
  413. font-size: 14px;
  414. color: #333333;
  415. input {
  416. border: none;
  417. padding: 0;
  418. }
  419. }
  420. }
  421. }
  422. input[type='number']::-webkit-inner-spin-button,
  423. input[type='number']::-webkit-outer-spin-button {
  424. -webkit-appearance: none;
  425. margin: 0;
  426. }
  427. .main-title {
  428. display: flex;
  429. justify-content: space-between;
  430. align-items: center;
  431. height: 50px;
  432. border-bottom: 1px solid #dcdfe6;
  433. margin-top: 20px;
  434. margin-bottom: 20px;
  435. .title {
  436. font-size: 16px;
  437. font-weight: 600;
  438. padding-left: 10px;
  439. }
  440. }
  441. .hiprint-printElement-text-content {
  442. white-space: nowrap;
  443. overflow: hidden;
  444. text-overflow: ellipsis;
  445. }
  446. @media print {
  447. .hiprint-printElement-text-content {
  448. white-space: nowrap;
  449. overflow: hidden;
  450. text-overflow: ellipsis;
  451. }
  452. }
  453. //解决最后一行多出横线问题
  454. .el-table--border::after,
  455. .el-table--group::after,
  456. .el-table::before,
  457. .el-table__fixed:before,
  458. .el-table__fixed-right:before {
  459. background-color: transparent;
  460. }
  461. //解决表格行出现遮挡问题
  462. .el-table__fixed,
  463. .el-table__fixed-right {
  464. height: 100% !important;
  465. }