This repository has been archived by the owner on Jun 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathng2-file-input.scss
90 lines (90 loc) · 2.48 KB
/
ng2-file-input.scss
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
.ng2-file-input{
.ng2-file-input-drop-container{
min-width:200px;
min-height:50px;
border: 2px dashed #333;
padding:7px;
button{
margin-left: 25px;
}
}
.ng2-file-input-drop-container.file-is-over{
border: 2px solid #007e40;
color: #007e40;
}
input{
display:none;
}
.ng2-file-input-files{
margin-top:8px;
.ng2-file-input-file{
overflow:hidden;
display:inline-block;
margin-right:5px;
margin-bottom:5px;
vertical-align: middle;
text-align: center;
position:relative;
.ng2-file-input-file-text{
max-width:110px;
line-height:16px;
display:block;
padding:2px;
width:auto;
overflow:hidden;
word-wrap: break-word;
font-size:12px;
}
img{
width:120px;
height:120px;
}
}
.ng2-file-input-file.image{
width:120px;
height:120px;
.ng2-file-input-file-text{
position:absolute;
top:5px;
left:5px;
line-height:14px;
font-size:11px;
background: rgba(255,255,255,0.6);
white-space: nowrap;
z-index:5;
text-overflow: ellipsis;
}
.ng2-file-input-file-text:hover{
overflow:auto;
white-space: pre-wrap;
text-overflow: initial;
}
}
.ng2-file-input-file.image .ng2-file-input-file-text.remove, .ng2-file-input-file-text.remove{
overflow:hidden;
position:absolute;
bottom:0;
z-index:3;
vertical-align:bottom;
max-width:120px;
font-size:14px;
line-height:20px;
top: 0;
left:0;
right:0;
opacity:0;
padding:0;
p{
position:absolute;
bottom:5px;
width:100%;
color: #fff;
}
}
.ng2-file-input-file.image .ng2-file-input-file-text.remove:hover, .ng2-file-input-file-text.remove:hover{
opacity:1;
cursor:pointer;
background: rgba(169,68,66,0.85);
}
}
}