magnific-popup.css 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. /* Magnific Popup CSS */
  2. .mfp-bg {
  3. top: 0;
  4. left: 0;
  5. width: 100%;
  6. height: 100%;
  7. z-index: 2042;
  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: 2043;
  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: 2045; }
  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: 2044; }
  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: 2046;
  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: 100%;
  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: 56.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. background: #000; }
  216. /* Main image in popup */
  217. img.mfp-img {
  218. width: auto;
  219. max-width: 100%;
  220. height: auto;
  221. display: block;
  222. line-height: 0;
  223. box-sizing: border-box;
  224. padding: 40px 0 40px;
  225. margin: 0 auto; }
  226. /* The shadow behind the image */
  227. .mfp-figure {
  228. line-height: 0; }
  229. .mfp-figure:after {
  230. content: '';
  231. position: absolute;
  232. left: 0;
  233. top: 40px;
  234. bottom: 40px;
  235. display: block;
  236. right: 0;
  237. width: auto;
  238. height: auto;
  239. z-index: -1;
  240. box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  241. background: #444; }
  242. .mfp-figure small {
  243. color: #BDBDBD;
  244. display: block;
  245. font-size: 12px;
  246. line-height: 14px; }
  247. .mfp-figure figure {
  248. margin: 0; }
  249. .mfp-bottom-bar {
  250. margin-top: -36px;
  251. position: absolute;
  252. top: 100%;
  253. left: 0;
  254. width: 100%;
  255. cursor: auto; }
  256. .mfp-title {
  257. text-align: left;
  258. line-height: 18px;
  259. color: #F3F3F3;
  260. word-wrap: break-word;
  261. padding-right: 36px; }
  262. .mfp-image-holder .mfp-content {
  263. max-width: 100%; }
  264. .mfp-gallery .mfp-image-holder .mfp-figure {
  265. cursor: pointer; }
  266. @media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
  267. /**
  268. * Remove all paddings around the image on small screen
  269. */
  270. .mfp-img-mobile .mfp-image-holder {
  271. padding-left: 0;
  272. padding-right: 0; }
  273. .mfp-img-mobile img.mfp-img {
  274. padding: 0; }
  275. .mfp-img-mobile .mfp-figure:after {
  276. top: 0;
  277. bottom: 0; }
  278. .mfp-img-mobile .mfp-figure small {
  279. display: inline;
  280. margin-left: 5px; }
  281. .mfp-img-mobile .mfp-bottom-bar {
  282. background: rgba(0, 0, 0, 0.6);
  283. bottom: 0;
  284. margin: 0;
  285. top: auto;
  286. padding: 3px 5px;
  287. position: fixed;
  288. box-sizing: border-box; }
  289. .mfp-img-mobile .mfp-bottom-bar:empty {
  290. padding: 0; }
  291. .mfp-img-mobile .mfp-counter {
  292. right: 5px;
  293. top: 3px; }
  294. .mfp-img-mobile .mfp-close {
  295. top: 0;
  296. right: 0;
  297. width: 35px;
  298. height: 35px;
  299. line-height: 35px;
  300. background: rgba(0, 0, 0, 0.6);
  301. position: fixed;
  302. text-align: center;
  303. padding: 0; } }
  304. @media all and (max-width: 900px) {
  305. .mfp-arrow {
  306. -webkit-transform: scale(0.75);
  307. transform: scale(0.75); }
  308. .mfp-arrow-left {
  309. -webkit-transform-origin: 0;
  310. transform-origin: 0; }
  311. .mfp-arrow-right {
  312. -webkit-transform-origin: 100%;
  313. transform-origin: 100%; }
  314. .mfp-container {
  315. padding-left: 6px;
  316. padding-right: 6px; } }