阅行客电子档案
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

547 lines
10 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. @import "variables";
  2. @mixin clearfix {
  3. &:after {
  4. content: "";
  5. display: table;
  6. clear: both;
  7. }
  8. }
  9. @mixin scrollBar {
  10. &::-webkit-scrollbar-track-piece {
  11. background: #d3dce6;
  12. }
  13. &::-webkit-scrollbar {
  14. width: 6px;
  15. }
  16. &::-webkit-scrollbar-thumb {
  17. background: #99a9bf;
  18. border-radius: 20px;
  19. }
  20. }
  21. @mixin font_color($color) {
  22. color: $color;
  23. [data-theme="dark"] & {
  24. color: $font-color-dark;
  25. }
  26. [data-theme="light"] & {
  27. color: $font-color-light;
  28. }
  29. }
  30. @mixin shadow-set(){
  31. [data-theme="dark"] & {
  32. box-shadow: 5px 2px 10px 1px rgba(15,164,222,0.16);
  33. }
  34. }
  35. // siderBar
  36. @mixin siderBar-set(){
  37. [data-theme="dark"] & {
  38. background: url(~@/assets/images/sidebar_bg.png) #031435 no-repeat right bottom;
  39. background-size: contain;
  40. box-shadow: 5px 2px 10px 1px rgba(15,164,222,0.16);
  41. }
  42. [data-theme="light"] & {
  43. background: linear-gradient(180deg, #2B67DD 0%, #4180FB 100%);
  44. color: #fff;
  45. }
  46. }
  47. @mixin siderBar-submenu-set(){
  48. [data-theme="light"] & {
  49. color: rgba(255,255,255,0.8) !important;
  50. }
  51. }
  52. @mixin siderBar-submenu-set-acitve(){
  53. [data-theme="dark"] & {
  54. background: $subMenuHover !important;
  55. }
  56. [data-theme="light"] & {
  57. background: linear-gradient(270deg, #021C5E 0%, rgba(2,28,94,0) 100%) !important;
  58. color: #fff !important;
  59. font-weight: bold !important;
  60. border-right: 4px solid #33D0FF !important;
  61. }
  62. }
  63. @mixin siderBar-title-set-acitve{
  64. [data-theme="dark"] & {
  65. color: $mainColor !important;
  66. background-image: $menuActiveBg !important;
  67. &::before{
  68. content: "";
  69. position: absolute;
  70. left: 0;
  71. top: 0;
  72. width: 5px;
  73. height: 60px;
  74. background-color: $mainColor;
  75. }
  76. }
  77. }
  78. @mixin siderBar-icon{
  79. [data-theme="dark"] & {
  80. color: $mainColor;
  81. }
  82. [data-theme="light"] & {
  83. color: #fff;
  84. }
  85. }
  86. @mixin breadcrumb-bg{
  87. [data-theme="dark"] & {
  88. background-color: $background-color-dark;
  89. }
  90. [data-theme="light"] & {
  91. background-color: $main-bg-light;
  92. }
  93. }
  94. @mixin breadcrumb-text{
  95. [data-theme="dark"] & {
  96. color: $mainColor;
  97. }
  98. [data-theme="light"] & {
  99. color: #9098A4;
  100. }
  101. }
  102. @mixin breadcrumb-text-active{
  103. [data-theme="dark"] & {
  104. color: #fff;
  105. }
  106. [data-theme="light"] & {
  107. color: #1F55EB;
  108. }
  109. }
  110. @mixin main_bg_color() {
  111. [data-theme="dark"] & {
  112. background-color: $background-color-dark;
  113. @include font-color($font-color-dark);
  114. }
  115. [data-theme="light"] & {
  116. background-color: transparent;
  117. @include font-color($font-color-light);
  118. }
  119. }
  120. @mixin dropdown_bg() {
  121. [data-theme="dark"] & {
  122. box-shadow: rgb(51 156 255) 0px 0px 10px 1px inset;
  123. background: #02255F;
  124. }
  125. [data-theme="light"] & {
  126. box-shadow: 0px 5px 11px 0px rgba(0,0,0,0.17);
  127. background: #fff;
  128. }
  129. }
  130. @mixin dropdown_bg_hover() {
  131. [data-theme="dark"] & {
  132. background: #13439E;
  133. color: #fff;
  134. }
  135. [data-theme="light"] & {
  136. background: #F5F9FC;
  137. color: #0348F3;
  138. }
  139. }
  140. @mixin icon_color() {
  141. [data-theme="dark"] & {
  142. color: $icon-color-dark;
  143. }
  144. [data-theme="light"] & {
  145. color: $icon-color-light;
  146. }
  147. }
  148. @mixin bg_color() {
  149. [data-theme="dark"] & {
  150. background-color: $background-color-dark;
  151. @include font-color($font-color-dark);
  152. }
  153. [data-theme="light"] & {
  154. background-color: $background-color-light;
  155. @include font-color($font-color-light);
  156. }
  157. }
  158. // 内容模块 背景-线条-font设置
  159. @mixin user_cont() {
  160. [data-theme="dark"] & {
  161. background-color: $background-color-dark;
  162. border: $mainContainerBorder;
  163. @include font-color($font-color-dark);
  164. }
  165. [data-theme="light"] & {
  166. background-color: $background-color-light;
  167. border: none;
  168. @include font-color($font-color-light);
  169. }
  170. }
  171. @mixin before_line_color() {
  172. [data-theme="dark"] & {
  173. border-top: 1px solid $mainColor;
  174. border-left: 1px solid $mainColor;
  175. }
  176. [data-theme="light"] & {
  177. border-top: none;
  178. border-left: none;
  179. }
  180. }
  181. @mixin after_line_color() {
  182. [data-theme="dark"] & {
  183. border-right: 1px solid $mainColor;
  184. border-bottom: 1px solid $mainColor;
  185. }
  186. [data-theme="light"] & {
  187. border-right: none;
  188. border-bottom: none;
  189. }
  190. }
  191. @mixin left_bottom_line_color() {
  192. [data-theme="dark"] & {
  193. border-bottom: 1px solid $mainColor;
  194. border-left: 1px solid $mainColor;
  195. }
  196. [data-theme="light"] & {
  197. border-left: none;
  198. border-bottom: none;
  199. }
  200. }
  201. @mixin right_top_line_color() {
  202. [data-theme="dark"] & {
  203. border-right: 1px solid $mainColor;
  204. border-top: 1px solid $mainColor;
  205. }
  206. [data-theme="light"] & {
  207. border-right: none;
  208. border-top: none;
  209. }
  210. }
  211. @mixin box_padding{
  212. [data-theme="dark"] & {
  213. padding: 0 !important;
  214. margin-top: 20px;
  215. }
  216. [data-theme="light"] & {
  217. padding: 20px !important;
  218. }
  219. }
  220. @mixin tree_height_min{
  221. [data-theme="dark"] & {
  222. min-height: calc(100vh - 210px);
  223. }
  224. [data-theme="light"] & {
  225. min-height: calc(100vh - 230px);
  226. }
  227. }
  228. @mixin tree_tab_style{
  229. [data-theme="dark"] & {
  230. border-bottom: 1px solid $mainColor;
  231. }
  232. [data-theme="light"] & {
  233. border-bottom: 1px solid #E3E7EE;
  234. }
  235. }
  236. @mixin tree_tab_item{
  237. [data-theme="dark"] & {
  238. padding: 15px 0;
  239. }
  240. [data-theme="light"] & {
  241. color: #A6ADB6;
  242. padding-bottom: 15px;
  243. }
  244. }
  245. @mixin tree_tab_item_active{
  246. [data-theme="dark"] & {
  247. border-bottom: 3px solid #3a99fd;
  248. }
  249. [data-theme="light"] & {
  250. color: #000;
  251. border-bottom: 3px solid #0348F3;
  252. }
  253. }
  254. @mixin tree_no_header{
  255. [data-theme="dark"] & {
  256. margin-top:120px;
  257. min-height: calc(100vh - 260px);
  258. padding: 0 20px;
  259. }
  260. }
  261. @mixin table_height_min{
  262. [data-theme="dark"] & {
  263. min-height: calc(100vh - 260px);
  264. }
  265. [data-theme="light"] & {
  266. min-height: calc(100vh - 280px);
  267. }
  268. }
  269. @mixin input_style{
  270. [data-theme="dark"] & {
  271. border: 1px solid $mainColor;
  272. color: #fff;
  273. }
  274. [data-theme="light"] & {
  275. border: 1px solid #E3E7EE;
  276. color: #0C0E1E;
  277. }
  278. }
  279. @mixin tree_font_color{
  280. [data-theme="dark"] & {
  281. color: $mainColor;
  282. }
  283. [data-theme="light"] & {
  284. color: #0C0E1E;
  285. }
  286. }
  287. @mixin tree_style{
  288. @include tree_font_color;
  289. [data-theme="dark"] & {
  290. padding: 0 30px !important;
  291. }
  292. }
  293. @mixin tree_children_font{
  294. [data-theme="light"] & {
  295. color: #545B65;
  296. }
  297. }
  298. @mixin tree_children_padding{
  299. [data-theme="light"] & {
  300. padding: 0 !important;
  301. }
  302. }
  303. @mixin tree_hover{
  304. [data-theme="dark"] & {
  305. background-color: transparent !important;
  306. background-image: $subMenuActiveBg;
  307. }
  308. [data-theme="light"] & {
  309. background-color: #E8F2FF !important;
  310. color: #0348F3;
  311. }
  312. }
  313. @mixin tree_active{
  314. [data-theme="dark"] & {
  315. background-image: $subMenuActiveBg !important;
  316. color: #fff;
  317. }
  318. [data-theme="light"] & {
  319. background-color: #E8F2FF !important;
  320. color: #0348F3 !important;
  321. }
  322. }
  323. @mixin elButton-style{
  324. [data-theme="dark"] & {
  325. border-color: $mainColor;
  326. color: #fff;
  327. }
  328. [data-theme="light"] & {
  329. font-weight: bold;
  330. border-color: #0348F3;
  331. color: #0348F3;
  332. }
  333. }
  334. @mixin elButton-disabled-style{
  335. [data-theme="dark"] & {
  336. color: #13439E;
  337. background-color: transparent;
  338. border-color: #13439E;
  339. }
  340. [data-theme="light"] & {
  341. color: #B4C8FB;
  342. border-color: #B4C8FB;
  343. background-color: #F2F5FE;
  344. }
  345. }
  346. @mixin elButton-hover-style{
  347. [data-theme="dark"] & {
  348. color: #fff;
  349. background-color: #02255F;
  350. border-color: $mainColor;
  351. }
  352. [data-theme="light"] & {
  353. background-color: #E8F2FF;
  354. }
  355. }
  356. // el-table
  357. @mixin elTable-style{
  358. [data-theme="dark"] & {
  359. background-color: #02255f;
  360. }
  361. [data-theme="light"] & {
  362. background-color: #F5F9FC;
  363. }
  364. }
  365. @mixin elTable-font-style{
  366. [data-theme="dark"] & {
  367. color: $mainColor;
  368. }
  369. [data-theme="light"] & {
  370. color: #0C0E1E;
  371. }
  372. }
  373. @mixin elTable-td-font-style{
  374. [data-theme="dark"] & {
  375. color: $mainColor;
  376. border-bottom: 1px dashed #113D72;
  377. }
  378. [data-theme="light"] & {
  379. color: #545B65;
  380. border-bottom: 1px solid #F5F9FC;
  381. }
  382. }
  383. @mixin elTable-hover-style{
  384. [data-theme="dark"] & {
  385. color: #fff;
  386. background-color: #13439E;
  387. }
  388. [data-theme="light"] & {
  389. background-color: #EAF3FB;
  390. color: #545B65;
  391. }
  392. }
  393. @mixin checkbox-style{
  394. [data-theme="dark"] & {
  395. border-color: $mainColor;
  396. }
  397. [data-theme="light"] & {
  398. border-color: #D6D8DD;
  399. }
  400. }
  401. @mixin checkbox-disabled-style{
  402. [data-theme="dark"] & {
  403. border-color: $mainColor;
  404. background: transparent;
  405. }
  406. [data-theme="light"] & {
  407. background-color: #E6E7E9;
  408. }
  409. }
  410. @mixin checkbox-active-style{
  411. [data-theme="dark"] & {
  412. border-color: $mainColor;
  413. background: transparent;
  414. &::after{
  415. border-color: $mainColor;
  416. }
  417. }
  418. [data-theme="light"] & {
  419. border-color:#0348F3;
  420. background-color: #0348F3;
  421. &::after{
  422. border-color: #fff;
  423. }
  424. }
  425. }
  426. // el-pagination
  427. @mixin pagination-font{
  428. [data-theme="dark"] & {
  429. color: $mainColor;
  430. }
  431. [data-theme="light"] & {
  432. color: #545B65;
  433. }
  434. }
  435. @mixin pagination-input{
  436. @include pagination-font;
  437. [data-theme="dark"] & {
  438. border-color: $mainColor;
  439. }
  440. [data-theme="light"] & {
  441. border-color: #E3E7EE;
  442. }
  443. }
  444. @mixin pagination-active{
  445. [data-theme="dark"] & {
  446. background-color: #2072D2;
  447. border-color: #2072D2;
  448. }
  449. [data-theme="light"] & {
  450. background-color:#0348F3;
  451. border-color: #0348F3;
  452. }
  453. }
  454. @mixin pagination-paper{
  455. @include pagination-font;
  456. [data-theme="dark"] & {
  457. border: 1px solid $mainColor;
  458. }
  459. [data-theme="light"] & {
  460. border: 1px solid #E3E7EE;
  461. }
  462. }
  463. @mixin pagination-paper-more{
  464. [data-theme="dark"] & {
  465. color: $mainColor;
  466. }
  467. [data-theme="light"] & {
  468. color: #E3E7EE;
  469. }
  470. }
  471. // switch
  472. @mixin switch-style{
  473. [data-theme="dark"] &{
  474. border-color: rgb(64, 158, 255);
  475. background-color: rgb(64, 158, 255);
  476. }
  477. [data-theme="light"] & {
  478. border-color: #0348F3 !important;
  479. background-color: #0348F3 !important;
  480. }
  481. }
  482. @mixin switch-disabled{
  483. [data-theme="dark"] &{
  484. border-color: rgb(64, 158, 255);
  485. background-color: rgb(64, 158, 255);
  486. }
  487. [data-theme="light"] & {
  488. border-color: #D6DBE7 !important;
  489. background-color: #D6DBE7 !important;
  490. }
  491. }