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