app.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637
  1. /* 初始化样式
  2. ------------------------------- */
  3. * {
  4. margin: 0;
  5. padding: 0;
  6. box-sizing: border-box;
  7. outline: none !important;
  8. }
  9. :root {
  10. --next-color-white: #ffffff;
  11. --next-bg-main-color: #f8f8f8;
  12. --next-bg-color: #f5f5ff;
  13. --next-border-color-light: #f1f2f3;
  14. --next-color-primary-lighter: #ecf5ff;
  15. --next-color-success-lighter: #f0f9eb;
  16. --next-color-warning-lighter: #fdf6ec;
  17. --next-color-danger-lighter: #fef0f0;
  18. --next-color-dark-hover: #0000001a;
  19. --next-color-menu-hover: rgba(0, 0, 0, 0.2);
  20. --next-color-user-hover: rgba(0, 0, 0, 0.04);
  21. --next-color-seting-main: #e9eef3;
  22. --next-color-seting-aside: #d3dce6;
  23. --next-color-seting-header: #b3c0d1;
  24. }
  25. html,
  26. body,
  27. #app {
  28. margin: 0;
  29. padding: 0;
  30. width: 100%;
  31. height: 100%;
  32. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
  33. font-weight: 400;
  34. -webkit-font-smoothing: antialiased;
  35. -webkit-tap-highlight-color: transparent;
  36. background-color: var(--next-bg-main-color);
  37. font-size: 14px;
  38. overflow: hidden;
  39. position: relative;
  40. }
  41. /* 主布局样式
  42. ------------------------------- */
  43. .layout-container {
  44. width: 100%;
  45. height: 100%;
  46. .layout-pd {
  47. padding: 15px !important;
  48. }
  49. .layout-flex {
  50. display: flex;
  51. flex-direction: column;
  52. flex: 1;
  53. }
  54. .layout-aside {
  55. //background: var(--next-bg-menuBar);
  56. background: #192442;
  57. box-shadow: 2px 0 6px rgb(0 21 41 / 1%);
  58. height: inherit;
  59. position: relative;
  60. z-index: 1;
  61. display: flex;
  62. flex-direction: column;
  63. overflow-x: hidden !important;
  64. .el-scrollbar__view {
  65. overflow: hidden;
  66. }
  67. }
  68. .layout-header {
  69. padding: 0 !important;
  70. height: auto !important;
  71. }
  72. .layout-main {
  73. padding: 0 !important;
  74. overflow: hidden;
  75. width: 100%;
  76. //background-color: var(--next-bg-main-color);
  77. background-color: #f7f7f7;
  78. display: flex;
  79. flex-direction: column;
  80. // 内层 el-scrollbar样式,用于界面高度自适应(main.vue)
  81. .layout-main-scroll {
  82. @extend .layout-flex;
  83. .layout-parent {
  84. @extend .layout-flex;
  85. position: relative;
  86. }
  87. }
  88. }
  89. // 用于界面高度自适应
  90. .layout-padding {
  91. @extend .layout-pd;
  92. position: absolute;
  93. left: 0;
  94. top: 0;
  95. height: 100%;
  96. overflow: hidden;
  97. @extend .layout-flex;
  98. &-auto {
  99. height: inherit;
  100. @extend .layout-flex;
  101. }
  102. &-view {
  103. background: var(--el-color-white);
  104. width: 100%;
  105. height: 100%;
  106. border-radius: 4px;
  107. border: 1px solid var(--el-border-color-light, #ebeef5);
  108. overflow: hidden;
  109. }
  110. }
  111. // 用于界面高度自适应,主视图区 main 的内边距,用于 iframe
  112. .layout-padding-unset {
  113. padding: 0 !important;
  114. &-view {
  115. border-radius: 0 !important;
  116. border: none !important;
  117. }
  118. }
  119. // 用于设置 iframe loading 时的高度(loading 垂直居中显示)
  120. .layout-iframe {
  121. .el-loading-parent--relative {
  122. height: 100%;
  123. }
  124. }
  125. .el-scrollbar {
  126. width: 100%;
  127. }
  128. .layout-el-aside-br-color {
  129. border-right: 1px solid var(--el-border-color-light, #ebeef5);
  130. }
  131. // pc端左侧导航样式
  132. .layout-aside-pc-220 {
  133. width: 220px !important;
  134. transition: width 0.3s ease;
  135. }
  136. .layout-aside-pc-64 {
  137. width: 64px !important;
  138. transition: width 0.3s ease;
  139. }
  140. .layout-aside-pc-1 {
  141. width: 1px !important;
  142. transition: width 0.3s ease;
  143. }
  144. // 手机端左侧导航样式
  145. .layout-aside-mobile {
  146. position: fixed;
  147. top: 0;
  148. left: -220px;
  149. width: 220px;
  150. z-index: 9999999;
  151. }
  152. .layout-aside-mobile-close {
  153. left: -220px;
  154. transition: all 0.3s cubic-bezier(0.39, 0.58, 0.57, 1);
  155. }
  156. .layout-aside-mobile-open {
  157. left: 0;
  158. transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  159. }
  160. .layout-aside-mobile-mode {
  161. position: fixed;
  162. top: 0;
  163. right: 0;
  164. bottom: 0;
  165. left: 0;
  166. height: 100%;
  167. background-color: rgba(0, 0, 0, 0.5);
  168. z-index: 9999998;
  169. animation: error-img 0.3s;
  170. }
  171. .layout-mian-height-50 {
  172. height: calc(100vh - 50px);
  173. }
  174. .layout-columns-warp {
  175. flex: 1;
  176. display: flex;
  177. overflow: hidden;
  178. }
  179. .layout-hide {
  180. display: none;
  181. }
  182. }
  183. /* element plus 全局样式
  184. ------------------------------- */
  185. .layout-breadcrumb-seting {
  186. .el-divider {
  187. background-color: rgb(230, 230, 230);
  188. }
  189. }
  190. /* nprogress 进度条跟随主题颜色
  191. ------------------------------- */
  192. #nprogress {
  193. .bar {
  194. background: var(--el-color-primary) !important;
  195. z-index: 9999999 !important;
  196. }
  197. }
  198. /* flex 弹性布局
  199. ------------------------------- */
  200. .flex {
  201. display: flex;
  202. }
  203. .flex-auto {
  204. flex: 1;
  205. overflow: hidden;
  206. }
  207. .flex-center {
  208. @extend .flex;
  209. flex-direction: column;
  210. width: 100%;
  211. overflow: hidden;
  212. }
  213. .flex-margin {
  214. margin: auto;
  215. }
  216. .flex-warp {
  217. display: flex;
  218. flex-wrap: wrap;
  219. align-content: flex-start;
  220. margin: 0 -5px;
  221. .flex-warp-item {
  222. padding: 5px;
  223. .flex-warp-item-box {
  224. width: 100%;
  225. height: 100%;
  226. }
  227. }
  228. }
  229. /* cursor 鼠标形状
  230. ------------------------------- */
  231. // 默认
  232. .cursor-default {
  233. cursor: default !important;
  234. }
  235. // 帮助
  236. .cursor-help {
  237. cursor: help !important;
  238. }
  239. // 手指
  240. .cursor-pointer {
  241. cursor: pointer !important;
  242. }
  243. // 移动
  244. .cursor-move {
  245. cursor: move !important;
  246. }
  247. /* 宽高 100%
  248. ------------------------------- */
  249. .w100 {
  250. width: 100% !important;
  251. }
  252. .h100 {
  253. height: 100% !important;
  254. }
  255. .vh100 {
  256. height: 100vh !important;
  257. }
  258. .max100vh {
  259. max-height: 100vh !important;
  260. }
  261. .min100vh {
  262. min-height: 100vh !important;
  263. }
  264. /* 颜色值
  265. ------------------------------- */
  266. .color-primary {
  267. //color: var(--el-color-primary);
  268. color: #2d5cf6;
  269. }
  270. .color-success {
  271. color: var(--el-color-success);
  272. }
  273. .color-warning {
  274. color: var(--el-color-warning);
  275. }
  276. .color-danger {
  277. color: var(--el-color-danger);
  278. }
  279. .color-info {
  280. color: var(--el-color-info);
  281. }
  282. /* 字体大小全局样式
  283. ------------------------------- */
  284. @for $i from 10 through 32 {
  285. .font#{$i} {
  286. font-size: #{$i}px !important;
  287. }
  288. }
  289. /* 外边距、内边距全局样式
  290. ------------------------------- */
  291. @for $i from 1 through 35 {
  292. .mt#{$i} {
  293. margin-top: #{$i}px !important;
  294. }
  295. .mr#{$i} {
  296. margin-right: #{$i}px !important;
  297. }
  298. .mb#{$i} {
  299. margin-bottom: #{$i}px !important;
  300. }
  301. .ml#{$i} {
  302. margin-left: #{$i}px !important;
  303. }
  304. .pt#{$i} {
  305. padding-top: #{$i}px !important;
  306. }
  307. .pr#{$i} {
  308. padding-right: #{$i}px !important;
  309. }
  310. .pb#{$i} {
  311. padding-bottom: #{$i}px !important;
  312. }
  313. .pl#{$i} {
  314. padding-left: #{$i}px !important;
  315. }
  316. }
  317. // 自定义全局样式
  318. .asj-container {
  319. padding: 0px 10px 3px 5px;
  320. background-color: #fafafa;
  321. }
  322. .fs-page-custom {
  323. position: initial !important;
  324. .fs-search-col > * {
  325. margin-left: 0 !important;
  326. }
  327. }
  328. .asj-tabs {
  329. background-color: #fff;
  330. position: sticky;
  331. top: 48px;
  332. z-index: 9;
  333. box-shadow: 0px 0px 12px rgba(51, 89, 181, 0.16);
  334. padding: 0 12px;
  335. display: flex;
  336. height: 40px;
  337. gap: 24px;
  338. border-radius: 8px;
  339. overflow: hidden;
  340. }
  341. .asj-tab {
  342. display: flex;
  343. align-items: center;
  344. padding: 0 4px;
  345. height: 40px;
  346. font-weight: 700;
  347. line-height: 40px;
  348. cursor: pointer;
  349. border-bottom: 2px solid #fff;
  350. }
  351. .asj-tab.active {
  352. color: #409eff;
  353. border-color: #409eff
  354. }
  355. // 详细页里面的样式
  356. .asj-detail-header {
  357. position: sticky;
  358. background-color: #fff;
  359. box-shadow: 0px 0px 12px rgba(51, 89, 181, 0.16);
  360. z-index: 10;
  361. top: 0;
  362. height: 95px;
  363. margin-bottom: -1px;
  364. display: flex;
  365. flex-direction: column;
  366. }
  367. .asj-detail-info {
  368. margin: 5px;
  369. display: flex;
  370. flex-direction: row;
  371. gap: 30px;
  372. .label {
  373. color: #999;
  374. }
  375. .value {
  376. color: #333;
  377. }
  378. }
  379. .asj-detail-tabs > .el-tabs__header.is-top {
  380. position: sticky;
  381. top: 95px;
  382. z-index: 10;
  383. border-top: 1px solid #aeafb0;
  384. }
  385. // 顶层公共搜索样式
  386. .public-search {
  387. display: flex;
  388. gap: 8px;
  389. padding-bottom: 8px;
  390. position: sticky;
  391. top: 0;
  392. padding-top: 8px;
  393. z-index: 10;
  394. width: 100%;
  395. background-color: #f8f8f8;
  396. box-shadow: 0px 0px 0px rgba(51, 89, 181, 0.16);
  397. /*.el-input__wrapper {
  398. border-radius: 0;
  399. }*/
  400. }
  401. .chart-tabs {
  402. margin: 5px 0 15px 0;
  403. .el-tabs__nav {
  404. padding-left: 0 !important;
  405. }
  406. }
  407. .overview-tabs {
  408. display: flex;
  409. gap: 8px;
  410. padding-bottom: 8px;
  411. position: sticky;
  412. top: 40px;
  413. padding-top: 8px;
  414. z-index: 10;
  415. width: 100%;
  416. background-color: #f8f8f8;
  417. box-shadow: 0px 0px 0px rgba(51, 89, 181, 0.16);
  418. /*.el-input__wrapper {
  419. border-radius: 0;
  420. }*/
  421. }
  422. // 广告总览顶部样式
  423. .overview-top {
  424. background-color: #fff;
  425. position: sticky;
  426. top: 0;
  427. z-index: 9;
  428. box-shadow: 0 0 12px rgba(51, 89, 181, 0.16);
  429. padding: 0 12px;
  430. display: flex;
  431. height: 40px;
  432. gap: 24px;
  433. }
  434. // 图表卡片样式
  435. .el-tabs.el-tabs--top.el-tabs--border-card.chart-tabs {
  436. border-radius: 10px;
  437. overflow: hidden;
  438. }
  439. // 表格样式
  440. .fs-crud-container .fs-crud-header {
  441. padding: 0 0 0 0 !important;
  442. }
  443. .fs-crud-container .fs-crud-header .fs-crud-actionbar {
  444. display: flex;
  445. flex: 10000;
  446. align-items: center;
  447. min-width: 1px;
  448. border: 0.5px solid #dddfe6;
  449. border-top-left-radius: 10px;
  450. border-bottom: 0;
  451. border-right: 0;
  452. margin: 0 0 0 0;
  453. padding: 10px 0 10px 10px;
  454. background-color: white;
  455. }
  456. .fs-page-content .fs-crud-container .fs-crud-header .fs-crud-toolbar {
  457. display: flex;
  458. justify-content: flex-end;
  459. align-items: center;
  460. margin-right: 0;
  461. padding: 0 10px 0 0;
  462. flex: 1;
  463. border: 0.5px solid #dddfe6;
  464. border-bottom: 0;
  465. border-top-right-radius: 10px;
  466. background-color: white;
  467. }
  468. .fs-header-middle+div {
  469. border-left: 0.5px solid #dddfe6;
  470. border-top-left-radius: 10px;
  471. }
  472. .fs-page-content .fs-crud-container .fs-crud-header .fs-header-middle+div.fs-crud-toolbar{
  473. padding: 10px 10px 10px 0;
  474. }
  475. .fs-page-content .fs-crud-container .fs-crud-header .fs-crud-actionbar+div {
  476. border-left: 0;
  477. }
  478. .fs-container .box .inner .body {
  479. border-radius: 10px;
  480. flex: 1;
  481. padding: 0 10px 10px 10px;
  482. border: 0.5px solid #dddfe6;
  483. background-color: white;
  484. border-bottom-left-radius: 0;
  485. border-bottom-right-radius: 0;
  486. border-top-left-radius: 0;
  487. border-top-right-radius: 0;
  488. border-top: 0;
  489. border-bottom-color: #ffffff00;
  490. }
  491. .fs-container .box .inner .footer {
  492. flex-shrink: 0;
  493. background: #fff;
  494. border: 0.5px solid #dddfe6;
  495. border-top: 0;
  496. border-bottom-right-radius: 10px;
  497. border-bottom-left-radius: 10px;
  498. }
  499. // 表格单元格样式
  500. .el-table__footer td.el-table__cell {
  501. border: none !important;
  502. border-bottom: 0.5px solid rgb(211, 211, 211) !important;
  503. }
  504. .no-hover-effect {
  505. background-color: #f0f9eb;
  506. color: #67c23a;
  507. border-color: #b3e19d;
  508. margin-top: -3px;
  509. }
  510. .no-hover-effect:hover,
  511. .no-hover-effect:focus,
  512. .no-hover-effect:active {
  513. background-color: #f0f9eb !important;
  514. color: #67c23a !important;
  515. border-color: #b3e19d !important;
  516. }
  517. .no-hover-effect-ban {
  518. background-color: #fef0f0;
  519. color: #f56c6c;
  520. border-color: #fab6b6;
  521. margin-top: -3px;
  522. }
  523. .no-hover-effect-ban:hover,
  524. .no-hover-effect-ban:focus,
  525. .no-hover-effect-ban:active {
  526. background-color: #fef0f0 !important;
  527. color: #f56c6c !important;
  528. border-color: #fab6b6 !important;
  529. }
  530. .asj-h2 {
  531. height: 60px;
  532. line-height: 60px;
  533. font-size: 18px;
  534. font-weight: 600;
  535. color: #333;
  536. border-bottom: 1px solid #e0e0e0;
  537. }
  538. .asj-h3 {
  539. font-size: 15px;
  540. font-weight: 750;
  541. color: #333;
  542. line-height: 22px;
  543. padding: 12px 0;
  544. position: relative;
  545. }
  546. .auto-page-foot {
  547. background-color: #fff;
  548. padding: 24px;
  549. position: sticky;
  550. bottom: 0;
  551. z-index: 100;
  552. display: flex;
  553. justify-content: center;
  554. }