-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfile-input-preview.css
62 lines (54 loc) · 981 Bytes
/
file-input-preview.css
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
.selected-files-container {
position: relative;
}
.selected-files {
margin-top: 10px;
}
.file-item {
display: flex;
align-items: center;
margin-bottom: 5px;
}
.remove-button {
display: inline-block;
margin-left: 10px;
padding: 2px 5px;
border-radius: 3px;
background-color: #ff5f5f;
color: #fff;
font-weight: bold;
cursor: pointer;
}
.clear-button {
margin-top: 10px;
padding: 5px 10px;
border: none;
border-radius: 3px;
background-color: #ff5f5f;
color: #fff;
font-weight: bold;
cursor: pointer;
}
.clear-button:hover,
.remove-button:hover {
background-color: #ff3f3f;
}
.has-files .clear-button {
display: block;
}
/* Hide the default file input */
input[type="file"] {
display: none;
}
.file-input-label {
display: inline-block;
padding: 5px 10px;
border: 1px solid #ccc;
border-radius: 3px;
background-color: #f9f9f9;
color: #555;
cursor: pointer;
}
.file-input-label:hover {
background-color: #f1f1f1;
}