| 1 |
/* |
| 2 |
* Nivo Lightbox v1.1 |
| 3 |
* http://dev7studios.com/nivo-lightbox |
| 4 |
* |
| 5 |
* Copyright 2013, Dev7studios |
| 6 |
* Free to use and abuse under the MIT license. |
| 7 |
* http://www.opensource.org/licenses/mit-license.php |
| 8 |
*/ |
| 9 |
|
| 10 |
.nivo-lightbox-overlay { |
| 11 |
position: fixed; |
| 12 |
top: 0; |
| 13 |
left: 0; |
| 14 |
z-index: 99998; |
| 15 |
width: 100%; |
| 16 |
height: 100%; |
| 17 |
overflow: hidden; |
| 18 |
visibility: hidden; |
| 19 |
opacity: 0; |
| 20 |
-webkit-box-sizing: border-box; |
| 21 |
-moz-box-sizing: border-box; |
| 22 |
box-sizing: border-box; |
| 23 |
} |
| 24 |
.nivo-lightbox-overlay.nivo-lightbox-open { |
| 25 |
visibility: visible; |
| 26 |
opacity: 1; |
| 27 |
} |
| 28 |
.nivo-lightbox-wrap { |
| 29 |
position: absolute; |
| 30 |
top: 10%; |
| 31 |
bottom: 10%; |
| 32 |
left: 10%; |
| 33 |
right: 10%; |
| 34 |
} |
| 35 |
.nivo-lightbox-content { |
| 36 |
width: 100%; |
| 37 |
height: 100%; |
| 38 |
} |
| 39 |
.nivo-lightbox-title-wrap { |
| 40 |
position: absolute; |
| 41 |
bottom: 0; |
| 42 |
left: 0; |
| 43 |
width: 100%; |
| 44 |
z-index: 99999; |
| 45 |
text-align: center; |
| 46 |
} |
| 47 |
.nivo-lightbox-nav { display: none; } |
| 48 |
.nivo-lightbox-prev { |
| 49 |
position: absolute; |
| 50 |
top: 50%; |
| 51 |
left: 0; |
| 52 |
} |
| 53 |
.nivo-lightbox-next { |
| 54 |
position: absolute; |
| 55 |
top: 50%; |
| 56 |
right: 0; |
| 57 |
} |
| 58 |
.nivo-lightbox-close { |
| 59 |
position: absolute; |
| 60 |
top: 2%; |
| 61 |
right: 2%; |
| 62 |
} |
| 63 |
|
| 64 |
.nivo-lightbox-image { text-align: center; } |
| 65 |
.nivo-lightbox-image img { |
| 66 |
max-width: 100%; |
| 67 |
max-height: 100%; |
| 68 |
width: auto; |
| 69 |
height: auto; |
| 70 |
vertical-align: middle; |
| 71 |
} |
| 72 |
.nivo-lightbox-content iframe { |
| 73 |
width: 100%; |
| 74 |
height: 100%; |
| 75 |
} |
| 76 |
.nivo-lightbox-inline, |
| 77 |
.nivo-lightbox-ajax { |
| 78 |
max-height: 100%; |
| 79 |
overflow: auto; |
| 80 |
-webkit-box-sizing: border-box; |
| 81 |
-moz-box-sizing: border-box; |
| 82 |
box-sizing: border-box; |
| 83 |
/* https://bugzilla.mozilla.org/show_bug.cgi?id=308801 */ |
| 84 |
} |
| 85 |
.nivo-lightbox-error { |
| 86 |
display: table; |
| 87 |
text-align: center; |
| 88 |
width: 100%; |
| 89 |
height: 100%; |
| 90 |
color: #fff; |
| 91 |
text-shadow: 0 1px 1px #000; |
| 92 |
} |
| 93 |
.nivo-lightbox-error p { |
| 94 |
display: table-cell; |
| 95 |
vertical-align: middle; |
| 96 |
} |
| 97 |
|
| 98 |
/* Effects |
| 99 |
**********************************************/ |
| 100 |
.nivo-lightbox-notouch .nivo-lightbox-effect-fade, |
| 101 |
.nivo-lightbox-notouch .nivo-lightbox-effect-fadeScale, |
| 102 |
.nivo-lightbox-notouch .nivo-lightbox-effect-slideLeft, |
| 103 |
.nivo-lightbox-notouch .nivo-lightbox-effect-slideRight, |
| 104 |
.nivo-lightbox-notouch .nivo-lightbox-effect-slideUp, |
| 105 |
.nivo-lightbox-notouch .nivo-lightbox-effect-slideDown, |
| 106 |
.nivo-lightbox-notouch .nivo-lightbox-effect-fall { |
| 107 |
-webkit-transition: all 0.2s ease-in-out; |
| 108 |
-moz-transition: all 0.2s ease-in-out; |
| 109 |
-ms-transition: all 0.2s ease-in-out; |
| 110 |
-o-transition: all 0.2s ease-in-out; |
| 111 |
transition: all 0.2s ease-in-out; |
| 112 |
} |
| 113 |
|
| 114 |
/* fadeScale */ |
| 115 |
.nivo-lightbox-effect-fadeScale .nivo-lightbox-wrap { |
| 116 |
-webkit-transition: all 0.3s; |
| 117 |
-moz-transition: all 0.3s; |
| 118 |
-ms-transition: all 0.3s; |
| 119 |
-o-transition: all 0.3s; |
| 120 |
transition: all 0.3s; |
| 121 |
-webkit-transform: scale(0.7); |
| 122 |
-moz-transform: scale(0.7); |
| 123 |
-ms-transform: scale(0.7); |
| 124 |
transform: scale(0.7); |
| 125 |
} |
| 126 |
.nivo-lightbox-effect-fadeScale.nivo-lightbox-open .nivo-lightbox-wrap { |
| 127 |
-webkit-transform: scale(1); |
| 128 |
-moz-transform: scale(1); |
| 129 |
-ms-transform: scale(1); |
| 130 |
transform: scale(1); |
| 131 |
} |
| 132 |
|
| 133 |
/* slideLeft / slideRight / slideUp / slideDown */ |
| 134 |
.nivo-lightbox-effect-slideLeft .nivo-lightbox-wrap, |
| 135 |
.nivo-lightbox-effect-slideRight .nivo-lightbox-wrap, |
| 136 |
.nivo-lightbox-effect-slideUp .nivo-lightbox-wrap, |
| 137 |
.nivo-lightbox-effect-slideDown .nivo-lightbox-wrap { |
| 138 |
-webkit-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9); |
| 139 |
-moz-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9); |
| 140 |
-ms-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9); |
| 141 |
-o-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9); |
| 142 |
transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9); |
| 143 |
} |
| 144 |
.nivo-lightbox-effect-slideLeft .nivo-lightbox-wrap { |
| 145 |
-webkit-transform: translateX(-10%); |
| 146 |
-moz-transform: translateX(-10%); |
| 147 |
-ms-transform: translateX(-10%); |
| 148 |
transform: translateX(-10%); |
| 149 |
} |
| 150 |
.nivo-lightbox-effect-slideRight .nivo-lightbox-wrap { |
| 151 |
-webkit-transform: translateX(10%); |
| 152 |
-moz-transform: translateX(10%); |
| 153 |
-ms-transform: translateX(10%); |
| 154 |
transform: translateX(10%); |
| 155 |
} |
| 156 |
.nivo-lightbox-effect-slideLeft.nivo-lightbox-open .nivo-lightbox-wrap, |
| 157 |
.nivo-lightbox-effect-slideRight.nivo-lightbox-open .nivo-lightbox-wrap { |
| 158 |
-webkit-transform: translateX(0); |
| 159 |
-moz-transform: translateX(0); |
| 160 |
-ms-transform: translateX(0); |
| 161 |
transform: translateX(0); |
| 162 |
} |
| 163 |
.nivo-lightbox-effect-slideDown .nivo-lightbox-wrap { |
| 164 |
-webkit-transform: translateY(-10%); |
| 165 |
-moz-transform: translateY(-10%); |
| 166 |
-ms-transform: translateY(-10%); |
| 167 |
transform: translateY(-10%); |
| 168 |
} |
| 169 |
.nivo-lightbox-effect-slideUp .nivo-lightbox-wrap { |
| 170 |
-webkit-transform: translateY(10%); |
| 171 |
-moz-transform: translateY(10%); |
| 172 |
-ms-transform: translateY(10%); |
| 173 |
transform: translateY(10%); |
| 174 |
} |
| 175 |
.nivo-lightbox-effect-slideUp.nivo-lightbox-open .nivo-lightbox-wrap, |
| 176 |
.nivo-lightbox-effect-slideDown.nivo-lightbox-open .nivo-lightbox-wrap { |
| 177 |
-webkit-transform: translateY(0); |
| 178 |
-moz-transform: translateY(0); |
| 179 |
-ms-transform: translateY(0); |
| 180 |
transform: translateY(0); |
| 181 |
} |
| 182 |
|
| 183 |
/* fall */ |
| 184 |
.nivo-lightbox-body-effect-fall .nivo-lightbox-effect-fall { |
| 185 |
-webkit-perspective: 1000px; |
| 186 |
-moz-perspective: 1000px; |
| 187 |
perspective: 1000px; |
| 188 |
} |
| 189 |
.nivo-lightbox-effect-fall .nivo-lightbox-wrap { |
| 190 |
-webkit-transition: all 0.3s ease-out; |
| 191 |
-moz-transition: all 0.3s ease-out; |
| 192 |
-ms-transition: all 0.3s ease-out; |
| 193 |
-o-transition: all 0.3s ease-out; |
| 194 |
transition: all 0.3s ease-out; |
| 195 |
-webkit-transform: translateZ(300px); |
| 196 |
-moz-transform: translateZ(300px); |
| 197 |
-ms-transform: translateZ(300px); |
| 198 |
transform: translateZ(300px); |
| 199 |
} |
| 200 |
.nivo-lightbox-effect-fall.nivo-lightbox-open .nivo-lightbox-wrap { |
| 201 |
-webkit-transform: translateZ(0); |
| 202 |
-moz-transform: translateZ(0); |
| 203 |
-ms-transform: translateZ(0); |
| 204 |
transform: translateZ(0); |
| 205 |
} |
| 206 |
|
| 207 |
/* |
| 208 |
* Nivo Lightbox Default Theme v1.0 |
| 209 |
* http://dev7studios.com/nivo-lightbox |
| 210 |
* |
| 211 |
* Copyright 2013, Dev7studios |
| 212 |
* Free to use and abuse under the MIT license. |
| 213 |
* http://www.opensource.org/licenses/mit-license.php |
| 214 |
*/ |
| 215 |
|
| 216 |
.nivo-lightbox-theme-default.nivo-lightbox-overlay { |
| 217 |
background: #666; |
| 218 |
background: rgba(0,0,0,0.6); |
| 219 |
} |
| 220 |
.nivo-lightbox-theme-default .nivo-lightbox-content.nivo-lightbox-loading { background: url(../images/nivo-icons/loading.gif) no-repeat 50% 50%; } |
| 221 |
|
| 222 |
.nivo-lightbox-theme-default .nivo-lightbox-nav { |
| 223 |
top: 10%; |
| 224 |
width: 8%; |
| 225 |
height: 80%; |
| 226 |
text-indent: -9999px; |
| 227 |
background-repeat: no-repeat; |
| 228 |
background-position: 50% 50%; |
| 229 |
opacity: 0.5; |
| 230 |
} |
| 231 |
.nivo-lightbox-theme-default .nivo-lightbox-nav:hover { |
| 232 |
opacity: 1; |
| 233 |
background-color: rgba(0,0,0,0.5); |
| 234 |
} |
| 235 |
.nivo-lightbox-theme-default .nivo-lightbox-prev { |
| 236 |
background-image: url(../images/nivo-icons/prev.png); |
| 237 |
border-radius: 0 3px 3px 0; |
| 238 |
} |
| 239 |
.nivo-lightbox-theme-default .nivo-lightbox-next { |
| 240 |
background-image: url(../images/nivo-icons/next.png); |
| 241 |
border-radius: 3px 0 0 3px; |
| 242 |
} |
| 243 |
|
| 244 |
.nivo-lightbox-theme-default .nivo-lightbox-close { |
| 245 |
display: block; |
| 246 |
background: url(../images/nivo-icons/close.png) no-repeat; |
| 247 |
width: 48px; |
| 248 |
height: 48px; |
| 249 |
text-indent: -9999px; |
| 250 |
padding: 5px; |
| 251 |
opacity: 0.5; |
| 252 |
} |
| 253 |
.nivo-lightbox-theme-default .nivo-lightbox-close:hover { opacity: 1; } |
| 254 |
|
| 255 |
.nivo-lightbox-theme-default .nivo-lightbox-title-wrap { bottom: -7%; } |
| 256 |
.nivo-lightbox-theme-default .nivo-lightbox-title { |
| 257 |
font: 14px/20px 'Helvetica Neue', Helvetica, Arial, sans-serif; |
| 258 |
font-style: normal; |
| 259 |
font-weight: normal; |
| 260 |
background: #000; |
| 261 |
color: #fff; |
| 262 |
padding: 7px 15px; |
| 263 |
border-radius: 30px; |
| 264 |
} |
| 265 |
|
| 266 |
.nivo-lightbox-theme-default .nivo-lightbox-image img { |
| 267 |
background: #fff; |
| 268 |
-webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.4); |
| 269 |
box-shadow: 0px 1px 1px rgba(0,0,0,0.4); |
| 270 |
} |
| 271 |
.nivo-lightbox-theme-default .nivo-lightbox-ajax, |
| 272 |
.nivo-lightbox-theme-default .nivo-lightbox-inline { |
| 273 |
background: #fff; |
| 274 |
padding: 40px; |
| 275 |
-webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.4); |
| 276 |
box-shadow: 0px 1px 1px rgba(0,0,0,0.4); |
| 277 |
} |
| 278 |
|
| 279 |
@media (-webkit-min-device-pixel-ratio: 1.3), |
| 280 |
(-o-min-device-pixel-ratio: 2.6/2), |
| 281 |
(min--moz-device-pixel-ratio: 1.3), |
| 282 |
(min-device-pixel-ratio: 1.3), |
| 283 |
(min-resolution: 1.3dppx) { |
| 284 |
|
| 285 |
.nivo-lightbox-theme-default .nivo-lightbox-content.nivo-lightbox-loading { |
| 286 |
background-image: url(../images/nivo-icons/loading@2x.gif); |
| 287 |
-webkit-background-size: 32px 32px; |
| 288 |
background-size: 32px 32px; |
| 289 |
} |
| 290 |
.nivo-lightbox-theme-default .nivo-lightbox-prev { |
| 291 |
background-image: url(../images/nivo-icons/prev@2x.png); |
| 292 |
-webkit-background-size: 48px 48px; |
| 293 |
background-size: 48px 48px; |
| 294 |
} |
| 295 |
.nivo-lightbox-theme-default .nivo-lightbox-next { |
| 296 |
background-image: url(../images/nivo-icons/next@2x.png); |
| 297 |
-webkit-background-size: 48px 48px; |
| 298 |
background-size: 48px 48px; |
| 299 |
} |
| 300 |
.nivo-lightbox-theme-default .nivo-lightbox-close { |
| 301 |
background-image: url(../images/nivo-icons/close@2x.png); |
| 302 |
-webkit-background-size: 16px 16px; |
| 303 |
background-size: 16px 16px; |
| 304 |
} |
| 305 |
|
| 306 |
} |