element-ui-costom.scss 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. // dialog
  2. .el-dialog {
  3. border-radius: 8px;
  4. overflow: hidden;
  5. border: 1px solid #c8c8ca;
  6. box-shadow: 5px 5px 4px 0px rgba(0, 0, 0, 0.1);
  7. &.is-fullscreen {
  8. border-radius: 0;
  9. }
  10. }
  11. .el-dialog__header {
  12. padding: 15px 20px;
  13. .el-dialog__title {
  14. color: $--color-text-dark-1;
  15. font-size: 16px;
  16. line-height: 19px;
  17. }
  18. .el-dialog__headerbtn {
  19. top: 15px;
  20. width: 16px;
  21. height: 16px;
  22. background-image: url(../images/icon-close.png);
  23. background-repeat: no-repeat;
  24. background-size: 100% 100%;
  25. &:hover {
  26. background-image: url(../images/icon-close-act.png);
  27. }
  28. .el-dialog__close {
  29. display: none;
  30. }
  31. }
  32. }
  33. .el-dialog__body {
  34. padding: 30px 40px;
  35. position: relative;
  36. border-top: 1px solid $--color-border;
  37. .el-form-item__label {
  38. color: #545454;
  39. padding-right: 2px;
  40. }
  41. .el-input-tips {
  42. color: rgba(187, 187, 187, 1);
  43. margin-left: 13px;
  44. }
  45. }
  46. .el-dialog__footer {
  47. text-align: right;
  48. .el-button {
  49. width: 100px;
  50. border-radius: 8px;
  51. }
  52. // .el-button--default {
  53. // background: rgba(245, 245, 245, 1);
  54. // color: #999;
  55. // }
  56. }
  57. // .opacity-dialog
  58. .opacity-dialog {
  59. .el-dialog {
  60. background-color: transparent;
  61. }
  62. .el-dialog__header,
  63. .el-dialog__footer {
  64. display: none;
  65. }
  66. .el-dialog__body {
  67. position: absolute;
  68. width: 100%;
  69. height: 100%;
  70. top: 0;
  71. left: 0;
  72. padding: 0;
  73. background-color: transparent;
  74. }
  75. }
  76. // form
  77. .el-form {
  78. &-item {
  79. &__error {
  80. font-size: 12px;
  81. color: rgba(254, 108, 105, 1);
  82. }
  83. &__content {
  84. .el-table {
  85. line-height: 1;
  86. }
  87. }
  88. }
  89. // form-info
  90. &.form-info {
  91. .el-form-item {
  92. margin-bottom: 0;
  93. .el-form-item__label {
  94. color: $--color-text-gray-2;
  95. }
  96. }
  97. }
  98. &--label-top {
  99. .el-form-item__label {
  100. line-height: 20px;
  101. padding-bottom: 5px;
  102. font-size: 12px;
  103. }
  104. }
  105. }
  106. // input
  107. .el-input {
  108. &.is-focus {
  109. .el-input__inner {
  110. border-color: $--color-primary !important;
  111. }
  112. }
  113. &.is-disabled {
  114. .el-input__inner {
  115. color: $--color-text-gray-2;
  116. }
  117. }
  118. .el-input__inner {
  119. border-radius: 8px;
  120. border-color: #ddd;
  121. background-color: #fff;
  122. }
  123. // .el-input__suffix {
  124. // right: 0;
  125. // border-left: 1px solid #ddd;
  126. // }
  127. }
  128. // textarea
  129. .el-textarea {
  130. &.is-disabled {
  131. .el-textarea__inner {
  132. color: $--color-text-gray-2;
  133. }
  134. }
  135. }
  136. // upload
  137. .el-upload,
  138. .el-upload-dragger {
  139. width: 100%;
  140. }
  141. // radio
  142. .el-radio-button {
  143. &:hover {
  144. .el-radio-button__inner {
  145. color: $--color-primary;
  146. }
  147. }
  148. }
  149. .el-radio-button__orig-radio:checked + .el-radio-button__inner {
  150. color: $--color-white;
  151. border-color: $--color-primary;
  152. background: $--color-primary;
  153. }
  154. // button
  155. .el-button {
  156. border-radius: $--border-radius;
  157. > .icon {
  158. margin-right: 5px;
  159. }
  160. > span {
  161. display: inline-block;
  162. }
  163. &.is-disabled {
  164. color: $--color-text-gray-3 !important;
  165. background: $--color-background !important;
  166. border: 1px solid $--color-border !important;
  167. }
  168. }
  169. .el-button + .popover-button,
  170. .popover-button + .el-button {
  171. margin-left: 10px;
  172. }
  173. .el-button + .el-button {
  174. margin-left: 18px;
  175. }
  176. .el-button--text + .el-button--text {
  177. margin-left: 5px;
  178. }
  179. .el-button--small {
  180. padding-top: 8px;
  181. padding-bottom: 8px;
  182. font-size: 12px;
  183. }
  184. .el-button--text {
  185. color: $--color-text-gray-2;
  186. & + .el-button--text {
  187. margin-left: 10px;
  188. }
  189. }
  190. .el-button--info {
  191. background-color: $--color-cyan;
  192. border-color: $--color-cyan;
  193. &:hover,
  194. &:focus {
  195. background-color: $--color-cyan-light;
  196. border-color: $--color-cyan-light;
  197. }
  198. }
  199. .el-button--primary {
  200. background-color: $--color-primary;
  201. border-color: $--color-primary;
  202. &:hover,
  203. &:focus {
  204. background-color: $--color-primary-light;
  205. border-color: $--color-primary-light;
  206. }
  207. }
  208. .el-button--success {
  209. background-color: $--color-success;
  210. border-color: $--color-success;
  211. &:hover,
  212. &:focus {
  213. background-color: $--color-success-light;
  214. border-color: $--color-success-light;
  215. }
  216. }
  217. // table
  218. .el-table {
  219. color: $--color-text-dark-1;
  220. thead th {
  221. color: $--color-text-gray-2;
  222. }
  223. thead.is-group th {
  224. background-color: $--color-white;
  225. }
  226. tr.el-table__row {
  227. color: $--color-text-dark;
  228. }
  229. td,
  230. th {
  231. border-color: $--color-border !important;
  232. padding: 14px 0;
  233. font-weight: 500;
  234. }
  235. .el-table__row.row-danger {
  236. color: $--color-danger;
  237. }
  238. &.el-table--noback {
  239. tr.el-table__row {
  240. background-color: $--color-white;
  241. }
  242. }
  243. .cell-head {
  244. display: inline-block;
  245. vertical-align: middle;
  246. line-height: 1.3;
  247. }
  248. // caret-wrapper
  249. .caret-wrapper {
  250. width: 20px;
  251. height: 20px;
  252. top: -1px;
  253. .sort-caret {
  254. &.ascending {
  255. top: -1px;
  256. }
  257. &.descending {
  258. bottom: -1px;
  259. }
  260. }
  261. }
  262. // action-column
  263. .action-column {
  264. .el-button--text {
  265. padding: 0;
  266. &:hover {
  267. transform: scale(1.1);
  268. }
  269. }
  270. }
  271. }
  272. // el-checkbox
  273. .el-checkbox {
  274. .el-checkbox__label {
  275. color: $--color-text-gray-2 !important;
  276. }
  277. }
  278. .el-radio {
  279. .el-radio__label {
  280. color: $--color-text-gray-2 !important;
  281. }
  282. }
  283. // el-pagination
  284. .el-pagination-li {
  285. min-width: 32px;
  286. height: 32px;
  287. border-radius: 8px;
  288. overflow: hidden;
  289. background-color: $--color-white;
  290. border: 1px solid #e1e3eb;
  291. }
  292. .el-pagination {
  293. padding: 0;
  294. .el-pagination__total {
  295. float: left;
  296. }
  297. span:not([class*="suffix"]) {
  298. line-height: 32px;
  299. height: 32px;
  300. }
  301. &.is-background {
  302. .btn-prev,
  303. .btn-next {
  304. color: $--color-text-gray-2;
  305. margin: 0 5px;
  306. @extend .el-pagination-li;
  307. }
  308. .btn-prev:disabled,
  309. .btn-next:disabled {
  310. opacity: 0.7;
  311. }
  312. .el-pager li {
  313. color: $--color-text-gray-2;
  314. margin: 0 5px;
  315. padding: 0 8px;
  316. line-height: 32px;
  317. @extend .el-pagination-li;
  318. &:not(.disabled).active {
  319. color: #fff;
  320. }
  321. }
  322. }
  323. }
  324. // el-message-box
  325. .el-message-box {
  326. width: 350px;
  327. background-color: #f6f6f6;
  328. border-radius: 10px;
  329. &__title {
  330. display: none;
  331. }
  332. &__headerbtn {
  333. top: 10px;
  334. right: 10px;
  335. }
  336. &__content {
  337. text-align: center;
  338. .el-message-box__status {
  339. position: relative;
  340. top: 0;
  341. height: 50px;
  342. width: 50px;
  343. transform: none;
  344. margin-bottom: 10px;
  345. &.el-icon-warning {
  346. border-radius: 50%;
  347. &::before {
  348. content: "";
  349. position: absolute;
  350. top: 0;
  351. left: 0;
  352. width: 100%;
  353. height: 100%;
  354. background-image: url(../images/icon-doubt.png);
  355. background-repeat: no-repeat;
  356. background-size: 100% 100%;
  357. }
  358. }
  359. }
  360. .el-message-box__message {
  361. padding: 0;
  362. }
  363. }
  364. &__btns {
  365. position: relative;
  366. height: 75px;
  367. padding: 30px 20px 10px;
  368. > .el-button {
  369. width: 85px;
  370. position: absolute;
  371. left: 50%;
  372. top: 30px;
  373. &:first-child {
  374. margin-left: 5px;
  375. }
  376. &:last-child {
  377. margin-left: -90px;
  378. }
  379. }
  380. }
  381. }
  382. .alert-message {
  383. .el-message-box__btns {
  384. text-align: center;
  385. > .el-button {
  386. position: relative;
  387. left: auto;
  388. top: 0;
  389. margin: 0;
  390. }
  391. }
  392. }
  393. // .el-message
  394. .el-message-loading {
  395. border-color: mix($--color-white, $--color-success, 80%);
  396. background-color: mix($--color-white, $--color-success, 90%);
  397. }
  398. // el-date-editor
  399. .el-date-editor {
  400. .el-range-separator {
  401. width: auto;
  402. line-height: 24px;
  403. }
  404. .el-range-input {
  405. background-color: transparent;
  406. }
  407. .el-input__icon {
  408. line-height: 24px;
  409. }
  410. }
  411. // el-step
  412. .el-step {
  413. &__title.is-success,
  414. &__description.is-success {
  415. color: $--color-primary;
  416. }
  417. &__head.is-success {
  418. color: $--color-primary;
  419. border-color: $--color-primary;
  420. .el-step__line {
  421. background-color: $--color-primary;
  422. }
  423. }
  424. }
  425. // el-popover
  426. .el-popper-dark {
  427. background-color: $--color-text-dark-1;
  428. color: #fff;
  429. font-size: 12px;
  430. line-height: 18px;
  431. padding: 16px;
  432. border: none;
  433. }
  434. .el-popper-dark {
  435. box-shadow: 0px 10px 10px 0px rgba(54, 61, 89, 0.2);
  436. }
  437. .el-popper-dark[x-placement^="right"] .popper__arrow {
  438. border-right-color: $--color-text-dark-1;
  439. &::after {
  440. border-right-color: $--color-text-dark-1;
  441. }
  442. }
  443. .el-popper-dark[x-placement^="top"] .popper__arrow {
  444. border-top-color: $--color-text-dark-1;
  445. &::after {
  446. border-top-color: $--color-text-dark-1;
  447. }
  448. }
  449. .el-popper-dark[x-placement^="bottom"] .popper__arrow {
  450. border-bottom-color: $--color-text-dark-1;
  451. &::after {
  452. border-bottom-color: $--color-text-dark-1;
  453. }
  454. }
  455. .el-popper-dark[x-placement^="left"] .popper__arrow {
  456. border-left-color: $--color-text-dark-1;
  457. &::after {
  458. border-left-color: $--color-text-dark-1;
  459. }
  460. }