index.module.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. .uploadModal {
  2. padding-top: 40px;
  3. }
  4. .formModal {
  5. min-height: 45vh;
  6. padding: 0 40px 0;
  7. .formSpace {
  8. gap: 40px 24px !important;
  9. }
  10. .previewModal {
  11. position: relative;
  12. width: 320px;
  13. height: 180px;
  14. margin-bottom: 12px;
  15. border: 1px solid #DCE2F1;
  16. border-radius: 10px;
  17. overflow: hidden;
  18. &:hover {
  19. border-color: #198CFE;
  20. }
  21. .image {
  22. width: 320px;
  23. height: 180px;
  24. img {
  25. width: inherit;
  26. height: fit-content;
  27. min-height: 100%;
  28. }
  29. }
  30. .titleType {
  31. position: absolute;
  32. top: 6px;
  33. left: 6px;
  34. width: 54px;
  35. height: 26px;
  36. z-index: 99;
  37. }
  38. .iconUploadDelete {
  39. position: absolute;
  40. top: 7px;
  41. right: 7px;
  42. width: 27px;
  43. height: 27px;
  44. z-index: 99;
  45. cursor: pointer;
  46. }
  47. .commonType {
  48. display: flex;
  49. align-items: center;
  50. position: absolute;
  51. bottom: 0;
  52. left: 0;
  53. font-size: 12px;
  54. font-weight: 600;
  55. color: #FFFFFF;
  56. height: 43px;
  57. background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  58. width: 100%;
  59. border-radius: 0 0 10px 10px;
  60. justify-content: flex-end;
  61. padding-right: 12px;
  62. z-index: 99;
  63. :global {
  64. .n-switch__rail {
  65. background-color: #ccc;
  66. }
  67. .n-switch.n-switch--active .n-switch__rail {
  68. background-color: var(--n-rail-color-active);
  69. }
  70. }
  71. }
  72. }
  73. .formItem {
  74. width: 320px;
  75. :global {
  76. .n-input {
  77. margin-bottom: 12px;
  78. }
  79. .n-input,
  80. .n-base-selection {
  81. border-radius: 8px;
  82. font-size: 18px;
  83. .n-input__input-el,
  84. .n-input__input-el::placeholder,
  85. .n-tag__content {
  86. font-size: 18px;
  87. }
  88. }
  89. .n-form-item-feedback-wrapper {
  90. min-height: 12px;
  91. }
  92. .n-upload-trigger+.n-upload-file-list {
  93. margin-top: 12px;
  94. }
  95. }
  96. }
  97. }
  98. .btnGroup {
  99. padding: 32px 0;
  100. :global {
  101. .n-button {
  102. height: 47px;
  103. min-width: 156px;
  104. }
  105. }
  106. }
  107. .uploadFile {
  108. margin-bottom: 12px;
  109. :global {
  110. .n-upload-dragger {
  111. padding: 0;
  112. border: none;
  113. }
  114. }
  115. .uploadBtn {
  116. display: flex;
  117. align-items: center;
  118. justify-content: center;
  119. flex-direction: column;
  120. width: 320px;
  121. height: 180px;
  122. padding-top: 20px;
  123. background: #F9FAFD;
  124. border-radius: 10px;
  125. border: 1px solid #DCE2F1;
  126. font-size: 18px;
  127. color: #9EADD9;
  128. &:hover {
  129. border-color: #198CFE;
  130. }
  131. .iconUploadAdd {
  132. width: 50px;
  133. height: 50px;
  134. margin-bottom: 20px;
  135. }
  136. }
  137. }