jquery.fancybox.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
  2. .fancybox-wrap,
  3. .fancybox-skin,
  4. .fancybox-outer,
  5. .fancybox-inner,
  6. .fancybox-image,
  7. .fancybox-wrap iframe,
  8. .fancybox-wrap object,
  9. .fancybox-nav,
  10. .fancybox-nav span,
  11. .fancybox-tmp
  12. {
  13. padding: 0;
  14. margin: 0;
  15. border: 0;
  16. outline: none;
  17. vertical-align: top;
  18. }
  19. .fancybox-wrap {
  20. position: absolute;
  21. top: 0;
  22. left: 0;
  23. z-index: 8020;
  24. }
  25. .fancybox-skin {
  26. position: relative;
  27. background: #f9f9f9;
  28. color: #444;
  29. text-shadow: none;
  30. border-radius: 4px;
  31. }
  32. .fancybox-opened {
  33. z-index: 8030;
  34. }
  35. .fancybox-opened .fancybox-skin {
  36. box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  37. }
  38. .fancybox-outer, .fancybox-inner {
  39. position: relative;
  40. }
  41. .fancybox-inner {
  42. overflow: hidden;
  43. }
  44. .fancybox-type-iframe .fancybox-inner {
  45. -webkit-overflow-scrolling: touch;
  46. }
  47. .fancybox-error {
  48. color: #444;
  49. font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
  50. margin: 0;
  51. padding: 15px;
  52. white-space: nowrap;
  53. }
  54. .fancybox-image, .fancybox-iframe {
  55. display: block;
  56. width: 100%;
  57. height: 100%;
  58. }
  59. .fancybox-image {
  60. max-width: 100%;
  61. max-height: 100%;
  62. }
  63. #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
  64. background-image: url(fancybox_sprite.png);
  65. }
  66. #fancybox-loading {
  67. position: fixed;
  68. top: 50%;
  69. left: 50%;
  70. margin-top: -22px;
  71. margin-left: -22px;
  72. background-position: 0 -108px;
  73. opacity: 0.8;
  74. cursor: pointer;
  75. z-index: 8060;
  76. }
  77. #fancybox-loading div {
  78. width: 44px;
  79. height: 44px;
  80. background: url(fancybox_loading.gif) center center no-repeat;
  81. }
  82. .fancybox-close {
  83. position: absolute;
  84. top: -18px;
  85. right: -18px;
  86. width: 36px;
  87. height: 36px;
  88. cursor: pointer;
  89. z-index: 8040;
  90. }
  91. .fancybox-nav {
  92. position: absolute;
  93. top: 0;
  94. width: 40%;
  95. height: 100%;
  96. cursor: pointer;
  97. text-decoration: none;
  98. background: transparent url(blank.gif); /* helps IE */
  99. -webkit-tap-highlight-color: rgba(0,0,0,0);
  100. z-index: 8040;
  101. }
  102. .fancybox-prev {
  103. left: 0;
  104. }
  105. .fancybox-next {
  106. right: 0;
  107. }
  108. .fancybox-nav span {
  109. position: absolute;
  110. top: 50%;
  111. width: 36px;
  112. height: 34px;
  113. margin-top: -18px;
  114. cursor: pointer;
  115. z-index: 8040;
  116. visibility: hidden;
  117. }
  118. .fancybox-prev span {
  119. left: 10px;
  120. background-position: 0 -36px;
  121. }
  122. .fancybox-next span {
  123. right: 10px;
  124. background-position: 0 -72px;
  125. }
  126. .fancybox-nav:hover span {
  127. visibility: visible;
  128. }
  129. .fancybox-tmp {
  130. position: absolute;
  131. top: -99999px;
  132. left: -99999px;
  133. max-width: 99999px;
  134. max-height: 99999px;
  135. overflow: visible !important;
  136. }
  137. /* Overlay helper */
  138. .fancybox-lock {
  139. overflow: visible !important;
  140. width: auto;
  141. }
  142. .fancybox-lock body {
  143. overflow: hidden !important;
  144. }
  145. .fancybox-lock-test {
  146. overflow-y: hidden !important;
  147. }
  148. .fancybox-overlay {
  149. position: absolute;
  150. top: 0;
  151. left: 0;
  152. overflow: hidden;
  153. display: none;
  154. z-index: 8010;
  155. background: url(fancybox_overlay.png);
  156. }
  157. .fancybox-overlay-fixed {
  158. position: fixed;
  159. bottom: 0;
  160. right: 0;
  161. }
  162. .fancybox-lock .fancybox-overlay {
  163. overflow: auto;
  164. overflow-y: scroll;
  165. }
  166. /* Title helper */
  167. .fancybox-title {
  168. visibility: hidden;
  169. font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
  170. position: relative;
  171. text-shadow: none;
  172. z-index: 8050;
  173. }
  174. .fancybox-opened .fancybox-title {
  175. visibility: visible;
  176. }
  177. .fancybox-title-float-wrap {
  178. position: absolute;
  179. bottom: 0;
  180. right: 50%;
  181. margin-bottom: -35px;
  182. z-index: 8050;
  183. text-align: center;
  184. }
  185. .fancybox-title-float-wrap .child {
  186. display: inline-block;
  187. margin-right: -100%;
  188. padding: 2px 20px;
  189. background: transparent; /* Fallback for web browsers that doesn't support RGBa */
  190. background: rgba(0, 0, 0, 0.8);
  191. border-radius: 15px;
  192. text-shadow: 0 1px 2px #222;
  193. color: #FFF;
  194. font-weight: bold;
  195. line-height: 24px;
  196. white-space: nowrap;
  197. }
  198. .fancybox-title-outside-wrap {
  199. position: relative;
  200. margin-top: 10px;
  201. color: #fff;
  202. }
  203. .fancybox-title-inside-wrap {
  204. padding-top: 10px;
  205. }
  206. .fancybox-title-over-wrap {
  207. position: absolute;
  208. bottom: 0;
  209. left: 0;
  210. color: #fff;
  211. padding: 10px;
  212. background: #000;
  213. background: rgba(0, 0, 0, .8);
  214. }
  215. /*Retina graphics!*/
  216. @media only screen and (-webkit-min-device-pixel-ratio: 1.5),
  217. only screen and (min--moz-device-pixel-ratio: 1.5),
  218. only screen and (min-device-pixel-ratio: 1.5){
  219. #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
  220. background-image: url(fancybox_sprite@2x.png);
  221. background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/
  222. }
  223. #fancybox-loading div {
  224. background-image: url(fancybox_loading@2x.gif);
  225. background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/
  226. }
  227. }