element-ui-costom.scss 9.1 KB

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