magnific-popup.css 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. /* Magnific Popup CSS */
  2. .mfp-bg {
  3. top: 0;
  4. left: 0;
  5. width: 100%;
  6. height: 100%;
  7. z-index: 1042;
  8. overflow: hidden;
  9. position: fixed;
  10. background: #0b0b0b;
  11. opacity: 0.8; }
  12. .mfp-wrap {
  13. top: 0;
  14. left: 0;
  15. width: 100%;
  16. height: 100%;
  17. z-index: 1043;
  18. position: fixed;
  19. outline: none !important;
  20. -webkit-backface-visibility: hidden; }
  21. .mfp-container {
  22. text-align: center;
  23. position: absolute;
  24. width: 100%;
  25. height: 100%;
  26. left: 0;
  27. top: 0;
  28. padding: 0 8px;
  29. box-sizing: border-box; }
  30. .mfp-container:before {
  31. content: '';
  32. display: inline-block;
  33. height: 100%;
  34. vertical-align: middle; }
  35. .mfp-align-top .mfp-container:before {
  36. display: none; }
  37. .mfp-content {
  38. position: relative;
  39. display: inline-block;
  40. vertical-align: middle;
  41. margin: 0 auto;
  42. text-align: left;
  43. z-index: 1045; }
  44. .mfp-inline-holder .mfp-content,
  45. .mfp-ajax-holder .mfp-content {
  46. width: 100%;
  47. cursor: auto; }
  48. .mfp-ajax-cur {
  49. cursor: progress; }
  50. .mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  51. cursor: -moz-zoom-out;
  52. cursor: -webkit-zoom-out;
  53. cursor: zoom-out; }
  54. .mfp-zoom {
  55. cursor: pointer;
  56. cursor: -webkit-zoom-in;
  57. cursor: -moz-zoom-in;
  58. cursor: zoom-in; }
  59. .mfp-auto-cursor .mfp-content {
  60. cursor: auto; }
  61. .mfp-close,
  62. .mfp-arrow,
  63. .mfp-preloader,
  64. .mfp-counter {
  65. -webkit-user-select: none;
  66. -moz-user-select: none;
  67. user-select: none; }
  68. .mfp-loading.mfp-figure {
  69. display: none; }
  70. .mfp-hide {
  71. display: none !important; }
  72. .mfp-preloader {
  73. color: #CCC;
  74. position: absolute;
  75. top: 50%;
  76. width: auto;
  77. text-align: center;
  78. margin-top: -0.8em;
  79. left: 8px;
  80. right: 8px;
  81. z-index: 1044; }
  82. .mfp-preloader a {
  83. color: #CCC; }
  84. .mfp-preloader a:hover {
  85. color: #FFF; }
  86. .mfp-s-ready .mfp-preloader {
  87. display: none; }
  88. .mfp-s-error .mfp-content {
  89. display: none; }
  90. button.mfp-close,
  91. button.mfp-arrow {
  92. overflow: visible;
  93. cursor: pointer;
  94. background: transparent;
  95. border: 0;
  96. -webkit-appearance: none;
  97. display: block;
  98. outline: none;
  99. padding: 0;
  100. z-index: 1046;
  101. box-shadow: none;
  102. touch-action: manipulation; }
  103. button::-moz-focus-inner {
  104. padding: 0;
  105. border: 0; }
  106. .mfp-close {
  107. width: 44px;
  108. height: 44px;
  109. line-height: 44px;
  110. position: absolute;
  111. right: 0;
  112. top: 0;
  113. text-decoration: none;
  114. text-align: center;
  115. opacity: 0.65;
  116. padding: 0 0 18px 10px;
  117. color: #FFF;
  118. font-style: normal;
  119. font-size: 28px;
  120. font-family: Arial, Baskerville, monospace; }
  121. .mfp-close:hover,
  122. .mfp-close:focus {
  123. opacity: 1; }
  124. .mfp-close:active {
  125. top: 1px; }
  126. .mfp-close-btn-in .mfp-close {
  127. color: #333; }
  128. .mfp-image-holder .mfp-close,
  129. .mfp-iframe-holder .mfp-close {
  130. color: #FFF;
  131. right: -6px;
  132. text-align: right;
  133. padding-right: 6px;
  134. width: 100%; }
  135. .mfp-counter {
  136. position: absolute;
  137. top: 0;
  138. right: 0;
  139. color: #CCC;
  140. font-size: 12px;
  141. line-height: 18px;
  142. white-space: nowrap; }
  143. .mfp-arrow {
  144. position: absolute;
  145. opacity: 0.65;
  146. margin: 0;
  147. top: 50%;
  148. margin-top: -55px;
  149. padding: 0;
  150. width: 90px;
  151. height: 110px;
  152. -webkit-tap-highlight-color: transparent; }
  153. .mfp-arrow:active {
  154. margin-top: -54px; }
  155. .mfp-arrow:hover,
  156. .mfp-arrow:focus {
  157. opacity: 1; }
  158. .mfp-arrow:before,
  159. .mfp-arrow:after {
  160. content: '';
  161. display: block;
  162. width: 0;
  163. height: 0;
  164. position: absolute;
  165. left: 0;
  166. top: 0;
  167. margin-top: 35px;
  168. margin-left: 35px;
  169. border: medium inset transparent; }
  170. .mfp-arrow:after {
  171. border-top-width: 13px;
  172. border-bottom-width: 13px;
  173. top: 8px; }
  174. .mfp-arrow:before {
  175. border-top-width: 21px;
  176. border-bottom-width: 21px;
  177. opacity: 0.7; }
  178. .mfp-arrow-left {
  179. left: 0; }
  180. .mfp-arrow-left:after {
  181. border-right: 17px solid #FFF;
  182. margin-left: 31px; }
  183. .mfp-arrow-left:before {
  184. margin-left: 25px;
  185. border-right: 27px solid #3F3F3F; }
  186. .mfp-arrow-right {
  187. right: 0; }
  188. .mfp-arrow-right:after {
  189. border-left: 17px solid #FFF;
  190. margin-left: 39px; }
  191. .mfp-arrow-right:before {
  192. border-left: 27px solid #3F3F3F; }
  193. .mfp-iframe-holder {
  194. padding-top: 40px;
  195. padding-bottom: 40px; }
  196. .mfp-iframe-holder .mfp-content {
  197. line-height: 0;
  198. width: 200px;
  199. max-width: 900px; }
  200. .mfp-iframe-holder .mfp-close {
  201. top: -40px; }
  202. .mfp-iframe-scaler {
  203. width: 100%;
  204. height: 0;
  205. overflow: hidden;
  206. padding-top: 64.25%; }
  207. .mfp-iframe-scaler iframe {
  208. position: absolute;
  209. display: block;
  210. top: 0;
  211. left: 0;
  212. width: 100%;
  213. height: 100%;
  214. box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  215. opacity: 0;
  216. background: #000; }
  217. /* Main image in popup */
  218. img.mfp-img {
  219. width: auto;
  220. max-width: 100%;
  221. height: auto;
  222. display: block;
  223. line-height: 0;
  224. box-sizing: border-box;
  225. padding: 40px 0 40px;
  226. margin: 0 auto; }
  227. /* The shadow behind the image */
  228. .mfp-figure {
  229. line-height: 0; }
  230. .mfp-figure:after {
  231. content: '';
  232. position: absolute;
  233. left: 0;
  234. top: 40px;
  235. bottom: 40px;
  236. display: block;
  237. right: 0;
  238. width: auto;
  239. height: auto;
  240. z-index: -1;
  241. box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  242. background: #444; }
  243. .mfp-figure small {
  244. color: #BDBDBD;
  245. display: block;
  246. font-size: 12px;
  247. line-height: 14px; }
  248. .mfp-figure figure {
  249. margin: 0; }
  250. .mfp-bottom-bar {
  251. margin-top: -36px;
  252. position: absolute;
  253. top: 100%;
  254. left: 0;
  255. width: 100%;
  256. cursor: auto; }
  257. .mfp-title {
  258. text-align: left;
  259. line-height: 18px;
  260. color: #F3F3F3;
  261. word-wrap: break-word;
  262. padding-right: 36px; }
  263. .mfp-image-holder .mfp-content {
  264. max-width: 100%; }
  265. .mfp-gallery .mfp-image-holder .mfp-figure {
  266. cursor: pointer; }
  267. @media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
  268. /**
  269. * Remove all paddings around the image on small screen
  270. */
  271. .mfp-img-mobile .mfp-image-holder {
  272. padding-left: 0;
  273. padding-right: 0; }
  274. .mfp-img-mobile img.mfp-img {
  275. padding: 0; }
  276. .mfp-img-mobile .mfp-figure:after {
  277. top: 0;
  278. bottom: 0; }
  279. .mfp-img-mobile .mfp-figure small {
  280. display: inline;
  281. margin-left: 5px; }
  282. .mfp-img-mobile .mfp-bottom-bar {
  283. background: rgba(0, 0, 0, 0.6);
  284. bottom: 0;
  285. margin: 0;
  286. top: auto;
  287. padding: 3px 5px;
  288. position: fixed;
  289. box-sizing: border-box; }
  290. .mfp-img-mobile .mfp-bottom-bar:empty {
  291. padding: 0; }
  292. .mfp-img-mobile .mfp-counter {
  293. right: 5px;
  294. top: 3px; }
  295. .mfp-img-mobile .mfp-close {
  296. top: 0;
  297. right: 0;
  298. width: 35px;
  299. height: 35px;
  300. line-height: 35px;
  301. background: rgba(0, 0, 0, 0.6);
  302. position: fixed;
  303. text-align: center;
  304. padding: 0; } }
  305. @media all and (max-width: 900px) {
  306. .mfp-arrow {
  307. -webkit-transform: scale(0.75);
  308. transform: scale(0.75); }
  309. .mfp-arrow-left {
  310. -webkit-transform-origin: 0;
  311. transform-origin: 0; }
  312. .mfp-arrow-right {
  313. -webkit-transform-origin: 100%;
  314. transform-origin: 100%; }
  315. .mfp-container {
  316. padding-left: 6px;
  317. padding-right: 6px; } }
  318. .mfp-preloader {
  319. width: 30px;
  320. height: 30px;
  321. background-color: #FFF;
  322. opacity: 0.65;
  323. margin: 0 auto;
  324. -webkit-animation: rotateplane 1.2s infinite ease-in-out;
  325. animation: rotateplane 1.2s infinite ease-in-out;
  326. z-index: 99999;
  327. }
  328. @-webkit-keyframes rotateplane {
  329. 0% { -webkit-transform: perspective(120px) }
  330. 50% { -webkit-transform: perspective(120px) rotateY(180deg) }
  331. 100% { -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg) }
  332. }
  333. @keyframes rotateplane {
  334. 0% { transform: perspective(120px) rotateX(0deg) rotateY(0deg) }
  335. 50% { transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg) }
  336. 100% { transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg) }
  337. }