index.scss 8.1 KB

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