-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzoom.css
62 lines (55 loc) · 949 Bytes
/
zoom.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
62
.zoom-img_wrap {
position: relative;
overflow: hidden;
width: 600px;
height: 600px;
}
.zoom-img_wrap img {
position: absolute;
width: auto;
height: auto;
left: 0;
right: 0;
top: 0;
bottom: 0;
max-width: 100%;
max-height: 100%;
cursor: grab;
}
.zoom-img_wrap img:active {
cursor: grabbing;
}
.btn-zoom-in,
.btn-zoom-out {
position: absolute;
display: inline-block;
width: 38px;
height: 38px;
bottom: 0;
border: 0;
border-radius: 0;
background-color: grey;
cursor: pointer;
}
.btn-zoom-in::before,
.btn-zoom-in::after,
.btn-zoom-out::before,
.btn-zoom-out::after {
content: '';
position: absolute;
top: 18px;
left: 12px;
display: block;
width: 14px;
height: 1px;
border-bottom: 2px solid white;
}
.btn-zoom-out {
right: 38px;
}
.btn-zoom-in {
right: 0;
}
.btn-zoom-in::after {
transform: rotate(90deg);
}