magnific.css 7.3 KB

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