lightbox.css 3.5 KB

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