lightbox.css 3.8 KB

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