main.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
  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. .search-icon {
  427. float: right;
  428. i:first-child {
  429. margin-right: 0;
  430. }
  431. }
  432. .el-date-editor {
  433. width: 400px;
  434. }
  435. .el-range-separator {
  436. padding: 0;
  437. }
  438. &:after {
  439. visibility: hidden;
  440. display: block;
  441. font-size: 0;
  442. content: " ";
  443. clear: both;
  444. height: 0;
  445. }
  446. }
  447. //左边菜单栏边框显示
  448. .el-menu {
  449. border: none !important;
  450. width: 220px;
  451. }
  452. .el-menu-item,
  453. .el-submenu.is-active .el-submenu__title,
  454. .el-submenu .el-menu-item,
  455. .el-submenu__title {
  456. height: 50px;
  457. line-height: 50px;
  458. padding: 0 10px;
  459. margin: 0 10px;
  460. background: #2c354a;
  461. border-radius: 32px 0px 0px 32px !important;
  462. color: $mainTextColor;
  463. }
  464. // 折叠菜单栏时出现箭头图标
  465. .el-menu--collapse {
  466. .el-submenu > .el-submenu__title > .el-submenu__icon-arrow {
  467. display: inline;
  468. }
  469. .el-submenu > .el-submenu__title > .el-submenu__icon-arrow:before {
  470. content: "\e791";
  471. color: #ffffff;
  472. }
  473. .el-submenu.is-active > .el-submenu__title > .el-submenu__icon-arrow:before {
  474. content: "\e791";
  475. color: $mainTextColor;
  476. }
  477. /*菜单关闭*/
  478. .el-submenu > .el-submenu__title .el-submenu__icon-arrow {
  479. -webkit-transform: rotateZ(0deg);
  480. -ms-transform: rotate(0deg);
  481. transform: rotateZ(0deg);
  482. position: absolute;
  483. right: 10px;
  484. }
  485. /*菜单展开*/
  486. .el-submenu.is-opened > .el-submenu__title .el-submenu__icon-arrow {
  487. -webkit-transform: rotateZ(90deg);
  488. -ms-transform: rotate(90deg);
  489. transform: rotateZ(90deg);
  490. }
  491. }
  492. .sidebar-el-menu .el-icon-arrow-down:before {
  493. content: "\e791";
  494. }
  495. /*菜单关闭*/
  496. .el-submenu > .el-submenu__title .el-submenu__icon-arrow {
  497. -webkit-transform: rotateZ(0deg);
  498. -ms-transform: rotate(0deg);
  499. transform: rotateZ(0deg);
  500. }
  501. /*菜单展开*/
  502. .el-submenu.is-opened > .el-submenu__title .el-submenu__icon-arrow {
  503. -webkit-transform: rotateZ(90deg);
  504. -ms-transform: rotate(90deg);
  505. transform: rotateZ(90deg);
  506. }
  507. // 按钮内图标据文字
  508. .el-select-dropdown-dark {
  509. border: none;
  510. background: linear-gradient(0deg, #343d55 0%, #3b455f 100%);
  511. box-shadow: 0px 20px 30px 0px rgba(8, 18, 40, 0.15);
  512. border-radius: 6px;
  513. .popper__arrow {
  514. display: none;
  515. }
  516. .el-select-dropdown__item {
  517. font-size: 14px;
  518. &.hover,
  519. &:hover {
  520. background: none;
  521. color: #ffffff;
  522. }
  523. }
  524. .el-select-dropdown__item.selected {
  525. color: #ffffff;
  526. }
  527. }
  528. // 弹出框
  529. .alert {
  530. background-color: rgba(0, 0, 0, 0.6);
  531. position: fixed;
  532. top: 0;
  533. left: 0;
  534. width: 100%;
  535. height: 100%;
  536. z-index: 1999;
  537. color: #3e3e3e;
  538. }
  539. .message-box {
  540. width: 400px;
  541. background: rgba(255, 255, 255, 1);
  542. border-radius: 6px;
  543. position: absolute;
  544. top: 50%;
  545. left: 50%;
  546. transform: translate(-50%, -50%);
  547. padding: 20px 20px 20px 34px;
  548. font-size: 16px;
  549. animation: alertdown 0.2s forwards;
  550. .row-1 {
  551. color: #424656;
  552. margin-bottom: 10px;
  553. padding-left: 24px;
  554. font-size: 14px;
  555. display: flex;
  556. align-items: center;
  557. word-break: break-all;
  558. position: relative;
  559. .dmp-icon-btn {
  560. color: #ff7171;
  561. font-size: 14px;
  562. width: 14px;
  563. height: 14px;
  564. background-size: 14px;
  565. margin-right: 10px;
  566. position: absolute;
  567. left: 0;
  568. top: 17px;
  569. }
  570. .dmp-icon-btn.icon-error {
  571. background-image: url("../img/icon_error.png");
  572. }
  573. .dmp-icon-btn.icon-warning {
  574. background-image: url("../img/icon-warning.png");
  575. }
  576. .dmp-icon-btn.icon-success {
  577. background-image: url("/static/imgs/icon-success.png");
  578. }
  579. .title {
  580. width: 273px;
  581. line-height: 18px;
  582. margin-top: 15px;
  583. }
  584. .close {
  585. position: absolute;
  586. top: 0;
  587. right: 0;
  588. display: inline-block;
  589. height: 10px;
  590. width: 10px;
  591. cursor: pointer;
  592. background: url("/static/imgs/icon-close-off.png") no-repeat center;
  593. background-size: 10px 10px;
  594. &:hover {
  595. background-image: url("/static/imgs/icon-close-on.png");
  596. }
  597. }
  598. }
  599. .row-2 {
  600. margin-left: 25px;
  601. font-size: 12px;
  602. color: #ff7171;
  603. margin-bottom: 30px;
  604. word-break: break-all;
  605. width: 273px;
  606. &.warning {
  607. color: #f7b500;
  608. }
  609. &.success {
  610. color: #424656;
  611. }
  612. }
  613. .row-3 {
  614. display: flex;
  615. justify-content: flex-end;
  616. .el-button {
  617. font-size: 12px !important;
  618. height: 32px;
  619. min-width: 60px;
  620. margin-left: 15px;
  621. }
  622. }
  623. &.up {
  624. animation: alertup 0.2s forwards;
  625. }
  626. }
  627. //通用表格样式
  628. .el-pagination.is-background .btn-next,
  629. .el-pagination.is-background .btn-prev,
  630. .el-pagination.is-background .el-pager li {
  631. width: 30px;
  632. height: 30px;
  633. background: #ffffff;
  634. border: 1px solid #d8d8d8;
  635. border-radius: 4px;
  636. color: #424656;
  637. font-weight: 400;
  638. }
  639. @font-face {
  640. font-family: "iconfont"; /* Project id 2167017 */
  641. src: url("//at.alicdn.com/t/font_2167017_wrd31fts4a.woff2?t=1623035434172") format("woff2"),
  642. url("//at.alicdn.com/t/font_2167017_wrd31fts4a.woff?t=1623035434172") format("woff"),
  643. url("//at.alicdn.com/t/font_2167017_wrd31fts4a.ttf?t=1623035434172") format("truetype");
  644. }
  645. /*@font-face {
  646. font-family: 'iconfont'; /* Project id 2251662
  647. src: url('//at.alicdn.com/t/font_2251662_qd6epht669f.woff2?t=1639643719416') format('woff2'),
  648. url('//at.alicdn.com/t/font_2251662_qd6epht669f.woff?t=1639643719416') format('woff'),
  649. url('//at.alicdn.com/t/font_2251662_qd6epht669f.ttf?t=1639643719416') format('truetype');
  650. }*/
  651. .zoniot_font {
  652. font-family: "zoniot_font" !important;
  653. color: $mainTextColor;
  654. font-size: 16px;
  655. line-height: 15px;
  656. font-style: normal;
  657. -webkit-font-smoothing: antialiased;
  658. -webkit-text-stroke-width: 0.2px;
  659. -moz-osx-font-smoothing: grayscale;
  660. cursor: pointer;
  661. &.red {
  662. color: red;
  663. }
  664. }
  665. .iconfont {
  666. font-family: "iconfont" !important;
  667. font-size: 14px;
  668. font-style: normal;
  669. -webkit-font-smoothing: antialiased;
  670. -webkit-text-stroke-width: 0.2px;
  671. -moz-osx-font-smoothing: grayscale;
  672. cursor: pointer;
  673. }
  674. @mixin searchTextBotton {
  675. color: $mainTextColor;
  676. font-size: 30px;
  677. }
  678. // table 操作字体颜色
  679. .zz-table .el-table {
  680. table {
  681. i.iconfont {
  682. color: $mainTextColor;
  683. }
  684. }
  685. }
  686. .search .search-icon {
  687. i.iconfont {
  688. margin-right: 20px;
  689. @include searchTextBotton;
  690. }
  691. i.zoniot_font {
  692. margin-right: 20px;
  693. line-height: inherit;
  694. @include searchTextBotton;
  695. }
  696. span.iconfont {
  697. margin-right: 20px;
  698. @include searchTextBotton;
  699. }
  700. }
  701. .handle-box,
  702. .search,
  703. .camerabox {
  704. i.fr-fs-fc {
  705. @include searchTextBotton;
  706. }
  707. }
  708. // 异常页面
  709. div.box-40 {
  710. position: absolute;
  711. top: 50%;
  712. left: 50%;
  713. transform: translate(-50%, -50%);
  714. .title {
  715. text-align: center;
  716. margin-top: 40px;
  717. h2 {
  718. color: #424656;
  719. font-size: 24px;
  720. }
  721. .text-title {
  722. color: #aaadba;
  723. margin: 10px 0 20px 0;
  724. }
  725. }
  726. }
  727. .re-uplod-style .avatar-uploader .el-upload--text,
  728. .upload_div .el-upload--text {
  729. display: block;
  730. border: none;
  731. width: inherit;
  732. height: inherit;
  733. background-color: transparent;
  734. color: unset;
  735. font-size: unset;
  736. }