index.module.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. .fileUploader {
  2. @apply mb-9;
  3. }
  4. .fileUploader .title {
  5. @apply mb-2;
  6. font-weight: 500;
  7. font-size: 16px;
  8. line-height: 24px;
  9. color: #344054;
  10. }
  11. .fileUploader .tip {
  12. @apply mt-2;
  13. font-weight: 400;
  14. font-size: 12px;
  15. line-height: 26px;
  16. color: #667085;
  17. }
  18. .uploader {
  19. @apply relative box-border flex justify-center items-center;
  20. max-width: 640px;
  21. height: 80px;
  22. background: #F9FAFB;
  23. border: 1px dashed #EAECF0;
  24. border-radius: 12px;
  25. font-weight: 400;
  26. font-size: 14px;
  27. line-height: 20px;
  28. color: #667085;
  29. }
  30. .uploader.dragging {
  31. background: #F5F8FF;
  32. border: 1px dashed #B2CCFF;
  33. }
  34. .uploader .draggingCover {
  35. position: absolute;
  36. top: 0;
  37. left: 0;
  38. width: 100%;
  39. height: 100%;
  40. }
  41. .uploader::before {
  42. content: '';
  43. display: block;
  44. margin-right: 8px;
  45. width: 24px;
  46. height: 24px;
  47. background: center no-repeat url(../assets/upload-cloud-01.svg);
  48. background-size: contain;
  49. }
  50. .uploader .browse{
  51. @apply pl-1 cursor-pointer;
  52. color: #155eef;
  53. }
  54. .file {
  55. @apply box-border relative flex items-center;
  56. padding: 21px 24px 21px 64px;
  57. max-width: 640px;
  58. height: 80px;
  59. background: #F9FAFB;
  60. border: 1px solid #F2F4F7;
  61. border-radius: 12px;
  62. overflow: hidden;
  63. }
  64. .progressbar {
  65. position: absolute;
  66. top: 0;
  67. left: 0;
  68. height: 100%;
  69. background-color: #F2F4F7;
  70. }
  71. .file:hover {
  72. background: #F5F8FF;
  73. border: 1px solid #D1E0FF;
  74. }
  75. .file:hover .actionWrapper .buttonWrapper {
  76. display: flex;
  77. align-items: center;
  78. }
  79. .file:hover .actionWrapper .divider {
  80. display: block;
  81. }
  82. .file.uploading,
  83. .file.uploading:hover {
  84. background: #FCFCFD;
  85. border: 1px solid #EAECF0;
  86. }
  87. .file.uploading:hover .actionWrapper .percent {
  88. padding: 8px;
  89. }
  90. .file.uploading:hover .actionWrapper .buttonWrapper {
  91. display: flex;
  92. align-items: center;
  93. }
  94. .fileIcon {
  95. @apply w-8 h-8 bg-center bg-no-repeat;
  96. position: absolute;
  97. top: 24px;
  98. left: 24px;
  99. background-image: url(../assets/unknow.svg);
  100. background-size: 32px;
  101. }
  102. .fileIcon.csv {
  103. background-image: url(../assets/csv.svg);
  104. }
  105. .fileIcon.xlsx,
  106. .fileIcon.xls {
  107. background-image: url(../assets/xlsx.svg);
  108. }
  109. .fileIcon.pdf {
  110. background-image: url(../assets/pdf.svg);
  111. }
  112. .fileIcon.html,
  113. .fileIcon.htm {
  114. background-image: url(../assets/html.svg);
  115. }
  116. .fileIcon.md,
  117. .fileIcon.markdown {
  118. background-image: url(../assets/md.svg);
  119. }
  120. .fileIcon.txt {
  121. background-image: url(../assets/txt.svg);
  122. }
  123. .fileIcon.json {
  124. background-image: url(../assets/json.svg);
  125. }
  126. .fileInfo {
  127. @apply grow;
  128. z-index: 1;
  129. overflow: hidden;
  130. text-overflow: ellipsis;
  131. white-space: nowrap;
  132. }
  133. .filename {
  134. font-weight: 500;
  135. font-size: 14px;
  136. line-height: 20px;
  137. }
  138. .name {
  139. color: #1D2939;
  140. line-height: 20px;
  141. }
  142. .extension {
  143. color: #667085;
  144. line-height: 20px;
  145. }
  146. .fileExtraInfo {
  147. color: #667085;
  148. font-size: 12px;
  149. line-height: 18px;
  150. }
  151. .actionWrapper {
  152. @apply flex items-center shrink-0;
  153. z-index: 1;
  154. }
  155. .actionWrapper .percent {
  156. font-size: 16px;
  157. line-height: 24px;
  158. color: #344054;
  159. }
  160. .actionWrapper .divider {
  161. display: none;
  162. margin: 0 8px;
  163. width: 1px;
  164. height: 16px;
  165. background: #FEE4E2;
  166. }
  167. .actionWrapper .remove {
  168. width: 32px;
  169. height: 32px;
  170. background: center no-repeat url(../assets/trash.svg);
  171. background-size: 16px;
  172. cursor: pointer;
  173. }
  174. .actionWrapper .buttonWrapper {
  175. @apply flex items-center;
  176. display: none;
  177. }