物管理前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

701 lines
16 KiB

  1. //========================= base.less 开始 ==============================//
  2. //定义基础色
  3. //主色
  4. body {
  5. --color-primary: #409eff;
  6. --color-primary-light: rgb(64 158 255 / 8%);
  7. }
  8. input[type=number]::-webkit-inner-spin-button,
  9. input[type=number]::-webkit-outer-spin-button {
  10. -webkit-appearance: none;
  11. margin: 0;
  12. }
  13. @--color-primary: ~ 'var(--color-primary)';
  14. @--color-primary-light: ~ 'var(--color-primary-light)';
  15. @text: #595959;
  16. @text-2: #8c8c8c;
  17. //导航菜单
  18. @dark-text: rgb(255 255 255 / 66%);
  19. @dark-text-active: #eee;
  20. @dark-bg: #162E5A;
  21. @dark-bg-active: @--color-primary;
  22. @light-text: @text;
  23. @light-text-active: @--color-primary;
  24. @light-bg: @text-regular-color;
  25. @light-bg-active: @--color-primary-light;
  26. @primary-text: rgb(255 255 255 / 66%);
  27. @primary-text-2: rgb(255 255 255 / 65%);
  28. @primary-text-active: @text-regular-color;
  29. @primary-bg: @--color-primary;
  30. @primary-bg-light: @--color-primary-light;
  31. @primary-bg-active: @--color-primary-light;
  32. //
  33. .el-button--primary {
  34. color: #ffffff;
  35. background-color: var(--color-primary) !important;
  36. border-color: var(--color-primary) !important;
  37. }
  38. @text-regular-color: #FFF;
  39. @input-bg-color: #0C2852;
  40. @border-color: #274778;
  41. @tr-bg-color: rgb(23, 37, 70);
  42. @tr-hover-bg-color: rgba(64, 66, 71, 0.5);
  43. @text-color: #D7D7D7;
  44. @selected-bg-color: rgba(0, 39, 137, 0.5);
  45. @check-box-background-color: #274778;
  46. @check-box-checked-background-color: #274778;
  47. //@check-box-border-color: #0B6CA3;
  48. @check-box-border-color: #0594d9;
  49. @block-bg-color: #172546;
  50. @block-active-bg-color: "#162E5A";
  51. @view-ctx-bg-color: #121d3d;
  52. @rr-view-tab-bg: #193567;
  53. @el-tabs-item-color: rgba(255, 255, 255, 0.9);
  54. @el-tabs-item-isActive-color: rgba(255, 255, 255, 0.9);
  55. @el-tabs-item-isActive-bg: #182652;
  56. @select-dropdown-hover-bg: rgb(23, 37, 70);
  57. @el-date-table-td-disabled: #232e3f;
  58. @el-radio-button__inner: transparent;
  59. @monitor-usage-chart-border-color: "#274778";
  60. @iot-relation-view-bg: #293e6b;
  61. @list-item-detail-table-td: #182246;
  62. @list-item-detail-table-td-odd: #242e50;
  63. @device-board-setting-bg: #112043;
  64. @el-tree-node-hover-bg-color: #172546;
  65. .rr-view-ctx {
  66. background: @view-ctx-bg-color;
  67. height: calc(100% - 39px);
  68. .rr-view-ctx-card {
  69. position: relative;
  70. height: 100%;
  71. background: @block-bg-color;
  72. overflow: auto;
  73. }
  74. ::v-deep .el-card__body {
  75. position: relative;
  76. height: 100%;
  77. }
  78. }
  79. .rr-view-tab .el-tabs__nav .el-tabs__item {
  80. color: @el-tabs-item-color;
  81. &:hover {
  82. color: @text-regular-color;
  83. }
  84. &.is-active {
  85. color: @el-tabs-item-isActive-color;
  86. background: @el-tabs-item-isActive-bg !important;
  87. }
  88. }
  89. .el-input {
  90. input.el-input__inner {
  91. background: @input-bg-color !important;
  92. //border: 1px solid #DCDFE6;
  93. color: @text-color !important;
  94. &::placeholder {
  95. color: @text-2;
  96. }
  97. }
  98. .el-input__wrapper {
  99. padding: 0 !important;
  100. }
  101. --el-disabled-text-color: @text-2 !important;
  102. --el-input-border-color: @border-color !important;
  103. --el-disabled-border-color: @border-color !important;
  104. }
  105. .el-input-number {
  106. --el-bg-color: @input-bg-color !important;
  107. --el-border-base: var(--el-border-width-base) var(--el-border-style-base) @border-color !important;
  108. --el-text-color-regular: @text-regular-color !important;
  109. }
  110. .el-select-v2__wrapper {
  111. background: @input-bg-color !important;
  112. border-color: @border-color !important;
  113. --el-text-color-placeholder: @text-2 !important;
  114. }
  115. .el-select-dropdown__option-item {
  116. color: @text-color !important;
  117. --el-bg-color: @tr-bg-color !important;
  118. font-size: var(--el-font-size-base) !important;
  119. }
  120. .el-date-editor {
  121. input.el-range-input {
  122. background: @input-bg-color !important;
  123. //border: 1px solid #DCDFE6;
  124. color: @text-color !important;
  125. &::placeholder {
  126. color: @text-2;
  127. }
  128. }
  129. .el-range-separator {
  130. color: @text-2 !important;
  131. }
  132. --el-input-bg-color: @input-bg-color !important;
  133. --el-disabled-text-color: @text-2 !important;
  134. --el-input-border-color: @border-color !important;
  135. --el-disabled-border-color: @border-color !important;
  136. }
  137. .el-date-table td.disabled .el-date-table-cell {
  138. background: @el-date-table-td-disabled !important;
  139. }
  140. div.el-date-picker {
  141. --el-datepicker-text-color: @text-color !important;
  142. --el-datepicker-hover-text-color: var(--el-color-primary) !important;
  143. }
  144. .el-date-picker__header-label {
  145. color: @text-color !important;
  146. }
  147. textarea.el-textarea__inner {
  148. --el-input-bg-color: @input-bg-color !important;
  149. color: @text-regular-color !important;
  150. &::placeholder {
  151. color: @text-2;
  152. }
  153. --el-input-border-color: @border-color !important;
  154. --el-disabled-bg-color: @input-bg-color !important;
  155. }
  156. .el-select__popper .el-popper__arrow::before {
  157. background: @input-bg-color !important;
  158. border-color: @border-color !important;
  159. }
  160. .el-popper.is-light .el-popper__arrow::before {
  161. background: @input-bg-color !important;
  162. }
  163. .el-select-dropdown__item {
  164. color: @text-color !important;
  165. &:hover {
  166. background: @select-dropdown-hover-bg !important;
  167. }
  168. --el-bg-color: @tr-bg-color !important;
  169. &.selected {
  170. background: @tr-bg-color !important;
  171. }
  172. }
  173. .el-steps {
  174. --el-bg-color: @tr-bg-color !important;
  175. .el-step__title.is-process, .el-step__head.is-process {
  176. --el-text-color-primary: var(--el-color-primary);
  177. }
  178. }
  179. @el-table-thead-th-bg: #1F3059;
  180. @el-table-cell-hover-bg: #24355e;
  181. @el-table-row-striped-cell-bg: #1E2C4F;
  182. @fixColumn-hover-bg: rgba(0, 39, 137, 1);
  183. //.el-table {
  184. // border-radius: 6px;
  185. //
  186. // thead th {
  187. // background: @el-table-thead-th-bg!important;
  188. // color: @text-color !important;
  189. // font-size: 16px;
  190. // }
  191. //
  192. // .td.el-table__cell{
  193. // &:hover {
  194. // background: @el-table-cell-hover-bg !important;
  195. // //background: rgba(30, 44, 79, 1) !important;
  196. // }
  197. // }
  198. //
  199. // tr.el-table__row--striped td.el-table__cell {
  200. // background: @el-table-row-striped-cell-bg !important;
  201. //
  202. // }
  203. //
  204. // tr td.el-table-fixed-column--right {
  205. // background: @tr-bg-color !important;
  206. //
  207. // &:hover {
  208. // background: @fixColumn-hover-bg !important;
  209. // }
  210. // }
  211. //
  212. // .el-table__expand-icon {
  213. // color: var(--el-text-color-placeholder) !important;
  214. // }
  215. //
  216. // .el-table-column--selection {
  217. // label.el-checkbox {
  218. // .el-checkbox__inner {
  219. // background: @check-box-background-color !important;
  220. // border-color: @check-box-border-color !important;
  221. // }
  222. // }
  223. // label.el-checkbox.is-checked {
  224. // .el-checkbox__inner {
  225. // background: @check-box-checked-background-color !important;
  226. // border-color: @check-box-border-color !important;
  227. // }
  228. // }
  229. // }
  230. //
  231. //
  232. // --el-table-text-color: @text-color !important;
  233. // --el-table-border-color: @border-color !important;
  234. // --el-table-border: 1px solid @border-color !important;
  235. // --el-table-tr-bg-color: @tr-bg-color !important;
  236. // --el-table-bg-color: @tr-bg-color !important;
  237. // --el-table-row-hover-bg-color: @selected-bg-color !important;
  238. // --el-table-current-row-bg-color: @selected-bg-color !important;
  239. // --el-table-expanded-cell-bg-color: @tr-bg-color !important;
  240. //}
  241. @pager-active-color: #3B99F0;
  242. //.el-pagination {
  243. // color: @text-color !important;
  244. //
  245. // .btn-prev, .btn-next {
  246. // border: 1px solid @border-color;
  247. // border-radius: 4px;
  248. // }
  249. //
  250. // .btn-prev {
  251. // margin-right: 5px;
  252. // }
  253. //
  254. // ul.el-pager {
  255. // li {
  256. // border: 1px solid @border-color;
  257. // border-radius: 4px;
  258. //
  259. // &:not(last-child) {
  260. // margin-right: 5px;
  261. // }
  262. //
  263. // &:first-child {
  264. // margin-left: 5px;
  265. // }
  266. //
  267. // &.active {
  268. // border-color: @pager-active-color;
  269. // color: @pager-active-color;
  270. // }
  271. // }
  272. //
  273. // li.active + li {
  274. // border: 1px solid @border-color;
  275. // }
  276. // }
  277. //
  278. // --el-pagination-bg-color: @tr-bg-color !important;
  279. // --el-text-color-regular: @text-color !important;
  280. // --el-pagination-button-color: @border-color !important;
  281. // --el-pagination-button-disabled-bg-color: @tr-bg-color !important;
  282. //}
  283. .el-loading-mask {
  284. background: @tr-bg-color !important;
  285. }
  286. @dialog-bg-color: #162E5A;
  287. @dialog-header-bg: #234DAF;
  288. @dialog-footer-border-top: 1px solid #1D3D77;
  289. @dialog-el-input-border: 1px solid rgba(#1D3D77,0.1);
  290. .el-dialog {
  291. --el-dialog-bg-color: @dialog-bg-color !important;
  292. .el-dialog__header {
  293. text-align: center;
  294. background: @dialog-header-bg;
  295. margin: 0 !important;
  296. padding: 16px 0 !important;
  297. }
  298. .el-dialog__title {
  299. color: @text-color;
  300. }
  301. .el-dialog__footer{
  302. border-top: @dialog-footer-border-top;
  303. }
  304. .el-dialog__headerbtn {
  305. top: 0;
  306. .el-dialog__close {
  307. color: @text-regular-color !important;
  308. &:hover{
  309. color: @check-box-border-color !important;
  310. }
  311. }
  312. }
  313. .el-input{
  314. border: @dialog-el-input-border !important;
  315. }
  316. }
  317. .el-form-item__label {
  318. color: @text-color !important;
  319. }
  320. .el-radio {
  321. --el-radio-text-color: @text-color !important;
  322. }
  323. .el-input-group__append {
  324. --el-bg-color: @tr-bg-color !important;
  325. }
  326. .el-upload--picture-card, .el-upload-list__item {
  327. background: @input-bg-color !important;
  328. border-color: @border-color !important;
  329. }
  330. .el-tabs--border-card {
  331. background: @tr-bg-color !important;
  332. --el-border-color-base: @border-color !important;
  333. .el-tabs__item {
  334. background: @tr-bg-color !important;
  335. border-color: @border-color !important;
  336. }
  337. }
  338. .el-tabs__nav {
  339. //border-color: @border-color !important;
  340. }
  341. .el-tabs__header {
  342. border-color: @border-color !important;
  343. }
  344. .el-tabs__item {
  345. border-left-color: @border-color !important;
  346. &.is-active {
  347. border-color: @border-color !important;
  348. }
  349. --el-text-color-primary: @text-color !important;
  350. }
  351. .el-button--text {
  352. --el-color-primary: @text-color;
  353. }
  354. .el-button{
  355. &.is-text{
  356. color: @text-color !important;
  357. &:hover{
  358. color: @--color-primary !important;
  359. }
  360. }
  361. }
  362. .el-tree {
  363. background: transparent !important;
  364. --el-tree-node-hover-bg-color: @el-tree-node-hover-bg-color !important;
  365. --el-tree-text-color: @text-color !important;
  366. .el-tree-node.is-current > .el-tree-node__content {
  367. background: @el-tree-node-hover-bg-color !important;
  368. }
  369. }
  370. hr {
  371. border-color: @border-color !important;
  372. }
  373. //.el-date-range-picker{
  374. // input.el-input__inner {
  375. // background: @text-regular-color !important;
  376. // color: var(--color-primary)!important;
  377. // }
  378. //}
  379. .el-popper.is-light {
  380. background: @input-bg-color !important;
  381. border-color: @border-color !important;
  382. }
  383. .el-dropdown__popper.el-popper[role=tooltip] {
  384. .el-dropdown-menu {
  385. background: @input-bg-color !important;
  386. .el-dropdown-menu__item {
  387. --el-text-color-regular: @text-color !important;
  388. :not(.is-disabled):focus {
  389. // background: @tr-bg-color !important;
  390. }
  391. }
  392. }
  393. }
  394. @as-same-bg-color-as-right: #213361;
  395. @content-bg-color: #172647;
  396. .el-collapse {
  397. --el-collapse-border-color: @as-same-bg-color-as-right !important;
  398. background: @as-same-bg-color-as-right !important;
  399. --el-collapse-header-bg-color: @as-same-bg-color-as-right !important;
  400. --el-collapse-content-bg-color: @content-bg-color !important;
  401. --el-collapse-header-text-color: @text-color !important;
  402. --el-collapse-content-text-color: @text-color !important;
  403. border-color: @as-same-bg-color-as-right !important;
  404. }
  405. @el-datepicker-inrange-bg-color: #1f3a63;
  406. @el-datepicker-inrange-hover-bg-color: #4e71c4;
  407. .el-picker-panel {
  408. background: @tr-bg-color !important;
  409. color: @text-color !important;
  410. .el-picker-panel__footer {
  411. background: @tr-bg-color !important;
  412. }
  413. //.el-date-range-picker__content,.el-date-range-picker__time-header,.el-picker-panel__footer{
  414. // border-color: @border-color !important;
  415. //}
  416. --el-datepicker-inner-border-color: @border-color !important;
  417. --el-datepicker-border-color: @border-color !important;
  418. --el-datepicker-off-text-color: @text-2 !important;
  419. --el-datepicker-header-text-color: @text-color !important;
  420. --el-datepicker-icon-color: @text-color !important;
  421. --el-datepicker-inrange-bg-color: @el-datepicker-inrange-bg-color !important;
  422. --el-datepicker-inrange-hover-bg-color: @el-datepicker-inrange-hover-bg-color!important;
  423. --el-datepicker-hover-text-color: @text-regular-color !important;
  424. }
  425. .el-drawer {
  426. --el-drawer-bg-color: @dialog-bg-color !important;
  427. .el-drawer__header {
  428. color: @text-color !important;
  429. border-color: @border-color;
  430. }
  431. }
  432. .el-checkbox {
  433. --el-checkbox-text-color: @text-color !important;
  434. }
  435. .el-color-picker__trigger {
  436. border-color: @border-color !important;
  437. }
  438. .el-color-picker__mask {
  439. background: transparent !important;
  440. }
  441. .el-radio-group {
  442. .el-radio-button {
  443. .el-radio-button__inner {
  444. background: @el-radio-button__inner !important;
  445. border-color: @border-color !important;
  446. color: @text-color !important;
  447. }
  448. &.is-active {
  449. .el-radio-button__inner {
  450. color: #ffffff !important
  451. }
  452. }
  453. .el-radio-button__original-radio:checked + .el-radio-button__inner {
  454. background: var(--el-color-primary) !important;
  455. }
  456. }
  457. }
  458. .el-button--text {
  459. background: transparent !important;
  460. border: none !important;
  461. }
  462. @drawer-header-bg: #2f5ecc;
  463. @drawer-body-bg: #132e60;
  464. @drawer-footer-bg: #132e60;
  465. @drawer-body-border-bottom: 1px solid #234685;
  466. .drawerOuter {
  467. inset: 50px 0 0 48% !important;
  468. .el-drawer__body {
  469. display: flex;
  470. flex-direction: column;
  471. background-color: @drawer-body-bg;
  472. border-bottom: @drawer-body-border-bottom;
  473. }
  474. .el-drawer__header {
  475. background-color: @drawer-header-bg;
  476. margin-bottom: 0px;
  477. padding-bottom: 20px;
  478. }
  479. .el-drawer__footer {
  480. background-color: @drawer-footer-bg;
  481. }
  482. }
  483. .drawerOuter.noInset {
  484. inset: 50px 0 0 0 !important;
  485. }
  486. .el-select-v2__placeholder{
  487. color: @text-regular-color !important;
  488. }
  489. .el-select-v2__placeholder.is-transparent {
  490. color: var(--el-text-color-placeholder) !important;
  491. }
  492. .el-select-v2__wrapper .el-select-v2__input-wrapper input {
  493. color: @text-color;
  494. }
  495. .el-select-dropdown__option-item {
  496. &.is-selected{
  497. background-color: var(--el-bg-color)!important;
  498. }
  499. }
  500. //============================== base.less 结束 ==========================//
  501. @media only screen and (max-width: 768px) {
  502. .rr-header-action {
  503. display: flex !important;
  504. }
  505. .show-xs-only {
  506. display: block !important;
  507. }
  508. }
  509. @media only screen and (min-width: 768px) {
  510. }
  511. @media only screen and (min-width: 768px) and (max-width: 992px) {
  512. }
  513. @media only screen and (max-width: 992px) {
  514. .drawerOuter {
  515. inset: 50px 0 0 5% !important
  516. }
  517. }
  518. @media only screen and (min-width: 992px) {
  519. }
  520. @media only screen and (min-width: 992px) and (max-width: 1200px) {
  521. }
  522. @media only screen and (max-width: 1200px) {
  523. }
  524. @media only screen and (min-width: 1200px) {
  525. }
  526. @media only screen and (min-width: 1200px) and (max-width: 1920px) {
  527. }
  528. @media only screen and (max-width: 1920px) {
  529. }
  530. @media only screen and (min-width: 1920px) {
  531. }
  532. //
  533. .ui-mobile {
  534. .rr-view-tab-wrap {
  535. left: 0 !important;
  536. transition: left 0s !important;
  537. }
  538. .rr-header-ctx-logo-img-wrap {
  539. display: none !important;
  540. }
  541. }
  542. .rr-sidebar-mobile {
  543. z-index: 9999 !important;
  544. &-inner {
  545. margin: 0;
  546. padding: 0;
  547. scrollbar-width: none;
  548. &::-webkit-scrollbar {
  549. display: none;
  550. }
  551. }
  552. }
  553. .ui-sidebar-light .rr-sidebar-mobile {
  554. .el-drawer__body,
  555. .rr-header-ctx-logo-mobile {
  556. background: @light-bg !important;
  557. }
  558. .rr-header-ctx-logo-mobile {
  559. color: @light-text !important;
  560. }
  561. }
  562. .ui-sidebar-dark .rr-sidebar-mobile {
  563. .el-drawer__body,
  564. .rr-header-ctx-logo-mobile {
  565. background: @dark-bg !important;
  566. }
  567. .rr-header-ctx-logo-mobile {
  568. color: @dark-text !important;
  569. }
  570. }
  571. .ui-sidebarCollapse-true,
  572. .ui-sidebarCollapse-false {
  573. .rr-sidebar-mobile {
  574. width: initial !important;
  575. .el-menu.rr-sidebar-menu {
  576. width: 230px !important;
  577. .el-menu-item,
  578. .el-sub-menu__title {
  579. a {
  580. display: inline-block !important;
  581. }
  582. }
  583. }
  584. .rr-header-ctx-logo.rr-header-ctx-logo-mobile {
  585. width: auto !important;
  586. .rr-header-ctx-logo-text {
  587. display: inline-block !important;
  588. }
  589. }
  590. .el-drawer,
  591. .el-drawer__body {
  592. box-shadow: none !important;
  593. }
  594. }
  595. }