e7bcb0ddcba3549ec4d08bf810c068f09e9315d3.svn-base 18 KB

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