common.scss 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  1. #app{
  2. color: $--color-text-primary;
  3. font-size: $--size-base;
  4. }
  5. .hui-flex {
  6. width: 100%;
  7. height: 100%;
  8. display: flex;
  9. flex-direction: column;
  10. .hui-flex-box {
  11. flex: 1;
  12. height: 0;
  13. overflow-y: auto;
  14. }
  15. }
  16. .hui-ellipsis {
  17. overflow: hidden;
  18. white-space: nowrap;
  19. text-overflow: ellipsis;
  20. }
  21. .hui-content {
  22. .hui-content-title {
  23. display: flex;
  24. height: 48px;
  25. border-bottom: 1px solid $--border-color-light;
  26. padding: 0 20px;
  27. .hui-title-item {
  28. padding: 0 14px;
  29. cursor: pointer;
  30. position: relative;
  31. height: 48px;
  32. line-height: 48px;
  33. }
  34. .hui-title-item.active,
  35. .hui-title-item:hover {
  36. color: $--color-primary;
  37. }
  38. .hui-title-item.active::before,
  39. .hui-title-item:hover::before {
  40. content: '';
  41. background: $--color-primary;
  42. height: 2px;
  43. left: 14px;
  44. right: 14px;
  45. bottom: 0;
  46. position: absolute;
  47. }
  48. }
  49. .hui-nav{
  50. height: 48px;
  51. border-bottom: 1px solid #374156;
  52. padding: 0 20px;
  53. display: flex;
  54. justify-content: space-between;
  55. align-items: center;
  56. .el-page-header__content{
  57. font-size: 16px;
  58. }
  59. }
  60. .hui-content-insert {
  61. padding-bottom: 12px;
  62. }
  63. .hui-content-select{
  64. display: flex;
  65. padding-bottom: 10px;
  66. .select-item{
  67. display: flex;
  68. flex: 1;
  69. }
  70. .select-input{
  71. width: 240px;
  72. }
  73. }
  74. .hui-table {
  75. padding: 12px 20px;
  76. .cell{
  77. overflow: hidden;
  78. white-space: nowrap;
  79. text-overflow: ellipsis;
  80. }
  81. .tr-center{
  82. display: flex;
  83. align-items: center;
  84. .label{
  85. margin-right: 8px;
  86. }
  87. }
  88. .hui-table-operation {
  89. .table-operation {
  90. padding-left: 10px;
  91. cursor: pointer;
  92. color: $--color-primary;
  93. }
  94. .table-operation:first-child {
  95. padding-left: 0;
  96. }
  97. }
  98. .hui-table-tag {
  99. display: flex;
  100. align-items: center;
  101. }
  102. .hui-table-user {
  103. display: flex;
  104. align-items: center;
  105. .hui-table-avatar {
  106. width: 32px;
  107. height: 32px;
  108. overflow: hidden;
  109. border-radius: 50%;
  110. margin-right: 8px;
  111. }
  112. }
  113. .el-table{
  114. border-left: 1px solid $--border-color-lighter;
  115. border-right: 1px solid $--border-color-lighter;
  116. border-top: 1px solid $--border-color-lighter;
  117. border-radius: $--border-radius-base;
  118. }
  119. .el-table__header{
  120. th{
  121. color: #606266;
  122. background: #f4f4f5;
  123. }
  124. .cell{
  125. font-weight: 700;
  126. }
  127. }
  128. .el-table__expand-icon {
  129. .el-icon-arrow-right {
  130. font-family: 'iconfont' !important;
  131. font-size: 8px;
  132. position: relative;
  133. top: -2px;
  134. }
  135. .el-icon-arrow-right::before {
  136. content: '\e738';
  137. }
  138. }
  139. .caret-wrapper{
  140. position: absolute;
  141. top: -5px;
  142. }
  143. }
  144. .hui-content-pagination {
  145. padding-top: 12px;
  146. text-align: right;
  147. }
  148. .hui-table-box-foot {
  149. display: flex;
  150. padding-top: 12px;
  151. justify-content: space-between;
  152. align-items: flex-start;
  153. .tips {
  154. font-size: 12px;
  155. }
  156. }
  157. }
  158. //form
  159. .el-form {
  160. display: flex;
  161. flex-wrap: wrap;
  162. .el-form-item__content {
  163. line-height: 32px;
  164. }
  165. .el-form-item {
  166. width: 50%;
  167. box-sizing: border-box;
  168. }
  169. .el-form-item:nth-child(2n-1) {
  170. padding-right: 10px;
  171. }
  172. .el-form-item:nth-child(2n) {
  173. padding-left: 10px;
  174. }
  175. .el-form-item__label {
  176. line-height: normal;
  177. padding-bottom: 5px;
  178. }
  179. .hui-textarea {
  180. width: 100% !important;
  181. padding: 0 !important;
  182. }
  183. .hui-document {
  184. padding: 0 !important;
  185. }
  186. .el-input-number,
  187. .el-select,
  188. .el-cascader,
  189. .el-date-editor.el-input{
  190. width: 100%;
  191. }
  192. }
  193. //dialog
  194. .el-dialog {
  195. height: 80vh;
  196. margin-top: 10vh !important;
  197. display: flex;
  198. flex-direction: column;
  199. .el-dialog__header {
  200. padding: 15px 20px;
  201. border-bottom: 1px solid $--border-color-light;
  202. .el-icon-close {
  203. font-family: "iconfont" !important;
  204. font-size: 18px;
  205. }
  206. .el-icon-close::before {
  207. content: "\e72f";
  208. }
  209. }
  210. .el-dialog__title {
  211. font-size: 16px;
  212. }
  213. .el-dialog__body {
  214. padding: 0;
  215. flex: 1;
  216. height: 0;
  217. overflow-y: auto;
  218. }
  219. }
  220. .hui-dialog {
  221. .hui-dialog-content {
  222. padding: 20px;
  223. overflow-y: auto;
  224. }
  225. .hui-dialog-submit {
  226. border-top: 1px solid $--border-color-light;
  227. text-align: right;
  228. padding: 10px;
  229. }
  230. }
  231. .border-box{
  232. border: 1px solid $--border-color-lighter;
  233. background: $--color-white;
  234. }
  235. .color-primary{
  236. color: $--color-primary;
  237. }
  238. .color-success{
  239. color: $--color-success;
  240. }
  241. .color-warning{
  242. color: $--color-warning;
  243. }
  244. .color-danger {
  245. color: $--color-danger;
  246. }
  247. .is-center{
  248. .hui-state{
  249. justify-content: center;
  250. }
  251. }
  252. .hui-state {
  253. display: flex;
  254. align-items: center;
  255. .hui-state-label{
  256. font-size: 13px;
  257. color: $--color-text-secondary;
  258. }
  259. .hui-state-bage {
  260. width: 8px;
  261. height: 8px;
  262. border-radius: 50%;
  263. margin-right: 6px;
  264. }
  265. .hui-state-success {
  266. background: $--color-success;
  267. }
  268. .hui-state-danger {
  269. background: $--color-danger;
  270. }
  271. .hui-state-info {
  272. background: $--color-info;
  273. }
  274. .hui-state-primary {
  275. background: $--color-primary;
  276. }
  277. .hui-state-waiting {
  278. background: $--color-warning;
  279. }
  280. }
  281. .yui-tree-box {
  282. display: flex;
  283. width: 100%;
  284. height: 100%;
  285. background: $--background-color-base;
  286. .hui-left-tree {
  287. width: 250px;
  288. box-sizing: border-box;
  289. height: 100%;
  290. display: flex;
  291. flex-direction: column;
  292. background: $--color-white;
  293. .hui-left-tree-title {
  294. height: 42px;
  295. border-radius: 2px;
  296. display: flex;
  297. align-items: center;
  298. padding: 0 12px;
  299. border-bottom: 1px solid $--border-color-light;
  300. }
  301. .hui-left-tree-content {
  302. flex: 1;
  303. height: 0;
  304. overflow-y: auto;
  305. .collapse-title {
  306. flex: 1;
  307. width: 0;
  308. display: flex;
  309. align-items: center;
  310. &.active{
  311. color: $--color-primary;
  312. .iconfont {
  313. color: $--color-primary;
  314. }
  315. }
  316. }
  317. }
  318. .hui-left-tree-sub {
  319. font-weight: 600;
  320. margin-left: 8px;
  321. flex: 1;
  322. width: 0;
  323. }
  324. }
  325. .hui-tree-content {
  326. width: 0;
  327. flex: 1;
  328. height: 100%;
  329. padding-left: 10px;
  330. }
  331. .el-collapse {
  332. border: none;
  333. .el-collapse-item__header {
  334. border-color: $--border-color-light;
  335. height: 32px;
  336. line-height: 32px;
  337. font-size: 12px;
  338. padding: 0 14px;
  339. .el-collapse-name {
  340. flex: 1;
  341. width: 0;
  342. overflow: hidden;
  343. }
  344. .iconfont {
  345. margin-right: 6px;
  346. }
  347. .huifont-bumen {
  348. font-size: 16px;
  349. }
  350. .huifont-shuzhuangcaidantubiao,
  351. .huifont-moxingguanli {
  352. font-size: 18px;
  353. }
  354. }
  355. .el-collapse-item__wrap {
  356. border: none;
  357. }
  358. .el-icon-arrow-right {
  359. font-family: 'iconfont' !important;
  360. font-size: 9px;
  361. margin: 0;
  362. }
  363. .el-icon-arrow-right::before {
  364. content: '\e738';
  365. }
  366. .el-collapse-item__content {
  367. padding-bottom: 0;
  368. font-size: 12px;
  369. }
  370. }
  371. }
  372. .el-tree {
  373. .el-tree-node__content {
  374. height: 32px;
  375. overflow: hidden;
  376. }
  377. .el-tree-node__label {
  378. font-size: 12px;
  379. position: relative;
  380. left: -10px;
  381. }
  382. .el-icon-caret-right {
  383. font-family: 'iconfont' !important;
  384. font-size: 8px;
  385. margin: 0;
  386. }
  387. .el-icon-caret-right::before {
  388. content: '\e738';
  389. }
  390. .el-tree-node__content>.el-tree-node__expand-icon {
  391. padding: 10px;
  392. }
  393. .tree-node {
  394. display: flex;
  395. align-items: center;
  396. justify-content: space-between;
  397. width: 100%;
  398. position: relative;
  399. left: -10px;
  400. .tree-node-label {
  401. font-size: 12px;
  402. }
  403. .btn .el-button {
  404. padding: 5px 10px;
  405. }
  406. }
  407. .custom-tree-node{
  408. width: 100%;
  409. display: flex;
  410. align-items: center;
  411. padding-right: 10px;
  412. .label{
  413. flex: 1;
  414. width: 0;
  415. overflow: hidden;
  416. font-size: 12px;
  417. }
  418. .iconfont{
  419. font-size: 19px;
  420. margin-right: 5px;
  421. }
  422. .el-icon-place{
  423. font-size: 16px;
  424. }
  425. &.active,
  426. .active{
  427. color: $--color-primary;
  428. }
  429. }
  430. }
  431. .hui-detail {
  432. padding:15px;
  433. .hui-detail-box{
  434. border-radius: 4px;
  435. box-shadow: 0px 1px 12px rgba(3, 3, 3, 0.1);
  436. margin-bottom: 15px;
  437. }
  438. .hui-detail-title{
  439. font-weight: bold;
  440. line-height: 44px;
  441. padding: 0 15px;
  442. border-bottom: 1px solid $--border-color-lighter;
  443. }
  444. .hui-detail-content {
  445. padding:15px;
  446. .hui-detail-item {
  447. padding-bottom: 15px;
  448. .hui-detail-label {
  449. min-height: 22px;
  450. width: 100%;
  451. color: #8f959e;
  452. letter-spacing: 0;
  453. padding-bottom: 8px;
  454. }
  455. .hui-detail-value {
  456. line-height: 22px;
  457. white-space: normal;
  458. }
  459. &:last-child{
  460. padding-bottom: 0;
  461. }
  462. }
  463. }
  464. }
  465. .hui-drawer-submit {
  466. border-top: 1px solid $--border-color-light;
  467. text-align: right;
  468. padding: 12px 24px;
  469. }
  470. //drawer
  471. .el-drawer {
  472. font-size: $--font-size-base;
  473. .el-drawer__header {
  474. padding: 0;
  475. margin: 0;
  476. height: 56px;
  477. border-bottom: 1px solid $--border-color-light;
  478. padding: 0 20px;
  479. span {
  480. font-size: 16px;
  481. font-weight: 500;
  482. }
  483. }
  484. }
  485. .el-tabs {
  486. .el-tabs__item{
  487. font-weight: 400;
  488. &.is-active{
  489. font-weight: 500;
  490. }
  491. }
  492. .el-tabs__nav-wrap::after{
  493. height: 1;
  494. }
  495. }
  496. .hui-tag {
  497. display: inline-block;
  498. border: 1px solid $--color-primary;
  499. padding: 0 5px;
  500. border-radius: 2px;
  501. color: $--color-primary;
  502. overflow: hidden;
  503. position: relative;
  504. font-size: 12px;
  505. line-height: 18px;
  506. box-sizing: border-box;
  507. }
  508. .hui-table-tag {
  509. display: flex;
  510. align-items: center;
  511. }
  512. .hui-tag::before {
  513. content: '';
  514. width: 100%;
  515. height: 100%;
  516. background: $--color-primary;
  517. opacity: 0.1;
  518. position: absolute;
  519. left: 0;
  520. top: 0;
  521. }
  522. .hui-tag.hui-tag-success {
  523. border-color: $--color-success;
  524. color: $--color-success;
  525. }
  526. .hui-tag.hui-tag-success::before {
  527. background: $--color-success;
  528. }
  529. .hui-tag.hui-tag-warning {
  530. border-color: $--color-warning;
  531. color: $--color-warning;
  532. }
  533. .hui-tag.hui-tag-warning::before {
  534. background: $--color-warning;
  535. }
  536. .hui-tag.hui-tag-error {
  537. border-color: $--color-danger;
  538. color: $--color-danger;
  539. }
  540. .hui-tag.hui-tag-error::before {
  541. background: $--color-danger;
  542. }
  543. .hui-tag.hui-tag-info {
  544. border-color: $--color-info;
  545. color: $--color-info;
  546. }
  547. .hui-tag.hui-tag-info::before {
  548. background: $--color-info;
  549. }