|
@@ -1,6 +1,7 @@
|
|
.fileUploader {
|
|
.fileUploader {
|
|
@apply mb-6;
|
|
@apply mb-6;
|
|
}
|
|
}
|
|
|
|
+
|
|
.fileUploader .title {
|
|
.fileUploader .title {
|
|
@apply mb-2;
|
|
@apply mb-2;
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
@@ -8,12 +9,14 @@
|
|
line-height: 24px;
|
|
line-height: 24px;
|
|
color: #344054;
|
|
color: #344054;
|
|
}
|
|
}
|
|
|
|
+
|
|
.fileUploader .tip {
|
|
.fileUploader .tip {
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
line-height: 18px;
|
|
color: #667085;
|
|
color: #667085;
|
|
}
|
|
}
|
|
|
|
+
|
|
.uploader {
|
|
.uploader {
|
|
@apply relative box-border flex justify-center items-center mb-2 p-3;
|
|
@apply relative box-border flex justify-center items-center mb-2 p-3;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
@@ -27,10 +30,12 @@
|
|
line-height: 20px;
|
|
line-height: 20px;
|
|
color: #667085;
|
|
color: #667085;
|
|
}
|
|
}
|
|
|
|
+
|
|
.uploader.dragging {
|
|
.uploader.dragging {
|
|
background: #F5F8FF;
|
|
background: #F5F8FF;
|
|
border: 1px dashed #B2CCFF;
|
|
border: 1px dashed #B2CCFF;
|
|
}
|
|
}
|
|
|
|
+
|
|
.uploader .draggingCover {
|
|
.uploader .draggingCover {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 0;
|
|
top: 0;
|
|
@@ -38,6 +43,7 @@
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
+
|
|
.uploader .uploadIcon {
|
|
.uploader .uploadIcon {
|
|
content: '';
|
|
content: '';
|
|
display: block;
|
|
display: block;
|
|
@@ -47,25 +53,29 @@
|
|
background: center no-repeat url(../assets/upload-cloud-01.svg);
|
|
background: center no-repeat url(../assets/upload-cloud-01.svg);
|
|
background-size: contain;
|
|
background-size: contain;
|
|
}
|
|
}
|
|
-.uploader .browse{
|
|
|
|
|
|
+
|
|
|
|
+.uploader .browse {
|
|
@apply pl-1 cursor-pointer;
|
|
@apply pl-1 cursor-pointer;
|
|
color: #155eef;
|
|
color: #155eef;
|
|
}
|
|
}
|
|
|
|
+
|
|
.fileList {
|
|
.fileList {
|
|
@apply space-y-2;
|
|
@apply space-y-2;
|
|
}
|
|
}
|
|
|
|
+
|
|
.file {
|
|
.file {
|
|
@apply box-border relative flex items-center justify-between;
|
|
@apply box-border relative flex items-center justify-between;
|
|
padding: 8px 12px 8px 8px;
|
|
padding: 8px 12px 8px 8px;
|
|
max-width: 640px;
|
|
max-width: 640px;
|
|
height: 40px;
|
|
height: 40px;
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
- border: 0.5px solid #EAECF0;
|
|
|
|
|
|
+ border: 0.5px solid #EAECF0;
|
|
box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
|
|
box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
|
|
border-radius: 8px;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
+
|
|
.progressbar {
|
|
.progressbar {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 0;
|
|
top: 0;
|
|
@@ -79,11 +89,13 @@
|
|
background: #FCFCFD;
|
|
background: #FCFCFD;
|
|
border: 0.5px solid #EAECF0;
|
|
border: 0.5px solid #EAECF0;
|
|
}
|
|
}
|
|
|
|
+
|
|
.file.active {
|
|
.file.active {
|
|
background: #F5F8FF;
|
|
background: #F5F8FF;
|
|
border: 1px solid #D1E0FF;
|
|
border: 1px solid #D1E0FF;
|
|
box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
|
|
box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
|
|
}
|
|
}
|
|
|
|
+
|
|
.file:hover {
|
|
.file:hover {
|
|
background: #F5F8FF;
|
|
background: #F5F8FF;
|
|
border: 1px solid #D1E0FF;
|
|
border: 1px solid #D1E0FF;
|
|
@@ -95,33 +107,46 @@
|
|
background-image: url(../assets/unknow.svg);
|
|
background-image: url(../assets/unknow.svg);
|
|
background-size: 24px;
|
|
background-size: 24px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.fileIcon.csv {
|
|
.fileIcon.csv {
|
|
background-image: url(../assets/csv.svg);
|
|
background-image: url(../assets/csv.svg);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.fileIcon.doc {
|
|
|
|
+ background-image: url(../assets/doc.svg);
|
|
|
|
+}
|
|
|
|
+
|
|
.fileIcon.docx {
|
|
.fileIcon.docx {
|
|
background-image: url(../assets/docx.svg);
|
|
background-image: url(../assets/docx.svg);
|
|
}
|
|
}
|
|
|
|
+
|
|
.fileIcon.xlsx,
|
|
.fileIcon.xlsx,
|
|
.fileIcon.xls {
|
|
.fileIcon.xls {
|
|
background-image: url(../assets/xlsx.svg);
|
|
background-image: url(../assets/xlsx.svg);
|
|
}
|
|
}
|
|
|
|
+
|
|
.fileIcon.pdf {
|
|
.fileIcon.pdf {
|
|
background-image: url(../assets/pdf.svg);
|
|
background-image: url(../assets/pdf.svg);
|
|
}
|
|
}
|
|
|
|
+
|
|
.fileIcon.html,
|
|
.fileIcon.html,
|
|
.fileIcon.htm {
|
|
.fileIcon.htm {
|
|
background-image: url(../assets/html.svg);
|
|
background-image: url(../assets/html.svg);
|
|
}
|
|
}
|
|
|
|
+
|
|
.fileIcon.md,
|
|
.fileIcon.md,
|
|
.fileIcon.markdown {
|
|
.fileIcon.markdown {
|
|
background-image: url(../assets/md.svg);
|
|
background-image: url(../assets/md.svg);
|
|
}
|
|
}
|
|
|
|
+
|
|
.fileIcon.txt {
|
|
.fileIcon.txt {
|
|
background-image: url(../assets/txt.svg);
|
|
background-image: url(../assets/txt.svg);
|
|
}
|
|
}
|
|
|
|
+
|
|
.fileIcon.json {
|
|
.fileIcon.json {
|
|
background-image: url(../assets/json.svg);
|
|
background-image: url(../assets/json.svg);
|
|
}
|
|
}
|
|
|
|
+
|
|
.fileInfo {
|
|
.fileInfo {
|
|
@apply grow flex items-center;
|
|
@apply grow flex items-center;
|
|
z-index: 1;
|
|
z-index: 1;
|
|
@@ -129,6 +154,7 @@
|
|
text-overflow: ellipsis;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
+
|
|
.filename {
|
|
.filename {
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
font-size: 13px;
|
|
font-size: 13px;
|
|
@@ -143,10 +169,12 @@
|
|
line-height: 18px;
|
|
line-height: 18px;
|
|
color: #667085;
|
|
color: #667085;
|
|
}
|
|
}
|
|
|
|
+
|
|
.actionWrapper {
|
|
.actionWrapper {
|
|
@apply flex items-center shrink-0;
|
|
@apply flex items-center shrink-0;
|
|
z-index: 1;
|
|
z-index: 1;
|
|
}
|
|
}
|
|
|
|
+
|
|
.actionWrapper .percent {
|
|
.actionWrapper .percent {
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
font-size: 13px;
|
|
font-size: 13px;
|
|
@@ -162,6 +190,7 @@
|
|
background-size: 16px;
|
|
background-size: 16px;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
+
|
|
.file:hover .actionWrapper .remove {
|
|
.file:hover .actionWrapper .remove {
|
|
display: block;
|
|
display: block;
|
|
-}
|
|
|
|
|
|
+}
|