index.module.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. .fileUploader {
  2. @apply mb-6;
  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. font-weight: 400;
  13. font-size: 12px;
  14. line-height: 18px;
  15. color: #667085;
  16. }
  17. .uploader {
  18. @apply relative box-border flex justify-center items-center mb-2 p-3;
  19. flex-direction: column;
  20. max-width: 640px;
  21. min-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 .uploadIcon {
  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. .fileList {
  55. @apply space-y-2;
  56. }
  57. .file {
  58. @apply box-border relative flex items-center justify-between;
  59. padding: 8px 12px 8px 8px;
  60. max-width: 640px;
  61. height: 40px;
  62. background: #ffffff;
  63. border: 0.5px solid #EAECF0;
  64. box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  65. border-radius: 8px;
  66. overflow: hidden;
  67. cursor: pointer;
  68. }
  69. .progressbar {
  70. position: absolute;
  71. top: 0;
  72. left: 0;
  73. height: 100%;
  74. background-color: #F2F4F7;
  75. }
  76. .file.uploading,
  77. .file.uploading:hover {
  78. background: #FCFCFD;
  79. border: 0.5px solid #EAECF0;
  80. }
  81. .file.active {
  82. background: #F5F8FF;
  83. border: 1px solid #D1E0FF;
  84. box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  85. }
  86. .file:hover {
  87. background: #F5F8FF;
  88. border: 1px solid #D1E0FF;
  89. box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
  90. }
  91. .fileIcon {
  92. @apply shrink-0 w-6 h-6 mr-2 bg-center bg-no-repeat;
  93. background-image: url(../assets/unknown.svg);
  94. background-size: 24px;
  95. }
  96. .fileIcon.csv {
  97. background-image: url(../assets/csv.svg);
  98. }
  99. .fileIcon.doc {
  100. background-image: url(../assets/doc.svg);
  101. }
  102. .fileIcon.docx {
  103. background-image: url(../assets/docx.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 flex items-center;
  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: 13px;
  136. line-height: 18px;
  137. color: #1D2939;
  138. }
  139. .size {
  140. @apply ml-3;
  141. font-weight: 400;
  142. font-size: 12px;
  143. line-height: 18px;
  144. color: #667085;
  145. }
  146. .actionWrapper {
  147. @apply flex items-center shrink-0;
  148. z-index: 1;
  149. }
  150. .actionWrapper .percent {
  151. font-weight: 400;
  152. font-size: 13px;
  153. line-height: 18px;
  154. color: #344054;
  155. }
  156. .actionWrapper .remove {
  157. display: none;
  158. width: 24px;
  159. height: 24px;
  160. background: center no-repeat url(../assets/trash.svg);
  161. background-size: 16px;
  162. cursor: pointer;
  163. }
  164. .file:hover .actionWrapper .remove {
  165. display: block;
  166. }