23f3c391e0b4784de6eb52e633d3ba14dcd5cced.svn-base 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  1. @import './variables.scss';
  2. @import './mixin.scss';
  3. @import './transition.scss';
  4. @import './element-ui.scss';
  5. @import './sidebar.scss';
  6. @import './btn.scss';
  7. body {
  8. height: 100%;
  9. -moz-osx-font-smoothing: grayscale;
  10. -webkit-font-smoothing: antialiased;
  11. text-rendering: optimizeLegibility;
  12. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  13. }
  14. label {
  15. font-weight: 700;
  16. }
  17. html {
  18. height: 100%;
  19. box-sizing: border-box;
  20. }
  21. #app {
  22. height: 100%;
  23. }
  24. *,
  25. *:before,
  26. *:after {
  27. box-sizing: inherit;
  28. }
  29. .no-padding {
  30. padding: 0px !important;
  31. }
  32. .padding-content {
  33. padding: 4px 0;
  34. }
  35. a:focus,
  36. a:active {
  37. outline: none;
  38. }
  39. a,
  40. a:focus,
  41. a:hover {
  42. cursor: pointer;
  43. color: inherit;
  44. text-decoration: none;
  45. }
  46. div:focus {
  47. outline: none;
  48. }
  49. .fr {
  50. float: right;
  51. }
  52. .fl {
  53. float: left;
  54. }
  55. .pr-5 {
  56. padding-right: 5px;
  57. }
  58. .pl-5 {
  59. padding-left: 5px;
  60. }
  61. .block {
  62. display: block;
  63. }
  64. .pointer {
  65. cursor: pointer;
  66. }
  67. .inlineBlock {
  68. display: block;
  69. }
  70. .clearfix {
  71. &:after {
  72. visibility: hidden;
  73. display: block;
  74. font-size: 0;
  75. content: " ";
  76. clear: both;
  77. height: 0;
  78. }
  79. }
  80. aside {
  81. background: #eef1f6;
  82. padding: 8px 24px;
  83. margin-bottom: 20px;
  84. border-radius: 2px;
  85. display: block;
  86. line-height: 32px;
  87. font-size: 16px;
  88. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  89. color: #2c3e50;
  90. -webkit-font-smoothing: antialiased;
  91. -moz-osx-font-smoothing: grayscale;
  92. a {
  93. color: #337ab7;
  94. cursor: pointer;
  95. &:hover {
  96. color: rgb(32, 160, 255);
  97. }
  98. }
  99. }
  100. //main-container全局样式
  101. .app-container {
  102. padding: 10px;
  103. background: #fff;
  104. }
  105. .components-container {
  106. margin: 30px 50px;
  107. position: relative;
  108. }
  109. .pagination-container {
  110. margin-top: 0px;
  111. }
  112. .text-center {
  113. text-align: center
  114. }
  115. .sub-navbar {
  116. height: 50px;
  117. line-height: 50px;
  118. position: relative;
  119. width: 100%;
  120. text-align: right;
  121. padding-right: 20px;
  122. transition: 600ms ease position;
  123. background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
  124. .subtitle {
  125. font-size: 20px;
  126. color: #fff;
  127. }
  128. &.draft {
  129. background: #d0d0d0;
  130. }
  131. &.deleted {
  132. background: #d0d0d0;
  133. }
  134. }
  135. .link-type,
  136. .link-type:focus {
  137. color: #337ab7;
  138. cursor: pointer;
  139. &:hover {
  140. color: rgb(32, 160, 255);
  141. }
  142. }
  143. .filter-container {
  144. padding-bottom: 10px;
  145. .filter-item {
  146. display: inline-block;
  147. vertical-align: middle;
  148. margin-bottom: 10px;
  149. }
  150. }
  151. //refine vue-multiselect plugin
  152. .multiselect {
  153. line-height: 16px;
  154. }
  155. .multiselect--active {
  156. z-index: 1000 !important;
  157. }
  158. /* firefox */
  159. input {
  160. filter: none !important;
  161. }
  162. .search{margin-bottom:10px;}
  163. .button{
  164. height: 50px;
  165. .exportTable{
  166. float: right;margin-right: 5px;height:30px;width:80px;border:1px solid #d4d4d4;line-height:30px;border-radius:3px;text-align:center;font-size:12px;color:#6b6b6b;
  167. }
  168. }
  169. $color1:#009C69;
  170. $color2:#FC2323;
  171. $color3:#fff;
  172. $color4:#F7BA2A;
  173. $color5:#e5f6f0;
  174. $color6:#FEF4DC;
  175. $color7:#333;
  176. $color8:#009A69;
  177. $color9:#4DB894;
  178. $color10:#D4D4D4;
  179. $color11:#6B6B6B;
  180. $color12:#CCCCCC;
  181. $color13:#666666;
  182. $color14:#EDF7F4;
  183. $color15:#19B6B1;
  184. $color16:#F4F4F5;
  185. $color17:#01BE80;
  186. $color18:#F65242;
  187. // .el-dialog__body{padding: 30px 0!important;}
  188. .el-dialog__header{border-bottom: 1px solid $color1;}
  189. .dialog-footer{
  190. position: relative;height: 30px;
  191. // border-top: 1px solid $color1;height: 30px;
  192. // 保存+取消
  193. .save {position: absolute;top: 10px;right: 20px;}
  194. .cancelClose {position: absolute;top: 10px;right: 130px;}
  195. .warning{position: absolute;top: 10px;right: 130px;}
  196. // 单取消
  197. .cancelClose1{position: absolute;top: 10px;right: 20px;}
  198. // 小保存+小取消
  199. .miniPrimary{position: absolute;top: 10px;right: 20px;}
  200. .downminCancel{position: absolute;top: 10px;right: 80px;}
  201. // :nth-child(2) button{position: absolute;top: 10px;right: 50px;}
  202. }
  203. // 颜色选择器
  204. .el-color-dropdown__btn{color: $color8;border:none;background: none;}
  205. .el-color-dropdown__btn:focus{ color: $color8;border:none;background: none;}
  206. .el-color-dropdown__btn:hover{color: $color8;border:none;background: none;}
  207. .el-button.is-plain:focus, .el-button.is-plain:hover{color: $color8;border:none;background: none;}
  208. .app-main{background: #fff;}
  209. // 时间范围选中后
  210. .el-date-table td.end-date span, .el-date-table td.start-date span{ background-color: $color1; }
  211. // 时间范围小图标
  212. .el-date-editor .el-range__icon{ color: $color1; }
  213. .el-input__icon{ color: $color1; }
  214. .el-range-editor.is-active, .el-range-editor.is-active:hover{border-color: $color1;}
  215. // 当前时间默认颜色
  216. .el-date-table td.today span{ color: $color1; }
  217. // 鼠标悬停颜色
  218. .el-date-table td.available:hover{ color: $color1; }
  219. .el-date-table td.current:not(.disabled) span{ background-color: $color1; }
  220. // 下拉框小图标
  221. .el-select .el-input .el-select__caret{ color: $color1; }
  222. .el-select .el-input.is-focus .el-input__inner{border-color: $color1;}
  223. .el-select .el-input__inner:focus{border-color: $color1;}
  224. .el-input.is-active .el-input__inner, .el-input__inner:focus{border-color: $color1;}
  225. .el-select-dropdown__item.selected{ color: $color1; }
  226. .el-select-dropdown.is-multiple .el-select-dropdown__item.selected{color: $color1;}
  227. // table全选
  228. .el-checkbox__input.is-checked .el-checkbox__inner{ background-color: $color1; border-color: $color1; }
  229. .el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner { background-color: $color1; border-color: $color1; }
  230. .el-checkbox__input.is-checked+.el-checkbox__label{ color: $color1; }
  231. // 单选按钮
  232. .el-radio__input.is-checked .el-radio__inner{ background-color: $color1; border-color: $color1; }
  233. .el-radio__input.is-checked+.el-radio__label{ color: $color1; }
  234. .el-radio__inner:hover{border-color: $color1;}
  235. // table
  236. .el-table{font-size: 12px;color:$color7;}
  237. .el-table--border:after, .el-table--group:after, .el-table:before { background-color: $color15!important; }
  238. .el-table--border, .el-table--group { border-color: $color15!important; }
  239. .el-table--border th, .el-table--border th.gutter:last-of-type { border-bottom: 1px solid $color15!important; }
  240. .el-table--border td, .el-table--border th { border-right: 1px solid $color15!important; }
  241. .el-table td, .el-table th.is-leaf { border-bottom: 1px solid $color15!important; }
  242. .el-table td,.building-top .el-table th.is-leaf { border-bottom: 1px solid $color15!important; }
  243. .fixed-width{border-bottom: $color15!important ;}
  244. .el-table__fixed-right{height: 100%!important;border-bottom: 1px solid $color15!important;}
  245. .el-table__fixed{height: 100%!important;border-bottom: 1px solid $color15!important;}
  246. .el-table__footer{border-top: 1px solid $color15!important;}
  247. .has-gutter tr th{background-color: $color14!important;}
  248. .el-table tr th.is-leaf{background-color: $color14!important;}
  249. .el-table__fixed-right-patch{background-color: $color14!important;}
  250. .el-table .cell{line-height: 18px!important;}
  251. // 修改合计在滚动条上方
  252. // .el-table { overflow-x: auto; }
  253. // .el-table__header-wrapper, .el-table__body-wrapper, .el-table__footer-wrapper { overflow: visible; }
  254. // .el-table::after { position: relative; }
  255. // .el-table--scrollable-x .el-table__body-wrapper { overflow: visible; }
  256. // .el-table__body{
  257. // width: 100%;
  258. // table-layout: fixed !important;
  259. // }
  260. .operation{margin-top: 10px;height: 44px;}
  261. .fixed-width button{vertical-align: middle;}
  262. .fixed-width button{padding: 0 0;}
  263. // 恢复默认
  264. .warning{background: #F7BA2A; border-color:#F7BA2A; color: #fff;min-width:100px;height: 40px;}
  265. .warning:focus, .warning:hover{ color: #fff; border-color: #F7BA2A; background-color: #F7BA2A; min-width:100px;height: 40px}
  266. // 新增/资料库/初始化库存/新增入库单
  267. .el-button{padding: 0px 10px;font-size: 16px;}
  268. .success{
  269. background: $color3; border-color: $color3; color: $color7;height: 34px; line-height:34px;
  270. i{color: $color1;}
  271. }
  272. .success:focus{ background: $color3; border-color: $color3; color: $color7;height: 34px; line-height:34px;}
  273. .success:hover{ color: $color1; border-color: $color1; background-color: $color5; height: 34px;line-height:34px;}
  274. // 复制
  275. .copy{
  276. background: $color3; border-color: $color3; color: $color7;height: 34px; line-height:34px;
  277. i{color: $color4;}
  278. }
  279. .copy:focus{ background: $color3; border-color: $color3; color: $color7;height: 34px; line-height:34px;}
  280. .copy:hover{ color: $color4; border-color: $color4; background-color: $color6; height: 34px;line-height:34px;}
  281. // 删除
  282. .danger{
  283. height: 34px;line-height:34px;background: $color3; border-color: $color3;
  284. i{color: $color2;}
  285. }
  286. .danger:focus{height: 34px;line-height:34px;background: $color3; border-color: $color3; color: $color2;}
  287. .danger:hover{height: 34px;background: rgba(252,48,47,.1); border-color: $color2; color: $color2;}
  288. // 小编辑/小保存/下拉搜索按钮/拆分预混料
  289. .miniSuccess{ color: $color7;font-size:18px;border:none;background: none;}
  290. .miniSuccess:focus{ color: $color7;font-size:18px;border:none;background: none;}
  291. .miniSuccess:hover{color: $color1;font-size:18px;border:none;background: none;}
  292. // 校正
  293. .correcting{color: $color8;font-size:12px;}
  294. .correcting:focus{color: $color8;font-size:12px;}
  295. .correcting:hover{color: $color8;font-size:12px;}
  296. // 小删除
  297. .miniDanger{color: $color2;font-size:18px;border:none;background: none;}
  298. .miniDanger:focus{color: $color2;font-size:18px;border:none;background: none;}
  299. .miniDanger:hover{color: $color2;font-size:18px;border:none;background: none;}
  300. // 小取消
  301. .minCancel{color: $color2;font-size:18px;border:none;background: none;}
  302. .minCancel:focus{color: $color2;font-size:18px;border:none;background: none;}
  303. .minCancel:hover{ color: $color2;font-size:18px;border:none;background: none;}
  304. // 查询/重置
  305. .successBorder{background: $color8; border-color: $color8; color: $color3;height:38px;padding:0 15px;font-size:14px;}
  306. .successBorder:focus{background: $color8; border-color: $color8; color: $color3;height:38px;padding:0 15px;font-size:14px;}
  307. .successBorder:hover{background:$color9; border-color: $color9; color: $color3;height:38px;padding:0 15px;font-size:14px;}
  308. // 查看
  309. .miniPrimary{ background: $color8; border-color: $color8; color: $color3;padding: 7px 10px !important;font-size:14px;min-width:60px;}
  310. .miniPrimary:focus{background: $color8; border-color: $color8; color: $color3;padding: 7px 10px !important;font-size:14px;min-width:60px;}
  311. .miniPrimary:hover{color: $color3; border-color: $color9; background-color: $color9;padding: 7px 10px !important;font-size:14px;min-width:60px;}
  312. // 顺序保存
  313. .sortCancel{ background: $color3; border-color: $color3; color: $color13;height: 34px; line-height:34px;}
  314. .sortCancel:focus{ background: $color3; border-color: $color12; color: $color13;height: 34px; line-height:34px;}
  315. .sortCancel:hover{ color: $color13; border-color: $color12; background-color: $color3; height: 34px;line-height:34px;}
  316. // 下拉取消
  317. .downminCancel{background: $color3; border-color: $color12; color: $color13;padding: 7px 10px;font-size:14px;min-width:60px;}
  318. .downminCancel:focus{background: $color3; border-color: $color12; color: $color13;padding: 7px 10px;font-size:14px;min-width:60px;}
  319. .downminCancel:hover{ color: $color13; border-color: $color12; background-color: $color3; padding: 7px 10px;font-size:14px;min-width:60px;}
  320. // 弹出小框取消跟确认
  321. .el-message-box__btns .el-button{padding: 9px 15px!important;}
  322. .el-message-box__btns .el-button--default:hover{color: $color8; border-color: $color8; background-color:$color3; padding: 9px 19px;}
  323. .el-message-box__btns .el-button--primary{color: $color3; border-color: $color8; background-color: $color8; padding: 9px 19px;}
  324. .el-message-box__btns .el-button--primary:hover{color: $color3; border-color: $color9; background-color: $color9; padding: 9px 19px;}
  325. // 隐藏
  326. .hide{background: $color3; border-color: $color10; color: $color11;height:38px;}
  327. .hide:focus{background: $color3; border-color: $color10; color: $color11;height:38px;}
  328. .hide:hover{background:$color16; border-color: $color10; color: $color11;height:38px;}
  329. // 导出
  330. .export{background: $color3; border-color: $color10; color: $color11;min-width:100px;height: 38px;margin-right: 10px;}
  331. .export:focus{background: $color3; border-color: $color10; color: $color11;min-width:100px;height: 38px;margin-right: 10px;}
  332. .export:hover{ color: $color11; border-color: $color10; background-color: $color16; min-width:100px;height: 38px;margin-right: 10px;}
  333. // 导入
  334. .import{background: $color3; border-color: $color10; color: $color11;min-width:100px;height: 38px;}
  335. .import:focus{background: $color3; border-color: $color10; color: $color11;min-width:100px;height: 38px;}
  336. .import:hover{ color: $color11; border-color: $color10; background-color: $color16; min-width:100px;height: 38px;}
  337. // 切换表格
  338. .exportTable{ height:30px;width:80px;border:1px solid $color10;line-height:30px;border-radius:3px;text-align:center;font-size:12px;color:#6b6b6b;}
  339. .exportTable:focus{background: $color3; border-color: $color10; color: $color11;height:30px;width:80px;}
  340. .exportTable:hover{ color: $color11; border-color: $color10; background-color: $color16; height:30px;width:80px;}
  341. // 取消/关闭
  342. .cancelClose{background: $color3; border-color: $color12; color: $color13;min-width:100px;height: 38px;}
  343. .cancelClose:focus, .cancelClose:hover{ color: $color13; border-color: $color12; background-color: $color3; min-width:100px;height: 38px}
  344. .cancelClose1{background: $color3; border-color: $color12; color: $color13;min-width:100px;height: 38px;}
  345. .cancelClose1:focus, .cancelClose1:hover{ color: $color13; border-color: $color12; background-color: $color3; min-width:100px;height: 38px}
  346. // 确认
  347. .save{background: $color8; border-color: $color8; color: $color3;min-width:100px;height: 38px;}
  348. .save:focus{background: $color8; border-color: $color8; color: $color3;min-width:100px;height: 38px;}
  349. .save:hover{background:$color9; border-color: $color9; color: $color3;min-width:100px;height: 38px;}
  350. // 仪表盘编辑
  351. .el-button--text{color: $color1!important;}
  352. // 仪表盘添加筛选条件
  353. .save.is-disabled, .save.is-disabled:focus, .save.is-disabled:hover{background: $color1!important;color:$color3 ; }
  354. .visualize-card div i{ color: #009A69 !important; }
  355. // 间隔线
  356. .centerSpan{padding: 0 5px 0 8px;color: $color12;}
  357. // 时间快捷键左右
  358. .elIconArrowLeft{margin-right: -5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color3;border-color:$color10;}
  359. .elIconArrowLeft:focus{margin-right: -5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color3;border-color:$color10;}
  360. .elIconArrowLeft:hover{margin-right: -5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color16;border-color:$color10;}
  361. .elIconArrowRight{margin-right: 5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color3;border-color:$color10;}
  362. .elIconArrowRight:focus{margin-right: 5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color3;border-color:$color10;}
  363. .elIconArrowRight:hover{margin-right: 5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color16;border-color:$color10;}
  364. // 关闭窗口
  365. .el-message-box__headerbtn:focus .el-message-box__close, .el-message-box__headerbtn:hover .el-message-box__close{color:$color1;}
  366. .el-dialog__headerbtn:focus .el-dialog__close, .el-dialog__headerbtn:hover .el-dialog__close{color:$color1;}
  367. // tab切换
  368. .el-tabs__item.is-active { color: $color1; }
  369. .el-tabs__active-bar{background-color: $color1;}
  370. .el-tabs__item:hover{color: $color1;}
  371. .el-tabs__item{font-size: 16px;}
  372. .el-radio-button__orig-radio:checked+.el-radio-button__inner{ background-color:$color1;border-color:$color1; }
  373. .el-radio-button__inner:hover{color: $color1;}
  374. .el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{color: $color1;}
  375. .el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color: $color1;}
  376. // 给我一点时间
  377. .el-loading-spinner .el-loading-text{color: $color1;}
  378. .el-loading-spinner .path{stroke:$color1;}
  379. // 菜单-树
  380. .el-tag{background-color:$color5;border-color:$color1;color:$color1;}
  381. // 启用
  382. .el-switch.is-checked .el-switch__core{ border-color:$color17!important;background-color:$color17!important; }
  383. .el-switch__core{ border-color:$color18!important;background-color:$color18!important; }
  384. // 分页
  385. .el-pagination.is-background .el-pager li:not(.disabled).active{background-color:$color1; }
  386. .el-pagination.is-background .el-pager li:not(.disabled).active:hover{color: #fff; }
  387. .el-pagination.is-background .el-pager li:not(.disabled):hover{color: $color1;}
  388. body .el-table th.gutter{ display: table-cell!important; }
  389. body .el-table tr.gutter{ display: table-cell!important; }
  390. // 顶部tab切换
  391. .tags-view-container .tags-view-wrapper .tags-view-item.active{ background-color:$color1 !important;border-color: $color1!important; }
  392. // 右侧下拉
  393. .el-dropdown-menu__item:focus, .el-dropdown-menu__item:not(.is-disabled):hover{color:$color1 !important;}
  394. // .gutter { display: block !important; width: 17px !important; }
  395. // .el-table{ min-height: 290px !important; }
  396. .down{
  397. width: 40px;color:red!important;height: 40px;float: right;
  398. transform:rotate(7deg);
  399. -ms-transform:rotate(180deg); /* IE 9 */
  400. -moz-transform:rotate(180deg); /* Firefox */
  401. -webkit-transform:rotate(180deg); /* Safari 和 Chrome */
  402. -o-transform:rotate(180deg);
  403. }
  404. .el-menu-item.is-active{
  405. color:$menuActiveBg !important;
  406. }
  407. .el-dialog__header {
  408. padding: 15px 20px 15px;
  409. }
  410. .el-dialog__headerbtn{
  411. top: 15px;
  412. }
  413. /*dialog header*/
  414. .el-dialog__header{
  415. // background: #e3eaed;
  416. }
  417. .avue-crud__dialog__header {
  418. display: -webkit-box;
  419. display: -ms-flexbox;
  420. display: flex;
  421. -webkit-box-align: center;
  422. -ms-flex-align: center;
  423. align-items: center;
  424. -webkit-box-pack: justify;
  425. -ms-flex-pack: justify;
  426. justify-content: space-between;
  427. }
  428. .el-dialog__title {
  429. color: rgba(0,0,0,.85);
  430. font-weight: 500;
  431. word-wrap: break-word;
  432. }
  433. .avue-crud__dialog__menu {
  434. padding-right: 20px;
  435. float: left;
  436. position: relative;
  437. }
  438. .avue-crud__dialog__menu svg {
  439. color: #909399;
  440. position: absolute;
  441. width: 10px !important;
  442. height: 10px !important;
  443. top: -8px;
  444. right: 25px;
  445. }
  446. .avue-crud__dialog__menu .svg-icon{
  447. }
  448. .el-icon-full-screen{
  449. cursor: pointer;
  450. }
  451. .el-icon-full-screen:before {
  452. content: "\e719";
  453. }