forked from rokobuljan/zoompan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zoompan.css
54 lines (48 loc) · 1.12 KB
/
zoompan.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
/*
* ZoomPan
*
* Basic template styles:
*/
.zoompan-viewport {
position: relative;
display: flex;
overflow: hidden;
width: calc(100% - var(--scrollbarsWidth) * 1px);
height: calc(100% - var(--scrollbarsWidth) * 1px);
align-items: center;
justify-content: center;
touch-action: none;
}
.zoompan-canvas {
flex: none;
transform-origin: center;
backface-visibility: hidden;
}
.zoompan-track-x {
position: absolute;
bottom: 0;
left: 0;
right: calc(var(--scrollbarsWidth) * 1px);
height: calc(var(--scrollbarsWidth) * 1px);
background: rgba(0, 0, 0, 0.3);
touch-action: none;
}
.zoompan-track-y {
position: absolute;
top: 0;
right: 0;
width: calc(var(--scrollbarsWidth) * 1px);
bottom: calc(var(--scrollbarsWidth) * 1px);
background: rgba(0, 0, 0, 0.3);
touch-action: none;
}
.zoompan-thumb-x {
position: absolute;
height: inherit;
background: rgba(255, 255, 255, 0.5);
}
.zoompan-thumb-y {
position: absolute;
width: inherit;
background: rgba(255, 255, 255, 0.5);
}