themeDark.less 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914
  1. // 主色
  2. @mc1: #09172b;
  3. @mc2: #142446;
  4. @mc3: #2169c3;
  5. // 辅助色
  6. @fzs1: #2999a0;
  7. @fzs2: #67b9ff;
  8. @fzs3: #ff6271;
  9. // 文字颜色
  10. @fc1 : #a6b8dd;
  11. @fc2 : #f9fbff;
  12. @fc3 : #c3e1ff;
  13. @fc4 : #4d72b8;
  14. @fc5 : #94e5ff;
  15. @fc6 : #7a8385;
  16. @fc7 : #e4ecff;
  17. // 渐变色
  18. @jbs1: linear-gradient(to right, #16a4dc, #142446);
  19. @jbs2: linear-gradient(to right, #175dd2, #70d0f4);
  20. @jbs3: linear-gradient(to right, #42bf54, #cff4d8);
  21. @jbs4: linear-gradient(to right, #f5d023, #fff7cb);
  22. @jbs5: linear-gradient(to right, #f1880c, #ffd179);
  23. @jbs6: linear-gradient(to right, #ff293d, #ff9ea7);
  24. @green : #05bb4c;
  25. @gray : #606769;
  26. @gray-l : #B3BDC0;
  27. @picker-bg-color: fade(rgb(3, 7, 19), 95);
  28. @primary-color : #2568c4;
  29. @border-color : transparent;
  30. @text-color : #fff;
  31. @placeholder-color: #c0c4cc;
  32. @disabled-color : #c0c4cc;
  33. @disabled-bg : #f5f7fa;
  34. .nsfStyle {
  35. #app {
  36. .themeDarkHome {
  37. background: @mc1 !important;
  38. }
  39. .themeDark {
  40. // 顶部 header
  41. .proheader {
  42. background: @mc2;
  43. .proMenu {
  44. .defaultBacksty {
  45. color: @fc6 !important;
  46. }
  47. .changeBacksty {
  48. color : @fzs2 !important;
  49. border-color: @mc3;
  50. }
  51. }
  52. }
  53. // 首页右侧切换主题 switch
  54. .settingStop {
  55. .el-switch {
  56. .el-switch__core {
  57. border-color: @fc1;
  58. .el-switch__action {
  59. background: @mc3;
  60. }
  61. }
  62. }
  63. }
  64. // 首页指标标题 header
  65. .headerRight {
  66. background: @mc2;
  67. .headerName,
  68. .headerNa2 {
  69. color: @fc7;
  70. }
  71. .headerZsN {
  72. background: @mc3;
  73. }
  74. }
  75. // 首页天气
  76. .weaMain {
  77. .pTwo {
  78. color: @fc6;
  79. }
  80. }
  81. // 首页右侧预测电量 charts 顶部描述文本
  82. .electricMain {
  83. .powerName {
  84. color: @fc7;
  85. }
  86. }
  87. // 首页设备台数
  88. .emInfoBox {
  89. .t {
  90. background: @mc2 ;
  91. .headerZs {
  92. background: #0f0f0f;
  93. .headerZsN {
  94. background: @mc3;
  95. }
  96. }
  97. }
  98. .b {
  99. .genre {
  100. color: @fc6;
  101. }
  102. }
  103. }
  104. // 首页预测电量
  105. .powerCharts {
  106. .powerValue {
  107. span:last-child {
  108. color: #fff
  109. }
  110. }
  111. }
  112. // 首页底部 echarts
  113. .hover72Power,
  114. .monthPower {
  115. background: @mc2;
  116. }
  117. // 首页点击地图风场后左侧的滑出窗口
  118. .infoBox {
  119. .el-button {
  120. color: @fzs2 !important;
  121. }
  122. p,
  123. .el-tooltip__trigger {
  124. color: #fff;
  125. }
  126. }
  127. // 首页计划电量完成情况下方文字描述
  128. .analysMain_Msg_bot {
  129. background: @mc2;
  130. span {
  131. color: #fff;
  132. }
  133. }
  134. .el-tree-node {
  135. background: transparent;
  136. }
  137. .el-dropdown-link.nodeLabel {
  138. color: #c3c3c4;
  139. }
  140. // 菜单
  141. .elmenuSty {
  142. background: @mc1;
  143. .el-menu {
  144. .el-menu-item {
  145. color: #777;
  146. &.is-active {
  147. color: #fff;
  148. .elMenuTitle {
  149. background: #1a66c6;
  150. }
  151. path {
  152. fill: #fff;
  153. }
  154. }
  155. path {
  156. fill: #777;
  157. }
  158. }
  159. }
  160. }
  161. .dataFilePrepareMain,
  162. .dataFileProcessMain {
  163. .treeDataMain,
  164. .excelDataMain,
  165. .tableDataMain {
  166. background: @mc2;
  167. padding : 10px 5px;
  168. .main {
  169. background: #13171e;
  170. }
  171. }
  172. }
  173. // el-table
  174. .el-table,
  175. .custom-table.el-table {
  176. background: rgb(3, 7, 19);
  177. border : 0px; // 包裹表格父元素边框
  178. .el-table__row {
  179. background: transparent; // 表格底色,因表格上层有其他颜色遮挡所以视觉效果看起来仿佛是表格边框
  180. & .el-table__cell {
  181. border-bottom: 1px solid rgb(17, 58, 120) !important; // 表格单元格底部边框颜色
  182. .el-button {
  183. color: rgb(71, 174, 231) !important;
  184. &:active {
  185. color: #70d0f4 !important;
  186. }
  187. }
  188. }
  189. }
  190. &.el-table--border::after,
  191. &.el-table--group::after,
  192. &::before {
  193. background-color: transparent;
  194. }
  195. tr {
  196. td {
  197. background-color: rgb(3, 7, 19); // 表格基数行背景颜色
  198. }
  199. &:hover td {
  200. color : #67b9ff; // 表格基数行 hover 文字颜色
  201. background-color: rgb(3, 7, 19) !important; // 表格基数行 hover 背景颜色
  202. }
  203. }
  204. td {
  205. border : 0px; // 表格内部除了最后一行底部以外的上下左右边框
  206. padding : 0;
  207. height : 37px;
  208. line-height: 37px;
  209. color : rgb(194, 225, 255);
  210. &.light,
  211. &.always-light {
  212. color: #67b9ff !important;
  213. }
  214. }
  215. th {
  216. border : 0px;
  217. padding : 0px;
  218. height : 37px;
  219. line-height: 37px;
  220. font-weight: normal;
  221. text-align : center;
  222. color : rgb(85, 113, 166);
  223. cursor : pointer;
  224. &.is-leaf {
  225. border: 0px;
  226. }
  227. &.light,
  228. &.always-light {
  229. color: #67b9ff !important;
  230. }
  231. }
  232. th,
  233. tr {
  234. background-color: transparent;
  235. border : 0px;
  236. }
  237. thead {
  238. color : @gray-l;
  239. font-weight: 500;
  240. font-size : 14px;
  241. border : 0px;
  242. th,
  243. &.is-group th {
  244. &.el-table__cell {
  245. background : rgb(19, 35, 71);
  246. border-color: transparent !important;
  247. color : #bcd2ff;
  248. }
  249. }
  250. }
  251. .el-table__body {
  252. border : 0px; // 表格最外侧除右边以外边框
  253. font-size: 14px;
  254. }
  255. &.el-table--striped .el-table__body tr.el-table__row--striped {
  256. td {
  257. background-color: rgb(16, 25, 46); // 表格偶数行背景颜色
  258. }
  259. &:hover td {
  260. color : #67b9ff;
  261. background-color: rgb(16, 25, 46) !important; // 表格偶数行 hover 背景颜色
  262. }
  263. }
  264. &.el-table--border,
  265. &.el-table--group {
  266. border: none;
  267. }
  268. .ascending .sort-caret.ascending {
  269. border-bottom-color: #2169c3;
  270. }
  271. .descending .sort-caret.descending {
  272. border-top-color: #2169c3;
  273. }
  274. }
  275. .warn-table,
  276. .df-table {
  277. .tableData_tit p {
  278. color: #fff !important;
  279. }
  280. .el-table,
  281. .custom-table.el-table {
  282. background: rgb(3, 7, 19);
  283. border : 1px solid rgba(33, 105, 195, 0.5) !important; // 包裹表格父元素边框
  284. .el-table__row {
  285. background: transparent; // 表格底色,因表格上层有其他颜色遮挡所以视觉效果看起来仿佛是表格边框
  286. & .el-table__cell {
  287. border-bottom: 1px solid rgb(17, 58, 120) !important; // 表格单元格底部边框颜色
  288. .el-button {
  289. color: rgb(71, 174, 231) !important;
  290. &:active {
  291. color: #70d0f4 !important;
  292. }
  293. }
  294. }
  295. &:hover .cell {
  296. color: rgb(71, 174, 231) !important;
  297. }
  298. }
  299. &.el-table--border::after,
  300. &.el-table--group::after,
  301. &::before {
  302. background-color: transparent;
  303. }
  304. tr {
  305. td {
  306. background-color: rgb(3, 7, 19); // 表格基数行背景颜色
  307. }
  308. &:hover td {
  309. color : #67b9ff; // 表格基数行 hover 文字颜色
  310. background-color: rgb(3, 7, 19) !important; // 表格基数行 hover 背景颜色
  311. }
  312. }
  313. td {
  314. border : 0px; // 表格内部除了最后一行底部以外的上下左右边框
  315. padding : 0;
  316. height : 37px;
  317. line-height: 37px;
  318. color : rgb(194, 225, 255);
  319. &.light,
  320. &.always-light {
  321. color: #67b9ff !important;
  322. }
  323. }
  324. th {
  325. border : 0px;
  326. padding : 0px;
  327. height : 37px;
  328. line-height: 37px;
  329. font-weight: normal;
  330. text-align : center;
  331. color : rgb(85, 113, 166);
  332. cursor : pointer;
  333. &.is-leaf {
  334. border: 0px;
  335. }
  336. &.light,
  337. &.always-light {
  338. color: #67b9ff !important;
  339. }
  340. }
  341. th,
  342. tr {
  343. background-color: transparent;
  344. border : 0px;
  345. }
  346. thead {
  347. color : @gray-l;
  348. font-weight: 500;
  349. font-size : 14px;
  350. border : 0px;
  351. th,
  352. &.is-group th {
  353. &.el-table__cell {
  354. background : rgb(19, 35, 71) !important;
  355. border-color: transparent !important;
  356. color : #bcd2ff;
  357. }
  358. }
  359. }
  360. .el-table__body {
  361. border : 0px; // 表格最外侧除右边以外边框
  362. font-size: 14px;
  363. }
  364. &.el-table--striped .el-table__body tr.el-table__row--striped {
  365. td {
  366. background-color: rgb(16, 25, 46); // 表格偶数行背景颜色
  367. }
  368. &:hover td {
  369. color : #67b9ff;
  370. background-color: rgb(16, 25, 46) !important; // 表格偶数行 hover 背景颜色
  371. }
  372. }
  373. &.el-table--border,
  374. &.el-table--group {
  375. border: none;
  376. }
  377. .ascending .sort-caret.ascending {
  378. border-bottom-color: #2169c3;
  379. }
  380. .descending .sort-caret.descending {
  381. border-top-color: #2169c3;
  382. }
  383. }
  384. .el-table__expanded-cell {
  385. background: transparent;
  386. }
  387. .el-table__footer-wrapper tbody td {
  388. background: #1a1f2fcc;
  389. }
  390. }
  391. .el-table__expanded-cell {
  392. background: transparent;
  393. }
  394. .el-table__footer-wrapper tbody td {
  395. background: #1a1f2fcc;
  396. }
  397. // 去除表格顶、左、底部边框
  398. .el-table__border-left-patch,
  399. .el-table__inner-wrapper::after,
  400. .el-table__inner-wrapper::before {
  401. background: transparent;
  402. }
  403. }
  404. // el-input
  405. .el-input {
  406. // 基本样式
  407. .el-input__wrapper {
  408. background-color: rgba(83, 98, 104, .2);
  409. border-radius : 4px;
  410. border : 1px solid @border-color;
  411. // 输入框
  412. .el-input__inner {
  413. color : @text-color;
  414. font-size: 14px;
  415. &::placeholder {
  416. color: @placeholder-color;
  417. }
  418. }
  419. // 悬停状态
  420. &:hover {
  421. border-color: darken(@border-color, 10%);
  422. }
  423. // 聚焦状态
  424. &.is-focus {
  425. border-color: @primary-color;
  426. box-shadow : 0 0 0 2px fade(@primary-color, 20%);
  427. }
  428. }
  429. // 禁用状态
  430. &.is-disabled {
  431. .el-input__wrapper {
  432. background-color: @disabled-bg;
  433. border-color : @border-color;
  434. .el-input__inner {
  435. color: @disabled-color;
  436. }
  437. }
  438. }
  439. // 清除按钮
  440. .el-input__clear {
  441. color: @placeholder-color;
  442. &:hover {
  443. color: @text-color;
  444. }
  445. }
  446. // 前缀和后缀图标
  447. .el-input__prefix,
  448. .el-input__suffix {
  449. color: @placeholder-color;
  450. .el-input__icon {
  451. font-size: 16px;
  452. }
  453. }
  454. }
  455. .el-select {
  456. // 基本样式
  457. .el-select__wrapper {
  458. background-color: rgba(83, 98, 104, .2);
  459. border-radius : 4px;
  460. border : 1px solid @border-color;
  461. .el-select__placeholder {
  462. color: #fff;
  463. }
  464. // 悬停状态
  465. &:hover {
  466. border-color: darken(@border-color, 10%);
  467. }
  468. // 聚焦状态
  469. &.is-focus {
  470. border-color: @primary-color;
  471. box-shadow : 0 0 0 2px fade(@primary-color, 20%);
  472. }
  473. }
  474. // 禁用状态
  475. &.is-disabled {
  476. .el-input__wrapper {
  477. background-color: @disabled-bg;
  478. border-color : @border-color;
  479. .el-input__inner {
  480. color: @disabled-color;
  481. }
  482. }
  483. }
  484. // 下拉箭头
  485. .el-select__caret {
  486. color : @placeholder-color;
  487. font-size: 14px;
  488. &.is-reverse {
  489. transform: rotateZ(180deg);
  490. }
  491. }
  492. // 清除按钮
  493. .el-select__clear {
  494. color: @placeholder-color;
  495. &:hover {
  496. color: @text-color;
  497. }
  498. }
  499. .el-select__selection.is-near {
  500. width: 95%;
  501. }
  502. }
  503. .el-button.el-button--danger {
  504. span {
  505. color: #fff;
  506. }
  507. }
  508. // /generatingCap/dataFilter/process
  509. .main_top {
  510. background: #13171e;
  511. .topPsty {
  512. color : #1c99ff;
  513. background: #1e2126;
  514. }
  515. }
  516. .main {
  517. background: #13171e;
  518. }
  519. // /generatingCap/dataAnalysis/jjyxReport
  520. .analysisReport {
  521. .infoBox {
  522. background: rgb(4, 12, 11);
  523. }
  524. }
  525. }
  526. // el-dialogv
  527. .el-dialog.currentDialog,
  528. .el-dialog[custom-class="windLifeDialog"] {
  529. background: rgba(3, 7, 19, 0.95);
  530. border : 1px solid rgba(33, 105, 195, 0.5);
  531. box-shadow: 0px 8px 17px 1px rgba(33, 105, 195, 0.3);
  532. .el-dialog__title {
  533. color: #fff;
  534. }
  535. }
  536. .reportDia {
  537. #pdfDom {
  538. p {
  539. color: #fff;
  540. span {
  541. color: #fff;
  542. }
  543. }
  544. }
  545. }
  546. // 下拉菜单
  547. .el-popper {
  548. // border: 1px solid rgb(10, 23, 42) !important;
  549. }
  550. .el-select-dropdown__wrap {
  551. background-color: rgb(10, 23, 42);
  552. border : 1px solid rgb(10, 23, 42);
  553. border-radius : 4px;
  554. box-shadow : 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  555. .el-select-dropdown__item {
  556. font-size : 14px;
  557. padding : 0 20px;
  558. position : relative;
  559. white-space : nowrap;
  560. overflow : hidden;
  561. text-overflow: ellipsis;
  562. color : @text-color;
  563. height : 34px;
  564. line-height : 34px;
  565. &.hover,
  566. &.is-hovering,
  567. &:hover {
  568. background-color: @fzs2;
  569. }
  570. &.is-selected {
  571. color : @fzs2;
  572. font-weight: 400;
  573. &:hover {
  574. background: @fzs2;
  575. color : #fff;
  576. }
  577. &.is-hovering {
  578. background: @fzs2;
  579. color : #fff;
  580. }
  581. }
  582. &.is-disabled {
  583. color : @disabled-color;
  584. cursor: not-allowed;
  585. }
  586. }
  587. }
  588. // 多选样式
  589. .el-select .el-select__selection.is-near {
  590. position : absolute;
  591. line-height: normal;
  592. white-space: normal;
  593. z-index : 1;
  594. top : 50%;
  595. transform : translateY(-50%);
  596. display : flex;
  597. align-items: center;
  598. flex-wrap : wrap;
  599. .el-tag {
  600. background: #000;
  601. color : @text-color;
  602. }
  603. }
  604. // el-radio-group
  605. .el-radio-group {
  606. .el-radio {
  607. .el-radio__label {
  608. color: #fff;
  609. }
  610. &.is-checked {
  611. .el-radio__inner {
  612. background : @fzs2;
  613. border-color: @fzs2;
  614. }
  615. .el-radio__label {
  616. color: @fzs2;
  617. }
  618. }
  619. }
  620. }
  621. .el-picker__popper.el-popper {
  622. background-color: rgb(3, 7, 19);
  623. .el-date-picker {
  624. background: rgb(3, 7, 19)
  625. }
  626. .el-date-picker__header {
  627. .el-date-picker__prev-btn button,
  628. .el-date-picker__next-btn button,
  629. .el-date-picker__header-label {
  630. color: #fff;
  631. &:hover {
  632. color: @fzs2;
  633. }
  634. }
  635. }
  636. .el-picker-panel__content {
  637. .el-date-table {
  638. tbody {
  639. tr:first-child {
  640. th {
  641. color: #fff;
  642. }
  643. }
  644. td.prev-month,
  645. td.next-month {
  646. color: #606769;
  647. }
  648. td.available {
  649. color: #fff;
  650. &:hover {
  651. color: @fzs2;
  652. }
  653. }
  654. td.current:not(.disabled) {
  655. .el-date-table-cell__text {
  656. background: @fzs2;
  657. color : #fff;
  658. }
  659. }
  660. }
  661. }
  662. .el-year-table,
  663. .el-month-table {
  664. td.current:not(.disabled) {
  665. .cell {
  666. background: @fzs2;
  667. color : #fff;
  668. }
  669. }
  670. }
  671. }
  672. }
  673. .el-picker-panel {
  674. background-color: rgb(3, 7, 19);
  675. .start-date,
  676. .in-range,
  677. .end-date {
  678. .el-date-table-cell {
  679. background: @mc3;
  680. &:hover {
  681. background: @mc3;
  682. color : @fc1;
  683. }
  684. }
  685. }
  686. .el-input__wrapper {
  687. background-color: rgba(83, 98, 104, .2);
  688. border : 1px solid @border-color;
  689. .el-input__inner {
  690. color: #fff;
  691. }
  692. }
  693. .el-time-panel {
  694. border-color : #fff;
  695. background-color: rgb(3, 7, 19);
  696. box-shadow : var(--el-box-shadow-light);
  697. }
  698. .el-time-spinner__item {
  699. color: rgb(223, 232, 250);
  700. &.is-active {
  701. color: #67b9ff;
  702. }
  703. &:hover:not(.disabled):not(.is-active) {
  704. background: fade(rgb(26, 92, 175), 75);
  705. }
  706. }
  707. .el-time-panel__footer {
  708. background: rgb(3, 7, 19);
  709. }
  710. .el-time-panel__btn.cancel {
  711. color: #fff,
  712. }
  713. .el-time-panel__btn.confirm {
  714. color: #67b9ff,
  715. }
  716. }
  717. .el-picker-panel__footer {
  718. background: @picker-bg-color ;
  719. .el-button--text {
  720. color: #fff;
  721. }
  722. .el-button.is-plain {
  723. color : #67b9ff;
  724. border-color: #67b9ff;
  725. }
  726. }
  727. .el-input-number {
  728. .el-input-number__decrease,
  729. .el-input-number__increase {
  730. background: #1e3f9a !important;
  731. }
  732. }
  733. .el-loading-mask {
  734. background: rgba(rgb(3, 7, 19, 0.5));
  735. }
  736. }