app.scss 11 KB

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