index.module.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. .file {
  2. @apply box-border relative flex items-center justify-between;
  3. padding: 8px 12px 8px 8px;
  4. max-width: 640px;
  5. height: 40px;
  6. background: #ffffff;
  7. border: 0.5px solid #EAECF0;
  8. box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  9. border-radius: 8px;
  10. overflow: hidden;
  11. cursor: pointer;
  12. }
  13. .progressbar {
  14. position: absolute;
  15. top: 0;
  16. left: 0;
  17. height: 100%;
  18. background-color: #F2F4F7;
  19. }
  20. .file.uploading,
  21. .file.uploading:hover {
  22. background: #FCFCFD;
  23. border: 0.5px solid #EAECF0;
  24. }
  25. .file.active {
  26. background: #F5F8FF;
  27. border: 1px solid #D1E0FF;
  28. box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  29. }
  30. .file:hover {
  31. background: #F5F8FF;
  32. border: 1px solid #D1E0FF;
  33. box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
  34. }
  35. .fileIcon {
  36. @apply shrink-0 w-6 h-6 mr-2 bg-center bg-no-repeat;
  37. background-image: url(../assets/unknown.svg);
  38. background-size: 24px;
  39. }
  40. .fileIcon.csv {
  41. background-image: url(../assets/csv.svg);
  42. }
  43. .fileIcon.doc {
  44. background-image: url(../assets/doc.svg);
  45. }
  46. .fileIcon.docx {
  47. background-image: url(../assets/docx.svg);
  48. }
  49. .fileIcon.xlsx,
  50. .fileIcon.xls {
  51. background-image: url(../assets/xlsx.svg);
  52. }
  53. .fileIcon.pdf {
  54. background-image: url(../assets/pdf.svg);
  55. }
  56. .fileIcon.html,
  57. .fileIcon.htm {
  58. background-image: url(../assets/html.svg);
  59. }
  60. .fileIcon.md,
  61. .fileIcon.markdown {
  62. background-image: url(../assets/md.svg);
  63. }
  64. .fileIcon.txt {
  65. background-image: url(../assets/txt.svg);
  66. }
  67. .fileIcon.json {
  68. background-image: url(../assets/json.svg);
  69. }
  70. .fileInfo {
  71. @apply grow flex items-center;
  72. z-index: 1;
  73. overflow: hidden;
  74. text-overflow: ellipsis;
  75. white-space: nowrap;
  76. }
  77. .filename {
  78. font-weight: 500;
  79. font-size: 13px;
  80. line-height: 18px;
  81. color: #1D2939;
  82. }
  83. .size {
  84. @apply ml-3;
  85. font-weight: 400;
  86. font-size: 12px;
  87. line-height: 18px;
  88. color: #667085;
  89. }
  90. .actionWrapper {
  91. @apply flex items-center shrink-0;
  92. z-index: 1;
  93. }
  94. .actionWrapper .percent {
  95. font-weight: 400;
  96. font-size: 13px;
  97. line-height: 18px;
  98. color: #344054;
  99. }
  100. .actionWrapper .remove {
  101. display: none;
  102. width: 24px;
  103. height: 24px;
  104. background: center no-repeat url(../assets/trash.svg);
  105. background-size: 16px;
  106. cursor: pointer;
  107. }
  108. .file:hover .actionWrapper .remove {
  109. display: block;
  110. }