app.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913
  1. /* 全局 */
  2. #app,
  3. body,
  4. html {
  5. width: 100%;
  6. height: 100%;
  7. // background-color: #f6f8f9;
  8. font-size: 12px;
  9. font-family: Inter, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  10. // font-family: var(--font-family), Helvetica, sans-serif !important;
  11. // text-shadow: 0px 1px 1px rgba(0, 0, 0, .6);
  12. // font-variation-settings: "wght" 400, "opsz" 8;
  13. }
  14. a {
  15. color: #333;
  16. text-decoration: none;
  17. }
  18. a:hover,
  19. a:focus {
  20. color: #000;
  21. text-decoration: none;
  22. }
  23. a:link {
  24. text-decoration: none;
  25. }
  26. a:-webkit-any-link {
  27. text-decoration: none;
  28. }
  29. a,
  30. button,
  31. input,
  32. textarea {
  33. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  34. box-sizing: border-box;
  35. outline: none !important;
  36. -webkit-appearance: none;
  37. // font-family: var(--font-family);
  38. }
  39. * {
  40. margin: 0;
  41. padding: 0;
  42. box-sizing: border-box;
  43. outline: none;
  44. }
  45. /* 大布局样式 */
  46. .aminui {
  47. display: flex;
  48. flex-flow: column;
  49. }
  50. .aminui-wrapper {
  51. display: flex;
  52. flex: 1;
  53. overflow: auto;
  54. }
  55. /* 全局滚动条样式 */
  56. .scrollable {
  57. -webkit-overflow-scrolling: touch;
  58. }
  59. ::-webkit-scrollbar {
  60. width: 0;
  61. background-color: transparent;
  62. }
  63. ::-webkit-scrollbar-thumb {
  64. // background-color: rgba(50, 50, 50, 0.3);
  65. background-color: transparent;
  66. }
  67. ::-webkit-scrollbar-thumb:hover {
  68. // background-color: rgba(50, 50, 50, 0.6);
  69. background-color: transparent;
  70. }
  71. ::-webkit-scrollbar-track {
  72. // background-color: rgba(50, 50, 50, 0.1);
  73. background-color: transparent;
  74. }
  75. ::-webkit-scrollbar-track:hover {
  76. // background-color: rgba(50, 50, 50, 0.2);
  77. background-color: transparent;
  78. }
  79. @keyframes flash {
  80. 0% {
  81. background-color: #f00;
  82. }
  83. 50% {
  84. transform: scale(1.3); /* 可选:放大效果 */
  85. }
  86. 100% {
  87. background-color: #f00;
  88. }
  89. }
  90. /*布局设置*/
  91. .layout-setting {
  92. position: fixed;
  93. width: 40px;
  94. height: 40px;
  95. border-radius: 3px 0 0 3px;
  96. bottom: 100px;
  97. right: 20px;
  98. z-index: 100;
  99. background: #409EFF;
  100. display: flex;
  101. border-radius: 100%;
  102. flex-direction: column;
  103. align-items: center;
  104. justify-content: center;
  105. cursor: pointer;
  106. }
  107. .layout-setting span{
  108. color: #fff;
  109. position: fixed;
  110. bottom: 130px;
  111. right: 20px;
  112. animation: flash 0.5s ease-in-out infinite;
  113. background-color: #f00;
  114. border-radius: 100%;
  115. width: 20px;
  116. height: 20px;
  117. display: flex;
  118. align-items: center;
  119. justify-content: center;
  120. }
  121. .layout-setting i {
  122. font-size: 18px;
  123. color: #fff;
  124. }
  125. /* 头部 */
  126. .adminui-header {
  127. height: 58px;
  128. // background: rgba(255, 255, 255);
  129. color: #333;
  130. display: flex;
  131. justify-content: space-between;
  132. border-bottom: 1px solid #f0f2f5;
  133. box-shadow: 0 1px 10px #272b3c1a;
  134. }
  135. .adminui-header-left {
  136. display: flex;
  137. align-items: center;
  138. padding-left: 20px;
  139. }
  140. .adminui-header-right {
  141. display: flex;
  142. align-items: center;
  143. }
  144. .adminui-header .logo-bar {
  145. font-size: 18px;
  146. font-weight: bold;
  147. display: flex;
  148. align-items: center;
  149. }
  150. .adminui-header .logo-bar .logo {
  151. margin-right: 10px;
  152. height: 25px;
  153. }
  154. .adminui-header .nav {
  155. display: flex;
  156. height: 100%;
  157. margin-left: 40px;
  158. }
  159. .adminui-header .nav li {
  160. padding: 0 15px;
  161. margin: 0 10px 0 0;
  162. font-size: 14px;
  163. color: #333;
  164. list-style: none;
  165. height: 100%;
  166. display: flex;
  167. align-items: center;
  168. cursor: pointer;
  169. font-weight: 600;
  170. position: relative;
  171. }
  172. .adminui-header .nav li::after {
  173. position: absolute;
  174. content: "";
  175. width: 80%;
  176. left: 10%;
  177. height: 2px;
  178. // background-color: #fff;
  179. bottom: 0;
  180. }
  181. .adminui-header .nav li i {
  182. margin-right: 5px;
  183. }
  184. .adminui-header .nav li:hover {
  185. color: var(--el-color-primary);
  186. }
  187. .adminui-header .nav li.active {
  188. background: rgba(255, 255, 255, 0.1);
  189. color: var(--el-color-primary);
  190. font-weight: 700;
  191. }
  192. .adminui-header .nav li.active::after {
  193. background-color: var(--el-color-primary);
  194. }
  195. .adminui-header .user-bar .panel-item:hover {
  196. background: rgba(255, 255, 255, 0.1) !important;
  197. }
  198. .adminui-header .user-bar .user label {
  199. color: #333;
  200. }
  201. /* 左侧菜单 */
  202. .aminui-side-split {
  203. width: 65px;
  204. flex-shrink: 0;
  205. background: #000;
  206. display: flex;
  207. flex-flow: column;
  208. }
  209. .aminui-side-split-top {
  210. height: 49px;
  211. }
  212. .aminui-side-split-top a {
  213. display: inline-block;
  214. width: 100%;
  215. height: 100%;
  216. display: flex;
  217. align-items: center;
  218. justify-content: center;
  219. }
  220. .aminui-side-split-top .logo {
  221. height: 30px;
  222. vertical-align: bottom;
  223. }
  224. .adminui-side-split-scroll {
  225. overflow: auto;
  226. overflow-x: hidden;
  227. height: 100%;
  228. flex: 1;
  229. }
  230. .aminui-side-split li {
  231. cursor: pointer;
  232. width: 65px;
  233. height: 65px;
  234. color: #fff;
  235. text-align: center;
  236. display: flex;
  237. flex-direction: column;
  238. align-items: center;
  239. justify-content: center;
  240. }
  241. .aminui-side-split li i {
  242. font-size: 18px;
  243. }
  244. .aminui-side-split li p {
  245. margin-top: 5px;
  246. }
  247. .aminui-side-split li:hover {
  248. background: rgba(255, 255, 255, 0.1);
  249. }
  250. .aminui-side-split li.active {
  251. background: #409EFF;
  252. }
  253. .adminui-side-split-scroll::-webkit-scrollbar-thumb {
  254. background-color: rgba(255, 255, 255, 0.4);
  255. border-radius: 5px;
  256. }
  257. .adminui-side-split-scroll::-webkit-scrollbar-thumb:hover {
  258. background-color: rgba(255, 255, 255, 0.5);
  259. }
  260. .adminui-side-split-scroll::-webkit-scrollbar-track {
  261. background-color: rgba(255, 255, 255, 0);
  262. }
  263. .adminui-side-split-scroll::-webkit-scrollbar-track:hover {
  264. background-color: rgba(255, 255, 255, 0);
  265. }
  266. .aminui-side {
  267. display: flex;
  268. flex-flow: column;
  269. flex-shrink: 0;
  270. width: 210px;
  271. background: #f2f3f5;
  272. // background: #f8f8fa;
  273. // box-shadow: 2px 0 8px 0 rgba(29, 35, 41, .05);
  274. transition: width 0.3s;
  275. border-right: 1px solid var(--el-border-color-light);
  276. }
  277. .adminui-side-top {
  278. border-bottom: 1px solid #ebeef5;
  279. height: 50px;
  280. line-height: 50px;
  281. }
  282. .adminui-side-top h2 {
  283. padding: 0 20px;
  284. font-size: 17px;
  285. color: #3c4a54;
  286. }
  287. .adminui-side-scroll {
  288. overflow: auto;
  289. overflow-x: hidden;
  290. flex: 1;
  291. }
  292. .adminui-side-bottom {
  293. border-top: 1px solid #ebeef5;
  294. height: 51px;
  295. cursor: pointer;
  296. display: flex;
  297. align-items: center;
  298. justify-content: center;
  299. }
  300. .adminui-side-bottom i {
  301. font-size: 16px;
  302. }
  303. .adminui-side-bottom:hover {
  304. color: var(--el-color-primary);
  305. }
  306. .aminui-side.isCollapse {
  307. width: 65px;
  308. }
  309. .el-menu {
  310. background: none;
  311. }
  312. .el-menu .menu-tag {
  313. position: absolute;
  314. height: 18px;
  315. line-height: 18px;
  316. background: var(--el-color-danger);
  317. font-size: 12px;
  318. color: #fff;
  319. right: 20px;
  320. border-radius: 18px;
  321. padding: 0 6px;
  322. }
  323. .el-menu .el-sub-menu__title .menu-tag {
  324. right: 40px;
  325. }
  326. .el-menu--horizontal>li .menu-tag {
  327. display: none;
  328. }
  329. /* 右侧内容 */
  330. .aminui-body {
  331. flex: 1;
  332. display: flex;
  333. flex-flow: column;
  334. }
  335. .adminui-topbar {
  336. height: 50px;
  337. border-bottom: 1px solid #ebeef5;
  338. // background: #fff;
  339. // box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
  340. display: flex;
  341. justify-content: space-between;
  342. }
  343. .adminui-topbar .left-panel {
  344. display: flex;
  345. align-items: center;
  346. }
  347. .adminui-topbar .right-panel {
  348. display: flex;
  349. align-items: center;
  350. }
  351. .right-panel-search {
  352. display: flex;
  353. align-items: center;
  354. }
  355. .right-panel-search>*+* {
  356. margin-left: 10px;
  357. }
  358. .adminui-tags {
  359. height: 35px;
  360. background: #fff;
  361. border-bottom: 1px solid #e6e6e6;
  362. }
  363. .adminui-tags ul {
  364. display: flex;
  365. overflow: hidden;
  366. }
  367. .adminui-tags li {
  368. cursor: pointer;
  369. display: inline-block;
  370. float: left;
  371. height: 34px;
  372. line-height: 34px;
  373. position: relative;
  374. flex-shrink: 0;
  375. }
  376. .adminui-tags li::after {
  377. content: " ";
  378. width: 1px;
  379. height: 100%;
  380. position: absolute;
  381. right: 0px;
  382. background-image: linear-gradient(#fff, #e6e6e6);
  383. }
  384. .adminui-tags li a {
  385. display: inline-block;
  386. padding: 0 10px;
  387. width: 100%;
  388. height: 100%;
  389. color: #999;
  390. text-decoration: none;
  391. display: flex;
  392. align-items: center;
  393. }
  394. .adminui-tags li i {
  395. margin-left: 10px;
  396. border-radius: 3px;
  397. width: 18px;
  398. height: 18px;
  399. display: flex;
  400. align-items: center;
  401. justify-content: center;
  402. }
  403. .adminui-tags li i:hover {
  404. background: rgba(0, 0, 0, .2);
  405. color: #fff;
  406. }
  407. .adminui-tags li.active {
  408. background: #fff;
  409. }
  410. .adminui-tags li.active a {
  411. // color: var(--el-color-primary);
  412. color:#fff;
  413. font-weight: bold;
  414. }
  415. .adminui-tags li.active i {
  416. // background: var(--el-color-primary);
  417. color: #fff;
  418. }
  419. .adminui-tags li.sortable-ghost {
  420. opacity: 0;
  421. }
  422. .adminui-main {
  423. overflow: auto;
  424. // background-color: #f0f2f5;
  425. background-color: #f8f8f8;
  426. flex: 1;
  427. }
  428. /*页面最大化*/
  429. .aminui.main-maximize {
  430. .main-maximize-exit {
  431. display: block;
  432. }
  433. .aminui-side-split,
  434. .aminui-side,
  435. .adminui-header,
  436. .adminui-topbar,
  437. .adminui-tags {
  438. display: none;
  439. }
  440. }
  441. .main-maximize-exit {
  442. display: none;
  443. position: fixed;
  444. z-index: 3000;
  445. top: -20px;
  446. left: 50%;
  447. margin-left: -20px;
  448. border-radius: 50%;
  449. width: 40px;
  450. height: 40px;
  451. cursor: pointer;
  452. background: rgba(0, 0, 0, 0.2);
  453. text-align: center;
  454. }
  455. .main-maximize-exit i {
  456. font-size: 14px;
  457. margin-top: 22px;
  458. color: #fff;
  459. }
  460. .main-maximize-exit:hover {
  461. background: rgba(0, 0, 0, 0.4);
  462. }
  463. /*定宽页面*/
  464. .sc-page {
  465. width: 1230px;
  466. margin: 0 auto;
  467. }
  468. .el-menu-item.is-active {
  469. background-color: #efeff3;
  470. // background-color: #e6eeff;
  471. // border-right: 4px solid var(--el-color-primary);
  472. color: var(--el-color-primary);
  473. }
  474. .flex-column {
  475. flex-direction: column;
  476. }
  477. .mt10 {
  478. margin-top: 10px;
  479. }
  480. .search-box {
  481. background-color: #fff;
  482. padding: 15px 15px 10px 15px;
  483. margin-bottom: 10px;
  484. }
  485. .op-header {
  486. background-color: #fff;
  487. padding: 10px 10px 0 10px;
  488. display: flex;
  489. align-items: center;
  490. justify-content: space-between;
  491. }
  492. .search-btn {
  493. width: 100%;
  494. display: flex;
  495. align-items: center;
  496. }
  497. fieldset {
  498. margin: 0 0 10px 0;
  499. border: 1px solid #EEE;
  500. padding: 10px 20px;
  501. background: #fff;
  502. border-radius: 3px;
  503. }
  504. fieldset legend {
  505. color: #666;
  506. padding: 0 10px;
  507. font-size: 12px;
  508. letter-spacing: 1px;
  509. }
  510. .search-form {
  511. display: flex;
  512. justify-content: flex-start;
  513. }
  514. .search-form .form-left {
  515. flex: 1 1 0%;
  516. }
  517. .search-form .form-left .el-input {
  518. margin-bottom: 10px;
  519. }
  520. .search-form.mt0 .form-left .el-input {
  521. margin-bottom: 0;
  522. }
  523. .line-5{
  524. height: 5px;
  525. width: 100%;
  526. }
  527. .search-form .form-line {
  528. display: flex;
  529. min-width: 1px;
  530. max-width: 1px;
  531. min-height: 30px;
  532. margin: 0 12px;
  533. justify-content: center;
  534. align-items: center;
  535. vertical-align: middle;
  536. border-left: 1px solid var(--el-color-info-light-9);
  537. }
  538. .search-form .form-right {
  539. flex: 0 0 86px;
  540. text-align: right;
  541. }
  542. .search-form .form-right-inline {
  543. flex: 0 0 186px;
  544. text-align: right;
  545. }
  546. .search-form .form-right .el-button {
  547. margin-bottom: 10px;
  548. }
  549. .el-table th.el-table__cell {
  550. background-color: var(--el-fill-color-light) !important;
  551. }
  552. .hide-text {
  553. white-space: nowrap;
  554. text-overflow: ellipsis;
  555. overflow: hidden;
  556. }
  557. .nopadding .el-button-group+.el-button-group {
  558. margin-left: 0;
  559. }
  560. .channel-tabs {
  561. background-color: #fff;
  562. padding: 0 10px;
  563. }
  564. .channel_menu {
  565. border-bottom: 1px solid var(--el-color-info-light-9) !important;
  566. }
  567. .channel-tabs .el-tabs__header {
  568. margin: 0;
  569. }
  570. .channel-tabs .el-menu-item {
  571. line-height: 46px;
  572. }
  573. .channel-tabs .el-menu-item.is-active {
  574. border-right: 0;
  575. background-color: #fff;
  576. font-weight: bold;
  577. }
  578. .el-sub-menu.is-active .el-sub-menu__title {
  579. // font-weight: bolder;
  580. }
  581. .el-sub-menu.is-active .el-sub-menu__title,
  582. .el-sub-menu.is-active .el-sub-menu__title span {
  583. // color: var(--el-menu-active-color);
  584. }
  585. .el-sub-menu.is-active .el-sub-menu__title {
  586. background-color: #e6eeff;
  587. border-right: 4px solid var(--el-color-primary);
  588. color: var(--el-menu-active-color);
  589. }
  590. .el-sub-menu.is-active .el-menu .el-sub-menu__title{
  591. border-right:0;
  592. color: var(--el-menu-text-color);;
  593. background-color: #f2f3f5;
  594. }
  595. .dark .el-sub-menu.is-active .el-sub-menu__title {
  596. background-color: var(--el-fill-color-light);
  597. }
  598. .dark .adminui-header .logo-bar{
  599. color: #fff;
  600. }
  601. .h40{height: 36px !important;}
  602. .tip-container {
  603. margin: 20px 0;
  604. }
  605. .el-table__header-wrapper {
  606. border-top: 1px solid var(--el-table-border-color);
  607. }
  608. .log-detail .el-table__header-wrapper {
  609. border-top: 0;
  610. }
  611. .el-table th.el-table__cell {
  612. padding: 13px 0;
  613. }
  614. .w-150px {
  615. width: 150px;
  616. }
  617. .el-text {
  618. display: inline-block;
  619. max-width: 100%;
  620. text-overflow: ellipsis;
  621. white-space: nowrap;
  622. overflow: hidden;
  623. cursor: pointer;
  624. font-size: 12px;
  625. color: #666;
  626. }
  627. .status-danger {
  628. color: var(--el-color-danger);
  629. cursor: pointer;
  630. }
  631. .status-info {
  632. color: var(--el-color-primary);
  633. cursor: pointer;
  634. }
  635. .status-success {
  636. color: var(--el-color-success);
  637. cursor: pointer;
  638. }
  639. .bl_tags {
  640. cursor: pointer;
  641. }
  642. .icon-right {
  643. margin-left: 10px;
  644. }
  645. .el-dialog {
  646. border-radius: 5px;
  647. }
  648. .el-dialog__header {
  649. margin-right: 0;
  650. border-radius: 5px 5px 0 0;
  651. padding-bottom: 20px;
  652. border-bottom: 1px solid #f8f8f8;
  653. }
  654. .el-dialog__footer {
  655. border-top: 1px solid #f1f1fa;
  656. padding: 10px 15px;
  657. }
  658. .el-dialog__title {
  659. font-weight: 500 !important;
  660. }
  661. .left-panel .el-dropdown,
  662. .right-panel .el-dropdown {
  663. margin-left: 10px;
  664. }
  665. .flex {
  666. display: flex;
  667. align-items: center;
  668. }
  669. .el-select.diy-select .el-input__wrapper {
  670. padding: 1px 11px;
  671. padding-left: 1px;
  672. }
  673. .el-select.diy-select .el-input__prefix{
  674. margin-right: 10px;
  675. }
  676. .el-select.diy-select .el-input__prefix-inner {
  677. background-color: var(--el-fill-color-light);
  678. color: var(--el-color-info);
  679. border-right: 1px solid var(--el-input-border-color);
  680. padding-left: 11px;
  681. }
  682. .left-panel .el-button.el-button--default.is-disabled {
  683. // background-color: #f5f5f5;
  684. // border-color: #d9d9d9;
  685. }
  686. .popover-form-right {
  687. text-align: right;
  688. margin-top: 10px;
  689. }
  690. .popover-form-line {
  691. border-top: 1px solid var(--el-color-info-light-9);
  692. }
  693. .table-container {
  694. display: flex;
  695. flex-direction: column;
  696. height: 100%;
  697. flex: 1;
  698. padding: 10px;
  699. background-color: #fff;
  700. border-radius: 10px;
  701. }
  702. .table-container .table-data {
  703. flex: 1;
  704. }
  705. .flex-footer {
  706. margin-top: 5px;
  707. }
  708. .ml10 {
  709. margin-left: 10px;
  710. }
  711. .op-header.none {
  712. display: block;
  713. }
  714. .right-panel.none {
  715. margin-top: 10px;
  716. }
  717. .table-search {
  718. background-color: #fff;
  719. padding: 15px 15px 0 15px;
  720. border-bottom: 1px solid var(--el-color-info-light-9);
  721. }
  722. .table-search-menu {
  723. background-color: #fff;
  724. padding: 15px;
  725. border-bottom: 1px solid var(--el-color-info-light-9);
  726. display: flex;
  727. justify-content: space-between;
  728. align-items: center;
  729. }
  730. .table-search-menu .menu-left {
  731. font-size: 16px;
  732. color: #333;
  733. }
  734. .drawer-detail-main {
  735. background-color: var(--el-fill-color-light);
  736. border-bottom: 1px solid #ebeef5;
  737. }
  738. .op-header-no{margin-bottom: 10px;}
  739. .drawer-detail-header {
  740. padding: 12px 12px;
  741. .drawer-detail-header-subtitle {
  742. margin-bottom: 2px;
  743. font-size: 14px;
  744. color: #6b778c;
  745. }
  746. .drawer-detail-header-body {
  747. display: flex;
  748. align-items: center;
  749. width: 100%;
  750. text-align: left;
  751. justify-content: space-between;
  752. .drawer-detail-header-left {
  753. display: flex;
  754. align-items: center;
  755. overflow: hidden;
  756. font-size: 18px;
  757. text-overflow: ellipsis;
  758. -webkit-line-clamp: 1;
  759. -webkit-box-orient: vertical;
  760. .tips {
  761. color: #666;
  762. font-size: 13px;
  763. margin-left: 10px;
  764. }
  765. }
  766. .drawer-detail-header-right {
  767. .el-form-item--default {
  768. margin-right: 0;
  769. margin-bottom: 0
  770. }
  771. }
  772. }
  773. }