swipebox.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. .swipebox-overflow-hidden {
  2. overflow: hidden!important;
  3. }
  4. #swipebox-overlay img {
  5. border: none!important;
  6. }
  7. #swipebox-overlay {
  8. width: 100%;
  9. height: 100%;
  10. position: fixed;
  11. top: 0;
  12. left: 0;
  13. opacity: 0;
  14. z-index: 9999;
  15. overflow: hidden;
  16. display: none;
  17. -webkit-user-select: none;
  18. -moz-user-select: none;
  19. user-select: none;
  20. }
  21. #swipebox-slider {
  22. height: 100%;
  23. left: 0;
  24. top: 0;
  25. width: 100%;
  26. white-space: nowrap;
  27. position: absolute;
  28. }
  29. #swipebox-slider .slide {
  30. background: url(../images/loader.gif) no-repeat center center;
  31. height: 100%;
  32. line-height: 1px;
  33. text-align: center;
  34. width: 100%;
  35. display: inline-block;
  36. }
  37. #swipebox-slider .slide:before {
  38. content: "";
  39. display: inline-block;
  40. height: 50%;
  41. width: 1px;
  42. margin-right: -1px;
  43. }
  44. #swipebox-slider .slide img {
  45. display: inline-block;
  46. max-height: 100%;
  47. max-width: 100%;
  48. width: auto;
  49. height: auto;
  50. vertical-align: middle;
  51. }
  52. #swipebox-action, #swipebox-caption {
  53. position: absolute;
  54. left: 0;
  55. z-index: 999;
  56. height: 50px;
  57. width: 100%;
  58. }
  59. #swipebox-action {
  60. bottom: -50px;
  61. }
  62. #swipebox-action.visible-bars {
  63. bottom: 0;
  64. }
  65. #swipebox-action.force-visible-bars {
  66. bottom: 0!important;
  67. }
  68. #swipebox-caption {
  69. top: -50px;
  70. text-align: center;
  71. }
  72. #swipebox-caption.visible-bars {
  73. top: 0;
  74. }
  75. #swipebox-caption.force-visible-bars {
  76. top: 0!important;
  77. }
  78. #swipebox-action #swipebox-prev, #swipebox-action #swipebox-next,
  79. #swipebox-action #swipebox-close {
  80. background-image: url(../images/icons.png);
  81. background-repeat: no-repeat;
  82. border: none!important;
  83. text-decoration: none!important;
  84. cursor: pointer;
  85. position: absolute;
  86. width: 50px;
  87. height: 50px;
  88. top: 0;
  89. }
  90. #swipebox-action #swipebox-close {
  91. background-position: 15px 12px;
  92. left: 40px;
  93. }
  94. #swipebox-action #swipebox-prev {
  95. background-position: -32px 13px;
  96. right: 100px;
  97. }
  98. #swipebox-action #swipebox-next {
  99. background-position: -78px 13px;
  100. right: 40px;
  101. }
  102. #swipebox-action #swipebox-prev.disabled,
  103. #swipebox-action #swipebox-next.disabled {
  104. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=30);
  105. opacity: 0.3;
  106. }
  107. #swipebox-slider.rightSpring {
  108. -moz-animation: rightSpring 0.3s;
  109. -webkit-animation: rightSpring 0.3s;
  110. }
  111. #swipebox-slider.leftSpring {
  112. -moz-animation: leftSpring 0.3s;
  113. -webkit-animation: leftSpring 0.3s;
  114. }
  115. @-moz-keyframes rightSpring {
  116. 0% {
  117. margin-left: 0px;
  118. }
  119. 50% {
  120. margin-left: -30px;
  121. }
  122. 100% {
  123. margin-left: 0px;
  124. }
  125. }
  126. @-moz-keyframes leftSpring {
  127. 0% {
  128. margin-left: 0px;
  129. }
  130. 50% {
  131. margin-left: 30px;
  132. }
  133. 100% {
  134. margin-left: 0px;
  135. }
  136. }
  137. @-webkit-keyframes rightSpring {
  138. 0% {
  139. margin-left: 0px;
  140. }
  141. 50% {
  142. margin-left: -30px;
  143. }
  144. 100% {
  145. margin-left: 0px;
  146. }
  147. }
  148. @-webkit-keyframes leftSpring {
  149. 0% {
  150. margin-left: 0px;
  151. }
  152. 50% {
  153. margin-left: 30px;
  154. }
  155. 100% {
  156. margin-left: 0px;
  157. }
  158. }
  159. /* Skin
  160. --------------------------*/
  161. #swipebox-overlay {
  162. background: #000;
  163. }
  164. #swipebox-action, #swipebox-caption {
  165. text-shadow: 1px 1px 1px black;
  166. background-color: #0d0d0d;
  167. background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #0d0d0d), color-stop(100%, #000000));
  168. background-image: -webkit-linear-gradient(#0d0d0d, #000000);
  169. background-image: -moz-linear-gradient(#0d0d0d, #000000);
  170. background-image: -o-linear-gradient(#0d0d0d, #000000);
  171. background-image: linear-gradient(#0d0d0d, #000000);
  172. -webkit-box-shadow: 0 1px 1px 1px #212121, inset 0 1px 1px 1px black;
  173. -moz-box-shadow: 0 1px 1px 1px #212121, inset 0 1px 1px 1px black;
  174. box-shadow: 0 1px 1px 1px #212121, inset 0 1px 1px 1px black;
  175. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=95);
  176. opacity: 0.95;
  177. }
  178. #swipebox-action {
  179. -webkit-box-shadow: 0 -1px -1px 1px #212121, inset 0 -1px -1px 1px black;
  180. -moz-box-shadow: 0 -1px -1px 1px #212121, inset 0 -1px -1px 1px black;
  181. box-shadow: 0 -1px -1px 1px #212121, inset 0 -1px -1px 1px black;
  182. }
  183. #swipebox-caption {
  184. color: white!important;
  185. font-size: 15px;
  186. line-height: 43px;
  187. font-family: Helvetica, Arial, sans-serif;
  188. }