main.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  1. @import "./public-style.scss";
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. html,
  8. body,
  9. #app {
  10. width: 100%;
  11. height: 100%;
  12. font-size: 14px;
  13. background: #f4f7f9;
  14. min-width: 1360px;
  15. }
  16. ul li {
  17. list-style: none;
  18. padding: 0px;
  19. margin: 0px;
  20. }
  21. body {
  22. font-family: "PingFang SC", "Microsoft YaHei", "微软雅黑", Microsoft YaHei, "Helvetica Neue", Helvetica,
  23. "Hiragino Sans GB", Arial, sans-serif;
  24. -webkit-font-smoothing: antialiased;
  25. -moz-osx-font-smoothing: grayscale;
  26. margin: 0;
  27. }
  28. .dmp-app {
  29. height: 100%;
  30. width: 100%;
  31. display: flex;
  32. flex-direction: row;
  33. }
  34. a {
  35. text-decoration: none;
  36. }
  37. .el-menu--collapse {
  38. width: 85px;
  39. }
  40. .el-table th {
  41. background-color: #f5f7fa !important;
  42. }
  43. .pagination {
  44. margin: 20px 0;
  45. text-align: right;
  46. }
  47. .el-button + .el-tooltip {
  48. margin-left: 10px;
  49. }
  50. //全局el-table设置
  51. .el-table {
  52. border: 1px solid #e0e1e3;
  53. }
  54. .el-table th {
  55. background: #ffffff !important;
  56. }
  57. .el-table .warning-row {
  58. background: #f8fcff;
  59. }
  60. .el-table tr:hover {
  61. background: #f5f7fa;
  62. }
  63. // 去掉表格单元格边框
  64. .customer-table th {
  65. border: none;
  66. }
  67. .customer-table td,
  68. .customer-table th.is-leaf {
  69. border: none;
  70. }
  71. // 表格最外边框
  72. .el-table--border,
  73. .el-table--group {
  74. border: none;
  75. }
  76. // 表格最外层边框-底部边框
  77. .el-table--border::after,
  78. .el-table--group::after {
  79. width: 0;
  80. }
  81. .customer-table::before {
  82. width: 0;
  83. }
  84. .customer-table .el-table__fixed-right::before,
  85. .el-table__fixed::before {
  86. width: 0;
  87. }
  88. .el-table__header .el-table-column--selection .cell .el-checkbox {
  89. margin-left: 5px;
  90. }
  91. .el-table-column--selection .cell {
  92. padding-left: 10px;
  93. }
  94. .site-tips {
  95. background: #303133;
  96. height: auto;
  97. max-width: 375px;
  98. position: absolute;
  99. top: -25px;
  100. left: 115px;
  101. box-shadow: 0px 4px 26px 0px rgba(206, 206, 206, 0.3);
  102. border-radius: 5px;
  103. color: #fff;
  104. padding: 12px 14px;
  105. z-index: 9999;
  106. transform: translate(-50%, -120%);
  107. word-break: break-all;
  108. &:after {
  109. content: " ";
  110. position: absolute;
  111. bottom: -(vw(9));
  112. left: 50%;
  113. margin-left: -(vw(10));
  114. width: 0;
  115. height: 0;
  116. border-left: vw(10) solid transparent;
  117. border-right: vw(10) solid transparent;
  118. border-top: vw(10) solid #303133;
  119. }
  120. strong {
  121. text-overflow: ellipsis;
  122. overflow: hidden;
  123. display: block;
  124. }
  125. }
  126. .text-tips {
  127. background: #ffffff;
  128. height: auto;
  129. width: auto;
  130. position: absolute;
  131. z-index: 9999;
  132. word-break: break-all;
  133. border: 1px solid #4ea0fa;
  134. font-size: 12px;
  135. padding: 4px 10px;
  136. border-radius: 4px;
  137. }
  138. .text-gray-tips {
  139. height: auto;
  140. width: auto;
  141. position: absolute;
  142. z-index: 9999;
  143. word-break: break-all;
  144. border: 1px solid #4ea0fa;
  145. font-size: 12px;
  146. padding: 4px 10px;
  147. background: #676b77;
  148. border: 1px solid rgba(78, 160, 250, 0.6);
  149. opacity: 0.6;
  150. border-radius: 4px;
  151. }
  152. .no-scrollbar::-webkit-scrollbar {
  153. display: none;
  154. }
  155. .foot {
  156. display: flex;
  157. justify-content: flex-end;
  158. .selectAll {
  159. display: none;
  160. }
  161. }
  162. .move-enter-active,
  163. .move-leave-active {
  164. transition: opacity 0.5s;
  165. }
  166. .move-enter,
  167. .move-leave {
  168. opacity: 0;
  169. }
  170. //消息通知样式
  171. .el-notification {
  172. width: 460px;
  173. padding: 15px 20px;
  174. .el-notification__group {
  175. margin: 0;
  176. }
  177. .el-notification__content {
  178. font-size: 14px;
  179. line-height: 14px;
  180. margin: 0 0 0 0;
  181. color: #606266;
  182. text-align: justify;
  183. }
  184. }
  185. .notice {
  186. display: flex;
  187. align-items: center;
  188. img {
  189. width: 40px;
  190. height: 40px;
  191. }
  192. .notice-content {
  193. box-sizing: border-box;
  194. font-family: Microsoft YaHei;
  195. font-weight: 400;
  196. margin-left: 15px;
  197. border-right: 1px solid #f6f6f6;
  198. .title {
  199. display: block;
  200. height: 14px;
  201. font-size: 14px;
  202. color: #212226;
  203. }
  204. .nowrap {
  205. display: inline-block;
  206. line-height: 20px;
  207. width: 300px;
  208. font-size: 12px;
  209. color: #424656;
  210. text-indent: -0.4em;
  211. padding-right: 8px;
  212. }
  213. }
  214. }
  215. .el-notification__closeBtn {
  216. position: absolute;
  217. top: 40%;
  218. right: 15px;
  219. cursor: pointer;
  220. color: #909399;
  221. font-size: 16px;
  222. }
  223. .notice_icon {
  224. .el-icon-close:before {
  225. content: "关闭";
  226. display: flex;
  227. align-items: center;
  228. justify-content: center;
  229. width: 55px;
  230. font-size: 14px;
  231. font-family: Microsoft YaHei;
  232. font-weight: 400;
  233. color: $mainTextColor;
  234. }
  235. }
  236. // 地图
  237. // 去除地图默认样式
  238. // 去除边框
  239. .esri-view .esri-view-surface--inset-outline:focus::after {
  240. outline: auto 0px Highlight !important;
  241. outline: auto 0px -webkit-focus-ring-color !important;
  242. }
  243. // 去除+ -
  244. .esri-ui-top-left.esri-ui-corner {
  245. display: none;
  246. }
  247. .map-content-div {
  248. width: 100%;
  249. height: 100%;
  250. }
  251. .esri-ui-manual-container > .esri-component {
  252. display: none;
  253. }
  254. // 地图
  255. #viewDiv {
  256. width: 100%;
  257. height: 100%;
  258. }
  259. // 地图弹窗样式
  260. // 地图弹窗样式
  261. .pop-template-info {
  262. position: absolute;
  263. left: 100px;
  264. top: 50px;
  265. width: auto;
  266. height: auto;
  267. padding: 0px 20px 20px 20px;
  268. box-sizing: border-box;
  269. background: rgba(0, 0, 0, 0.5);
  270. border: 1px solid #2ddfff;
  271. box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
  272. // 滚动条去除样式
  273. .el-scrollbar {
  274. .el-scrollbar__wrap {
  275. overflow-x: hidden;
  276. }
  277. }
  278. .devicename {
  279. font-size: 18px;
  280. font-weight: bold;
  281. line-height: 24px;
  282. margin: 16px 0;
  283. color: #ffffff;
  284. align-items: center;
  285. width: 99%;
  286. white-space: nowrap;
  287. overflow: hidden;
  288. text-overflow: ellipsis;
  289. .i-icon1 {
  290. width: 8px;
  291. height: 18px;
  292. background: #2ddfff;
  293. display: inline-block;
  294. }
  295. .i-icon2 {
  296. width: 1px;
  297. height: 18px;
  298. background: #2ddfff;
  299. opacity: 1;
  300. display: inline-block;
  301. margin-left: 3px;
  302. margin-right: 10px;
  303. }
  304. .warn {
  305. background: #fd2d72;
  306. }
  307. .offline {
  308. background: #afafaf;
  309. }
  310. }
  311. hr {
  312. height: 0px;
  313. border: none;
  314. border-top: 0.01rem solid #fffffc;
  315. opacity: 0.5;
  316. margin-bottom: 0.1rem;
  317. }
  318. .ul-scroller {
  319. height: 300px;
  320. li {
  321. display: flex;
  322. justify-content: space-between;
  323. line-height: 24px;
  324. padding-right: 10px;
  325. span {
  326. font-size: 16px;
  327. color: #ffffff;
  328. opacity: 0.8;
  329. }
  330. span:nth-child(1) {
  331. text-align-last: justify;
  332. padding-right: 40px;
  333. }
  334. span:nth-child(2) {
  335. opacity: 1;
  336. }
  337. .warn {
  338. color: #fd2d72;
  339. }
  340. }
  341. }
  342. }
  343. /*Upload*/
  344. .pure-button {
  345. width: 150px;
  346. height: 40px;
  347. line-height: 40px;
  348. text-align: center;
  349. color: #fff;
  350. border-radius: 3px;
  351. }
  352. .g-core-image-corp-container .info-aside {
  353. height: 45px;
  354. }
  355. .el-upload--text {
  356. background-color: #fff;
  357. border: 1px dashed #d9d9d9;
  358. border-radius: 6px;
  359. box-sizing: border-box;
  360. width: 360px;
  361. height: 180px;
  362. text-align: center;
  363. cursor: pointer;
  364. position: relative;
  365. overflow: hidden;
  366. }
  367. .el-upload--text .el-icon-upload {
  368. font-size: 67px;
  369. color: #97a8be;
  370. margin: 40px 0 16px;
  371. line-height: 50px;
  372. }
  373. .el-upload--text {
  374. color: #97a8be;
  375. font-size: 14px;
  376. text-align: center;
  377. }
  378. .el-upload--text em {
  379. font-style: normal;
  380. }
  381. //左右浮动
  382. .el-fl-left {
  383. float: left;
  384. }
  385. .el-fl-right {
  386. float: right;
  387. }
  388. // 搜索栏间隔
  389. .search {
  390. width: 100%;
  391. height: 60px;
  392. margin-bottom: 20px;
  393. background: #fff;
  394. padding: 15px 20px;
  395. box-sizing: border-box;
  396. border-radius: 6px;
  397. .search-btn,
  398. .search-input,
  399. .el-select,
  400. .el-date-editor {
  401. margin-right: 20px;
  402. }
  403. .search-label {
  404. margin-right: 10px;
  405. color: #3b4045;
  406. font-size: 14px;
  407. vertical-align: middle;
  408. display: inline-block;
  409. }
  410. .search-input {
  411. width: 240px;
  412. }
  413. .search-btn {
  414. height: 30px;
  415. background: $mainTextColor;
  416. border-radius: 4px;
  417. padding: 9px 8px;
  418. box-sizing: border-box;
  419. line-height: 10px;
  420. i {
  421. font-size: 14px;
  422. display: inline-block;
  423. vertical-align: middle;
  424. }
  425. }
  426. .el-date-editor {
  427. width: 400px;
  428. }
  429. .el-range-separator {
  430. padding: 0;
  431. }
  432. &:after {
  433. visibility: hidden;
  434. display: block;
  435. font-size: 0;
  436. content: " ";
  437. clear: both;
  438. height: 0;
  439. }
  440. }
  441. //左边菜单栏边框显示
  442. .el-menu {
  443. border: none !important;
  444. width: 220px;
  445. }
  446. .el-menu-item,
  447. .el-submenu.is-active .el-submenu__title,
  448. .el-submenu .el-menu-item,
  449. .el-submenu__title {
  450. height: 50px;
  451. line-height: 50px;
  452. padding: 0 10px;
  453. margin: 0 10px;
  454. background: #2c354a;
  455. border-radius: 32px 0px 0px 32px !important;
  456. color: $mainTextColor;
  457. }
  458. // 折叠菜单栏时出现箭头图标
  459. .el-menu--collapse {
  460. .el-submenu > .el-submenu__title > .el-submenu__icon-arrow {
  461. display: inline;
  462. }
  463. .el-submenu > .el-submenu__title > .el-submenu__icon-arrow:before {
  464. content: "\e791";
  465. color: #ffffff;
  466. }
  467. .el-submenu.is-active > .el-submenu__title > .el-submenu__icon-arrow:before {
  468. content: "\e791";
  469. color: $mainTextColor;
  470. }
  471. /*菜单关闭*/
  472. .el-submenu > .el-submenu__title .el-submenu__icon-arrow {
  473. -webkit-transform: rotateZ(0deg);
  474. -ms-transform: rotate(0deg);
  475. transform: rotateZ(0deg);
  476. position: absolute;
  477. right: 10px;
  478. }
  479. /*菜单展开*/
  480. .el-submenu.is-opened > .el-submenu__title .el-submenu__icon-arrow {
  481. -webkit-transform: rotateZ(90deg);
  482. -ms-transform: rotate(90deg);
  483. transform: rotateZ(90deg);
  484. }
  485. }
  486. .sidebar-el-menu .el-icon-arrow-down:before {
  487. content: "\e791";
  488. }
  489. /*菜单关闭*/
  490. .el-submenu > .el-submenu__title .el-submenu__icon-arrow {
  491. -webkit-transform: rotateZ(0deg);
  492. -ms-transform: rotate(0deg);
  493. transform: rotateZ(0deg);
  494. }
  495. /*菜单展开*/
  496. .el-submenu.is-opened > .el-submenu__title .el-submenu__icon-arrow {
  497. -webkit-transform: rotateZ(90deg);
  498. -ms-transform: rotate(90deg);
  499. transform: rotateZ(90deg);
  500. }
  501. // 按钮内图标据文字
  502. .el-select-dropdown-dark {
  503. border: none;
  504. background: linear-gradient(0deg, #343d55 0%, #3b455f 100%);
  505. box-shadow: 0px 20px 30px 0px rgba(8, 18, 40, 0.15);
  506. border-radius: 6px;
  507. .popper__arrow {
  508. display: none;
  509. }
  510. .el-select-dropdown__item {
  511. font-size: 14px;
  512. &.hover,
  513. &:hover {
  514. background: none;
  515. color: #ffffff;
  516. }
  517. }
  518. .el-select-dropdown__item.selected {
  519. color: #ffffff;
  520. }
  521. }
  522. // 弹出框
  523. .alert {
  524. background-color: rgba(0, 0, 0, 0.6);
  525. position: fixed;
  526. top: 0;
  527. left: 0;
  528. width: 100%;
  529. height: 100%;
  530. z-index: 1999;
  531. color: #3e3e3e;
  532. }
  533. .message-box {
  534. width: 400px;
  535. background: rgba(255, 255, 255, 1);
  536. border-radius: 6px;
  537. position: absolute;
  538. top: 50%;
  539. left: 50%;
  540. transform: translate(-50%, -50%);
  541. padding: 20px 20px 20px 34px;
  542. font-size: 16px;
  543. animation: alertdown 0.2s forwards;
  544. .row-1 {
  545. color: #424656;
  546. margin-bottom: 10px;
  547. padding-left: 24px;
  548. font-size: 14px;
  549. display: flex;
  550. align-items: center;
  551. word-break: break-all;
  552. position: relative;
  553. .dmp-icon-btn {
  554. color: #ff7171;
  555. font-size: 14px;
  556. width: 14px;
  557. height: 14px;
  558. background-size: 14px;
  559. margin-right: 10px;
  560. position: absolute;
  561. left: 0;
  562. top: 17px;
  563. }
  564. .dmp-icon-btn.icon-error {
  565. background-image: url("../img/icon_error.png");
  566. }
  567. .dmp-icon-btn.icon-warning {
  568. background-image: url("../img/icon-warning.png");
  569. }
  570. .dmp-icon-btn.icon-success {
  571. background-image: url("/static/imgs/icon-success.png");
  572. }
  573. .title {
  574. width: 273px;
  575. line-height: 18px;
  576. margin-top: 15px;
  577. }
  578. .close {
  579. position: absolute;
  580. top: 0;
  581. right: 0;
  582. display: inline-block;
  583. height: 10px;
  584. width: 10px;
  585. cursor: pointer;
  586. background: url("../../assets/img/icon-close-off.png") no-repeat center;
  587. background-size: 10px 10px;
  588. &:hover {
  589. background-image: url("../../assets/img/icon-close-on.png");
  590. }
  591. }
  592. }
  593. .row-2 {
  594. margin-left: 25px;
  595. font-size: 12px;
  596. color: #ff7171;
  597. margin-bottom: 30px;
  598. word-break: break-all;
  599. width: 273px;
  600. &.warning {
  601. color: #f7b500;
  602. }
  603. &.success {
  604. color: #424656;
  605. }
  606. }
  607. .row-3 {
  608. display: flex;
  609. justify-content: flex-end;
  610. .el-button {
  611. font-size: 12px !important;
  612. height: 32px;
  613. min-width: 60px;
  614. margin-left: 15px;
  615. }
  616. }
  617. &.up {
  618. animation: alertup 0.2s forwards;
  619. }
  620. }
  621. //通用表格样式
  622. .el-pagination.is-background .btn-next,
  623. .el-pagination.is-background .btn-prev,
  624. .el-pagination.is-background .el-pager li {
  625. width: 30px;
  626. height: 30px;
  627. background: #ffffff;
  628. border: 1px solid #d8d8d8;
  629. border-radius: 4px;
  630. color: #424656;
  631. font-weight: 400;
  632. }
  633. @font-face {
  634. font-family: "iconfont"; /* Project id 2167017 */
  635. src: url("//at.alicdn.com/t/font_2167017_wrd31fts4a.woff2?t=1623035434172") format("woff2"),
  636. url("//at.alicdn.com/t/font_2167017_wrd31fts4a.woff?t=1623035434172") format("woff"),
  637. url("//at.alicdn.com/t/font_2167017_wrd31fts4a.ttf?t=1623035434172") format("truetype");
  638. }
  639. /*@font-face {
  640. font-family: 'iconfont'; /* Project id 2251662
  641. src: url('//at.alicdn.com/t/font_2251662_qd6epht669f.woff2?t=1639643719416') format('woff2'),
  642. url('//at.alicdn.com/t/font_2251662_qd6epht669f.woff?t=1639643719416') format('woff'),
  643. url('//at.alicdn.com/t/font_2251662_qd6epht669f.ttf?t=1639643719416') format('truetype');
  644. }*/
  645. .zoniot_font {
  646. font-family: "zoniot_font" !important;
  647. color: $mainTextColor;
  648. font-size: 16px;
  649. line-height: 15px;
  650. font-style: normal;
  651. -webkit-font-smoothing: antialiased;
  652. -webkit-text-stroke-width: 0.2px;
  653. -moz-osx-font-smoothing: grayscale;
  654. cursor: pointer;
  655. &.red {
  656. color: red;
  657. }
  658. }
  659. .iconfont {
  660. font-family: "iconfont" !important;
  661. font-size: 14px;
  662. font-style: normal;
  663. -webkit-font-smoothing: antialiased;
  664. -webkit-text-stroke-width: 0.2px;
  665. -moz-osx-font-smoothing: grayscale;
  666. cursor: pointer;
  667. }
  668. @mixin searchTextBotton {
  669. color: $mainTextColor;
  670. font-size: 30px;
  671. }
  672. // table 操作字体颜色
  673. .zz-table .el-table {
  674. table {
  675. i.iconfont {
  676. color: $mainTextColor;
  677. }
  678. }
  679. }
  680. .search .search-icon {
  681. float: right;
  682. i.iconfont {
  683. margin-right: 20px;
  684. @include searchTextBotton;
  685. }
  686. i.zoniot_font {
  687. margin-right: 20px;
  688. line-height: inherit;
  689. @include searchTextBotton;
  690. }
  691. span.iconfont {
  692. margin-right: 20px;
  693. @include searchTextBotton;
  694. }
  695. i:last-child {
  696. margin-right: 0;
  697. }
  698. }
  699. .handle-box,
  700. .search,
  701. .camerabox {
  702. i.fr-fs-fc {
  703. @include searchTextBotton;
  704. }
  705. }
  706. // 异常页面
  707. div.box-40 {
  708. position: absolute;
  709. top: 50%;
  710. left: 50%;
  711. transform: translate(-50%, -50%);
  712. .title {
  713. text-align: center;
  714. margin-top: 40px;
  715. h2 {
  716. color: #424656;
  717. font-size: 24px;
  718. }
  719. .text-title {
  720. color: #aaadba;
  721. margin: 10px 0 20px 0;
  722. }
  723. }
  724. }
  725. .re-uplod-style .avatar-uploader .el-upload--text,
  726. .upload_div .el-upload--text {
  727. display: block;
  728. border: none;
  729. width: inherit;
  730. height: inherit;
  731. background-color: transparent;
  732. color: unset;
  733. font-size: unset;
  734. }
  735. .content {
  736. .content-right {
  737. width: calc(100% - 280px);
  738. float: right;
  739. }
  740. }