common.styl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
  1. @import './sc-variables.styl'
  2. @import './fun.styl'
  3. // *
  4. // box-sizing: border-box
  5. // &:focus
  6. // outline: none
  7. body
  8. margin: 0
  9. padding: 0
  10. font-family: "PingFang SC","Microsoft YaHei","微软雅黑","Helvetica Neue",Helvetica,"Hiragino Sans GB",Arial,sans-serif;
  11. overflow-y: hidden
  12. font-size: vw(16)
  13. body,html,#app
  14. -webkit-text-size-adjust: none
  15. width: 100%
  16. height: 100%
  17. min-width 1360px
  18. #app
  19. -webkit-font-smoothing: antialiased
  20. -moz-osx-font-smoothing: grayscale
  21. color: #2c3e50
  22. background-color: #d8dfe6
  23. position: relative
  24. p
  25. margin: 0
  26. a
  27. cursor: pointer
  28. ul,h1,h2,h3,h4,h5,h6
  29. padding: 0
  30. margin: 0
  31. ul
  32. list-style: none
  33. .no-scrollbar::-webkit-scrollbar
  34. display none
  35. .ellipsis
  36. text-overflow: ellipsis
  37. overflow: hidden
  38. white-space: nowrap
  39. // 公共样式-end
  40. .clearfix:after
  41. visibility: hidden
  42. display: block
  43. font-size: 0
  44. content: " "
  45. clear: both
  46. height: 0
  47. .el-input__inner,
  48. .el-select,
  49. .el-cascader-menu__item,
  50. .el-dropdown-menu__item,
  51. .el-range-input::-webkit-input-placeholder,
  52. .el-radio-group .el-radio-button__inner,
  53. .el-button,
  54. .el-form-item__content,
  55. .el-cascader,
  56. .el-select-dropdown__item,
  57. .el-range-separator,
  58. .el-pagination button, .el-pagination span:not([class*=suffix]),
  59. .el-pagination__sizes .el-input .el-input__inner,
  60. .el-form-item__label,
  61. .el-autocomplete-suggestion li,
  62. .el-checkbox__label,
  63. .el-date-editor .el-range-input,
  64. .el-date-editor .el-range-separator
  65. font-size: vw(12)
  66. .el-form-item__error
  67. font-size: vw(12)
  68. .el-range-editor.el-input__inner,
  69. .el-input,
  70. .el-input__inner,
  71. .el-radio-group .el-radio-button__inner,
  72. .el-button,
  73. .el-input--mini .el-input__inner,
  74. .el-pagination__editor.el-input .el-input__inner,
  75. .el-transfer-panel__filter .el-input__inner
  76. height: vw(30)
  77. line-height: vw(30)
  78. .el-autocomplete-suggestion li
  79. font-weight: 400
  80. line-height: vw(34)
  81. color: #6D7081
  82. padding: 0 vw(20)
  83. .el-range-editor.el-input__inner
  84. vertical-align: middle
  85. border-radius: vw(2)
  86. .el-range__icon, .el-range-separator, .el-range__close-icon
  87. line-height: vw(24)
  88. .el-range-separator
  89. width: 6%
  90. .el-select,.el-input,.el-button
  91. vertical-align: middle
  92. input::-webkit-outer-spin-button,input::-webkit-inner-spin-button
  93. -webkit-appearance: none;
  94. margin: 0;
  95. input[type="number"]
  96. -moz-appearance: textfield;
  97. .el-input
  98. .el-input__inner
  99. vertical-align: top
  100. border-radius: vw(2)
  101. .el-input__icon,
  102. .el-input__suffix
  103. line-height: vw(32) !important
  104. .el-radio-group .el-radio-button__inner,
  105. .el-button
  106. padding: vw(9) vw(15)
  107. .el-button [class*=el-icon-]+span
  108. margin-left 0
  109. .el-radio-group .el-radio-button__inner,
  110. .el-button,
  111. .el-form-item__content,
  112. .el-cascader
  113. padding-top: 0
  114. padding-bottom: 0
  115. line-height: vw(32)
  116. .form-no-label .el-form-item__content
  117. margin-left 0 !important
  118. .el-form-item
  119. margin-bottom: vw(30)
  120. .el-radio-button:last-child .el-radio-button__inner
  121. border-radius: 0 vw(2) vw(2) 0
  122. .el-radio-button:first-child .el-radio-button__inner
  123. border-radius: vw(2) 0 0 vw(2)
  124. .el-radio-button__orig-radio:checked+.el-radio-button__inner
  125. background-color: $sc-color-primary
  126. border-color: $sc-color-primary
  127. .el-button--primary
  128. el-button($sc-color-primary)
  129. &:focus
  130. background-color: $sc-color-primary;
  131. border-color: $sc-color-primary;
  132. .el-table--striped .el-table__body tr.el-table__row--striped td
  133. background: #f0f1f4
  134. .el-button
  135. border-radius: vw(2)
  136. .el-button+.el-button
  137. // margin-left: 0
  138. .el-table .cell, .el-table th div
  139. padding-right: vw(10)
  140. .el-table .cell,
  141. .el-table th div,
  142. .el-table--border td:first-child .cell,
  143. .el-table--border th:first-child .cell
  144. padding-left: 0!important
  145. .zz-table .el-table .el-table__body-wrapper, .zz-table .el-table .el-button
  146. margin: 0 2px
  147. .el-container
  148. width: 100%
  149. height: 100%
  150. .el-main
  151. margin: 0
  152. padding: 0
  153. position: relative
  154. .el-header
  155. margin: 0
  156. padding: 0
  157. .el-aside
  158. margin: 0
  159. padding: 0
  160. .v-modal
  161. z-index: 1998 !important
  162. // 搜索栏间隔
  163. .search
  164. font-size: 0
  165. padding: 0 vw(15)
  166. .search-btn,
  167. .search-input
  168. margin-right: vw(20)
  169. .search-label
  170. margin-right: vw(10)
  171. color: #3B4045
  172. font-size: vw(14)
  173. vertical-align: middle
  174. display: inline-block
  175. .search-input
  176. width: vw(200)
  177. .el-date-editor
  178. width: vw(400)
  179. .el-range-separator
  180. padding: 0
  181. &:after
  182. visibility: hidden
  183. display: block
  184. font-size: 0
  185. content: " "
  186. clear: both
  187. height: 0
  188. // 按钮内图标据文字
  189. .el-button
  190. [class^='el-icon-']
  191. margin-right: vw(5)
  192. .el-icon-arrow-down
  193. .el-icon-arrow-up
  194. margin-right: 0
  195. .el-button.more-search
  196. border-color: #2787F1;
  197. .el-form-item__label
  198. padding: 0 vw(10) 0 0
  199. .el-radio-button:focus:not(.is-focus):not(:active):not(.is-disabled)
  200. box-shadow: none
  201. // Firefox required input textarea 粉红色边框去除方案,貌似没有效果
  202. input:required:invalid,
  203. input:focus:invalid,
  204. textarea:required:invalid,
  205. textarea:focus:invalid,
  206. :not(output):-moz-ui-invalid
  207. box-shadow: none !important
  208. -moz-box-shadow:none !important
  209. .el-date-editor .el-range-input
  210. vertical-align: top
  211. .el-message .el-message__content
  212. display: inline-block
  213. .el-message-box
  214. .el-message-box__title
  215. font-size: vw(16)
  216. color: #3e3e3e
  217. .el-message-box__content
  218. color: #3e3e3e
  219. font-size: vw(14)
  220. .el-message-box__header
  221. border-bottom: 1px solid #EAEDF3
  222. .device
  223. height: 100%
  224. .wrap
  225. background-color #FFF
  226. border-radius vw(5)
  227. padding-top vw(20)
  228. top vw(15)
  229. left vw(15)
  230. bottom vw(15)
  231. right vw(15)
  232. overflow auto
  233. // tab切换按钮字体设置为16px
  234. .zz-tab-button
  235. .el-radio-button__inner
  236. font-size vw(16)
  237. .el-textarea__inner
  238. font: inherit
  239. font-size: vw(14)
  240. .alert
  241. background-color: rgba(0,0,0,.6)
  242. position: fixed
  243. top: 0
  244. left: 0
  245. width: 100%
  246. height: 100%
  247. z-index: 1999
  248. color: #3E3E3E
  249. .alert-body
  250. position: absolute
  251. top: 50%
  252. left: 50%
  253. background-color: #fff
  254. border-radius: vw(8)
  255. max-height: 100%
  256. .el-select,.el-cascader
  257. width: 100%
  258. &.flow-form
  259. width: 520px;
  260. height: 370px;
  261. margin-top: -185px;
  262. margin-left: -260px
  263. .alert-body__title
  264. height: vw(54)
  265. line-height: vw(54)
  266. border-radius: vw(8) vw(8) 0 0
  267. padding-left: 25px
  268. border-bottom: 1px solid #EAEDF3
  269. font-size: vw(16)
  270. .close
  271. width: vw(20)
  272. height: vw(20)
  273. float: right
  274. text-align: right
  275. cursor: pointer
  276. margin-right: vw(20)
  277. line-height: 1
  278. margin-top: vw(17)
  279. .alert-body__main
  280. padding: vw(20) vw(20) 0 vw(20)
  281. position: absolute
  282. top: vw(54)
  283. left: 0
  284. right: 0
  285. bottom: 0
  286. overflow: hidden
  287. .el-form-item
  288. height: vw(32)
  289. line-height: vw(32)
  290. .el-form-item__label
  291. font-size: vw(14)
  292. height: vw(32)
  293. line-height: vw(32)
  294. .el-checkbox-group .el-checkbox
  295. width: 33.33%
  296. margin: 0 0 10px 0 !important
  297. .el-checkbox__label
  298. text-overflow: ellipsis;
  299. width: 80%;
  300. overflow: hidden;
  301. white-space: nowrap;
  302. vertical-align: middle;
  303. // 弹出层内容区域,
  304. .alert-body__main_content
  305. position: absolute
  306. top: 0
  307. left: 0
  308. width: 100%
  309. bottom: vw(65)
  310. overflow: auto
  311. padding: vw(20) vw(20) 0 vw(20)
  312. // 弹出层按钮区域
  313. .alert-body__main_btns
  314. border-top: 1px solid #EAEDF3
  315. position: absolute
  316. bottom: 0
  317. height: vw(65)
  318. right: 0
  319. left: 0
  320. padding: vw(10) vw(20)
  321. text-align: right
  322. background: #fff
  323. border-radius: 0 0 vw(8) vw(8)
  324. z-index: 1
  325. .alert-item
  326. width: 100%
  327. float: left
  328. font-size: 0
  329. &.half
  330. width: 50%
  331. span
  332. width: 40%
  333. p
  334. width: 60%
  335. span, p
  336. display: inline-block
  337. font-size: vw(14)
  338. p
  339. width: 80%
  340. span
  341. width: 20%
  342. text-align: right
  343. span.el-radio__inner
  344. width: 14px
  345. .hide
  346. display: none
  347. /* 信息弹窗 删除弹窗 */
  348. .message-box {
  349. width:374px;
  350. background:rgba(255,255,255,1);
  351. border-radius:6px;
  352. position absolute
  353. top 50%;
  354. left 50%
  355. transform: translate(-50%, -50%);
  356. padding 15px 24px 20px 24px
  357. font-size 16px
  358. animation alertdown .2s forwards
  359. .row-1{
  360. color #424656
  361. margin-bottom 10px
  362. padding-left 24px
  363. font-size: 14px;
  364. display: flex;
  365. align-items: center;
  366. word-break: break-all;
  367. position relative;
  368. .dmp-icon-btn {
  369. color #FF7171
  370. font-size 14px
  371. width: 14px;
  372. height 14px;
  373. background-size: 14px;
  374. margin-right 10px
  375. position absolute
  376. left 0
  377. top 17px
  378. }
  379. .dmp-icon-btn.icon-error {
  380. background-image url('/static/imgs/icon-error.png')
  381. }
  382. .dmp-icon-btn.icon-warning {
  383. background-image url('/static/imgs/icon-warning.png')
  384. }
  385. .dmp-icon-btn.icon-success {
  386. background-image url('/static/imgs/icon-success.png')
  387. }
  388. .title {
  389. width: 273px
  390. line-height: 18px;
  391. margin-top 15px
  392. }
  393. .close {
  394. position: absolute;
  395. top: 0;
  396. right 0;
  397. display: inline-block;
  398. height 10px;
  399. width: 10px;
  400. cursor pointer;
  401. background: url('/static/imgs/icon-close-off.png') no-repeat center
  402. background-size: 10px 10px;
  403. &:hover {
  404. background-image: url('/static/imgs/icon-close-on.png')
  405. }
  406. }
  407. }
  408. .row-2 {
  409. margin-left 25px
  410. font-size: 12px;
  411. color: #FF7171;
  412. margin-bottom 30px
  413. word-break: break-all;
  414. width 273px
  415. &.warning {
  416. color: #F7B500;
  417. }
  418. &.success {
  419. color: #424656;
  420. }
  421. }
  422. .row-3 {
  423. display: flex;
  424. justify-content: flex-end;
  425. .el-button {
  426. font-size: 12px !important;
  427. height 26px;
  428. line-height: 26px;
  429. min-width 60px;
  430. margin-left: 15px;
  431. }
  432. }
  433. &.up {
  434. animation alertup .2s forwards
  435. }
  436. }
  437. // 加载中动画
  438. .loading
  439. width: 60px
  440. height: 60px
  441. position: relative
  442. margin: 100px auto
  443. .bounce1, .bounce2
  444. width: 100%
  445. height: 100%
  446. border-radius: 50%
  447. background-color: #67CF22
  448. opacity: 0.6
  449. position: absolute
  450. top: 0
  451. left: 0
  452. animation: bounce 2.0s infinite ease-in-out
  453. .bounce2
  454. -webkit-animation-delay: -1.0s
  455. animation-delay: -1.0s
  456. @keyframes bounce {
  457. 0%, 100% {
  458. transform: scale(0.0)
  459. }
  460. 50% {
  461. transform: scale(1.0)
  462. }
  463. }
  464. .el-tooltip__popper
  465. max-width 400px
  466. line-height 180%
  467. .el-image
  468. .el-image-viewer__close
  469. color: #fff
  470. @keyframes warn {
  471. 0% {
  472. transform: scale(0.3);
  473. -webkit-transform: scale(0.3);
  474. opacity: 0.0;
  475. }
  476. 25% {
  477. transform: scale(0.3);
  478. -webkit-transform: scale(0.3);
  479. opacity: 0.1;
  480. }
  481. 50% {
  482. transform: scale(0.5);
  483. -webkit-transform: scale(0.5);
  484. opacity: 0.3;
  485. }
  486. 75% {
  487. transform: scale(0.8);
  488. -webkit-transform: scale(0.8);
  489. opacity: 0.5;
  490. }
  491. 100% {
  492. transform: scale(1);
  493. -webkit-transform: scale(1);
  494. opacity: 0.0;
  495. }
  496. }
  497. @keyframes warn1 {
  498. 0% {
  499. transform: scale(0.3);
  500. -webkit-transform: scale(0.3);
  501. opacity: 0.0;
  502. }
  503. 25% {
  504. transform: scale(0.3);
  505. -webkit-transform: scale(0.3);
  506. opacity: 0.1;
  507. }
  508. 50% {
  509. transform: scale(0.3);
  510. -webkit-transform: scale(0.3);
  511. opacity: 0.3;
  512. }
  513. 75% {
  514. transform: scale(0.5);
  515. -webkit-transform: scale(0.5);
  516. opacity: 0.5;
  517. }
  518. 100% {
  519. transform: scale(0.8);
  520. -webkit-transform: scale(0.8);
  521. opacity: 0.0;
  522. }
  523. }
  524. @keyframes ani {
  525. 0%, 100% {
  526. transform: scale(.5)
  527. }
  528. 50% {
  529. transform: scale(1)
  530. }
  531. }
  532. .sys-pop-program
  533. #member-type-add
  534. .orderby
  535. .el-input
  536. height auto !important
  537. .el-tag
  538. display: inline-block;
  539. max-width: 90%;
  540. text-overflow: ellipsis;
  541. overflow: hidden;
  542. white-space: nowrap;
  543. .add-user-propram-select,.sys-popups-add-site,.settlement-plan-add
  544. .el-input
  545. height auto !important
  546. .el-tag
  547. .el-select__tags-text
  548. max-width: 93%
  549. float: left
  550. text-overflow: ellipsis
  551. overflow: hidden
  552. white-space: nowrap
  553. /* 设备关联人员表格样式 */
  554. .device-pop-union
  555. .el-table
  556. td
  557. th
  558. padding vw(6) 0 !important
  559. /* 场景下建筑树形样式 */
  560. .has-area-tree
  561. background-color: #fff;
  562. border-radius: vw(5);
  563. border: 1px solid #EAEDF3;
  564. position: absolute;
  565. top: vw(15);
  566. left: vw(15);
  567. bottom: vw(15);
  568. right: vw(15);
  569. overflow: auto;
  570. margin-right: vw(300);
  571. .channel-builds-tree, .area-tree
  572. padding: vw(20)
  573. width: vw(285)
  574. position: absolute
  575. top: vw(15)
  576. right: vw(15)
  577. bottom: vw(15)
  578. border:1px solid rgba(234, 237, 243, 1)
  579. box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.04)
  580. border-radius:vw(5)
  581. background: #fff
  582. overflow: auto
  583. .el-tree-node__label,.el-link
  584. font-size: vw(12) !important
  585. .el-tree::-webkit-scrollbar
  586. display none
  587. /* 站点管理操作按钮icon */
  588. .site-opt-icon-btn .el-button i
  589. font-size: vw(20)
  590. margin: 0 0 0 vw(15)
  591. .el-cascader-menu::-webkit-scrollbar
  592. display none
  593. /* 清除下拉菜单上传按钮样式 */
  594. .dropdown-menu-clear-btn .el-button--primary {
  595. background: transparent;
  596. border-color: transparent
  597. color: #606266
  598. padding 0
  599. i {
  600. display: none
  601. }
  602. }
  603. /* el-select下拉选择器底部操作按钮 */
  604. .el-select-bottom-opt
  605. padding: 0 20px;
  606. display: flex;
  607. align-items center
  608. justify-content: center;
  609. span
  610. font-size 12px;
  611. /* 年的日期组件定制样式 */
  612. .el-date-picker-year
  613. .el-date-picker__header-label
  614. &:hover
  615. color: #606266
  616. .el-picker-panel__content
  617. a.cell
  618. font-size: 14px;
  619. /* .el-select下拉选择面板样式暗黑色定制 */
  620. .el-select-dropdown-dark
  621. background:rgba(46,49,51,1);
  622. box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.5);
  623. border-radius: 3px;
  624. border: none
  625. .popper__arrow
  626. display: none
  627. .el-select-dropdown__item
  628. font-size: 14px;
  629. &.hover
  630. &:hover
  631. background: none
  632. color: #42CCCC
  633. /* 隐藏日历组件今天样式 */
  634. .hide-today-style
  635. td.today .cell
  636. color: inherit;
  637. font-weight: inherit;
  638. /* echart图表线图tooltip自定义样式 */
  639. .dmp-echart-tooltip
  640. h4
  641. font-size:12px;
  642. color:rgba(255,255,255,1);
  643. line-height:18px;
  644. p
  645. line-height:18px;
  646. font-size: 12px;
  647. display: flex;
  648. align-items: center;
  649. .marker
  650. display: inline-block;
  651. margin-right: 6px;
  652. width: 12px;
  653. height: 8px;
  654. border-radius: 4px;
  655. .el-button--mini, .el-button--small{
  656. font-size:12px
  657. }
  658. .el-select-dropdown__item.selected,
  659. .el-month-table td.current:not(.disabled) .cell,
  660. .el-pager li:hover
  661. {
  662. color:$sc-color-primary;
  663. }
  664. .el-select .el-input.is-focus .el-input__inner,
  665. .el-input__inner:focus,
  666. .el-switch.is-checked .el-switch__core,
  667. .el-range-editor.is-active:hover
  668. {
  669. border-color:$sc-color-primary;
  670. }
  671. .el-button.is-plain:hover, .el-button.is-plain:focus{
  672. border-color: $sc-color-primary;
  673. color: $sc-color-primary;
  674. }
  675. .el-switch.is-checked .el-switch__core,
  676. .el-date-table td.start-date span, .el-date-table td.end-date span
  677. {
  678. background-color:$sc-color-primary;
  679. }
  680. /* 左右布局*/
  681. .tabsTitle {
  682. .tabs-title{
  683. display: flex;
  684. margin-bottom: vw(20);
  685. background: #ffffff;
  686. }
  687. .tabs {
  688. font-size: vw(14);
  689. width: 100%;
  690. padding: vw(20);
  691. box-sizing: border-box;
  692. display: flex;
  693. .tabItem {
  694. cursor: pointer;
  695. color: #a6abb6;
  696. }
  697. .active {
  698. color: #2787f1;
  699. }
  700. .border {
  701. width: vw(1);
  702. height: vw(10);
  703. background: #a6abb6;
  704. margin: vw(6) vw(20);
  705. }
  706. }
  707. .tabs-right{
  708. padding: vw(20);
  709. height: vw(60);
  710. box-sizing: border-box;
  711. }
  712. }
  713. .content {
  714. /*height:100%;*/
  715. .content-right {
  716. width: calc(100% - 280px);
  717. float:right;
  718. .search {
  719. width: 100%;
  720. height: vw(60);
  721. margin-bottom: vw(20);
  722. background: #fff;
  723. padding: vw(15) vw(20);
  724. -webkit-box-sizing: border-box;
  725. box-sizing: border-box;
  726. border-radius: vw(6);
  727. }
  728. }
  729. }