-
Notifications
You must be signed in to change notification settings - Fork 23
/
zoomy.css
executable file
·138 lines (122 loc) · 3.22 KB
/
zoomy.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/*
* Zoomy 2.0.0 - jQuery plugin
* http://zoomy.me
*
* Copyright (c) 2010 Jacob Lowe (http://redeyeoperations.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Built for jQuery library
* http://jquery.com
*
* Addition fixes and modifications done by Larry Battle ( [email protected] )
* Code has been refactored and the logic has been corrected.
*
*Cusor fix from IE by Chris Pearson ( http://www.upland.co.uk )
*
*/
body{
-webkit-touch-callout: none!important;
}
.parent-zoom{
-webkit-user-select: none!important;
}
.parent-zoom img{
-webkit-transition-property: opacity;
-webkit-transition-duration: 200ms;
-webkit-transition-timing-function: ease;
cursor: cell;
cursor: -moz-zoom-in;
cursor: -webkit-zoom-in;
border: 0;
}
.zoomy{
position: absolute;
display: none;
background-repeat: no-repeat;
-webkit-box-shadow: 0px 5px 10px #000;
-moz-box-shadow: 0px 5px 10px #000;
-o-box-shadow: 0px 5px 10px #000;
-ms-box-shadow: 0px 5px 10px #000;
box-shadow: 0px 5px 10px #000;
filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=0, OffY=1, Color='#3333333', Positive='true');
line-height: 100px;
text-align: center;
background-color: #fff;
z-index: 999;
overflow: hidden;
cursor: url(./img/blank.cur), move;
-webkit-transition-property: border-width, border-color, opacity;
-webkit-transition-duration: 500ms, 1s, 500ms;
-webkit-transition-timing-function: ease;
}
.zoomy span{
display: block;
margin: 5px auto;
background: -moz-linear-gradient(top, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 100%); /* firefox */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.6)), color-stop(100%,rgba(255,255,255,0))); /* webkit */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#55FFFFFF, endColorstr=#00ffffff);
-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#55FFFFFF, endColorstr=#00ffffff);
}
.zoomy a{
color: #333;
text-decoration: none;
outline: 0;
}
.inactive img{
opacity: 0.85!important;
filter:alpha(opacity=85)!important;
}
.zoomy #tmp{
max-width: none;
max-height: none;
top: -999999px;
left: -999999px;
}
.zoomy.start{
border-width: 2px;
border-color: #444;
}
.zoomy-wrap{
position: relative;
margin: 0;
padding: 0;
z-index: 999;
}
.zoomy-btn{
font-family: sans-serif;
position: absolute;
top: 50%;
left: 50%;
margin: -30px 0 0 -30px;
border-radius: 50%;
height: 60px;
width : 60px;
overflow: hidden;
-webkit-box-shadow: 0px 1px 2px rgba(255,255,255,.8);
box-shadow: 0px 1px 2px rgba(255,255,255,.8);
background: rgba(0,0,0,.8);
background-position: 0px 0px;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
line-height: 100px;
color: #fff;
}
.zoomy-btn svg{
margin: 8px auto;
display: block;
}
.active .zoomy-btn svg{
display: none;
}
.active .zoomy-btn{
width: 100%;
height: 100%;
background: none;
-webkit-box-shadow: none;
box-shadow: none;
border: none;
top: 0px;
right: 0px;
overflow: hidden;
color: rgba(0,0,0,0);
}