prompt-modal.component.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. .modal {
  2. position: fixed;
  3. left: 0;
  4. top: 0;
  5. width: 100%;
  6. height: 100%;
  7. background: rgba(0, 0, 0, .4);
  8. z-index: 999999;
  9. .modalBody {
  10. width: 350px;
  11. min-height: 220px;
  12. background: #fff;
  13. border-radius: 5px;
  14. padding: 10px 20px;
  15. color: #333;
  16. .title {
  17. width: 100%;
  18. text-align: center;
  19. font-size: 18px;
  20. position: relative;
  21. i {
  22. position: absolute;
  23. right: 0;
  24. top: 0;
  25. font-size: 20px;
  26. color: #666;
  27. cursor: pointer;
  28. padding: 0 5px;
  29. }
  30. }
  31. .content {
  32. width: 310px;
  33. min-height: 117px;
  34. max-height: 50vh;
  35. background: #f9fafb;
  36. border: 1px solid #e5e9ed;
  37. border-radius: 5px;
  38. overflow: auto;
  39. margin-top: 12px;
  40. div {
  41. text-align: center;
  42. margin: 0;
  43. &.icon {
  44. margin-top: 17px;
  45. i {
  46. color: #34b349;
  47. font-size: 30px !important;
  48. &.transport-wenhao {
  49. color: #f5a523;
  50. }
  51. &.transport-shibai {
  52. color: #ff3a52;
  53. }
  54. }
  55. }
  56. &.defeat {
  57. color: #333;
  58. font-size: 14px;
  59. }
  60. &:nth-child(3) {
  61. font-size: 14px;
  62. color: #666;
  63. padding-bottom: 10px;
  64. }
  65. }
  66. }
  67. button {
  68. margin-top: 10px;
  69. &.btn {
  70. margin-left: 8px;
  71. }
  72. }
  73. }
  74. // 新增
  75. &.add {
  76. .modalBody {
  77. width: 480px;
  78. height: auto;
  79. .content {
  80. width: 100%;
  81. height: auto;
  82. padding: 18px 14px 0 14px;
  83. .addForm {
  84. .ant-form-item {
  85. margin-bottom: 15px;
  86. .ant-form-item-label {
  87. line-height: 0;
  88. }
  89. }
  90. }
  91. .editForm {
  92. .ant-form-item {
  93. margin-bottom: 15px;
  94. .ant-form-item-label {
  95. line-height: 0;
  96. }
  97. }
  98. }
  99. }
  100. button {
  101. &:nth-child(1) {
  102. margin-right: 20px;
  103. }
  104. }
  105. }
  106. }
  107. }