forked from pb03/input-file
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput-file.css
52 lines (46 loc) · 791 Bytes
/
input-file.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
.inf__drop-area * {
box-sizing: border-box;
}
.inf__drop-area {
position: relative;
display: flex;
align-items: center;
height: 65px;
width: 450px;
max-width: 100%;
border: 1px dashed #c4c4c4;
border-radius: 3px;
padding: 0 20px;
transition: 0.2s;
}
.inf__drop-area.is-active {
background-color: rgba(0, 20, 20, 0.03);
}
input[type="file"] {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;
opacity: 0;
cursor: pointer;
}
input[type="file"]:focus {
outline: none;
}
.inf__btn {
display: inline-block;
border: 1px solid #c4c4c4;
border-radius: 3px;
padding: 5px 12px;
margin-right: 10px;
font-size: 10px;
text-transform: uppercase;
}
.inf__hint {
flex: 1;
font-size: 11px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}