public-class.scss 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. @import 'public';
  2. // 补丁 base
  3. @import '~@/assets/style/fixed/base.scss';
  4. // 补丁 element
  5. @import '~@/assets/style/fixed/element.scss';
  6. // 补丁 markdown
  7. @import '~@/assets/style/fixed/markdown.scss';
  8. // 补丁 n-progress
  9. @import '~@/assets/style/fixed/n-progress.scss';
  10. // 补丁 vue-splitpane
  11. @import '~@/assets/style/fixed/vue-splitpane.scss';
  12. // 补丁 vue-grid-layout
  13. @import '~@/assets/style/fixed/vue-grid-layout.scss';
  14. // 补丁 tree-view
  15. @import '~@/assets/style/fixed/tree-view.scss';
  16. // 动画
  17. @import '~@/assets/style/animate/vue-transition.scss';
  18. // 在这里写公用的class
  19. // 注意 这个文件里只写class
  20. // mixin等内容请在 public.scss 里书写
  21. // 文字相关
  22. .#{$prefix}-text-center {
  23. text-align: center;
  24. }
  25. // 浮动相关
  26. .#{$prefix}-fl {
  27. float: left;
  28. }
  29. .#{$prefix}-fr {
  30. float: right;
  31. }
  32. // 边距相关
  33. $sizes: (0, 5, 10, 15, 20);
  34. @for $index from 1 to 6 {
  35. .#{$prefix}-m-#{nth($sizes, $index)} { margin: #{nth($sizes, $index)}px !important; }
  36. .#{$prefix}-mt-#{nth($sizes, $index)} { margin-top: #{nth($sizes, $index)}px !important; }
  37. .#{$prefix}-mr-#{nth($sizes, $index)} { margin-right: #{nth($sizes, $index)}px !important; }
  38. .#{$prefix}-mb-#{nth($sizes, $index)} { margin-bottom: #{nth($sizes, $index)}px !important; }
  39. .#{$prefix}-ml-#{nth($sizes, $index)} { margin-left: #{nth($sizes, $index)}px !important; }
  40. .#{$prefix}-p-#{nth($sizes, $index)} { padding: #{nth($sizes, $index)}px !important; }
  41. .#{$prefix}-pt-#{nth($sizes, $index)} { padding-top: #{nth($sizes, $index)}px !important; }
  42. .#{$prefix}-pr-#{nth($sizes, $index)} { padding-right: #{nth($sizes, $index)}px !important; }
  43. .#{$prefix}-pb-#{nth($sizes, $index)} { padding-bottom: #{nth($sizes, $index)}px !important; }
  44. .#{$prefix}-pl-#{nth($sizes, $index)} { padding-left: #{nth($sizes, $index)}px !important; }
  45. }
  46. // 快速使用
  47. .#{$prefix}-m { margin: 20px !important; }
  48. .#{$prefix}-mt { margin-top: 20px !important; }
  49. .#{$prefix}-mr { margin-right: 20px !important; }
  50. .#{$prefix}-mb { margin-bottom: 20px !important; }
  51. .#{$prefix}-ml { margin-left: 20px !important; }
  52. .#{$prefix}-p { padding: 20px !important; }
  53. .#{$prefix}-pt { padding-top: 20px !important; }
  54. .#{$prefix}-pr { padding-right: 20px !important; }
  55. .#{$prefix}-pb { padding-bottom: 20px !important; }
  56. .#{$prefix}-pl { padding-left: 20px !important; }
  57. //左侧菜单样式
  58. .main{
  59. .left {
  60. width: 280px;
  61. // height:100%;
  62. // min-height:922px;
  63. height: calc(100vh - 110px);
  64. overflow-y: auto;
  65. background: #fff;
  66. }
  67. }
  68. .el-tree-node{
  69. // background: #163d79;
  70. // color:#fff;
  71. font-size:12px;
  72. }
  73. //鼠标移到每行时的背景色
  74. // .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{
  75. // background:hsl(204, 66%, 23%) !important;
  76. // }
  77. // //头部导航一级菜单的样式
  78. .theme-d2 .d2-theme-header .el-menu .el-menu-item{
  79. // border-right:linear-gradient(#193a6d, #487B98 20%,#193a6d 80%) !important;
  80. border-right:linear-gradient(red yellow) !important;
  81. }
  82. // 去除二级子菜单的上下padding
  83. .el-menu--horizontal .el-menu--popup {
  84. padding: 0;
  85. }
  86. .el-menu--horizontal .el-menu {
  87. // 设置子菜单四周上左和右下的阴影
  88. box-shadow: 2px 2px 2px 1px rgba(228, 231, 235, 0.2),-2px -2px 2px 1px rgba(228, 231, 235, 0.2);
  89. border-radius: 2px;
  90. background-color: transparent;
  91. }
  92. //头部导航二级菜单选中后整体的背景色
  93. .el-menu--horizontal .el-menu .el-menu-item{
  94. background:#fff !important;
  95. // border:1px solid #346ebd;
  96. text-align: center;
  97. }
  98. //头部导航二级菜单选中后每个的背景色
  99. .theme-d2 .el-menu--horizontal .el-menu-item:not(.is-disabled):hover{
  100. // background:rgb(23, 105, 66) !important;
  101. // color: #fff !important;
  102. }
  103. .el-menu--horizontal .el-menu--collapse .el-menu .el-submenu, .el-menu--popup {
  104. min-width: 142px !important;
  105. }
  106. .el-menu--horizontal .el-menu .el-submenu.is-active>.el-submenu__title {
  107. color: #fff !important;
  108. }
  109. .el-submenu.is-active {
  110. color: #fff;
  111. }
  112. .el-menu--horizontal .el-menu .el-menu-item.is-active, .el-menu--horizontal .el-menu .el-submenu.is-active>.el-submenu__title {
  113. color: #fff !important;
  114. }
  115. .el-menu--horizontal .el-menu .el-menu-item.is-active, .el-menu--horizontal .el-menu .el-submenu.is-active {
  116. background-color:rgb(23, 105, 66) ;
  117. }
  118. //头部导航仓房展示icon的大小
  119. .fa-university{
  120. font-size:13px !important;
  121. }
  122. // .theme-d2 .d2-theme-header .el-menu .el-submenu.is-active .el-submenu__title{
  123. // background: #0068a0 !important;
  124. // color:#fff !important;
  125. // }
  126. //主体内容样式
  127. .right_main {
  128. // border: 1px solid #67a7df;
  129. background: #fff;
  130. border-top-left-radius: 6px;
  131. border-top-right-radius: 6px;
  132. // margin-top: 10px;
  133. .right_title {
  134. // color: #fff;
  135. // border-bottom: 1px solid #67a7df;
  136. padding: 10px;
  137. font-size: 14px;
  138. margin-bottom: 10px;
  139. }
  140. .right_table {
  141. padding: 20px;
  142. }
  143. }
  144. //分页整体样式
  145. .el-pagination {
  146. margin-top: 20px;
  147. display: flex;
  148. justify-content: flex-end;
  149. }
  150. .el-pagination .el-icon-arrow-right:before{
  151. color:#303133
  152. }
  153. .el-pagination button:disabled>.el-icon-arrow-right:before{
  154. color:#C0C4CC
  155. }
  156. //分页总共几页样式
  157. // .el-pagination__total {
  158. // color: #fff !important;
  159. // }
  160. // //label样式
  161. // #formLabel .el-form-item__label {
  162. // color: #fff;
  163. // }
  164. // // 分页跳转颜色
  165. // .el-pagination .el-pagination__jump {
  166. // color: #fff;
  167. // }
  168. // // 弹窗关闭icon颜色
  169. // .el-dialog .el-dialog__headerbtn .el-dialog__close {
  170. // color: #fff;
  171. // }
  172. //树形节点选中后的颜色
  173. .el-tree-node:focus > .el-tree-node__content {
  174. // background-color: #0064b9 !important;
  175. // border-radius: 20px;
  176. }
  177. //树形节点鼠标移上去的颜色
  178. .el-tree-node__content:hover {
  179. background-color: #91a8bc !important;
  180. }
  181. .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{
  182. // background-color: #0064b9 !important;
  183. // border-radius: 20px;
  184. }
  185. //table border
  186. // .el-table td,
  187. // .el-table th.is-leaf,
  188. // .el-table-border,
  189. // .el-table--group {
  190. // border-color: #67a7df !important;
  191. // }
  192. // .el-table th.el-table_cell.is-leaf {
  193. // border: #67a7df !important;
  194. // }
  195. // .el-table tr {
  196. // background: #00375e !important;
  197. // }
  198. // .el-table--border {
  199. // border-color: #67a7df ;
  200. // }
  201. //鼠标移到每行时的背景色
  202. // .el-table__body tr.hover-row.current-row>td.el-table__cell,
  203. // .el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,
  204. // .el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,
  205. // .el-table__body tr.hover-row>td.el-table__cell{
  206. // background:hsl(204, 66%, 23%) !important;
  207. // }
  208. //弹框样式
  209. #dialogStyle .el-dialog{
  210. // background: #092a51;
  211. }
  212. #dialogStyle .el-dialog__header{
  213. background:rgba(233, 244, 243, 0.5);
  214. padding: 10px;
  215. .el-dialog__title{
  216. color: #008775;
  217. font-size: 16px ;
  218. font-weight: bold;
  219. }
  220. .el-dialog__headerbtn{
  221. top: 15px;
  222. }
  223. }
  224. #dialogStyle .el-dialog__title,#dialogStyle .el-form-item__label{
  225. // color:#9bbbe3;
  226. // color:#fff;
  227. }
  228. // #dialogStyle .el-input__inner{
  229. // background:#1d3b6b;
  230. // border:1px solid #345684;
  231. // opacity: 12.5;
  232. // }
  233. // #switchLabel .el-switch__label{
  234. // color:#fff;
  235. // }
  236. // switch按钮样式
  237. // #switchBtn .el-switch__label{
  238. // position:absolute;
  239. // display:none;
  240. // color:#fff !important;
  241. // }
  242. // 打开时文字位置设置
  243. // #switchBtn .el-switch__label--right{
  244. // z-index:1;
  245. // }
  246. // // 调整打开时文字的显示位置
  247. // #switchBtn .el-switch__label--right span{
  248. // margin-right:9px;
  249. // }
  250. // 关闭时文字位置设置
  251. // #switchBtn .el-switch__label--left{
  252. // z-index:1;
  253. // }
  254. // // 调整关闭时文字的显示位置
  255. // #switchBtn .el-switch__label--left span{
  256. // margin-right:9px;
  257. // }
  258. // 显示文字
  259. // #switchBtn .el-switch__label.is-active{
  260. // display:block;
  261. // }
  262. // //调整按钮的宽度
  263. // #switchBtn.el-switch .el-switch_core,.el-switch .el-switch__label{
  264. // width:70px !important;
  265. // margin:0;
  266. // }
  267. .el-button--text {
  268. // color: #fff !important;
  269. }
  270. // 编辑按钮
  271. .main #formLabel .editBtn {
  272. border: 1px solid #cefafe;
  273. padding: 5px 3px;
  274. color: #cefafe;
  275. background: #142f66;
  276. }
  277. /* .el-button--text:focus, .el-button--text:hover {
  278. background: #0064b9 !important;
  279. } */
  280. // 详情按钮
  281. button.el-button.el-button--detailbtn.el-button--mini{
  282. border: 1px solid #aee9fb;
  283. color: #aee9fb;
  284. padding: 5px 8px;
  285. background-color: #142f66;
  286. &:hover{
  287. background-color: #142f66;
  288. }
  289. }
  290. // 编辑按钮
  291. button.el-button.el-button--editbtn.el-button--mini{
  292. border: 1px solid #aee9fb;
  293. color: #aee9fb;
  294. padding: 5px 8px;
  295. background-color: #142f66;
  296. &:hover{
  297. background-color: #142f66;
  298. }
  299. }
  300. // 删除按钮
  301. button.el-button.el-button--delebtn.el-button--mini{
  302. border: 1px solid #aee9fb;
  303. color: #aee9fb;
  304. padding: 5px 8px;
  305. background-color: #142f66;
  306. &:hover{
  307. background-color: #142f66;
  308. }
  309. }
  310. // table 表格展开图标颜色
  311. .el-icon-arrow-right {
  312. // color: #fff;
  313. }
  314. .d2-theme-header-menu{
  315. .is-opened{
  316. .el-menu-item:hover{
  317. background-color: red !important;
  318. }
  319. }
  320. }
  321. //主体内容
  322. // .ztnr{
  323. // padding-left: 10px;
  324. // }
  325. .el-button--primary{
  326. background-color: #008775 !important;
  327. border-color: #008775 !important;
  328. }
  329. .el-button--primary.is-plain{
  330. color: #008775 !important;
  331. background: rgba(7, 115, 94, 0.07) !important;
  332. border: 1px solid #008775;
  333. border-radius: 4px;
  334. }
  335. .el-button--primary.is-plain:focus, .el-button--primary.is-plain:hover{
  336. color: #fff !important;
  337. background-color: #008775 !important;
  338. }
  339. .el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner{
  340. background-color: #008775 !important;
  341. border-color: #008775 !important;
  342. }
  343. .main .zt_right{
  344. background-color: #fff;
  345. }