index.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  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. }
  117. .btn-group {
  118. .text {
  119. font-size: 16px;
  120. color: #666;
  121. line-height: 32px;
  122. }
  123. }
  124. // 导入
  125. .import-btn {
  126. position: relative;
  127. }
  128. .el-upload-list {
  129. position: absolute;
  130. top: 20px;
  131. left: 0;
  132. }
  133. }
  134. // 抽屉样式
  135. .el-drawer {
  136. // 整体
  137. .el-drawer__body {
  138. overflow-y: scroll;
  139. }
  140. .drawer__content {
  141. padding: 0 20px;
  142. }
  143. .drawer__footer {
  144. position: sticky;
  145. bottom: 0;
  146. left: 0;
  147. width: 100%;
  148. background: #fff;
  149. padding: 20px;
  150. }
  151. .drawer__content .el-date-editor {
  152. width: 100%;
  153. }
  154. // 选择器
  155. .el-select {
  156. width: 100%;
  157. }
  158. // 图片墙
  159. .el-upload-list--picture-card .el-upload-list__item {
  160. width: 100px;
  161. height: 100px;
  162. }
  163. .el-upload--picture-card {
  164. width: 100px;
  165. height: 100px;
  166. line-height: 100px;
  167. .avatar-uploader-icon {
  168. font-size: 28px;
  169. color: #8c939d;
  170. width: 100px;
  171. height: 100px;
  172. line-height: 100px;
  173. text-align: center;
  174. }
  175. }
  176. }
  177. .el-popover-left {
  178. margin-left: 10px;
  179. }
  180. // 上传照片样式
  181. .avatar-uploader .el-upload {
  182. border: 1px dashed #d9d9d9;
  183. border-radius: 6px;
  184. cursor: pointer;
  185. position: relative;
  186. overflow: hidden;
  187. }
  188. .avatar-uploader .el-upload:hover {
  189. border-color: #409EFF;
  190. }
  191. .avatar-uploader .el-upload-list {
  192. position: relative;
  193. top: unset;
  194. left: unset;
  195. }
  196. .avatar-uploader-icon {
  197. font-size: 28px;
  198. color: #8c939d;
  199. width: 120px;
  200. height: 120px;
  201. line-height: 120px;
  202. text-align: center;
  203. }
  204. .avatar {
  205. width: 120px;
  206. height: 120px;
  207. display: block;
  208. }
  209. // 系统设置
  210. .setting_title {
  211. font-size: 18px;
  212. padding-left: 15px;
  213. font-weight: 600;
  214. }
  215. .el-menu-item, .el-submenu__title {
  216. font-weight: 600 !important;
  217. }
  218. .page-footer {
  219. height: 70px;
  220. .footer {
  221. position: fixed;
  222. bottom: 0;
  223. left: 0;
  224. z-index: 1;
  225. width: 100%;
  226. background: #fff;
  227. padding: 15px 40px;
  228. box-sizing: border-box;
  229. transition: all 0.28s;
  230. text-align: right;
  231. box-shadow: 0 2px 5px 0 rgb(0 0 0 / 50%), 0 2px 5px 0 rgb(0 0 0 / 10%);
  232. &.hideSidebar {
  233. margin-left: 54px;
  234. width: calc(100vw - 54px);
  235. }
  236. &.openSidebar {
  237. margin-left: 210px;
  238. width: calc(100vw - 210px);
  239. }
  240. }
  241. }
  242. .diy-table-1 {
  243. border: 1px solid #EBEEF5;
  244. border-right: none;
  245. border-bottom: none;
  246. .item {
  247. display: flex;
  248. border-bottom: 1px solid #EBEEF5;
  249. .label {
  250. width: 120px;
  251. height: 40px;
  252. display: flex;
  253. align-items: center;
  254. padding: 0 10px;
  255. box-sizing: border-box;
  256. background: #F5F7FA;
  257. border-right: 1px solid #EBEEF5;
  258. font-size: 14px;
  259. color: #333333;
  260. }
  261. .value {
  262. flex: 1;
  263. height: 40px;
  264. display: flex;
  265. align-items: center;
  266. padding: 0 10px;
  267. box-sizing: border-box;
  268. border-right: 1px solid #EBEEF5;
  269. font-size: 14px;
  270. color: #333333;
  271. input {
  272. border: none;
  273. padding: 0;
  274. }
  275. }
  276. }
  277. }
  278. .diy-table-2 {
  279. font-size: 14px;
  280. margin-top: 20px;
  281. margin-bottom: 20px;
  282. .el-row {
  283. margin-left: 0 !important;
  284. margin-right: 0 !important;
  285. border: 1px solid #EBEEF5;
  286. border-right: none;
  287. }
  288. .el-col {
  289. padding-top: 14px;
  290. padding-bottom: 14px;
  291. border-right: 1px solid #EBEEF5;
  292. }
  293. .head {
  294. color: #909399;
  295. font-weight: bold;
  296. background: #F5F7FA;
  297. }
  298. .body {
  299. color: #333333;
  300. .el-row {
  301. border-top: none;
  302. }
  303. }
  304. .foot {
  305. color: #333333;
  306. .el-row {
  307. border-top: none;
  308. }
  309. }
  310. }
  311. .diy-form-1 {
  312. .item {
  313. display: flex;
  314. height: 40px;
  315. .label {
  316. width: 100px;
  317. display: flex;
  318. align-items: center;
  319. padding-right: 10px;
  320. box-sizing: border-box;
  321. font-size: 14px;
  322. color: #606266;
  323. font-weight: 700;
  324. }
  325. .value {
  326. flex: 1;
  327. display: flex;
  328. align-items: center;
  329. box-sizing: border-box;
  330. font-size: 14px;
  331. color: #333333;
  332. input {
  333. border: none;
  334. padding: 0;
  335. }
  336. }
  337. }
  338. }
  339. input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
  340. -webkit-appearance: none;
  341. margin: 0;
  342. }