File size: 3,355 Bytes
a8b3f00
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
.fileUploader {
  @apply mb-6;
}

.fileUploader .title {
  @apply mb-2;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #344054;
}

.fileUploader .tip {
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #667085;
}

.uploader {
  @apply relative box-border flex justify-center items-center mb-2 p-3;
  flex-direction: column;
  max-width: 640px;
  min-height: 80px;
  background: #F9FAFB;
  border: 1px dashed #EAECF0;
  border-radius: 12px;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #667085;
}

.uploader.dragging {
  background: #F5F8FF;
  border: 1px dashed #B2CCFF;
}

.uploader .draggingCover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.uploader .uploadIcon {
  content: '';
  display: block;
  margin-right: 8px;
  width: 24px;
  height: 24px;
  background: center no-repeat url(../assets/upload-cloud-01.svg);
  background-size: contain;
}

.uploader .browse {
  @apply pl-1 cursor-pointer;
  color: #155eef;
}

.fileList {
  @apply space-y-2;
}

.file {
  @apply box-border relative flex items-center justify-between;
  padding: 8px 12px 8px 8px;
  max-width: 640px;
  height: 40px;
  background: #ffffff;
  border: 0.5px solid #EAECF0;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.progressbar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #F2F4F7;
}

.file.uploading,
.file.uploading:hover {
  background: #FCFCFD;
  border: 0.5px solid #EAECF0;
}

.file.active {
  background: #F5F8FF;
  border: 1px solid #D1E0FF;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.file:hover {
  background: #F5F8FF;
  border: 1px solid #D1E0FF;
  box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
}

.fileIcon {
  @apply shrink-0 w-6 h-6 mr-2 bg-center bg-no-repeat;
  background-image: url(../assets/unknown.svg);
  background-size: 24px;
}

.fileIcon.csv {
  background-image: url(../assets/csv.svg);
}

.fileIcon.doc {
  background-image: url(../assets/doc.svg);
}

.fileIcon.docx {
  background-image: url(../assets/docx.svg);
}

.fileIcon.xlsx,
.fileIcon.xls {
  background-image: url(../assets/xlsx.svg);
}

.fileIcon.pdf {
  background-image: url(../assets/pdf.svg);
}

.fileIcon.html,
.fileIcon.htm {
  background-image: url(../assets/html.svg);
}

.fileIcon.md,
.fileIcon.markdown {
  background-image: url(../assets/md.svg);
}

.fileIcon.txt {
  background-image: url(../assets/txt.svg);
}

.fileIcon.json {
  background-image: url(../assets/json.svg);
}

.fileInfo {
  @apply grow flex items-center;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filename {
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: #1D2939;
}

.size {
  @apply ml-3;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #667085;
}

.actionWrapper {
  @apply flex items-center shrink-0;
  z-index: 1;
}

.actionWrapper .percent {
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: #344054;
}

.actionWrapper .remove {
  display: none;
  width: 24px;
  height: 24px;
  background: center no-repeat url(../assets/trash.svg);
  background-size: 16px;
  cursor: pointer;
}

.file:hover .actionWrapper .remove {
  display: block;
}