lightbox.css 3.9 KB

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