index.module.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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.pdf {
  103. background-image: url(../assets/pdf.svg);
  104. }
  105. .fileIcon.html,
  106. .fileIcon.htm {
  107. background-image: url(../assets/html.svg);
  108. }
  109. .fileIcon.md,
  110. .fileIcon.markdown {
  111. background-image: url(../assets/md.svg);
  112. }
  113. .fileIcon.txt {
  114. background-image: url(../assets/txt.svg);
  115. }
  116. .fileIcon.json {
  117. background-image: url(../assets/json.svg);
  118. }
  119. .fileInfo {
  120. @apply grow;
  121. z-index: 1;
  122. overflow: hidden;
  123. text-overflow: ellipsis;
  124. white-space: nowrap;
  125. }
  126. .filename {
  127. font-weight: 500;
  128. font-size: 14px;
  129. line-height: 20px;
  130. }
  131. .name {
  132. color: #1D2939;
  133. line-height: 20px;
  134. }
  135. .extension {
  136. color: #667085;
  137. line-height: 20px;
  138. }
  139. .fileExtraInfo {
  140. color: #667085;
  141. font-size: 12px;
  142. line-height: 18px;
  143. }
  144. .actionWrapper {
  145. @apply flex items-center shrink-0;
  146. z-index: 1;
  147. }
  148. .actionWrapper .percent {
  149. font-size: 16px;
  150. line-height: 24px;
  151. color: #344054;
  152. }
  153. .actionWrapper .divider {
  154. display: none;
  155. margin: 0 8px;
  156. width: 1px;
  157. height: 16px;
  158. background: #FEE4E2;
  159. }
  160. .actionWrapper .remove {
  161. width: 32px;
  162. height: 32px;
  163. background: center no-repeat url(../assets/trash.svg);
  164. background-size: 16px;
  165. cursor: pointer;
  166. }
  167. .actionWrapper .buttonWrapper {
  168. @apply flex items-center;
  169. display: none;
  170. }