Commit fff689ea authored by Van's avatar Van

upgrade fancybox

parent c60993e0
/*! fancyBox v2.0.6 fancyapps.com | fancyapps.com/fancybox/#license */ /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
.fancybox-tmp iframe, .fancybox-tmp object { .fancybox-wrap,
vertical-align: top; .fancybox-skin,
.fancybox-outer,
.fancybox-inner,
.fancybox-image,
.fancybox-wrap iframe,
.fancybox-wrap object,
.fancybox-nav,
.fancybox-nav span,
.fancybox-tmp
{
padding: 0; padding: 0;
margin: 0; margin: 0;
border: 0;
outline: none;
vertical-align: top;
} }
.fancybox-wrap { .fancybox-wrap {
...@@ -14,8 +26,6 @@ ...@@ -14,8 +26,6 @@
.fancybox-skin { .fancybox-skin {
position: relative; position: relative;
padding: 0;
margin: 0;
background: #f9f9f9; background: #f9f9f9;
color: #444; color: #444;
text-shadow: none; text-shadow: none;
...@@ -35,10 +45,7 @@ ...@@ -35,10 +45,7 @@
} }
.fancybox-outer, .fancybox-inner { .fancybox-outer, .fancybox-inner {
padding: 0;
margin: 0;
position: relative; position: relative;
outline: none;
} }
.fancybox-inner { .fancybox-inner {
...@@ -53,17 +60,14 @@ ...@@ -53,17 +60,14 @@
color: #444; color: #444;
font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
margin: 0; margin: 0;
padding: 10px; padding: 15px;
white-space: nowrap;
} }
.fancybox-image, .fancybox-iframe { .fancybox-image, .fancybox-iframe {
display: block; display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
border: 0;
padding: 0;
margin: 0;
vertical-align: top;
} }
.fancybox-image { .fancybox-image {
...@@ -84,7 +88,7 @@ ...@@ -84,7 +88,7 @@
background-position: 0 -108px; background-position: 0 -108px;
opacity: 0.8; opacity: 0.8;
cursor: pointer; cursor: pointer;
z-index: 8020; z-index: 8060;
} }
#fancybox-loading div { #fancybox-loading div {
...@@ -109,6 +113,7 @@ ...@@ -109,6 +113,7 @@
width: 40%; width: 40%;
height: 100%; height: 100%;
cursor: pointer; cursor: pointer;
text-decoration: none;
background: transparent url('blank.gif'); /* helps IE */ background: transparent url('blank.gif'); /* helps IE */
-webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-tap-highlight-color: rgba(0,0,0,0);
z-index: 8040; z-index: 8040;
...@@ -134,12 +139,12 @@ ...@@ -134,12 +139,12 @@
} }
.fancybox-prev span { .fancybox-prev span {
left: 20px; left: 10px;
background-position: 0 -36px; background-position: 0 -36px;
} }
.fancybox-next span { .fancybox-next span {
right: 20px; right: 10px;
background-position: 0 -72px; background-position: 0 -72px;
} }
...@@ -149,31 +154,50 @@ ...@@ -149,31 +154,50 @@
.fancybox-tmp { .fancybox-tmp {
position: absolute; position: absolute;
top: -9999px; top: -99999px;
left: -9999px; left: -99999px;
padding: 0;
overflow: visible;
visibility: hidden; visibility: hidden;
max-width: 99999px;
max-height: 99999px;
overflow: visible !important;
} }
/* Overlay helper */ /* Overlay helper */
#fancybox-overlay { .fancybox-lock {
overflow: hidden !important;
width: auto;
}
.fancybox-lock body {
overflow: hidden !important;
}
.fancybox-lock-test {
overflow-y: hidden !important;
}
.fancybox-overlay {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
overflow: hidden; overflow: hidden;
display: none; display: none;
z-index: 8010; z-index: 8010;
background: #000; background: url('fancybox_overlay.png');
} }
#fancybox-overlay.overlay-fixed { .fancybox-overlay-fixed {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
right: 0; right: 0;
} }
.fancybox-lock .fancybox-overlay {
overflow: auto;
overflow-y: scroll;
}
/* Title helper */ /* Title helper */
.fancybox-title { .fancybox-title {
...@@ -193,7 +217,7 @@ ...@@ -193,7 +217,7 @@
bottom: 0; bottom: 0;
right: 50%; right: 50%;
margin-bottom: -35px; margin-bottom: -35px;
z-index: 8030; z-index: 8050;
text-align: center; text-align: center;
} }
...@@ -220,7 +244,7 @@ ...@@ -220,7 +244,7 @@
} }
.fancybox-title-inside-wrap { .fancybox-title-inside-wrap {
margin-top: 10px; padding-top: 10px;
} }
.fancybox-title-over-wrap { .fancybox-title-over-wrap {
...@@ -231,4 +255,20 @@ ...@@ -231,4 +255,20 @@
padding: 10px; padding: 10px;
background: #000; background: #000;
background: rgba(0, 0, 0, .8); background: rgba(0, 0, 0, .8);
}
/*Retina graphics!*/
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5){
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
background-image: url('fancybox_sprite@2x.png');
background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/
}
#fancybox-loading div {
background-image: url('fancybox_loading@2x.gif');
background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment