swipebox.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. /*! Swipebox v1.2.8 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */
  2. html.swipebox-html.swipebox-touch {
  3. overflow: hidden !important;
  4. }
  5. #swipebox-overlay img {
  6. border: none !important;
  7. }
  8. #swipebox-overlay {
  9. width: 100%;
  10. height: 100%;
  11. position: fixed;
  12. top: 0;
  13. left: 0;
  14. z-index: 99999 !important;
  15. overflow: hidden;
  16. -webkit-user-select: none;
  17. -moz-user-select: none;
  18. -ms-user-select: none;
  19. user-select: none;
  20. }
  21. #swipebox-container {
  22. position: relative;
  23. width: 100%;
  24. height: 100%;
  25. }
  26. #swipebox-slider {
  27. -webkit-transition: -webkit-transform 0.4s ease;
  28. transition: transform 0.4s ease;
  29. height: 100%;
  30. left: 0;
  31. top: 0;
  32. width: 100%;
  33. white-space: nowrap;
  34. position: absolute;
  35. display: none;
  36. cursor: pointer;
  37. }
  38. #swipebox-slider .slide {
  39. height: 100%;
  40. width: 100%;
  41. line-height: 1px;
  42. text-align: center;
  43. display: inline-block;
  44. }
  45. #swipebox-slider .slide:before {
  46. content: "";
  47. display: inline-block;
  48. height: 43%;
  49. width: 1px;
  50. margin-right: -1px;
  51. }
  52. #swipebox-slider .slide img, #swipebox-slider .slide .swipebox-video-container {
  53. display: inline-block;
  54. max-height: 100%;
  55. max-width: 100%;
  56. margin: 0;
  57. padding: 0;
  58. width: auto;
  59. height: auto;
  60. vertical-align: middle;
  61. }
  62. #swipebox-slider .slide .swipebox-video-container {
  63. background: none;
  64. max-width: 1140px;
  65. max-height: 100%;
  66. width: 100%;
  67. padding: 5%;
  68. -webkit-box-sizing: border-box;
  69. box-sizing: border-box;
  70. -moz-box-sizing: border-box;
  71. }
  72. #swipebox-slider .slide .swipebox-video-container .swipebox-video {
  73. width: 100%;
  74. height: 0;
  75. padding-bottom: 56.25%;
  76. overflow: hidden;
  77. position: relative;
  78. }
  79. #swipebox-slider .slide .swipebox-video-container .swipebox-video iframe {
  80. width: 100% !important;
  81. height: 100% !important;
  82. position: absolute;
  83. top: 0;
  84. left: 0;
  85. }
  86. #swipebox-slider .slide-loading {
  87. background: url(../images/loader.gif) no-repeat center center;
  88. }
  89. #swipebox-bottom-bar,
  90. #swipebox-top-bar {
  91. -webkit-transition: 0.5s all;
  92. transition: 0.5s all;
  93. -moz-transition: 0.5s all;
  94. position: absolute;
  95. left: 0;
  96. z-index: 999;
  97. height: 50px;
  98. width: 100%;
  99. }
  100. #swipebox-bottom-bar {
  101. bottom: -50px;
  102. }
  103. #swipebox-bottom-bar.visible-bars {
  104. -webkit-transform: translate3d(0, -50px, 0);
  105. transform: translate3d(0, -50px, 0);
  106. -moz-transform: translate3d(0, -50px, 0);
  107. -o-transform: translate3d(0, -50px, 0);
  108. -ms-transform: translate3d(0, -50px, 0);
  109. }
  110. #swipebox-top-bar {
  111. bottom: 14%;
  112. }
  113. #swipebox-title {
  114. display: block;
  115. width: 45%;
  116. text-align: center;
  117. margin: 0 auto !important;
  118. }
  119. #swipebox-prev,
  120. #swipebox-next,
  121. #swipebox-close {
  122. background-image: url(../images/icons.png);
  123. background-repeat: no-repeat;
  124. border: none !important;
  125. text-decoration: none !important;
  126. cursor: pointer;
  127. width: 50px;
  128. height: 50px;
  129. top: 0;
  130. }
  131. #swipebox-arrows {
  132. display: block;
  133. margin: 0 auto;
  134. width: 100%;
  135. height: 50px;
  136. }
  137. #swipebox-prev {
  138. background-position: -32px 13px;
  139. float: left;
  140. }
  141. #swipebox-next {
  142. background-position: -78px 13px;
  143. float: right;
  144. }
  145. #swipebox-close {
  146. right: 50px;
  147. top: 12px;
  148. position: absolute;
  149. z-index: 9999;
  150. background-position: 15px 12px;
  151. }
  152. .swipebox-no-close-button #swipebox-close {
  153. display: none;
  154. }
  155. #swipebox-prev.disabled,
  156. #swipebox-next.disabled {
  157. opacity: 0.3;
  158. }
  159. .swipebox-no-touch #swipebox-overlay.rightSpring #swipebox-slider {
  160. -webkit-animation: rightSpring 0.3s;
  161. animation: rightSpring 0.3s;
  162. -moz-animation: rightSpring 0.3s;
  163. }
  164. .swipebox-no-touch #swipebox-overlay.leftSpring #swipebox-slider {
  165. -webkit-animation: leftSpring 0.3s;
  166. animation: leftSpring 0.3s;
  167. -moz-animation: leftSpring 0.3s;
  168. }
  169. .swipebox-touch #swipebox-container:before, .swipebox-touch #swipebox-container:after {
  170. -webkit-backface-visibility: hidden;
  171. backface-visibility: hidden;
  172. -webkit-transition: all .3s ease;
  173. transition: all .3s ease;
  174. -moz-transition: all .3s ease;
  175. content: ' ';
  176. position: absolute;
  177. z-index: 999;
  178. top: 0;
  179. height: 100%;
  180. width: 20px;
  181. opacity: 0;
  182. }
  183. .swipebox-touch #swipebox-container:before {
  184. left: 0;
  185. -webkit-box-shadow: inset 10px 0px 10px -8px #656565;
  186. box-shadow: inset 10px 0px 10px -8px #656565;
  187. -moz-box-shadow: inset 10px 0px 10px -8px #656565;
  188. }
  189. .swipebox-touch #swipebox-container:after {
  190. right: 0;
  191. -webkit-box-shadow: inset -10px 0px 10px -8px #656565;
  192. box-shadow: inset -10px 0px 10px -8px #656565;
  193. -moz-box-shadow: inset -10px 0px 10px -8px #656565;
  194. }
  195. .swipebox-touch #swipebox-overlay.leftSpringTouch #swipebox-container:before {
  196. opacity: 1;
  197. }
  198. .swipebox-touch #swipebox-overlay.rightSpringTouch #swipebox-container:after {
  199. opacity: 1;
  200. }
  201. @-webkit-keyframes rightSpring {
  202. 0% {
  203. left: 0;
  204. }
  205. 50% {
  206. left: -30px;
  207. }
  208. 100% {
  209. left: 0;
  210. }
  211. }
  212. @keyframes rightSpring {
  213. 0% {
  214. left: 0;
  215. }
  216. 50% {
  217. left: -30px;
  218. }
  219. 100% {
  220. left: 0;
  221. }
  222. }
  223. @-webkit-keyframes leftSpring {
  224. 0% {
  225. left: 0;
  226. }
  227. 50% {
  228. left: 30px;
  229. }
  230. 100% {
  231. left: 0;
  232. }
  233. }
  234. @keyframes leftSpring {
  235. 0% {
  236. left: 0;
  237. }
  238. 50% {
  239. left: 30px;
  240. }
  241. 100% {
  242. left: 0;
  243. }
  244. }
  245. @media screen and (min-width: 800px) {
  246. #swipebox-close {
  247. right: 50px;
  248. top: 12px;
  249. }
  250. #swipebox-arrows {
  251. width: 80%;
  252. max-width: 800px;
  253. }
  254. }
  255. /* Skin
  256. --------------------------*/
  257. #swipebox-overlay {
  258. background: #0d0d0d;
  259. }
  260. #swipebox-bottom-bar,
  261. #swipebox-top-bar {
  262. opacity: 1;
  263. }
  264. #swipebox-top-bar {
  265. color: white !important;
  266. font-size: 15px;
  267. line-height: 30px;
  268. }
  269. @media(max-width:1366px){
  270. #swipebox-top-bar {
  271. bottom: 20%;
  272. }
  273. }
  274. @media(max-width:1080px){
  275. #swipebox-title {
  276. width: 61%;
  277. line-height: 1.8em;
  278. margin: 1em auto 0 !important;
  279. }
  280. }
  281. @media(max-width:768px){
  282. #swipebox-title {
  283. width: 75%;
  284. }
  285. #swipebox-arrows {
  286. width: 83%;
  287. }
  288. }
  289. @media(max-width:667px){
  290. #swipebox-slider .slide img, #swipebox-slider .slide .swipebox-video-container {
  291. max-width: 80%;
  292. }
  293. #swipebox-title {
  294. width: 82%;
  295. font-size: 14px;
  296. font-weight: 300;
  297. }
  298. }
  299. @media(max-width:640px){
  300. #swipebox-title {
  301. width: 82%;
  302. font-size: .9em;
  303. }
  304. #swipebox-arrows {
  305. width: 80%;
  306. }
  307. }
  308. @media(max-width:480px){
  309. #swipebox-title {
  310. width: 85%;
  311. }
  312. #swipebox-close {
  313. right: 30px;
  314. }
  315. #swipebox-slider .slide img, #swipebox-slider .slide .swipebox-video-container {
  316. max-width: 100%;
  317. }
  318. #swipebox-container {
  319. width: 97%;
  320. }
  321. }
  322. @media(max-width:414px){
  323. #swipebox-container {
  324. width: 96%;
  325. }
  326. }
  327. @media(max-width:384px){
  328. #swipebox-top-bar {
  329. bottom: 23%;
  330. }
  331. }