common.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  1. body{
  2. padding: 0;
  3. margin: 0;
  4. }
  5. .hide{
  6. display: none;
  7. }
  8. @media screen and (max-width: 800px) {
  9. .hide-800{
  10. display: none!important;
  11. }
  12. }
  13. @media screen and (max-width: 600px) {
  14. .hide-600{
  15. display: none!important;
  16. }
  17. }
  18. #ClCache{
  19. display: none;
  20. }
  21. .flx-center {
  22. display: flex;
  23. align-items: center;
  24. justify-content: center;
  25. }
  26. .flx-justify-between {
  27. display: flex;
  28. align-items: center;
  29. justify-content: space-between;
  30. }
  31. .flx-align-center {
  32. display: flex;
  33. align-items: center;
  34. }
  35. /* clearfix */
  36. .clearfix::after {
  37. display: block;
  38. height: 0;
  39. overflow: hidden;
  40. clear: both;
  41. content: "";
  42. }
  43. /* 文字单行省略号 */
  44. .sle {
  45. overflow: hidden;
  46. text-overflow: ellipsis;
  47. white-space: nowrap;
  48. }
  49. /* 文字多行省略号 */
  50. .mle {
  51. display: -webkit-box;
  52. overflow: hidden;
  53. -webkit-box-orient: vertical;
  54. -webkit-line-clamp: 2;
  55. }
  56. /* 文字多了自动換行 */
  57. .break-word {
  58. word-break: break-all;
  59. word-wrap: break-word;
  60. }
  61. /* fade-transform */
  62. .fade-transform-leave-active,
  63. .fade-transform-enter-active {
  64. transition: all 0.2s;
  65. }
  66. .fade-transform-enter-from {
  67. opacity: 0;
  68. transition: all 0.2s;
  69. transform: translateX(-30px);
  70. }
  71. .fade-transform-leave-to {
  72. opacity: 0;
  73. transition: all 0.2s;
  74. transform: translateX(30px);
  75. }
  76. /* breadcrumb-transform */
  77. .breadcrumb-enter-active {
  78. transition: all 0.2s;
  79. }
  80. .breadcrumb-enter-from,
  81. .breadcrumb-leave-active {
  82. opacity: 0;
  83. transform: translateX(10px);
  84. }
  85. /* scroll bar */
  86. ::-webkit-scrollbar {
  87. width: 6px;
  88. height: 6px;
  89. }
  90. ::-webkit-scrollbar-thumb {
  91. background-color: var(--el-border-color-darker);
  92. border-radius: 20px;
  93. }
  94. /* nprogress */
  95. #nprogress .bar {
  96. background: var(--el-color-primary) !important;
  97. }
  98. #nprogress .spinner-icon {
  99. border-top-color: var(--el-color-primary) !important;
  100. border-left-color: var(--el-color-primary) !important;
  101. }
  102. #nprogress .peg {
  103. box-shadow: 0 0 10px var(--el-color-primary), 0 0 5px var(--el-color-primary) !important;
  104. }
  105. .tool-bar-lf {
  106. display: flex;
  107. align-items: center;
  108. justify-content: center;
  109. overflow: hidden;
  110. white-space: nowrap;
  111. }
  112. .collapse-icon {
  113. margin-right: 20px;
  114. font-size: 18px;
  115. cursor: pointer;
  116. position: relative;
  117. top: 2px;
  118. }
  119. .breadcrumb-box {
  120. display: flex;
  121. align-items: center;
  122. padding-right: 50px;
  123. overflow: hidden;
  124. mask-image: linear-gradient(90deg, #000000 0%, #000000 calc(100% - 50px), transparent);
  125. }
  126. .breadcrumb-box .el-breadcrumb {
  127. white-space: nowrap;
  128. }
  129. .breadcrumb-box .el-breadcrumb .el-breadcrumb__item {
  130. position: relative;
  131. float: none;
  132. display: inline-flex;
  133. align-items: center;
  134. }
  135. .breadcrumb-box .el-breadcrumb .el-breadcrumb__item .el-breadcrumb__inner {
  136. display: inline-flex;
  137. }
  138. .breadcrumb-box .el-breadcrumb .el-breadcrumb__item .el-breadcrumb__inner .breadcrumb-icon {
  139. margin-top: 2px;
  140. margin-right: 6px;
  141. font-size: 16px;
  142. }
  143. .breadcrumb-box .el-breadcrumb .el-breadcrumb__item .el-breadcrumb__separator {
  144. position: relative;
  145. top: 1px;
  146. }
  147. .no-icon .el-breadcrumb .el-breadcrumb__item {
  148. top: -2px;
  149. }
  150. .no-icon .el-breadcrumb .el-breadcrumb__item .el-breadcrumb__separator {
  151. top: 2px;
  152. }
  153. .header-ri{
  154. height: 100%;
  155. }
  156. .tool-bar-ri {
  157. display: flex;
  158. align-items: center;
  159. justify-content: center;
  160. height: 100%;
  161. }
  162. .tool-bar-ri .toolBar-icon,.tool-bar-ri > .toolBar-dropdown{
  163. display: flex;
  164. height: 100%;
  165. flex-direction: column;
  166. justify-content: center;
  167. cursor: pointer;
  168. }
  169. .tool-bar-ri > .toolBar-icon:hover,.tool-bar-ri > .toolBar-dropdown:hover{
  170. background: var(--el-fill-color-light);
  171. }
  172. .tool-bar-ri .toolBar-icon{
  173. padding: 0 15px;
  174. }
  175. .tool-bar-ri > .toolBar-dropdown > .icon-only{
  176. outline: none;
  177. height: 100%;
  178. padding: 0 15px;
  179. display: flex;
  180. flex-direction: column;
  181. justify-content: center;
  182. }
  183. .tool-bar-ri .userinfo{
  184. padding: 0 15px;
  185. }
  186. .tool-bar-ri .userinfo .username {
  187. margin-right:15px;
  188. font-size: 15px;
  189. }
  190. .el-sub-menu .el-sub-menu__title:hover {
  191. color: var(--el-menu-hover-text-color) !important;
  192. background-color: transparent !important;
  193. }
  194. .el-menu--collapse .is-active .el-sub-menu__title {
  195. color: #ffffff !important;
  196. background-color: var(--el-color-primary) !important;
  197. }
  198. .el-menu-item:hover {
  199. color: var(--el-menu-hover-text-color);
  200. }
  201. .el-menu-item.is-active {
  202. color: var(--el-menu-active-color) !important;
  203. background-color: var(--el-menu-active-bg-color) !important;
  204. }
  205. .el-menu-item.is-active::before {
  206. position: absolute;
  207. top: 0;
  208. left:0;
  209. bottom: 0;
  210. width: 4px;
  211. content: "";
  212. background-color: var(--el-color-primary);
  213. }
  214. .vertical .el-menu-item.is-active::before,
  215. .classic .el-menu-item.is-active::before,
  216. .transverse .el-menu-item.is-active::before {
  217. left: 0;
  218. }
  219. .columns .el-menu-item.is-active::before {
  220. right: 0;
  221. }
  222. .classic #driver-highlighted-element-stage,
  223. .transverse #driver-highlighted-element-stage {
  224. background-color: #606266 !important;
  225. }
  226. .el-menu .fa{
  227. margin-right: 5px;
  228. width: var(--el-menu-icon-width);
  229. text-align: center;
  230. font-size: 16px;
  231. vertical-align: middle;
  232. }
  233. .tabs-box {
  234. background-color: var(--el-bg-color);
  235. }
  236. .tabs-box .tabs-menu {
  237. position: relative;
  238. width: 100%;
  239. }
  240. .tabs-box .tabs-menu .el-dropdown {
  241. position: absolute;
  242. top: 8px;
  243. right: 13px;
  244. }
  245. .tabs-box .tabs-menu .el-tabs .el-tabs__header {
  246. box-sizing: border-box;
  247. background-color: #fff;
  248. height: 40px;
  249. padding: 0 10px;
  250. margin: 0;
  251. }
  252. .tabs-box .tabs-menu .el-tabs .el-tabs__header .el-tabs__nav-wrap {
  253. position: absolute;
  254. width: calc(100% - 110px);
  255. }
  256. .tabs-box .tabs-menu .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav {
  257. display: flex;
  258. border: none;
  259. }
  260. .tabs-box .tabs-menu .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item {
  261. display: flex;
  262. align-items: center;
  263. justify-content: center;
  264. color: #afafaf;
  265. border: 0;
  266. padding: 0;
  267. margin-right: 10px;
  268. }
  269. .tabs-box .tabs-menu .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item .tabs-icon {
  270. margin: 1.5px 4px 0 0;
  271. font-size: 15px;
  272. }
  273. .tabs-box .tabs-menu .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item .tabs-icon-remove {
  274. margin-left: 5px;
  275. }
  276. .tabs-box .tabs-menu .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item.is-active {
  277. color: var(--el-color-primary);
  278. }
  279. .tabs-box .tabs-menu .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item.is-active .menubox{
  280. border: 1px solid var(--el-color-primary);
  281. }
  282. .tabs-box .tabs-menu .menubox{
  283. border: 1px solid #afafaf;
  284. padding: 0 10px;
  285. height: 26px;
  286. display: flex;
  287. justify-content: center;
  288. align-items: center;
  289. border-radius: 4px;
  290. }
  291. .font-size-icon{
  292. cursor: pointer;
  293. font-size:20px;
  294. }
  295. .font-size-icon .icon-big{
  296. font-size:18px;
  297. }
  298. .font-size-icon .icon-small{
  299. font-size:10px;
  300. }
  301. .userinfo{
  302. cursor: pointer;
  303. display: flex;
  304. align-items: center;
  305. outline: none;
  306. }
  307. .userinfo .avatar {
  308. width: 40px;
  309. height: 40px;
  310. overflow: hidden;
  311. cursor: pointer;
  312. border-radius: 50%;
  313. }
  314. .userinfo img {
  315. width: 100%;
  316. height: 100%;
  317. }
  318. .el-main {
  319. box-sizing: border-box;
  320. padding: 10px 12px;
  321. overflow-x: hidden;
  322. background-color: var(--el-bg-color-page);
  323. }
  324. @media screen and (max-width: 600px) {
  325. .el-main{
  326. padding: 10px 0px;
  327. }
  328. }
  329. .el-main.expand{
  330. position: fixed;
  331. left: 0;
  332. top: 0;
  333. right: 0;
  334. bottom: 0;
  335. background-color: var(--el-bg-color-page);
  336. }
  337. .el-main>.close-main-expand{
  338. position: fixed;
  339. top: -25px;
  340. right: -25px;
  341. z-index: 999;
  342. width: 52px;
  343. height: 52px;
  344. cursor: pointer;
  345. background-color: var(--el-color-info);
  346. border-radius: 50%;
  347. opacity: 0.7;
  348. }
  349. .el-main>.close-main-expand i{
  350. position: relative;
  351. top: 68%;
  352. left: 32%;
  353. font-size: 16px;
  354. color: #ffffff;
  355. transform: translate(-50%, -50%);
  356. }
  357. .el-footer {
  358. height: auto;
  359. padding: 0;
  360. }
  361. .footer {
  362. height: 30px;
  363. background-color: var(--el-bg-color);
  364. border-top: 1px solid var(--el-border-color-light);
  365. }
  366. .footer a {
  367. font-size: 14px;
  368. color: var(--el-text-color-secondary);
  369. text-decoration: none;
  370. letter-spacing: 0.5px;
  371. }
  372. #main-content iframe{
  373. width: 100%;
  374. height: 100%;
  375. }
  376. /*----弹出层layer----*/
  377. .layer-dialog{
  378. padding:0;
  379. }
  380. .layer-dialog .el-dialog__header{
  381. margin: 0;
  382. padding:0;
  383. }
  384. .layer-dialog .el-dialog__body{
  385. padding:0;
  386. }
  387. .layer-dialog .el-scrollbar__view{
  388. height:100%;
  389. }
  390. .layer-dialog .custom-dialog-header {
  391. display: flex;
  392. justify-content: space-between;
  393. align-items: center;
  394. padding: 10px;
  395. background-color: #f5f7fa;
  396. }
  397. .layer-dialog .custom-dialog-title {
  398. font-size: 18px;
  399. font-weight: bold;
  400. }
  401. .layer-dialog .custom-dialog-buttons {
  402. display: flex;
  403. align-items: center;
  404. }
  405. .layer-dialog .custom-dialog-buttons i {
  406. margin-left: 15px;
  407. cursor: pointer;
  408. }
  409. .dark .layer-dialog .custom-dialog-title,.dark .layer-dialog .custom-dialog-buttons i{
  410. color: #333;
  411. }
  412. .layer-dialog .custom-dialog-close:hover,
  413. .layer-dialog .custom-dialog-minimize:hover,
  414. .layer-dialog .custom-dialog-maximize:hover {
  415. color: #409eff;
  416. }
  417. .layer-dialog.is-fullscreen {
  418. --el-dialog-width: 98%;
  419. --el-dialog-margin-top: 20px;
  420. margin-bottom: 0;
  421. height: 95%;
  422. overflow: hidden;
  423. }
  424. /*主题设置*/
  425. .divider {
  426. margin-top: 15px;
  427. }
  428. .divider .el-icon {
  429. position: relative;
  430. top: 2px;
  431. right: 5px;
  432. font-size: 15px;
  433. }
  434. .theme-item {
  435. display: flex;
  436. align-items: center;
  437. justify-content: space-between;
  438. margin: 14px 0;
  439. }
  440. .theme-item span {
  441. display: flex;
  442. align-items: center;
  443. font-size: 14px;
  444. }
  445. .theme-item span .el-icon {
  446. margin-left: 3px;
  447. font-size: 15px;
  448. color: var(--el-text-color-regular);
  449. cursor: pointer;
  450. }
  451. .layout-box {
  452. position: relative;
  453. display: flex;
  454. flex-wrap: wrap;
  455. justify-content: space-around;
  456. padding: 10px 0 0;
  457. }
  458. .layout-box .layout-item {
  459. position: relative;
  460. box-sizing: border-box;
  461. width: 98px;
  462. height: 68px;
  463. padding: 6px;
  464. margin-bottom: 20px;
  465. cursor: pointer;
  466. border-radius: 5px;
  467. box-shadow: 0 0 5px 1px var(--el-border-color-lighter);
  468. transition: all 0.2s;
  469. }
  470. .layout-box .layout-item .layout-dark {
  471. background-color: var(--el-color-primary);
  472. border-radius: 3px;
  473. }
  474. .layout-box .layout-item .layout-light,.layout-box .layout-item .layout-light-top {
  475. background-color: var(--el-color-primary-light-5);
  476. border-radius: 3px;
  477. }
  478. .layout-box .layout-item .layout-content {
  479. background-color: var(--el-color-primary-light-8);
  480. border: 1px dashed var(--el-color-primary);
  481. border-radius: 3px;
  482. }
  483. .layout-box .layout-item .fa {
  484. position: absolute;
  485. right: 10px;
  486. bottom: 10px;
  487. color: var(--el-color-primary);
  488. transition: all 0.2s;
  489. }
  490. .layout-box .layout-item:hover {
  491. box-shadow: 0 0 5px 1px var(--el-border-color-darker);
  492. }
  493. .layout-box .is-active {
  494. box-shadow: 0 0 0 2px var(--el-color-primary) !important;
  495. }
  496. .layout-box .layout-vertical {
  497. display: flex;
  498. justify-content: space-between;
  499. }
  500. .layout-box .layout-vertical .layout-dark {
  501. width: 20%;
  502. }
  503. .layout-box .layout-vertical .layout-light-top {
  504. width: 20%;
  505. }
  506. .layout-box .layout-vertical .layout-container {
  507. display: flex;
  508. flex-direction: column;
  509. justify-content: space-between;
  510. width: 72%;
  511. }
  512. .layout-box .layout-vertical .layout-container .layout-light {
  513. height: 20%;
  514. }
  515. .layout-box .layout-vertical .layout-container .layout-content {
  516. height: 67%;
  517. }
  518. .layout-box .layout-classic {
  519. display: flex;
  520. flex-direction: column;
  521. justify-content: space-between;
  522. }
  523. .layout-box .layout-classic .layout-dark {
  524. height: 22%;
  525. }
  526. .layout-box .layout-classic .layout-container {
  527. display: flex;
  528. justify-content: space-between;
  529. height: 70%;
  530. }
  531. .layout-box .layout-classic .layout-container .layout-light {
  532. width: 20%;
  533. }
  534. .layout-box .layout-classic .layout-container .layout-dark {
  535. width: 20%;
  536. height: 100%;
  537. }
  538. .layout-box .layout-classic .layout-container .layout-content {
  539. width: 70%;
  540. }
  541. .layout-box .layout-transverse {
  542. display: flex;
  543. flex-direction: column;
  544. justify-content: space-between;
  545. }
  546. .layout-box .layout-transverse .layout-dark {
  547. height: 20%;
  548. }
  549. .layout-box .layout-transverse .layout-content {
  550. height: 67%;
  551. }
  552. .layout-box .layout-columns {
  553. display: flex;
  554. justify-content: space-between;
  555. }
  556. .layout-box .layout-columns .layout-dark {
  557. width: 14%;
  558. }
  559. .layout-box .layout-columns .layout-light {
  560. width: 17%;
  561. }
  562. .layout-box .layout-columns .layout-content {
  563. width: 55%;
  564. }
  565. .platform{
  566. outline: none;
  567. height: 100%;
  568. padding: 0 15px;
  569. display: flex;
  570. justify-content: center;
  571. align-items: center;
  572. }
  573. .message-empty {
  574. display: flex;
  575. flex-direction: column;
  576. align-items: center;
  577. justify-content: center;
  578. height: 260px;
  579. line-height: 45px;
  580. }
  581. .message-list {
  582. display: flex;
  583. flex-direction: column;
  584. }
  585. .message-list .message-item {
  586. display: flex;
  587. align-items: center;
  588. padding: 20px 0;
  589. border-bottom: 1px solid var(--el-border-color-light);
  590. }
  591. .message-list .message-item:last-child {
  592. border: none;
  593. }
  594. .message-list .message-item .message-icon {
  595. font-size: 35px;
  596. width: 20%;
  597. text-align: center;
  598. }
  599. .message-list .message-item .message-content {
  600. display: flex;
  601. flex-direction: column;
  602. width: 50%;
  603. }
  604. .message-list .message-item .message-tag {
  605. width: 30%;
  606. text-align: right;
  607. }
  608. .message-list .message-item .message-content .message-bottom{
  609. display: flex;
  610. justify-content: flex-start;
  611. }
  612. .message-list .message-item .message-content .message-title {
  613. margin-bottom: 5px;
  614. }
  615. .message-list .message-item .message-content .message-show {
  616. font-size: 12px;
  617. text-decoration: underline;
  618. margin-right: 10px;
  619. cursor: pointer;
  620. }
  621. .message-list .message-item .message-content .message-date {
  622. font-size: 12px;
  623. color: var(--el-text-color-secondary);
  624. }
  625. .toolBar-dropdown .fa-bell.hava-message {
  626. animation: shake 1s infinite linear;
  627. }
  628. @keyframes shake {
  629. 0% {
  630. transform: rotate(0deg);
  631. }
  632. 10% {
  633. transform: rotate(15deg);
  634. }
  635. 20% {
  636. transform: rotate(-10deg);
  637. }
  638. 30% {
  639. transform: rotate(10deg);
  640. }
  641. 40% {
  642. transform: rotate(-5deg);
  643. }
  644. 50% {
  645. transform: rotate(5deg);
  646. }
  647. 60% {
  648. transform: rotate(-2deg);
  649. }
  650. 70% {
  651. transform: rotate(2deg);
  652. }
  653. 80% {
  654. transform: rotate(-1deg);
  655. }
  656. 90% {
  657. transform: rotate(1deg);
  658. }
  659. 100% {
  660. transform: rotate(0deg);
  661. }
  662. }
  663. .dark .tool-bar-ri > .el-dropdown:hover,
  664. .dark .tool-bar-ri > .toolBar-dropdown:hover,
  665. .dark .tool-bar-ri > .toolBar-icon:hover,
  666. .dark .tool-bar-ri > .toolBar-userinfo:hover{
  667. background: #2a2a2a;
  668. }
  669. .dark .el-menu-item.is-active{
  670. color: #ffffff;
  671. background-color: #2a2a2a !important;
  672. }
  673. .dark .el-menu-item{
  674. color: #bdbdc0;
  675. }
  676. .dark .el-menu-item:hover{
  677. color: #ffffff !important;
  678. background-color: #2a2a2a !important;
  679. }
  680. .dark .el-sub-menu__title{
  681. color: #bdbdc0;
  682. }
  683. .dark .breadcrumb-box .el-breadcrumb .el-breadcrumb__item .el-breadcrumb__inner .breadcrumb-title{
  684. color: #bdbdc0;
  685. }
  686. .dark .el-dropdown-menu__item:hover{
  687. background-color: #2a2a2a !important;
  688. }
  689. .dark .tabs-box .tabs-menu .el-tabs .el-tabs__header{
  690. background-color: #2a2a2a !important;
  691. }