lightbox.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. /* Preload images */
  2. body:after {
  3. display: none;
  4. }
  5. .lightboxOverlay {
  6. position: absolute;
  7. top: 0;
  8. left: 0;
  9. z-index: 9999;
  10. background-color: black;
  11. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
  12. opacity: 0.8;
  13. display: none;
  14. }
  15. .lightbox {
  16. position: absolute;
  17. left: 0;
  18. width: 100%;
  19. z-index: 10000;
  20. text-align: center;
  21. line-height: 0;
  22. font-weight: normal;
  23. }
  24. .lightbox .lb-image {
  25. display: block;
  26. height: auto;
  27. max-width: inherit;
  28. -webkit-border-radius: 3px;
  29. -moz-border-radius: 3px;
  30. -ms-border-radius: 3px;
  31. -o-border-radius: 3px;
  32. border-radius: 3px;
  33. }
  34. .lightbox a img {
  35. border: none;
  36. }
  37. .lb-outerContainer {
  38. position: relative;
  39. background-color: white;
  40. *zoom: 1;
  41. width: 250px;
  42. height: 250px;
  43. margin: 0 auto;
  44. -webkit-border-radius: 4px;
  45. -moz-border-radius: 4px;
  46. -ms-border-radius: 4px;
  47. -o-border-radius: 4px;
  48. border-radius: 4px;
  49. }
  50. .lb-outerContainer:after {
  51. content: "";
  52. display: table;
  53. clear: both;
  54. }
  55. .lb-container {
  56. padding: 4px;
  57. }
  58. .lb-loader {
  59. position: absolute;
  60. top: 43%;
  61. left: 0;
  62. height: 25%;
  63. width: 100%;
  64. text-align: center;
  65. line-height: 0;
  66. }
  67. .lb-cancel {
  68. display: block;
  69. width: 32px;
  70. height: 32px;
  71. margin: 0 auto;
  72. }
  73. .lb-nav {
  74. position: absolute;
  75. top: 0;
  76. left: 0;
  77. height: 100%;
  78. width: 100%;
  79. z-index: 10;
  80. }
  81. .lb-container > .nav {
  82. left: 0;
  83. }
  84. .lb-nav a {
  85. outline: none;
  86. background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
  87. }
  88. .lb-prev, .lb-next {
  89. height: 100%;
  90. cursor: pointer;
  91. display: block;
  92. }
  93. .lb-nav a.lb-prev {
  94. width: 5em;
  95. float: left;
  96. background: url(../images/img-sprite.png) 40px 48% no-repeat;
  97. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  98. opacity: 0;
  99. -webkit-transition: opacity 0.6s;
  100. -moz-transition: opacity 0.6s;
  101. -o-transition: opacity 0.6s;
  102. transition: opacity 0.6s;
  103. }
  104. .lb-nav a.lb-prev:hover {
  105. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  106. opacity: 1;
  107. }
  108. .lb-nav a.lb-next {
  109. width: 5em;
  110. right: 0;
  111. float: right;
  112. background: url(../images/img-sprite.png) -35% 48% no-repeat;
  113. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  114. opacity: 0;
  115. -webkit-transition: opacity 0.6s;
  116. -moz-transition: opacity 0.6s;
  117. -o-transition: opacity 0.6s;
  118. transition: opacity 0.6s;
  119. }
  120. .lb-nav a.lb-next:hover {
  121. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  122. opacity: 1;
  123. }
  124. .lb-dataContainer {
  125. margin: 0 auto;
  126. padding-top: 5px;
  127. *zoom: 1;
  128. width: 100%;
  129. -moz-border-radius-bottomleft: 4px;
  130. -webkit-border-bottom-left-radius: 4px;
  131. border-bottom-left-radius: 4px;
  132. -moz-border-radius-bottomright: 4px;
  133. -webkit-border-bottom-right-radius: 4px;
  134. border-bottom-right-radius: 4px;
  135. }
  136. .lb-dataContainer:after {
  137. content: "";
  138. display: table;
  139. clear: both;
  140. }
  141. .lb-data {
  142. padding: 0 4px;
  143. color: #ccc;
  144. }
  145. .lb-data .lb-details {
  146. width: 90%;
  147. float: left;
  148. text-align: left;
  149. line-height: 1.1em;
  150. margin-top: 2em;
  151. }
  152. .lb-data .lb-caption {
  153. font-size: 13px;
  154. line-height: 1.8em;
  155. color: #fff;
  156. letter-spacing: 1px;
  157. }
  158. .lb-data .lb-number {
  159. display: block;
  160. clear: left;
  161. padding-top: 1em;
  162. font-size: 1em;
  163. color: #fff;
  164. }
  165. .lb-data .lb-close {
  166. display: block;
  167. float: right;
  168. width: 30px;
  169. height: 30px;
  170. margin-top: 1.5em;
  171. background: url(../images/close.png) top right no-repeat;
  172. text-align: right;
  173. outline: none;
  174. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70);
  175. opacity: 0.7;
  176. -webkit-transition: opacity 0.2s;
  177. -moz-transition: opacity 0.2s;
  178. -o-transition: opacity 0.2s;
  179. transition: opacity 0.2s;
  180. }
  181. .lb-data .lb-close:hover {
  182. cursor: pointer;
  183. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  184. opacity: 1;
  185. }
  186. @media screen and (max-width: 320px){
  187. .lb-data .lb-details {
  188. width: 89%;
  189. margin-top: 1em;
  190. }
  191. .lb-data .lb-caption {
  192. font-size: 12px;
  193. }
  194. }