155bdabcc6dfae5be0791479cd4d45be7985f310.svn-base 16 KB

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