lightbox.css 3.8 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. body.lb-disable-scrolling {
  7. overflow: hidden;
  8. }
  9. .lightboxOverlay {
  10. position: absolute;
  11. top: 0;
  12. left: 0;
  13. z-index: 9999;
  14. background-color: black;
  15. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
  16. opacity: 0.8;
  17. display: none;
  18. }
  19. .lightbox {
  20. position: absolute;
  21. left: 0;
  22. width: 100%;
  23. z-index: 10000;
  24. text-align: center;
  25. line-height: 0;
  26. font-weight: normal;
  27. }
  28. .lightbox .lb-image {
  29. display: block;
  30. height: auto;
  31. max-width: inherit;
  32. max-height: none;
  33. border-radius: 3px;
  34. /* Image border */
  35. border: 4px solid white;
  36. }
  37. .lightbox a img {
  38. border: none;
  39. }
  40. .lb-outerContainer {
  41. position: relative;
  42. *zoom: 1;
  43. width: 250px;
  44. height: 250px;
  45. margin: 0 auto;
  46. border-radius: 4px;
  47. /* Background color behind image.
  48. This is visible during transitions. */
  49. background-color: white;
  50. }
  51. .lb-outerContainer:after {
  52. content: "";
  53. display: table;
  54. clear: both;
  55. }
  56. .lb-loader {
  57. position: absolute;
  58. top: 43%;
  59. left: 0;
  60. height: 25%;
  61. width: 100%;
  62. text-align: center;
  63. line-height: 0;
  64. }
  65. .lb-cancel {
  66. display: block;
  67. width: 32px;
  68. height: 32px;
  69. margin: 0 auto;
  70. background: url(../images/loading.gif) no-repeat;
  71. }
  72. .lb-nav {
  73. position: absolute;
  74. top: 0;
  75. left: 0;
  76. height: 100%;
  77. width: 100%;
  78. z-index: 10;
  79. }
  80. .lb-container > .nav {
  81. left: 0;
  82. }
  83. .lb-nav a {
  84. outline: none;
  85. background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
  86. }
  87. .lb-prev, .lb-next {
  88. height: 100%;
  89. cursor: pointer;
  90. display: block;
  91. }
  92. .lb-nav a.lb-prev {
  93. width: 34%;
  94. left: 0;
  95. float: left;
  96. background: url(../images/prev.png) left 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: 64%;
  110. right: 0;
  111. float: right;
  112. background: url(../images/next.png) right 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: 85%;
  147. float: left;
  148. text-align: left;
  149. line-height: 1.1em;
  150. }
  151. .lb-data .lb-caption {
  152. font-size: 13px;
  153. font-weight: bold;
  154. line-height: 1em;
  155. }
  156. .lb-data .lb-caption a {
  157. color: #4ae;
  158. }
  159. .lb-data .lb-number {
  160. display: block;
  161. clear: left;
  162. padding-bottom: 1em;
  163. font-size: 12px;
  164. color: #999999;
  165. }
  166. .lb-data .lb-close {
  167. display: block;
  168. float: right;
  169. width: 30px;
  170. height: 30px;
  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. }