theme.less 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. //header相关
  2. // @headerHeight: 65px;
  3. // @headerBg: #164489;
  4. // @docColor: #f52323;
  5. // 蓝湖UI规范 颜色、字体大小 less变量设置
  6. @themeColor: #3397FF; //链接/按钮 #409EFF#DA3947
  7. @greenA: #67C239;
  8. @greenBgA: #F0F9EA;
  9. @orangeA: #CB7C2C;
  10. @orangeBgA: #FFE9CE;
  11. @lightBlueA: #2CA8CB;
  12. @lightBlueBgA: #E8F9FE;
  13. @purpleA: #7B2CCB;
  14. @purpleBgA: #F3ECFD;
  15. // @fontSize30: 30px; //一般是网站最重要的标题,也可以用于阿拉伯数字等
  16. // @fontSize24: 24px; //一般用于页面标题
  17. // @fontSize16: 16px; //用于二级页面标题或者阅读文段
  18. // @fontSize14: 14px; //用于表头,表单列表,导航,输入框
  19. // @fontSize12: 12px; //用于说明性文字,次要文字信息
  20. // @padding80: 80px; //用于内容区距footer区的距离
  21. // @padding40: 40px; //用于内容区大间距
  22. // @padding24: 24px; //用于同区内中间距
  23. // @padding20: 20px;
  24. // @padding16: 16px; //用于同区内次间距,也可是12px
  25. // @padding12: 12px; //用于同区内次间距
  26. @padding10: 10px; //用于同区内次间距
  27. .padBot60 {
  28. padding-bottom: 60px;
  29. }
  30. .marRt0 {
  31. margin-right: 0;
  32. }
  33. .searchLayoutBox {
  34. padding: 22px 36px 0;
  35. border: 1px solid #dfdfdf;
  36. box-shadow: 0 4px 9px #dcdcdc;
  37. border-radius: 3px;
  38. }
  39. .inputBox {
  40. .label {
  41. display: inline-block;
  42. min-width: 60px;
  43. margin-right: 20px;
  44. line-height: 32px;
  45. text-align: right;
  46. }
  47. }
  48. /deep/ .el-input {
  49. width: 230px;
  50. }
  51. /deep/ .el-pagination__editor.el-input {
  52. width: 50px;
  53. }
  54. .el-table {
  55. // .el-table__cell {
  56. // padding: 0;
  57. // }
  58. .elIcon {
  59. margin-right: 20px;
  60. font-size: 16px;
  61. color: @themeColor;
  62. cursor: pointer;
  63. &:last-child {
  64. margin-right: 0;
  65. }
  66. }
  67. }
  68. .flexBox {
  69. display: flex;
  70. flex: 1;
  71. flex-wrap: wrap;
  72. }
  73. .cursor {
  74. cursor: pointer;
  75. }
  76. .el-dialog {
  77. .el-input,
  78. .el-select {
  79. width: 100%;
  80. /deep/ .el-input {
  81. width: 100%;
  82. }
  83. }
  84. }
  85. .titlePanelBor {
  86. padding-left: 9px;
  87. border-left: 6px solid @themeColor;
  88. font-weight: bold;
  89. line-height: 1.08;
  90. color: @themeColor;
  91. }
  92. /deep/ .el-checkbox {
  93. margin-right: 48px;
  94. }
  95. [class*=" my-icon-"],
  96. [class^=my-icon-] {
  97. font-family: element-icons !important;
  98. font-style: normal;
  99. font-weight: 400;
  100. font-variant: normal;
  101. text-transform: none;
  102. line-height: 1;
  103. vertical-align: baseline;
  104. display: inline-block;
  105. -webkit-font-smoothing: antialiased;
  106. -moz-osx-font-smoothing: grayscale;
  107. }
  108. .themeColor {
  109. color: @themeColor;
  110. }
  111. .shadowBox {
  112. border: 1px solid #dfdfdf;
  113. padding: 12px 24px;
  114. box-shadow: 0 4px 9px #dcdcdc;
  115. border-radius: 3px;
  116. }
  117. .myTabsBox {
  118. position: relative;
  119. overflow: hidden;
  120. .addBtn {
  121. position: absolute;
  122. right: 40px;
  123. top: 45px;
  124. }
  125. .el-tabs {
  126. width: 285px;
  127. margin: 45px 40px 15px;
  128. color: @themeColor;
  129. .el-tabs__content {
  130. display: none;
  131. }
  132. .el-tabs__nav-scroll {
  133. padding-left: 25px;
  134. position: relative;
  135. &:before {
  136. content: "";
  137. display: block;
  138. position: absolute;
  139. left: 0;
  140. bottom: 0;
  141. width: 25px;
  142. height: 1px;
  143. border-bottom: 1px solid @themeColor;
  144. }
  145. &:after {
  146. content: "";
  147. display: block;
  148. position: absolute;
  149. right: 0;
  150. bottom: 0;
  151. width: 60px;
  152. height: 1px;
  153. border-bottom: 1px solid @themeColor;
  154. }
  155. }
  156. }
  157. &.myTabsBoxThreeTabs {
  158. .el-tabs {
  159. width: 385px;
  160. }
  161. .el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2) {
  162. padding-left: 0;
  163. }
  164. .el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item.is-active~.el-tabs__item {
  165. border-left-color: transparent;
  166. }
  167. // .el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2).is-active {
  168. // &.el-tabs__item:nth-child(3) {
  169. // border-left-color: transparent;
  170. // }
  171. // }
  172. .el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child {
  173. padding-left: 20px;
  174. }
  175. }
  176. }
  177. .el-tabs--card>.el-tabs__header {
  178. border-bottom: none;
  179. }
  180. .el-tabs--card>.el-tabs__header .el-tabs__nav {
  181. border: none;
  182. }
  183. .addBtn.disabled {
  184. &.el-button {
  185. background: #F5F7FA;
  186. border: 1px solid #DEE6F3;
  187. color: #BABABA;
  188. }
  189. }
  190. .el-range-editor.el-input__inner {
  191. padding: 0 10px;
  192. }
  193. .el-date-editor .el-range-separator {
  194. width: 6%;
  195. }
  196. .colorfulTable {
  197. /deep/ .el-table__body {
  198. .el-table__row:nth-child(2) {
  199. td:nth-child(2) {
  200. background-color: #c1db69;
  201. }
  202. td:nth-child(3) {
  203. background-color: #faf54a;
  204. }
  205. td:nth-child(4) {
  206. background-color: #ff9d33;
  207. }
  208. td:last-child {
  209. background-color: #f56c6c;
  210. }
  211. }
  212. }
  213. }
  214. // .elPopoverReport {
  215. // padding: 0;
  216. // .rowStyle {
  217. // margin: 0;
  218. // }
  219. // }
  220. .myIconPause {
  221. position: relative;
  222. display: inline-block;
  223. width: 14px;
  224. height: 14px;
  225. border: 1px solid @themeColor;
  226. border-radius: 50%;
  227. &:before {
  228. content: "";
  229. display: block;
  230. position: absolute;
  231. top: 50%;
  232. left: 50%;
  233. z-index: 1;
  234. width: 5px;
  235. height: 5px;
  236. background-color: @themeColor;
  237. transform: translate(-2.5px, -2.5px);
  238. }
  239. }
  240. .dateSeparator {
  241. padding: 0 6px;
  242. }
  243. .dateRangeInput {
  244. width: 160px;
  245. }
  246. // /deep/ .el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label:before {
  247. // content: "";
  248. // }
  249. /**
  250. * **xx提供的UI优化代码
  251. */
  252. // element 主题色
  253. @--color-primary: #3397FF;
  254. // @--font-path: '~element-ui/lib/theme-chalk/fonts';
  255. // @import "~element-ui/packages/theme-chalk/src/index.scss";
  256. @grayLine: #e5e5e5;
  257. @lightColor: #3397FF;
  258. @tableTitleBg: #f5f6fa;
  259. @gray: #b2b2b2;
  260. @color: #666666;
  261. @grayBg: #cccccc;
  262. .el-form-item__content {
  263. line-height: 32px;
  264. }
  265. .el-form-item__label {
  266. line-height: 32px;
  267. padding: 0 20px 0 0;
  268. }
  269. // elemen ui 表单 input样式更改
  270. .el-input__inner {
  271. height: 32px;
  272. line-height: normal;
  273. border: 1px solid @grayLine;
  274. }
  275. .el-input__icon {
  276. line-height: 32px;
  277. }
  278. // elemen ui 表单 textarea样式更改
  279. .el-textarea__inner {
  280. height: 80px;
  281. border: 1px solid @grayLine;
  282. }
  283. // elemen ui 表单 单选按钮样式更改
  284. .el-radio__input {
  285. line-height: 16px;
  286. }
  287. .el-radio__inner {
  288. width: 16px;
  289. height: 16px;
  290. border: 1px solid @grayLine;
  291. }
  292. .el-radio__input.is-checked .el-radio__inner {
  293. background: transparent;
  294. }
  295. .el-radio__inner:after {
  296. width: 10px;
  297. height: 10px;
  298. background-color: @lightColor;
  299. }
  300. .el-radio__input.is-disabled .el-radio__inner {
  301. background-color: @tableTitleBg;
  302. border-color: #E5E5E5;
  303. }
  304. .el-radio__input.is-disabled .el-radio__inner {
  305. border-color: #E5E5E5;
  306. background-color: #F5F6Fa;
  307. }
  308. // elemen ui 表单 多选按钮样式更改
  309. .el-checkbox-group {
  310. font-size: 12px;
  311. }
  312. .el-checkbox__inner {
  313. border: 1px solid @gray;
  314. }
  315. // elemen ui 表格样式更改
  316. .el-table::before {
  317. background-color: @grayLine;
  318. }
  319. .el-table td {
  320. border-bottom: 1px solid @grayLine;
  321. }
  322. .el-table th {
  323. padding: 0;
  324. background-color: @tableTitleBg;
  325. border-bottom: none !important;
  326. color: @color;
  327. .cell {
  328. line-height: 40px;
  329. font-size: 12px;
  330. }
  331. }
  332. .el-table td {
  333. padding: 8px 0;
  334. font-size: 12px;
  335. height: 40px;
  336. }
  337. // .el-table tr:hover td {
  338. // background: #fff !important;
  339. // }
  340. .el-table .cell {
  341. overflow: hidden;
  342. // text-overflow: ellipsis;
  343. // white-space: nowrap;
  344. }
  345. // table filer
  346. .el-table-filter__list {
  347. max-height: 200px;
  348. overflow: auto;
  349. li {
  350. max-width: 200px;
  351. overflow: hidden;
  352. text-overflow: ellipsis;
  353. white-space: nowrap;
  354. word-break: normal;
  355. word-wrap: normal;
  356. line-height: 30px;
  357. font-size: 12px;
  358. }
  359. li:hover,
  360. .el-table-filter__list-item.is-active {
  361. background-color: @grayBg;
  362. color: @lightColor;
  363. }
  364. }
  365. // elemen ui 表单 划过 样式更改
  366. .el-input__inner:hover,
  367. .el-radio__inner:hover,
  368. .el-textarea__inner:hover,
  369. .el-checkbox__inner:hover,
  370. .el-select .el-input__inner:hover {
  371. border: 1px solid @gray;
  372. }
  373. .el-select-dropdown__item.hover,
  374. .el-select-dropdown__item:hover,
  375. .el-dropdown-menu__item:not(.is-disabled):hover,
  376. .el-dropdown-menu__item:focus {
  377. background: @grayBg;
  378. }
  379. /*按钮样式更改*/
  380. //按钮最小宽度更改 默认按钮
  381. .el-button {
  382. padding: 8px 15px;
  383. min-width: 88px;
  384. color: @color;
  385. border-color: @grayLine;
  386. }
  387. .el-button:focus {
  388. color: @color;
  389. border-color: @grayLine;
  390. background-color: #fff;
  391. }
  392. .el-button:hover,
  393. .el-button:active {
  394. color: #fff;
  395. border-color: @grayLine;
  396. background-color: @gray;
  397. }
  398. // 蓝色朴素按钮
  399. .el-button--primary.is-plain {
  400. background: #fff;
  401. border-color: @lightColor;
  402. color: @lightColor;
  403. }
  404. .el-button--primary.is-plain:active {
  405. background: @lightColor;
  406. border-color: @lightColor;
  407. color: #fff;
  408. }
  409. .el-button--primary.is-plain:focus {
  410. background: #fff;
  411. border-color: @lightColor;
  412. color: @lightColor;
  413. }
  414. .el-button--primary.is-plain:hover {
  415. background: @lightColor;
  416. border-color: @lightColor;
  417. color: #fff;
  418. ;
  419. }
  420. // 蓝色主要按钮
  421. .el-button--primary {
  422. color: #fff;
  423. border-color: @lightColor;
  424. }
  425. .el-button--primary:hover,
  426. .el-button--primary:active,
  427. .el-button--primary:focus {
  428. color: #fff;
  429. border-color: @lightColor;
  430. background-color: @lightColor;
  431. }
  432. //.el-button--primary:hover, .el-button--primary:focus{background:@lightColor;}
  433. //灰色按钮
  434. .el-button--info.is-plain {
  435. background: #fff;
  436. border-color: @gray;
  437. color: #666;
  438. &:hover {
  439. color: #fff;
  440. background: @gray;
  441. }
  442. &:active {
  443. background: #a2a2a2;
  444. color: #fff;
  445. }
  446. }
  447. .el-button--primary.is-disabled.disabledBtn {
  448. color: #666;
  449. background: #f1f1f1;
  450. border: 1px solid #dedede;
  451. cursor: default;
  452. }
  453. // 禁用按钮
  454. .el-button--info.is-plain.is-disabled,
  455. .el-button--info.is-plain.is-disabled:hover,
  456. .el-button--info.is-plain.is-disabled:focus,
  457. .el-button--info.is-plain.is-disabled:active {
  458. color: @gray;
  459. background-color: @tableTitleBg;
  460. border-color: #e5e5e5;
  461. }
  462. // 文字按钮
  463. .el-button--text {
  464. border-color: transparent;
  465. color: @lightColor;
  466. min-width: 0;
  467. background: transparent;
  468. padding-left: 0;
  469. padding-right: 0;
  470. }
  471. .el-button--text:hover,
  472. .el-button--text:active,
  473. .el-button--text:focus {
  474. color: @lightColor;
  475. background-color: transparent;
  476. border-color: transparent;
  477. }
  478. .el-button--small {
  479. padding: 9px 15px;
  480. }
  481. //修改tab切换 样式
  482. .el-tabs__item {
  483. width: 100px;
  484. text-align: center;
  485. padding: 0;
  486. color: @color;
  487. }
  488. .el-tabs__nav-wrap::after {
  489. height: 1px;
  490. background-color: @grayLine;
  491. }
  492. .el-tabs--border-card {
  493. box-shadow: 0 0 0 0;
  494. -webkit-box-shadow: 0 0 0 0;
  495. }
  496. .el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2) {
  497. padding-left: 0 !important;
  498. }
  499. // 修改表单边框颜色(验证,focus)
  500. .el-form-item.is-error .el-input__inner,
  501. .el-form-item.is-error .el-input__inner:focus,
  502. .el-form-item.is-error .el-textarea__inner,
  503. .el-form-item.is-error .el-textarea__inner:focus {
  504. border-color: @grayLine;
  505. }
  506. .el-form-item.is-success .el-input__inner,
  507. .el-form-item.is-success .el-input__inner:focus,
  508. .el-form-item.is-success .el-textarea__inner,
  509. .el-form-item.is-success .el-textarea__inner:focus {
  510. border-color: @grayLine;
  511. }
  512. .el-form-item.is-error .el-input__inner:hover,
  513. .el-form-item.is-error .el-textarea__inner:hover,
  514. s {
  515. border-color: @gray;
  516. }
  517. .el-form-item.is-success .el-input__inner:hover,
  518. .el-form-item.is-success .el-textarea__inner:hover {
  519. border-color: @gray;
  520. }
  521. .el-input__inner:focus,
  522. .el-textarea__inner:focus,
  523. .el-select .el-input__inner:focus,
  524. .el-select .el-input.is-focus .el-input__inner {
  525. border-color: @grayLine;
  526. }
  527. //修改复选框字体颜色
  528. .el-checkbox {
  529. color: @color;
  530. margin-right: 0;
  531. }
  532. .el-checkbox__input.is-checked+.el-checkbox__label {
  533. color: @color;
  534. }
  535. .el-message {
  536. top: 60px;
  537. min-width: 0;
  538. padding-right: 20px;
  539. }
  540. .el-message-box {
  541. width: 460px;
  542. padding: 5px 5px 20px 5px;
  543. .el-message-box__content {
  544. color: @color;
  545. padding: 20px 15px 25px;
  546. }
  547. .el-message-box__header {
  548. .el-message-box__title {
  549. font-size: 16px;
  550. color: @color;
  551. }
  552. .el-message-box__headerbtn {
  553. top: 12px;
  554. }
  555. }
  556. .el-message-box__message {
  557. p {
  558. word-break: break-all;
  559. }
  560. }
  561. }
  562. .el-message-box__btns button:nth-child(1) {
  563. margin-left: 10px;
  564. float: right;
  565. }
  566. .cancel-left {
  567. float: right;
  568. margin-left: 15px;
  569. font-size: 14px;
  570. }
  571. .size14 {
  572. font-size: 14px;
  573. }
  574. // dialog
  575. .el-dialog__title {
  576. font-size: 16px;
  577. color: @color;
  578. }
  579. .el-dialog__body {
  580. padding: 20px 20px;
  581. }
  582. // 不加粗
  583. .el-pagination {
  584. font-weight: normal;
  585. }
  586. .el-select-dropdown__item.selected {
  587. font-weight: normal;
  588. }
  589. // loding 颜色
  590. .el-upload .el-loading-mask {
  591. background-color: rgba(255, 255, 255, 0.5);
  592. }
  593. .el-loading-spinner {
  594. .el-loading-text {
  595. color: #fff;
  596. }
  597. }
  598. .el-loading-spinner {
  599. i {
  600. color: #fff;
  601. }
  602. }
  603. .el-upload-list__item-name {
  604. margin-right: 110px;
  605. }
  606. /* tree划过选中样式 */
  607. .el-tree .el-tree-node .el-tree-node__content {
  608. height: 30px;
  609. line-height: 30px;
  610. }
  611. .el-tree .el-tree-node__label {
  612. font-size: 12px;
  613. }
  614. .el-tree .el-tree-node[aria-disabled=true] {
  615. color: #ccc;
  616. }
  617. .el-tree-node__content:hover {
  618. background-color: transparent;
  619. }
  620. .el-tree-node:focus>.el-tree-node__content {
  621. background-color: transparent;
  622. }
  623. .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
  624. background-color: transparent;
  625. color: @lightColor;
  626. }
  627. .classify-select {
  628. .el-tree-node__content {
  629. cursor: default;
  630. }
  631. }
  632. //截图回显隐藏对勾图标
  633. .el-upload-list__item.is-success .el-upload-list__item-status-label {
  634. display: none;
  635. }
  636. //抽屉弹框的标题样式修改
  637. .el-drawer__header {
  638. font-size: 16px;
  639. color: @color;
  640. }