3e4ac56ab715827f3aa1fbeb67be39f37f616b7f.svn-base 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  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. // 下拉框小图标
  220. .el-select .el-input .el-select__caret{ color: $color1; }
  221. .el-select .el-input.is-focus .el-input__inner{border-color: $color1;}
  222. .el-select .el-input__inner:focus{border-color: $color1;}
  223. .el-input.is-active .el-input__inner, .el-input__inner:focus{border-color: $color1;}
  224. .el-select-dropdown__item.selected{ color: $color1; }
  225. .el-select-dropdown.is-multiple .el-select-dropdown__item.selected{color: $color1;}
  226. // table全选
  227. .el-checkbox__input.is-checked .el-checkbox__inner{ background-color: $color1; border-color: $color1; }
  228. .el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner { background-color: $color1; border-color: $color1; }
  229. .el-checkbox__input.is-checked+.el-checkbox__label{ color: $color1; }
  230. // 单选按钮
  231. .el-radio__input.is-checked .el-radio__inner{ background-color: $color1; border-color: $color1; }
  232. .el-radio__input.is-checked+.el-radio__label{ color: $color1; }
  233. // table
  234. .el-table{font-size: 12px;color:$color7;}
  235. .el-table--border:after, .el-table--group:after, .el-table:before { background-color: $color15!important; }
  236. .el-table--border, .el-table--group { border-color: $color15!important; }
  237. .el-table--border th, .el-table--border th.gutter:last-of-type { border-bottom: 1px solid $color15!important; }
  238. .el-table--border td, .el-table--border th { border-right: 1px solid $color15!important; }
  239. .el-table td, .el-table th.is-leaf { border-bottom: 1px solid $color15!important; }
  240. .el-table td,.building-top .el-table th.is-leaf { border-bottom: 1px solid $color15!important; }
  241. .fixed-width{border-bottom: $color15!important ;}
  242. .el-table__fixed-right{height: 100%!important;border-bottom: 1px solid $color15!important;}
  243. .el-table__fixed{height: 100%!important;border-bottom: 1px solid $color15!important;}
  244. .el-table__footer{border-top: 1px solid $color15!important;}
  245. .has-gutter tr th{background-color: $color14!important;}
  246. .el-table tr th.is-leaf{background-color: $color14!important;}
  247. .el-table__fixed-right-patch{background-color: $color14!important;}
  248. .el-table .cell{line-height: 18px!important;}
  249. // 修改合计在滚动条上方
  250. // .el-table { overflow-x: auto; }
  251. // .el-table__header-wrapper, .el-table__body-wrapper, .el-table__footer-wrapper { overflow: visible; }
  252. // .el-table::after { position: relative; }
  253. // .el-table--scrollable-x .el-table__body-wrapper { overflow: visible; }
  254. .operation{margin-top: 10px;height: 44px;}
  255. .fixed-width button{vertical-align: middle;}
  256. .fixed-width button{padding: 0 0;}
  257. // 恢复默认
  258. .warning{background: #F7BA2A; border-color:#F7BA2A; color: #fff;min-width:100px;height: 40px;}
  259. .warning:focus, .warning:hover{ color: #fff; border-color: #F7BA2A; background-color: #F7BA2A; min-width:100px;height: 40px}
  260. // 新增/资料库/初始化库存/新增入库单
  261. .el-button{padding: 0px 10px;font-size: 16px;}
  262. .success{
  263. background: $color3; border-color: $color3; color: $color7;height: 34px; line-height:34px;
  264. i{color: $color1;}
  265. }
  266. .success:focus{ background: $color3; border-color: $color3; color: $color7;height: 34px; line-height:34px;}
  267. .success:hover{ color: $color1; border-color: $color1; background-color: $color5; height: 34px;line-height:34px;}
  268. // 复制
  269. .copy{
  270. background: $color3; border-color: $color3; color: $color7;height: 34px; line-height:34px;
  271. i{color: $color4;}
  272. }
  273. .copy:focus{ background: $color3; border-color: $color3; color: $color7;height: 34px; line-height:34px;}
  274. .copy:hover{ color: $color4; border-color: $color4; background-color: $color6; height: 34px;line-height:34px;}
  275. // 删除
  276. .danger{
  277. height: 34px;line-height:34px;background: $color3; border-color: $color3;
  278. i{color: $color2;}
  279. }
  280. .danger:focus{height: 34px;line-height:34px;background: $color3; border-color: $color3; color: $color2;}
  281. .danger:hover{height: 34px;background: rgba(252,48,47,.1); border-color: $color2; color: $color2;}
  282. // 小编辑/小保存/下拉搜索按钮/拆分预混料
  283. .miniSuccess{ color: $color7;font-size:18px;border:none;background: none;}
  284. .miniSuccess:focus{ color: $color7;font-size:18px;border:none;background: none;}
  285. .miniSuccess:hover{color: $color1;font-size:18px;border:none;background: none;}
  286. // 校正
  287. .correcting{color: $color8;font-size:12px;}
  288. .correcting:focus{color: $color8;font-size:12px;}
  289. .correcting:hover{color: $color8;font-size:12px;}
  290. // 小删除
  291. .miniDanger{color: $color2;font-size:18px;border:none;background: none;}
  292. .miniDanger:focus{color: $color2;font-size:18px;border:none;background: none;}
  293. .miniDanger:hover{color: $color2;font-size:18px;border:none;background: none;}
  294. // 小取消
  295. .minCancel{color: $color2;font-size:18px;border:none;background: none;}
  296. .minCancel:focus{color: $color2;font-size:18px;border:none;background: none;}
  297. .minCancel:hover{ color: $color2;font-size:18px;border:none;background: none;}
  298. // 查询/重置
  299. .successBorder{background: $color8; border-color: $color8; color: $color3;height:38px;padding:0 15px;font-size:14px;}
  300. .successBorder:focus{background: $color8; border-color: $color8; color: $color3;height:38px;padding:0 15px;font-size:14px;}
  301. .successBorder:hover{background:$color9; border-color: $color9; color: $color3;height:38px;padding:0 15px;font-size:14px;}
  302. // 查看
  303. .miniPrimary{ background: $color8; border-color: $color8; color: $color3;padding: 7px 10px !important;font-size:14px;min-width:60px;}
  304. .miniPrimary:focus{background: $color8; border-color: $color8; color: $color3;padding: 7px 10px !important;font-size:14px;min-width:60px;}
  305. .miniPrimary:hover{color: $color3; border-color: $color9; background-color: $color9;padding: 7px 10px !important;font-size:14px;min-width:60px;}
  306. // 顺序保存
  307. .sortCancel{ background: $color3; border-color: $color3; color: $color13;height: 34px; line-height:34px;}
  308. .sortCancel:focus{ background: $color3; border-color: $color12; color: $color13;height: 34px; line-height:34px;}
  309. .sortCancel:hover{ color: $color13; border-color: $color12; background-color: $color3; height: 34px;line-height:34px;}
  310. // 下拉取消
  311. .downminCancel{background: $color3; border-color: $color12; color: $color13;padding: 7px 10px;font-size:14px;min-width:60px;}
  312. .downminCancel:focus{background: $color3; border-color: $color12; color: $color13;padding: 7px 10px;font-size:14px;min-width:60px;}
  313. .downminCancel:hover{ color: $color13; border-color: $color12; background-color: $color3; padding: 7px 10px;font-size:14px;min-width:60px;}
  314. // 弹出小框取消跟确认
  315. .el-message-box__btns .el-button{padding: 9px 15px!important;}
  316. .el-message-box__btns .el-button--default:hover{color: $color8; border-color: $color8; background-color:$color3; padding: 9px 19px;}
  317. .el-message-box__btns .el-button--primary{color: $color3; border-color: $color8; background-color: $color8; padding: 9px 19px;}
  318. .el-message-box__btns .el-button--primary:hover{color: $color3; border-color: $color9; background-color: $color9; padding: 9px 19px;}
  319. // 隐藏
  320. .hide{background: $color3; border-color: $color10; color: $color11;height:38px;}
  321. .hide:focus{background: $color3; border-color: $color10; color: $color11;height:38px;}
  322. .hide:hover{background:$color16; border-color: $color10; color: $color11;height:38px;}
  323. // 导出
  324. .export{background: $color3; border-color: $color10; color: $color11;min-width:100px;height: 38px;margin-right: 10px;}
  325. .export:focus{background: $color3; border-color: $color10; color: $color11;min-width:100px;height: 38px;margin-right: 10px;}
  326. .export:hover{ color: $color11; border-color: $color10; background-color: $color16; min-width:100px;height: 38px;margin-right: 10px;}
  327. // 导入
  328. .import{background: $color3; border-color: $color10; color: $color11;min-width:100px;height: 38px;}
  329. .import:focus{background: $color3; border-color: $color10; color: $color11;min-width:100px;height: 38px;}
  330. .import:hover{ color: $color11; border-color: $color10; background-color: $color16; min-width:100px;height: 38px;}
  331. // 切换表格
  332. .exportTable{ height:30px;width:80px;border:1px solid $color10;line-height:30px;border-radius:3px;text-align:center;font-size:12px;color:#6b6b6b;}
  333. .exportTable:focus{background: $color3; border-color: $color10; color: $color11;height:30px;width:80px;}
  334. .exportTable:hover{ color: $color11; border-color: $color10; background-color: $color16; height:30px;width:80px;}
  335. // 取消/关闭
  336. .cancelClose{background: $color3; border-color: $color12; color: $color13;min-width:100px;height: 38px;}
  337. .cancelClose:focus, .cancelClose:hover{ color: $color13; border-color: $color12; background-color: $color3; min-width:100px;height: 38px}
  338. // 确认
  339. .save{background: $color8; border-color: $color8; color: $color3;min-width:100px;height: 38px;}
  340. .save:focus{background: $color8; border-color: $color8; color: $color3;min-width:100px;height: 38px;}
  341. .save:hover{background:$color9; border-color: $color9; color: $color3;min-width:100px;height: 38px;}
  342. // 仪表盘编辑
  343. .el-button--text{color: $color1!important;}
  344. // 仪表盘添加筛选条件
  345. .save.is-disabled, .save.is-disabled:focus, .save.is-disabled:hover{background: $color1!important;color:$color3 ; }
  346. .visualize-card div i{ color: #009A69 !important; }
  347. // 间隔线
  348. .centerSpan{padding: 0 5px 0 8px;color: $color12;}
  349. // 时间快捷键左右
  350. .elIconArrowLeft{margin-right: -5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color3;border-color:$color10;}
  351. .elIconArrowLeft:focus{margin-right: -5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color3;border-color:$color10;}
  352. .elIconArrowLeft:hover{margin-right: -5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color16;border-color:$color10;}
  353. .elIconArrowRight{margin-right: 5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color3;border-color:$color10;}
  354. .elIconArrowRight:focus{margin-right: 5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color3;border-color:$color10;}
  355. .elIconArrowRight:hover{margin-right: 5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color16;border-color:$color10;}
  356. // 关闭窗口
  357. .el-message-box__headerbtn:focus .el-message-box__close, .el-message-box__headerbtn:hover .el-message-box__close{color:$color1;}
  358. .el-dialog__headerbtn:focus .el-dialog__close, .el-dialog__headerbtn:hover .el-dialog__close{color:$color1;}
  359. // tab切换
  360. .el-tabs__item.is-active { color: $color1; }
  361. .el-tabs__active-bar{background-color: $color1;}
  362. .el-tabs__item:hover{color: $color1;}
  363. .el-tabs__item{font-size: 16px;}
  364. .el-radio-button__orig-radio:checked+.el-radio-button__inner{ background-color:$color1;border-color:$color1; }
  365. .el-radio-button__inner:hover{color: $color1;}
  366. .el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{color: $color1;}
  367. .el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color: $color1;}
  368. // 给我一点时间
  369. .el-loading-spinner .el-loading-text{color: $color1;}
  370. .el-loading-spinner .path{stroke:$color1;}
  371. // 菜单-树
  372. .el-tag{background-color:$color5;border-color:$color1;color:$color1;}
  373. // 启用
  374. .el-switch.is-checked .el-switch__core{ border-color:$color17!important;background-color:$color17!important; }
  375. .el-switch__core{ border-color:$color18!important;background-color:$color18!important; }
  376. // 分页
  377. .el-pagination.is-background .el-pager li:not(.disabled).active{background-color:$color1; }
  378. .el-pagination.is-background .el-pager li:not(.disabled).active:hover{color: #fff; }
  379. .el-pagination.is-background .el-pager li:not(.disabled):hover{color: $color1;}
  380. body .el-table th.gutter{ display: table-cell!important; }
  381. body .el-table tr.gutter{ display: table-cell!important; }
  382. // 顶部tab切换
  383. .tags-view-container .tags-view-wrapper .tags-view-item.active{ background-color:$color1 !important;border-color: $color1!important; }
  384. // 右侧下拉
  385. .el-dropdown-menu__item:focus, .el-dropdown-menu__item:not(.is-disabled):hover{color:$color1 !important;}
  386. // .gutter { display: block !important; width: 17px !important; }
  387. // .el-table{ min-height: 290px !important; }
  388. .down{
  389. width: 40px;color:red!important;height: 40px;float: right;
  390. transform:rotate(7deg);
  391. -ms-transform:rotate(180deg); /* IE 9 */
  392. -moz-transform:rotate(180deg); /* Firefox */
  393. -webkit-transform:rotate(180deg); /* Safari 和 Chrome */
  394. -o-transform:rotate(180deg);
  395. }
  396. .el-menu-item.is-active{
  397. color:$menuActiveBg !important;
  398. }