index.scss 7.0 KB

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