magnific-popup.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  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: #CCC;
  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: #CCC; }
  87. .mfp-preloader a:hover {
  88. color: #FFF; }
  89. .mfp-s-ready .mfp-preloader {
  90. display: none; }
  91. .mfp-s-error .mfp-content {
  92. display: none; }
  93. button.mfp-close,
  94. button.mfp-arrow {
  95. overflow: visible;
  96. cursor: pointer;
  97. background: transparent;
  98. border: 0;
  99. -webkit-appearance: none;
  100. display: block;
  101. outline: none;
  102. padding: 0;
  103. z-index: 1046;
  104. -webkit-box-shadow: none;
  105. box-shadow: none; }
  106. button::-moz-focus-inner {
  107. padding: 0;
  108. border: 0; }
  109. .mfp-close {
  110. width: 44px;
  111. height: 44px;
  112. line-height: 44px;
  113. position: absolute;
  114. right: 0;
  115. top: 0;
  116. text-decoration: none;
  117. text-align: center;
  118. opacity: 0.65;
  119. filter: alpha(opacity=65);
  120. padding: 0 0 18px 10px;
  121. color: #FFF;
  122. font-style: normal;
  123. font-size: 28px;
  124. font-family: Arial, Baskerville, monospace; }
  125. .mfp-close:hover,
  126. .mfp-close:focus {
  127. opacity: 1;
  128. filter: alpha(opacity=100); }
  129. .mfp-close:active {
  130. top: 1px; }
  131. .mfp-close-btn-in .mfp-close {
  132. color: #333; }
  133. .mfp-image-holder .mfp-close,
  134. .mfp-iframe-holder .mfp-close {
  135. color: #FFF;
  136. right: -6px;
  137. text-align: right;
  138. padding-right: 6px;
  139. width: 100%; }
  140. .mfp-counter {
  141. position: absolute;
  142. top: 0;
  143. right: 0;
  144. color: #CCC;
  145. font-size: 12px;
  146. line-height: 18px;
  147. white-space: nowrap; }
  148. .mfp-arrow {
  149. position: absolute;
  150. opacity: 0.65;
  151. filter: alpha(opacity=65);
  152. margin: 0;
  153. top: 50%;
  154. margin-top: -55px;
  155. padding: 0;
  156. width: 90px;
  157. height: 110px;
  158. -webkit-tap-highlight-color: transparent; }
  159. .mfp-arrow:active {
  160. margin-top: -54px; }
  161. .mfp-arrow:hover,
  162. .mfp-arrow:focus {
  163. opacity: 1;
  164. filter: alpha(opacity=100); }
  165. .mfp-arrow:before,
  166. .mfp-arrow:after,
  167. .mfp-arrow .mfp-b,
  168. .mfp-arrow .mfp-a {
  169. content: '';
  170. display: block;
  171. width: 0;
  172. height: 0;
  173. position: absolute;
  174. left: 0;
  175. top: 0;
  176. margin-top: 35px;
  177. margin-left: 35px;
  178. border: medium inset transparent; }
  179. .mfp-arrow:after,
  180. .mfp-arrow .mfp-a {
  181. border-top-width: 13px;
  182. border-bottom-width: 13px;
  183. top: 8px; }
  184. .mfp-arrow:before,
  185. .mfp-arrow .mfp-b {
  186. border-top-width: 21px;
  187. border-bottom-width: 21px;
  188. opacity: 0.7; }
  189. .mfp-arrow-left {
  190. left: 0; }
  191. .mfp-arrow-left:after,
  192. .mfp-arrow-left .mfp-a {
  193. border-right: 17px solid #FFF;
  194. margin-left: 31px; }
  195. .mfp-arrow-left:before,
  196. .mfp-arrow-left .mfp-b {
  197. margin-left: 25px;
  198. border-right: 27px solid #3F3F3F; }
  199. .mfp-arrow-right {
  200. right: 0; }
  201. .mfp-arrow-right:after,
  202. .mfp-arrow-right .mfp-a {
  203. border-left: 17px solid #FFF;
  204. margin-left: 39px; }
  205. .mfp-arrow-right:before,
  206. .mfp-arrow-right .mfp-b {
  207. border-left: 27px solid #3F3F3F; }
  208. .mfp-iframe-holder {
  209. padding-top: 40px;
  210. padding-bottom: 40px; }
  211. .mfp-iframe-holder .mfp-content {
  212. line-height: 0;
  213. width: 100%;
  214. max-width: 900px; }
  215. .mfp-iframe-holder .mfp-close {
  216. top: -40px; }
  217. .mfp-iframe-scaler {
  218. width: 100%;
  219. height: 0;
  220. overflow: hidden;
  221. padding-top: 56.25%; }
  222. .mfp-iframe-scaler iframe {
  223. position: absolute;
  224. display: block;
  225. top: 0;
  226. left: 0;
  227. width: 100%;
  228. height: 100%;
  229. box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  230. background: #000; }
  231. /* Main image in popup */
  232. img.mfp-img {
  233. width: auto;
  234. max-width: 100%;
  235. height: auto;
  236. display: block;
  237. line-height: 0;
  238. -webkit-box-sizing: border-box;
  239. -moz-box-sizing: border-box;
  240. box-sizing: border-box;
  241. padding: 40px 0 40px;
  242. margin: 0 auto; }
  243. /* The shadow behind the image */
  244. .mfp-figure {
  245. line-height: 0; }
  246. .mfp-figure:after {
  247. content: '';
  248. position: absolute;
  249. left: 0;
  250. top: 40px;
  251. bottom: 40px;
  252. display: block;
  253. right: 0;
  254. width: auto;
  255. height: auto;
  256. z-index: -1;
  257. box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  258. background: #444; }
  259. .mfp-figure small {
  260. color: #BDBDBD;
  261. display: block;
  262. font-size: 12px;
  263. line-height: 14px; }
  264. .mfp-figure figure {
  265. margin: 0; }
  266. .mfp-bottom-bar {
  267. margin-top: -36px;
  268. position: absolute;
  269. top: 100%;
  270. left: 0;
  271. width: 100%;
  272. cursor: auto; }
  273. .mfp-title {
  274. text-align: left;
  275. line-height: 18px;
  276. color: #F3F3F3;
  277. word-wrap: break-word;
  278. padding-right: 36px; }
  279. .mfp-image-holder .mfp-content {
  280. max-width: 100%; }
  281. .mfp-gallery .mfp-image-holder .mfp-figure {
  282. cursor: pointer; }
  283. @media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
  284. /**
  285. * Remove all paddings around the image on small screen
  286. */
  287. .mfp-img-mobile .mfp-image-holder {
  288. padding-left: 0;
  289. padding-right: 0; }
  290. .mfp-img-mobile img.mfp-img {
  291. padding: 0; }
  292. .mfp-img-mobile .mfp-figure:after {
  293. top: 0;
  294. bottom: 0; }
  295. .mfp-img-mobile .mfp-figure small {
  296. display: inline;
  297. margin-left: 5px; }
  298. .mfp-img-mobile .mfp-bottom-bar {
  299. background: rgba(0, 0, 0, 0.6);
  300. bottom: 0;
  301. margin: 0;
  302. top: auto;
  303. padding: 3px 5px;
  304. position: fixed;
  305. -webkit-box-sizing: border-box;
  306. -moz-box-sizing: border-box;
  307. box-sizing: border-box; }
  308. .mfp-img-mobile .mfp-bottom-bar:empty {
  309. padding: 0; }
  310. .mfp-img-mobile .mfp-counter {
  311. right: 5px;
  312. top: 3px; }
  313. .mfp-img-mobile .mfp-close {
  314. top: 0;
  315. right: 0;
  316. width: 35px;
  317. height: 35px;
  318. line-height: 35px;
  319. background: rgba(0, 0, 0, 0.6);
  320. position: fixed;
  321. text-align: center;
  322. padding: 0; } }
  323. @media all and (max-width: 900px) {
  324. .mfp-arrow {
  325. -webkit-transform: scale(0.75);
  326. transform: scale(0.75); }
  327. .mfp-arrow-left {
  328. -webkit-transform-origin: 0;
  329. transform-origin: 0; }
  330. .mfp-arrow-right {
  331. -webkit-transform-origin: 100%;
  332. transform-origin: 100%; }
  333. .mfp-container {
  334. padding-left: 6px;
  335. padding-right: 6px; } }
  336. .mfp-ie7 .mfp-img {
  337. padding: 0; }
  338. .mfp-ie7 .mfp-bottom-bar {
  339. width: 600px;
  340. left: 50%;
  341. margin-left: -300px;
  342. margin-top: 5px;
  343. padding-bottom: 5px; }
  344. .mfp-ie7 .mfp-container {
  345. padding: 0; }
  346. .mfp-ie7 .mfp-content {
  347. padding-top: 44px; }
  348. .mfp-ie7 .mfp-close {
  349. top: 0;
  350. right: 0;
  351. padding-top: 0; }