element-style-custom.scss 23 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163
  1. /* 改变系统主题色变量 ——*/
  2. $--theme-color: #2761ff;
  3. /*主题颜色(即首页导航栏颜色)——#2761ff*/
  4. $--theme-color-active: #1f4ecc;
  5. /*首页导航栏颜色鼠标悬停到某一个菜单时的颜色——#1F4ECC*/
  6. /* 改变element组件主题色变量 ——*/
  7. $--color-primary: #1677ff;
  8. /*主题颜色 默认——#409EFF*/
  9. $--color-primary-light-3: #4096ff !default;
  10. /* mix($--color-white, $--color-primary, 30%) */
  11. $--color-primary-light-5: #bbdaff !default;
  12. /* mix($--color-white, $--color-primary, 50%) */
  13. $--color-primary-light-7: #cce3ff !default;
  14. /* mix($--color-white, $--color-primary, 70%) */
  15. $--color-primary-light-8: #ddecff !default;
  16. /* mix($--color-white, $--color-primary, 80%) */
  17. $--color-primary-light-9: #f0f7ff !default;
  18. /* mix($--color-white, $--color-primary, 90%) */
  19. $--color-success: #08b767;
  20. /*成功颜色——#67c23a*/
  21. $--color-warning: #faad14;
  22. /*警告颜色——#e6a23c*/
  23. $--color-danger: #ff4d4f;
  24. /*危险颜色——#f56c6c*/
  25. $--color-info: #595959;
  26. /*信息颜色——#909399*/
  27. $--color-text-primary: rgba(0, 0, 0, 0.88);
  28. /*主要文字颜色——#303133*/
  29. $--color-text-regular: rgba(0, 0, 0, 0.65);
  30. /*常规文字颜色——#606266*/
  31. $--color-text-secondary: rgba(0, 0, 0, 0.45);
  32. /*次要文字颜色——#909399*/
  33. $--color-text-placeholder: rgba(0, 0, 0, 0.25);
  34. /*占位文字颜色——#c0c4cc*/
  35. $--input-disabled-color: rgba(0, 0, 0, 0.55);
  36. /*占位文字颜色——#c0c4cc*/
  37. $--border-color-base: #e8e8ea;
  38. /*一级边框颜色——#dcdfe6*/
  39. $--border-color-light: #eeeef0;
  40. /*二级边框颜色——#e4e7ed*/
  41. $--border-color-lighter: #f0f1f3;
  42. /*三级边框颜色——#ebeef5*/
  43. $--border-color-extra-light: #f4f4f4;
  44. /*四级边框颜色——#f2f6fc*/
  45. $--color-white: #ffffff;
  46. /*基础白色——#FFFFFF*/
  47. $--color-black: #000000;
  48. /*基础黑色——#000000*/
  49. $--fill-base: #f0f1f3 !default;
  50. $--background-color-base: #f2f3f5;
  51. /*基础背景色——#F5F7FA*/
  52. $--background-color-secondary: #f0f2f5;
  53. /*第二基础背景色——#F0F2F5*/
  54. $--color-secondary: #dfebfc;
  55. $--purple-color: rgb(169, 102, 245);
  56. $--pink-color: rgb(255, 119, 119);
  57. /* 左侧树宽度设置 */
  58. $--aside-width: 230px;
  59. $--border-color-hover: #4096ff !default; // 悬浮边框颜色 --#C0C4CC
  60. $--select-option-hover-background: #e6f4ff !default; // 悬浮选项背景色 --#f5f7fa
  61. $--input-placeholder-color: rgba(0,
  62. 0,
  63. 0,
  64. 0.25) !default; // 输入框占位符颜色 --#C0C4CC
  65. $--box-shadow-light: 0px 2px 8px 0px rgba(0, 0, 0, 0.06) !default; // 轻微阴影
  66. $--box-shadow-hover-light: 0px 2px 8px 0px rgba(22, 119, 255, 0.2) !default; // 选中阴影
  67. $--border-radius-base: 4px !default;
  68. $--input-border-radius: $--border-radius-base !default;
  69. $--pagination-button-height: 32px !default;
  70. /* 自定义主题色变量 */
  71. .primaryColor {
  72. background-color: $--color-primary;
  73. }
  74. //主要的一步:
  75. :export {
  76. aside_width: $--aside-width;
  77. }
  78. // 表单设计页面主题颜色
  79. $--form-design-active-color: #409eff;
  80. $base-color-black: $--color-black;
  81. $base-color-white: $--color-white;
  82. $base-color-blue: $--color-primary;
  83. $base-color-green: #67c23a !default;
  84. $base-color-gray: #909399 !default;
  85. $base-color-orange: #cf9236 !default;
  86. $base-color-red: #dd6161 !default;
  87. $base-color: #333333;
  88. $base-border-color: #ebebeb;
  89. //顶部导航高
  90. $base-header-height: 60px;
  91. $base-collapse-bg: #f6f6f6;
  92. // 表格相关配置
  93. $--table-border-color: #eeeef0 !default; // 表格边框颜色
  94. $--table-border: 1px solid $--table-border-color !default; // 表格边框
  95. $--table-header-background-color: #f9f9f9 !default; // 表格表头背景颜色
  96. $--table-header-font-color: rgba(0, 0, 0, 0.85) !default; // 表格表头字体颜色
  97. $--table-font-color: rgba(0, 0, 0, 0.65) !default; // 表格字体颜色
  98. // 输入框相关配置
  99. $--input-focus-border: #4096ff !default; // 输入框聚焦边框颜色
  100. /* 改变 icon 字体路径变量,必需 */
  101. $--font-path: '~element-ui/lib/theme-chalk/fonts';
  102. @import '~element-ui/packages/theme-chalk/src/index';
  103. @mixin base-scrollbar {
  104. &::-webkit-scrollbar {
  105. width: 13px;
  106. height: 13px;
  107. }
  108. &::-webkit-scrollbar-thumb {
  109. background-color: rgba(0, 0, 0, 0.4);
  110. background-clip: padding-box;
  111. border: 3px solid transparent;
  112. border-radius: 7px;
  113. }
  114. &::-webkit-scrollbar-thumb:hover {
  115. background-color: rgba(0, 0, 0, 0.5);
  116. }
  117. &::-webkit-scrollbar-track {
  118. background-color: transparent;
  119. }
  120. &::-webkit-scrollbar-track:hover {
  121. background-color: #f8fafc;
  122. }
  123. }
  124. //弹窗样式
  125. .manage-dialog__wrap {
  126. overflow: unset !important;
  127. .el-dialog {
  128. width: 70%;
  129. height: 72%;
  130. .el-dialog__header {
  131. height: 24px;
  132. padding: 10px 0;
  133. margin: 0 20px;
  134. line-height: 24px;
  135. border-bottom: 1px solid #ebeef5;
  136. }
  137. .el-dialog__title {
  138. font-size: 16px;
  139. color: #333;
  140. }
  141. .el-dialog__headerbtn {
  142. top: 14px;
  143. }
  144. .el-dialog__body {
  145. height: calc(100% - 120px);
  146. padding-top: 10px;
  147. padding-bottom: 10px;
  148. overflow: auto;
  149. font-size: 12px;
  150. .el-main {
  151. padding-top: 0;
  152. padding-bottom: 0;
  153. }
  154. }
  155. .el-input__inner {
  156. font-size: 12px;
  157. }
  158. }
  159. .el-dialog__footer {
  160. padding-top: 0;
  161. }
  162. .dialog-footer {
  163. text-align: center;
  164. }
  165. }
  166. @include b(input) {
  167. @include when(disabled) {
  168. .el-input__inner {
  169. &::placeholder {
  170. color: $--input-disabled-color;
  171. }
  172. }
  173. }
  174. }
  175. .manage-dialog__wrap {
  176. @media (max-width: 1024px) {
  177. .el-dialog {
  178. width: 100%;
  179. height: 90%;
  180. margin-top: 4vh !important;
  181. }
  182. }
  183. @media (min-width: 1152px) and (max-width: 1400px) {
  184. .el-dialog {
  185. width: 90%;
  186. }
  187. }
  188. }
  189. .el-dialog__footer {
  190. text-align: center;
  191. }
  192. // htTable顶部按钮样式
  193. .ht-table {
  194. .el-radio {
  195. .el-radio__label {
  196. display: none;
  197. }
  198. }
  199. }
  200. .tooltip-wrapper {
  201. position: relative;
  202. top: 10px;
  203. display: inline-block;
  204. padding: 4px 6px;
  205. }
  206. .tooltip-wrapper::before {
  207. position: absolute;
  208. top: -10px;
  209. left: 50%;
  210. content: '';
  211. border-color: transparent;
  212. border-style: solid;
  213. border-width: 4px 6px 0 6px;
  214. border-top-color: black;
  215. opacity: 1;
  216. transform: translateX(-50%);
  217. }
  218. .msg-log-icon {
  219. position: relative;
  220. }
  221. .log-id {
  222. padding-top: 10px;
  223. color: #333;
  224. }
  225. .msg-log-content {
  226. position: absolute;
  227. top: -5px;
  228. left: 50%;
  229. min-width: 80px;
  230. padding: 4px 2px;
  231. color: #fff;
  232. text-align: center;
  233. pointer-events: auto;
  234. background: black;
  235. border-radius: 5px;
  236. opacity: 1;
  237. transform: translateX(-50%) translateY(-100%);
  238. }
  239. .tooltip-wrapper:hover::after,
  240. .tooltip-wrapper:hover::before {
  241. opacity: 1;
  242. }
  243. /* 右侧 */
  244. .tooltip-wrapper:hover[position='right']::before {
  245. top: 15%;
  246. left: 8%;
  247. margin-left: -3px;
  248. transform: translateY(-50%) rotate(-90deg);
  249. }
  250. .tooltip-wrapper[position='right']>.msg-log-content {
  251. top: 50%;
  252. left: 100%;
  253. margin-left: 10px;
  254. transform: translateY(-50%);
  255. }
  256. .import-export__wrap {
  257. .el-dropdown {
  258. padding-right: 14px;
  259. font-size: 14px;
  260. }
  261. }
  262. .table-header-btn__wrap {
  263. .clear-all-btn {
  264. margin-top: 4px;
  265. }
  266. }
  267. //无数据时显示图片样式
  268. .el-tree__empty-block {
  269. display: flex;
  270. flex-direction: column;
  271. align-items: center;
  272. justify-content: center;
  273. height: 100%;
  274. .no-data-text {
  275. margin: 0;
  276. }
  277. .el-image__inner {
  278. width: 380px;
  279. }
  280. }
  281. //全局表格样式
  282. .el-table__fixed {
  283. z-index: 998;
  284. }
  285. .el-table {
  286. // border: 0;
  287. .el-table__header-wrapper,
  288. .el-table__fixed-header-wrapper {
  289. .el-table__cell {
  290. z-index: auto;
  291. padding: 16px 0;
  292. background: $--table-header-background-color;
  293. .cell {
  294. font-size: 14px;
  295. font-weight: bold;
  296. color: $--table-header-font-color;
  297. }
  298. }
  299. }
  300. .el-table__body {
  301. .el-table__cell {
  302. padding: 16px 0;
  303. .cell {
  304. font-size: 14px;
  305. color: $--table-font-color;
  306. .el-button {
  307. font-size: 14px;
  308. }
  309. }
  310. }
  311. .el-table__row:nth-child(2n) {
  312. background: $--table-header-background-color;
  313. }
  314. }
  315. th.el-table__cell {
  316. font-size: 14px;
  317. color: #333;
  318. background: #f4f4f4;
  319. }
  320. }
  321. p,
  322. ul,
  323. li {
  324. padding: 0;
  325. margin: 0;
  326. }
  327. // 子表中 radio和checkbox对齐样式
  328. .xh_table {
  329. .ht-form-inputs__block {
  330. .el-checkbox-group,
  331. .el-radio-group {
  332. text-align: left;
  333. }
  334. }
  335. }
  336. .ht-selector__table {
  337. &::before {
  338. height: 0;
  339. }
  340. }
  341. .follow-theme-background-color {
  342. background-color: #409eff !important;
  343. }
  344. .follow-theme-color {
  345. color: #409eff !important;
  346. }
  347. //表格校验样式
  348. .form-table__container {
  349. .form-table_box {
  350. .xh_table {
  351. .inputs {
  352. div[aria-invalid='true'] {
  353. padding: 8px 0;
  354. }
  355. div[aria-invalid='true']+.field-tail__wrap {
  356. position: absolute;
  357. left: 10px;
  358. margin-top: 36px;
  359. text-align: left;
  360. }
  361. }
  362. }
  363. }
  364. }
  365. .button-theme-style {
  366. .el-select-dropdown__item.selected {
  367. color: unset;
  368. }
  369. .el-select-dropdown__item:nth-child(2) {
  370. color: $--color-primary;
  371. }
  372. .el-select-dropdown__item:nth-child(3) {
  373. color: $--color-success;
  374. }
  375. .el-select-dropdown__item:nth-child(4) {
  376. color: #ccc;
  377. }
  378. .el-select-dropdown__item:nth-child(5) {
  379. color: $--color-warning;
  380. }
  381. .el-select-dropdown__item:nth-child(6) {
  382. color: $--color-danger;
  383. }
  384. }
  385. .el-table__fixed {
  386. z-index: 999;
  387. }
  388. // 全局下拉更多
  389. .template-opterate-item {
  390. display: inline-block;
  391. span {
  392. padding: 0;
  393. margin-right: 6px;
  394. color: $--color-primary;
  395. text-decoration: none;
  396. cursor: pointer;
  397. }
  398. span:hover {
  399. border-bottom: 1px solid $--color-primary;
  400. }
  401. }
  402. .template-opterate-dropdown {
  403. border: 0.8px solid $--border-color-base;
  404. border-color: $--border-color-base;
  405. border-radius: 4px;
  406. .el-dropdown__caret-button.el-button--default::before {
  407. background: none;
  408. }
  409. .el-dropdown__caret-button {
  410. padding-left: 0px;
  411. }
  412. .template-dropdown-item {
  413. color: $--color-text-regular;
  414. background: transparent;
  415. border-radius: 4px;
  416. }
  417. .template-dropdown-item span {
  418. padding: 7px 4px 7px 6px !important;
  419. }
  420. .el-button {
  421. color: $--color-text-regular;
  422. background: transparent;
  423. border: none;
  424. }
  425. }
  426. .template-opterate-dropdown:hover {
  427. border: 0.8px solid $--color-primary;
  428. border-radius: 4px;
  429. .template-dropdown-item {
  430. color: $--color-primary;
  431. cursor: default;
  432. background: $--select-option-hover-background;
  433. }
  434. .el-button {
  435. color: $--color-primary;
  436. background: $--select-option-hover-background;
  437. }
  438. .template-dropdown .template-dropdown-item span {
  439. padding: 7px;
  440. }
  441. }
  442. .el-collapse-item__header {
  443. height: auto;
  444. }
  445. .preview-form-container,
  446. .custom-form {
  447. // 全局栅格布局
  448. .el-row--flex {
  449. margin-bottom: 0 !important;
  450. }
  451. // 全局表格布局
  452. .el-main {
  453. padding: 0px 20px !important;
  454. }
  455. // 全局折叠面板
  456. .el-collapse .el-collapse-item__header {
  457. margin-bottom: 0 !important;
  458. }
  459. // 全局金额和比率
  460. .ht-form-inputs__block.has-company-box {
  461. line-height: 32px !important;
  462. }
  463. .ht-form-inputs__block.has-company-box>.el-input-number+span {
  464. margin-left: 6px;
  465. }
  466. }
  467. // 全局下拉列表
  468. .el-dropdown-menu--mini .el-dropdown-menu__item {
  469. line-height: 32px;
  470. }
  471. .el-dropdown-menu.el-dropdown-menu--mini {
  472. .el-dropdown-menu__item::after {
  473. display: block;
  474. width: 100%;
  475. height: 1px;
  476. margin: 0 auto;
  477. content: '';
  478. border-bottom: 1px solid #e6e6e6;
  479. }
  480. .el-dropdown-menu__item:last-of-type::after {
  481. display: none;
  482. content: '';
  483. }
  484. }
  485. // 表单相关
  486. .el-input__inner {
  487. padding-left: 11px;
  488. cursor: text;
  489. // &:focus {
  490. // box-shadow: 0px 0px 0px 1px rgba(22, 119, 255, 0.2);
  491. // }
  492. }
  493. .el-input-group {
  494. .el-input__inner {
  495. border-radius: $--input-border-radius 0 0 $--input-border-radius;
  496. }
  497. .el-input-group__append {
  498. border-radius: 0 $--input-border-radius $--input-border-radius 0;
  499. }
  500. }
  501. .el-upload-list__item {
  502. &:hover {
  503. background-color: #e6f4ff;
  504. }
  505. }
  506. // 文本域
  507. @include b(textarea) {
  508. @include e(inner) {
  509. &::placeholder {
  510. font-family: 'Arial';
  511. }
  512. }
  513. }
  514. // 步骤条
  515. @include b(step) {
  516. @include e(head) {
  517. @include when(process) {
  518. color: $--color-white;
  519. border-color: $--color-primary;
  520. @include e(icon) {
  521. background-color: $--color-primary;
  522. }
  523. }
  524. }
  525. @include e(title) {
  526. @include when(process) {
  527. font-weight: bold;
  528. color: $--color-primary;
  529. }
  530. }
  531. }
  532. // 按钮
  533. @mixin button-plain($color) {
  534. color: $color;
  535. background: $--color-white;
  536. border-color: $color;
  537. &:hover,
  538. &:focus {
  539. color: $color;
  540. background: mix($--color-white, $color, 90%);
  541. border-color: mix($--color-white, $color, 60%);
  542. }
  543. &:active {
  544. color: $color;
  545. background: mix($--color-white, $color, 90%);
  546. border-color: mix($--color-white, $color, 60%);
  547. outline: none;
  548. }
  549. }
  550. @include b(button) {
  551. &+& {
  552. margin-left: 10px;
  553. }
  554. @include m(primary) {
  555. @include button-variant($--button-primary-font-color,
  556. $--button-primary-background-color,
  557. $--button-primary-border-color );
  558. }
  559. @include m(success) {
  560. @include button-variant($--button-success-font-color,
  561. $--button-success-background-color,
  562. $--button-success-border-color );
  563. }
  564. @include m(warning) {
  565. @include button-variant($--button-warning-font-color,
  566. $--button-warning-background-color,
  567. $--button-warning-border-color );
  568. }
  569. @include m(danger) {
  570. @include button-variant($--button-danger-font-color,
  571. $--button-danger-background-color,
  572. $--button-danger-border-color );
  573. }
  574. @include m(info) {
  575. @include button-variant($--button-info-font-color,
  576. $--button-info-background-color,
  577. $--button-info-border-color );
  578. }
  579. }
  580. // 分页
  581. @include b(pagination) {
  582. .el-select .el-input {
  583. .el-input__inner {
  584. height: 32px !important;
  585. padding-right: 25px;
  586. border-radius: $--pagination-border-radius;
  587. }
  588. }
  589. // .btn-prev,
  590. // .btn-next,
  591. // .el-pager li {
  592. // min-width: 32px;
  593. // height: 32px;
  594. // margin: 0 4px;
  595. // color: $--color-text-primary;
  596. // background-color: $--color-white;
  597. // border: 1px solid #d9d9d9;
  598. // border-radius: $--border-radius-base;
  599. // }
  600. // .el-pager li.active + li {
  601. // border-left: 1px;
  602. // }
  603. // .el-pager li:not(.disabled) {
  604. // &:hover {
  605. // color: $--color-primary;
  606. // border-color: $--color-primary;
  607. // }
  608. // &.active {
  609. // color: $--color-primary;
  610. // background-color: $--color-white;
  611. // border-color: $--color-primary;
  612. // }
  613. // }
  614. @include when(background) {
  615. .btn-prev,
  616. .btn-next,
  617. .el-pager li {
  618. min-width: 32px;
  619. height: 32px;
  620. margin: 0 4px;
  621. color: $--color-text-primary;
  622. background-color: $--color-white;
  623. border: 1px solid #d9d9d9;
  624. border-radius: $--border-radius-base;
  625. }
  626. .el-pager li:not(.disabled) {
  627. &:hover {
  628. color: $--color-primary;
  629. border-color: $--color-primary;
  630. }
  631. &.active {
  632. color: $--color-primary;
  633. background-color: $--color-white;
  634. border-color: $--color-primary;
  635. }
  636. }
  637. }
  638. }
  639. //树组件
  640. .treeCont .el-tree,
  641. .el-tree {
  642. color: $--color-text-primary;
  643. background: transparent;
  644. &.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
  645. background: $--select-option-hover-background;
  646. }
  647. .el-checkbox__input.is-checked .el-checkbox__inner,
  648. .el-checkbox__input.is-indeterminate .el-checkbox__inner {
  649. background: $--color-primary !important;
  650. border-color: $--color-primary !important;
  651. }
  652. .el-checkbox__inner:hover {
  653. border-color: $--color-primary !important;
  654. }
  655. .el-checkbox__inner::after {
  656. border-color: #fff;
  657. }
  658. .el-tree-node__children {
  659. .el-tree-node {
  660. //&:not(:last-child)::after{
  661. // content: '';
  662. // display: block;
  663. // width: 1px;
  664. // height: calc(100% - 7px);
  665. // background: $--border-color-light;
  666. // position: absolute;
  667. // left: 31px;
  668. // top: 19px;
  669. //}
  670. //&::after{
  671. // content: '';
  672. // display: block;
  673. // width: 1px;
  674. // height: calc(100% - 7px);
  675. // background: $--border-color-light;
  676. // position: absolute;
  677. // left: 31px;
  678. // top: 19px;
  679. //}
  680. //&:has(.el-tree-node__children):empty{
  681. // &::after{
  682. // content: '';
  683. // display: block;
  684. // width: 1px;
  685. // height: calc(100% - 7px);
  686. // background: $--border-color-light;
  687. // position: absolute;
  688. // left: 31px;
  689. // top: 19px;
  690. // }
  691. //}
  692. //&:has(.el-tree-node__children):not(.el-tree-node__children .el-tree-node){
  693. // &::after{
  694. // display: none;
  695. // }
  696. //}
  697. //&:first-child{
  698. // label.el-checkbox::after{
  699. // display: none;
  700. // }
  701. //}
  702. //label.el-checkbox::after{
  703. // content: '';
  704. // display: block;
  705. // width: 1px;
  706. // height: calc(100% - 7px);
  707. // background: $--border-color-light;
  708. // position: absolute;
  709. // left: 50%;
  710. // top: -11px;
  711. //}
  712. //label.el-checkbox.hideLine{
  713. // &::after{
  714. // content: '';
  715. // display: none !important;
  716. // }
  717. //}
  718. //&:last-child{
  719. // .el-tree-node__children{
  720. // .el-tree-node{
  721. // label.el-checkbox::after{
  722. // content: '';
  723. // display: block;
  724. // width: 1px;
  725. // height: 12px;
  726. // background: $--border-color-light;
  727. // position: absolute;
  728. // left: 50%;
  729. // }
  730. // //&:last-child{
  731. // // label.el-checkbox::after{
  732. // // content: '';
  733. // // display: none;
  734. // // }
  735. // //}
  736. // }
  737. // }
  738. // label.el-checkbox::after{
  739. // content: '';
  740. // display: none;
  741. // }
  742. //}
  743. }
  744. }
  745. /* 树形结构节点添加连线 */
  746. .el-tree-node {
  747. position: relative;
  748. .el-tree-node__content {
  749. height: 32px;
  750. padding-left: 0 !important;
  751. &>.el-tree-node__expand-icon {
  752. flex-shrink: 0;
  753. padding: 0;
  754. }
  755. .el-tree-node__expand-icon {
  756. display: inline-block;
  757. width: 24px;
  758. height: 32px;
  759. padding: 0;
  760. background: url(~@/assets/images/t-open.png) no-repeat;
  761. background-size: contain;
  762. &.expanded {
  763. background: url(~@/assets/images/t-close.png) no-repeat;
  764. background-size: contain;
  765. transform: none;
  766. }
  767. &::before {
  768. display: none;
  769. content: '';
  770. }
  771. &.is-leaf {
  772. background: none;
  773. }
  774. }
  775. .el-tree-node__label {
  776. margin-left: 10px;
  777. }
  778. }
  779. &:last-child:before {
  780. height: 50px;
  781. }
  782. &.is-expanded {
  783. .el-tree-node__children {
  784. &:not(:empty):before {
  785. position: absolute;
  786. top: 22px;
  787. right: auto;
  788. bottom: 0px;
  789. left: 12px;
  790. width: 1px;
  791. height: calc(100% - 22px);
  792. content: '';
  793. border-width: 1px;
  794. border-left: 1px solid $--border-color-light;
  795. }
  796. }
  797. }
  798. //&:after {
  799. // content: "";
  800. // left: -4px;
  801. // position: absolute;
  802. // right: auto;
  803. // border-width: 1px;
  804. // border-top: 1px solid #BBBBBB;
  805. // height: 20px;
  806. // top: 24px;
  807. // width: 18px;
  808. //}
  809. }
  810. //&>.el-tree-node {
  811. // &>.el-tree-node__content{
  812. // .el-tree-node__expand-icon{
  813. // background: url(~@/assets/img/t-open.png);
  814. // background-size: contain;
  815. // }
  816. // }
  817. //
  818. // &::after {
  819. // border: 0px solid;
  820. // }
  821. //}
  822. .custom-tree-node {
  823. box-sizing: border-box;
  824. width: calc(100% - 50px);
  825. img {
  826. height: 10px;
  827. margin-right: 5px;
  828. object-fit: contain;
  829. }
  830. i {
  831. margin-right: 5px;
  832. font-size: 10px;
  833. }
  834. .tree-node {
  835. display: flex;
  836. align-items: center;
  837. }
  838. .no-ellipsis {
  839. box-sizing: border-box;
  840. width: 100%;
  841. padding-right: 5px;
  842. .tree-title {
  843. display: block;
  844. overflow: hidden;
  845. text-overflow: ellipsis;
  846. white-space: nowrap;
  847. }
  848. }
  849. .show-ellipsis {
  850. box-sizing: border-box;
  851. width: calc(100% - 29px);
  852. padding-right: 5px;
  853. &:not(:has(.tree-node)) {
  854. display: flex;
  855. align-items: center;
  856. }
  857. .tree-title {
  858. overflow: hidden;
  859. text-overflow: ellipsis;
  860. white-space: nowrap;
  861. }
  862. }
  863. .tree-btn {
  864. font-weight: bold;
  865. visibility: hidden;
  866. .t-edit {
  867. width: 14px;
  868. height: 14px;
  869. margin-right: 5px;
  870. }
  871. .t-more {
  872. width: 14px;
  873. height: 14px;
  874. }
  875. }
  876. &:hover .tree-btn {
  877. visibility: visible;
  878. }
  879. }
  880. .el-tree-node__children {
  881. padding-left: 12px;
  882. }
  883. }
  884. .el-container.content-layout .el-header.content-layout__header {
  885. height: 46px !important;
  886. padding: 0;
  887. }
  888. //tabs组件
  889. .el-tabs.el-tabs--border-card,
  890. .el-tabs {
  891. &>.el-tabs__header.is-top {
  892. height: 46px !important;
  893. line-height: 46px !important;
  894. background: transparent;
  895. }
  896. .el-tabs__nav-wrap {
  897. padding: 0 20px;
  898. .el-tabs__active-bar.is-top {
  899. display: none;
  900. }
  901. .el-tabs__nav.is-top {
  902. display: flex;
  903. align-items: center;
  904. border: none;
  905. }
  906. .el-tabs__item.is-top {
  907. box-sizing: border-box;
  908. height: 46px;
  909. padding: 0 15px;
  910. line-height: 46px;
  911. border-right: none;
  912. border-left: none;
  913. &.is-active {
  914. color: $--color-primary;
  915. border-bottom: 3px solid $--color-primary;
  916. .el-link {
  917. color: $--color-primary;
  918. }
  919. }
  920. }
  921. .el-tabs__nav.is-left {
  922. .el-tabs__active-bar {
  923. width: 3px;
  924. background-color: $--color-primary;
  925. }
  926. }
  927. .el-tabs__item.is-left {
  928. box-sizing: border-box;
  929. height: 46px;
  930. padding: 0 15px;
  931. line-height: 46px;
  932. &.is-active {
  933. color: $--color-primary;
  934. }
  935. }
  936. }
  937. }
  938. //侧边树
  939. .content-layout__aside.el-aside .process-classify .ht-tree {
  940. .el-tree {
  941. color: $--color-text-primary;
  942. }
  943. .expanded {
  944. color: $--color-text-primary;
  945. }
  946. .el-tree-node__content {
  947. &:hover {
  948. color: $--color-text-primary;
  949. background: $--background-color-base;
  950. }
  951. svg {
  952. width: 12px;
  953. height: 10px;
  954. }
  955. }
  956. .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
  957. background-color: $--select-option-hover-background;
  958. border-radius: 0;
  959. .span-ellipsis {
  960. span,
  961. i {
  962. color: $--color-text-primary;
  963. }
  964. }
  965. }
  966. }
  967. //卡片布局
  968. html body .card-mode .card-content .card-item__wrap {
  969. &:hover {
  970. border: 1px solid $--color-primary;
  971. box-shadow: 0px 0px 4px $--color-primary;
  972. }
  973. }
  974. .card-todo .card-todo__wrap .card-content .card-item__wrap .card-item-content .item-bottom .copy-id {
  975. color: $--color-primary !important;
  976. }
  977. .top_btn_col {
  978. .el-dropdown .el-button-group {
  979. display: flex !important;
  980. align-items: baseline;
  981. .el-button {
  982. padding: 7px 0 !important;
  983. }
  984. .el-upload.el-upload--text {
  985. span {
  986. height: auto !important;
  987. line-height: 0px !important;
  988. }
  989. }
  990. }
  991. }