swipebox.css 4.9 KB

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