simple-lightbox.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. /*!
  2. By André Rinas, www.andrerinas.de
  3. Documentation, www.simplelightbox.com
  4. Available for use under the MIT License
  5. Version 2.14.0
  6. */
  7. body.hidden-scroll {
  8. overflow: hidden;
  9. }
  10. .sl-overlay {
  11. position: fixed;
  12. left: 0;
  13. right: 0;
  14. top: 0;
  15. bottom: 0;
  16. background: #fff;
  17. display: none;
  18. z-index: 1035;
  19. }
  20. .sl-wrapper {
  21. z-index: 1040;
  22. width: 100%;
  23. height: 100%;
  24. left: 0;
  25. top: 0;
  26. position: fixed;
  27. }
  28. .sl-wrapper * {
  29. box-sizing: border-box;
  30. }
  31. .sl-wrapper button {
  32. border: 0 none;
  33. background: transparent;
  34. font-size: 28px;
  35. padding: 0;
  36. cursor: pointer;
  37. }
  38. .sl-wrapper button:hover {
  39. opacity: 0.7;
  40. }
  41. .sl-wrapper .sl-close {
  42. display: none;
  43. position: fixed;
  44. right: 27%;
  45. top: 30px;
  46. z-index: 90;
  47. margin-top: -14px;
  48. margin-right: -14px;
  49. height: 44px;
  50. width: 44px;
  51. line-height: 44px;
  52. font-family: Arial, Baskerville, monospace;
  53. color: #000;
  54. font-size: 3rem;
  55. background: #f3f3f3;
  56. border-radius: 20px;
  57. }
  58. .sl-wrapper .sl-counter {
  59. display: none;
  60. position: fixed;
  61. top: 30px;
  62. left: 27%;
  63. z-index: 90;
  64. color: #000;
  65. font-size: 2rem;
  66. }
  67. .sl-wrapper .sl-download {
  68. display: none;
  69. position: fixed;
  70. bottom: 5px;
  71. width: 100%;
  72. text-align: center;
  73. z-index: 10060;
  74. color: #fff;
  75. font-size: 1rem;
  76. }
  77. .sl-wrapper .sl-download a {
  78. color: #fff;
  79. }
  80. .sl-wrapper .sl-navigation {
  81. width: 100%;
  82. display: none;
  83. }
  84. .sl-wrapper .sl-navigation button {
  85. position: fixed;
  86. top: 50%;
  87. margin-top: -22px;
  88. height: 48px;
  89. width: 22px;
  90. line-height: 44px;
  91. text-align: center;
  92. display: block;
  93. z-index: 10060;
  94. font-family: Arial, Baskerville, monospace;
  95. color: #000;
  96. }
  97. .sl-wrapper .sl-navigation button.sl-next {
  98. right: 5px;
  99. font-size: 2rem;
  100. }
  101. .sl-wrapper .sl-navigation button.sl-prev {
  102. left: 5px;
  103. font-size: 2rem;
  104. }
  105. @media (min-width: 35.5em) {
  106. .sl-wrapper .sl-navigation button {
  107. width: 44px;
  108. }
  109. .sl-wrapper .sl-navigation button.sl-next {
  110. right: 10px;
  111. font-size: 3rem;
  112. }
  113. .sl-wrapper .sl-navigation button.sl-prev {
  114. left: 10px;
  115. font-size: 3rem;
  116. }
  117. }
  118. @media (min-width: 50em) {
  119. .sl-wrapper .sl-navigation button {
  120. width: 44px;
  121. }
  122. .sl-wrapper .sl-navigation button.sl-next {
  123. right: 26%;
  124. /*right: 100px;*/
  125. font-size: 3rem;
  126. background: #f3f3f3;
  127. border-radius: 20px;
  128. z-index: 90;
  129. }
  130. .sl-wrapper .sl-navigation button.sl-prev {
  131. left: 26%;
  132. /*left: 100px;*/
  133. background: #f3f3f3;
  134. border-radius: 20px;
  135. font-size: 3rem;
  136. z-index: 90;
  137. }
  138. }
  139. .sl-wrapper.sl-dir-rtl .sl-navigation {
  140. direction: ltr;
  141. }
  142. .sl-wrapper .sl-image {
  143. position: fixed;
  144. -ms-touch-action: none;
  145. touch-action: none;
  146. z-index: 10000;
  147. }
  148. .sl-wrapper .sl-image img {
  149. margin: 0;
  150. padding: 0;
  151. display: block;
  152. border: 0 none;
  153. width: 100%;
  154. height: auto;
  155. box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
  156. position: relative;
  157. z-index: 1009999;
  158. }
  159. @media (min-width: 35.5em) {
  160. .sl-wrapper .sl-image img {
  161. border: 0 none;
  162. }
  163. }
  164. @media (min-width: 50em) {
  165. .sl-wrapper .sl-image img {
  166. border: 0 none;
  167. }
  168. }
  169. .sl-wrapper .sl-image iframe {
  170. background: #000;
  171. border: 0 none;
  172. }
  173. @media (min-width: 35.5em) {
  174. .sl-wrapper .sl-image iframe {
  175. border: 0 none;
  176. }
  177. }
  178. @media (min-width: 50em) {
  179. .sl-wrapper .sl-image iframe {
  180. border: 0 none;
  181. }
  182. }
  183. .sl-wrapper .sl-image .sl-caption {
  184. display: none;
  185. padding: 10px;
  186. color: #fff;
  187. background: rgba(0, 0, 0, 0.8);
  188. font-size: 1rem;
  189. position: absolute;
  190. bottom: 0;
  191. left: 0;
  192. right: 0;
  193. }
  194. .sl-wrapper .sl-image .sl-caption.pos-top {
  195. bottom: auto;
  196. top: 0;
  197. }
  198. .sl-wrapper .sl-image .sl-caption.pos-outside {
  199. bottom: auto;
  200. }
  201. .sl-spinner {
  202. display: none;
  203. border: 5px solid #333;
  204. border-radius: 40px;
  205. height: 40px;
  206. left: 50%;
  207. margin: -20px 0 0 -20px;
  208. opacity: 0;
  209. position: fixed;
  210. top: 50%;
  211. width: 40px;
  212. z-index: 1007;
  213. -webkit-animation: pulsate 1s ease-out infinite;
  214. -moz-animation: pulsate 1s ease-out infinite;
  215. -ms-animation: pulsate 1s ease-out infinite;
  216. -o-animation: pulsate 1s ease-out infinite;
  217. animation: pulsate 1s ease-out infinite;
  218. }
  219. .sl-scrollbar-measure {
  220. position: absolute;
  221. top: -9999px;
  222. width: 50px;
  223. height: 50px;
  224. overflow: scroll;
  225. }
  226. .sl-transition {
  227. transition: -moz-transform ease 200ms;
  228. transition: -ms-transform ease 200ms;
  229. transition: -o-transform ease 200ms;
  230. transition: -webkit-transform ease 200ms;
  231. transition: transform ease 200ms;
  232. }
  233. @-webkit-keyframes pulsate {
  234. 0% {
  235. transform: scale(0.1);
  236. opacity: 0;
  237. }
  238. 50% {
  239. opacity: 1;
  240. }
  241. 100% {
  242. transform: scale(1.2);
  243. opacity: 0;
  244. }
  245. }
  246. @keyframes pulsate {
  247. 0% {
  248. transform: scale(0.1);
  249. opacity: 0;
  250. }
  251. 50% {
  252. opacity: 1;
  253. }
  254. 100% {
  255. transform: scale(1.2);
  256. opacity: 0;
  257. }
  258. }
  259. @-moz-keyframes pulsate {
  260. 0% {
  261. transform: scale(0.1);
  262. opacity: 0;
  263. }
  264. 50% {
  265. opacity: 1;
  266. }
  267. 100% {
  268. transform: scale(1.2);
  269. opacity: 0;
  270. }
  271. }
  272. @-o-keyframes pulsate {
  273. 0% {
  274. transform: scale(0.1);
  275. opacity: 0;
  276. }
  277. 50% {
  278. opacity: 1;
  279. }
  280. 100% {
  281. transform: scale(1.2);
  282. opacity: 0;
  283. }
  284. }
  285. @-ms-keyframes pulsate {
  286. 0% {
  287. transform: scale(0.1);
  288. opacity: 0;
  289. }
  290. 50% {
  291. opacity: 1;
  292. }
  293. 100% {
  294. transform: scale(1.2);
  295. opacity: 0;
  296. }
  297. }