67d3ce1c438edd89ee8900397d6919607a6b8bcc.svn-base 16 KB

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