theme.less 16 KB

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