blob: 764bb31586e15c188d79d38559504c91ccf660c6 (
plain) (
blame)
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
|
.image-upload {
position: absolute;
width: 100px;
height: 100px;
border-radius: $theme-border-radius;
overflow: hidden;
&__preview,
&__action {
position: absolute;
top: 0;
left: 0;
right: 0;
}
&__preview {
z-index: 1;
background-size: cover;
background-size: 100%;
background-repeat: no-repeat;
background-position: center center;
margin: 5px;
}
&__action {
position: relative;
z-index: 10;
opacity: 0;
transition: opacity 0.5s;
&-background {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba($theme-gray, 0.7);
z-index: 10;
}
button {
position: relative;
z-index: 100;
}
}
&:hover {
.image-upload__action {
opacity: 1;
}
}
}
|