mirror of
https://github.com/dimsemenov/Magnific-Popup.git
synced 2025-12-14 20:36:04 +01:00
1.2.0 build
This commit is contained in:
168
dist/jquery.magnific-popup.js
vendored
168
dist/jquery.magnific-popup.js
vendored
@@ -1,6 +1,6 @@
|
||||
/*! Magnific Popup - v1.1.0 - 2016-02-20
|
||||
/*! Magnific Popup - v1.2.0 - 2024-06-08
|
||||
* http://dimsemenov.com/plugins/magnific-popup/
|
||||
* Copyright (c) 2016 Dmitry Semenov; */
|
||||
* Copyright (c) 2024 Dmytro Semenov; */
|
||||
;(function (factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
@@ -83,7 +83,7 @@ var _mfpOn = function(name, f) {
|
||||
// converts "mfpEventName" to "eventName" callback and triggers it if it's present
|
||||
e = e.charAt(0).toLowerCase() + e.slice(1);
|
||||
if(mfp.st.callbacks[e]) {
|
||||
mfp.st.callbacks[e].apply(mfp, $.isArray(data) ? data : [data]);
|
||||
mfp.st.callbacks[e].apply(mfp, Array.isArray(data) ? data : [data]);
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -175,7 +175,7 @@ MagnificPopup.prototype = {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
mfp.items = $.isArray(data.items) ? data.items : [data.items];
|
||||
mfp.items = Array.isArray(data.items) ? data.items : [data.items];
|
||||
mfp.index = data.index || 0;
|
||||
}
|
||||
|
||||
@@ -641,7 +641,7 @@ MagnificPopup.prototype = {
|
||||
var disableOn = options.disableOn !== undefined ? options.disableOn : $.magnificPopup.defaults.disableOn;
|
||||
|
||||
if(disableOn) {
|
||||
if($.isFunction(disableOn)) {
|
||||
if(typeof disableOn === "function") {
|
||||
if( !disableOn.call(mfp) ) {
|
||||
return true;
|
||||
}
|
||||
@@ -693,7 +693,11 @@ MagnificPopup.prototype = {
|
||||
status = data.status;
|
||||
text = data.text;
|
||||
|
||||
mfp.preloader.html(text);
|
||||
if (mfp.st.allowHTMLInStatusIndicator) {
|
||||
mfp.preloader.html(text);
|
||||
} else {
|
||||
mfp.preloader.text(text);
|
||||
}
|
||||
|
||||
mfp.preloader.find('a').on('click', function(e) {
|
||||
e.stopImmediatePropagation();
|
||||
@@ -712,7 +716,7 @@ MagnificPopup.prototype = {
|
||||
// "target" is an element that was clicked
|
||||
_checkIfClose: function(target) {
|
||||
|
||||
if($(target).hasClass(PREVENT_CLOSE_CLASS)) {
|
||||
if($(target).closest('.' + PREVENT_CLOSE_CLASS).length) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -724,7 +728,7 @@ MagnificPopup.prototype = {
|
||||
} else {
|
||||
|
||||
// We close the popup if click is on close button or on preloader. Or if there is no content.
|
||||
if(!mfp.content || $(target).hasClass('mfp-close') || (mfp.preloader && target === mfp.preloader[0]) ) {
|
||||
if(!mfp.content || $(target).closest('.mfp-close').length || (mfp.preloader && target === mfp.preloader[0]) ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -796,7 +800,11 @@ MagnificPopup.prototype = {
|
||||
}
|
||||
|
||||
} else {
|
||||
template.find(EVENT_NS + '-'+key).html(value);
|
||||
if (mfp.st.allowHTMLInTemplate) {
|
||||
template.find(EVENT_NS + '-'+key).html(value);
|
||||
} else {
|
||||
template.find(EVENT_NS + '-'+key).text(value);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -899,7 +907,11 @@ $.magnificPopup = {
|
||||
|
||||
tLoading: 'Loading...',
|
||||
|
||||
autoFocusLast: true
|
||||
autoFocusLast: true,
|
||||
|
||||
allowHTMLInStatusIndicator: false,
|
||||
|
||||
allowHTMLInTemplate: false
|
||||
|
||||
}
|
||||
};
|
||||
@@ -1047,7 +1059,7 @@ $.magnificPopup.registerModule(AJAX_NS, {
|
||||
options: {
|
||||
settings: null,
|
||||
cursor: 'mfp-ajax-cur',
|
||||
tError: '<a href="%url%">The content</a> could not be loaded.'
|
||||
tError: 'The content could not be loaded.'
|
||||
},
|
||||
|
||||
proto: {
|
||||
@@ -1117,7 +1129,7 @@ var _imgInterval,
|
||||
var src = mfp.st.image.titleSrc;
|
||||
|
||||
if(src) {
|
||||
if($.isFunction(src)) {
|
||||
if(typeof src === "function") {
|
||||
return src.call(mfp, item);
|
||||
} else if(item.el) {
|
||||
return item.el.attr(src) || '';
|
||||
@@ -1144,7 +1156,7 @@ $.magnificPopup.registerModule('image', {
|
||||
cursor: 'mfp-zoom-out-cur',
|
||||
titleSrc: 'title',
|
||||
verticalFit: true,
|
||||
tError: '<a href="%url%">The image</a> could not be loaded.'
|
||||
tError: 'The image could not be loaded.'
|
||||
},
|
||||
|
||||
proto: {
|
||||
@@ -1249,6 +1261,23 @@ $.magnificPopup.registerModule('image', {
|
||||
|
||||
var guard = 0,
|
||||
|
||||
imgSt = mfp.st.image,
|
||||
|
||||
// image error handler
|
||||
onLoadError = function() {
|
||||
if(item) {
|
||||
item.img.off('.mfploader');
|
||||
if(item === mfp.currItem){
|
||||
mfp._onImageHasSize(item);
|
||||
mfp.updateStatus('error', imgSt.tError.replace('%url%', item.src) );
|
||||
}
|
||||
|
||||
item.hasSize = true;
|
||||
item.loaded = true;
|
||||
item.loadError = true;
|
||||
}
|
||||
},
|
||||
|
||||
// image load complete handler
|
||||
onLoadComplete = function() {
|
||||
if(item) {
|
||||
@@ -1277,23 +1306,8 @@ $.magnificPopup.registerModule('image', {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// image error handler
|
||||
onLoadError = function() {
|
||||
if(item) {
|
||||
item.img.off('.mfploader');
|
||||
if(item === mfp.currItem){
|
||||
mfp._onImageHasSize(item);
|
||||
mfp.updateStatus('error', imgSt.tError.replace('%url%', item.src) );
|
||||
}
|
||||
|
||||
item.hasSize = true;
|
||||
item.loaded = true;
|
||||
item.loadError = true;
|
||||
}
|
||||
},
|
||||
imgSt = mfp.st.image;
|
||||
};
|
||||
|
||||
|
||||
|
||||
var el = template.find('.mfp-img');
|
||||
@@ -1638,6 +1652,7 @@ $.magnificPopup.registerModule(IFRAME_NS, {
|
||||
if(iframeSt.srcAction) {
|
||||
dataObj[iframeSt.srcAction] = embedSrc;
|
||||
}
|
||||
|
||||
mfp._parseMarkup(template, dataObj, item);
|
||||
|
||||
mfp.updateStatus('ready');
|
||||
@@ -1679,7 +1694,10 @@ $.magnificPopup.registerModule('gallery', {
|
||||
|
||||
tPrev: 'Previous (Left arrow key)',
|
||||
tNext: 'Next (Right arrow key)',
|
||||
tCounter: '%curr% of %total%'
|
||||
tCounter: '%curr% of %total%',
|
||||
|
||||
langDir: null,
|
||||
loop: true,
|
||||
},
|
||||
|
||||
proto: {
|
||||
@@ -1691,6 +1709,10 @@ $.magnificPopup.registerModule('gallery', {
|
||||
mfp.direction = true; // true - next, false - prev
|
||||
|
||||
if(!gSt || !gSt.enabled ) return false;
|
||||
|
||||
if (!gSt.langDir) {
|
||||
gSt.langDir = document.dir || 'ltr';
|
||||
}
|
||||
|
||||
_wrapClasses += ' mfp-gallery';
|
||||
|
||||
@@ -1707,11 +1729,20 @@ $.magnificPopup.registerModule('gallery', {
|
||||
|
||||
_document.on('keydown'+ns, function(e) {
|
||||
if (e.keyCode === 37) {
|
||||
mfp.prev();
|
||||
if (gSt.langDir === 'rtl') mfp.next();
|
||||
else mfp.prev();
|
||||
} else if (e.keyCode === 39) {
|
||||
mfp.next();
|
||||
if (gSt.langDir === 'rtl') mfp.prev();
|
||||
else mfp.next();
|
||||
}
|
||||
});
|
||||
|
||||
mfp.updateGalleryButtons();
|
||||
|
||||
});
|
||||
|
||||
_mfpOn('UpdateStatus'+ns, function(/*e, data*/) {
|
||||
mfp.updateGalleryButtons();
|
||||
});
|
||||
|
||||
_mfpOn('UpdateStatus'+ns, function(e, data) {
|
||||
@@ -1727,18 +1758,44 @@ $.magnificPopup.registerModule('gallery', {
|
||||
|
||||
_mfpOn('BuildControls' + ns, function() {
|
||||
if(mfp.items.length > 1 && gSt.arrows && !mfp.arrowLeft) {
|
||||
var markup = gSt.arrowMarkup,
|
||||
arrowLeft = mfp.arrowLeft = $( markup.replace(/%title%/gi, gSt.tPrev).replace(/%dir%/gi, 'left') ).addClass(PREVENT_CLOSE_CLASS),
|
||||
arrowRight = mfp.arrowRight = $( markup.replace(/%title%/gi, gSt.tNext).replace(/%dir%/gi, 'right') ).addClass(PREVENT_CLOSE_CLASS);
|
||||
|
||||
arrowLeft.click(function() {
|
||||
mfp.prev();
|
||||
var arrowLeftDesc, arrowRightDesc, arrowLeftAction, arrowRightAction;
|
||||
|
||||
if (gSt.langDir === 'rtl') {
|
||||
arrowLeftDesc = gSt.tNext;
|
||||
arrowRightDesc = gSt.tPrev;
|
||||
arrowLeftAction = 'next';
|
||||
arrowRightAction = 'prev';
|
||||
} else {
|
||||
arrowLeftDesc = gSt.tPrev;
|
||||
arrowRightDesc = gSt.tNext;
|
||||
arrowLeftAction = 'prev';
|
||||
arrowRightAction = 'next';
|
||||
}
|
||||
|
||||
var markup = gSt.arrowMarkup,
|
||||
arrowLeft = mfp.arrowLeft = $( markup.replace(/%title%/gi, arrowLeftDesc).replace(/%action%/gi, arrowLeftAction).replace(/%dir%/gi, 'left') ).addClass(PREVENT_CLOSE_CLASS),
|
||||
arrowRight = mfp.arrowRight = $( markup.replace(/%title%/gi, arrowRightDesc).replace(/%action%/gi, arrowRightAction).replace(/%dir%/gi, 'right') ).addClass(PREVENT_CLOSE_CLASS);
|
||||
|
||||
if (gSt.langDir === 'rtl') {
|
||||
mfp.arrowNext = arrowLeft;
|
||||
mfp.arrowPrev = arrowRight;
|
||||
} else {
|
||||
mfp.arrowNext = arrowRight;
|
||||
mfp.arrowPrev = arrowLeft;
|
||||
}
|
||||
|
||||
arrowLeft.on('click', function() {
|
||||
if (gSt.langDir === 'rtl') mfp.next();
|
||||
else mfp.prev();
|
||||
});
|
||||
arrowRight.click(function() {
|
||||
mfp.next();
|
||||
arrowRight.on('click', function() {
|
||||
if (gSt.langDir === 'rtl') mfp.prev();
|
||||
else mfp.next();
|
||||
});
|
||||
|
||||
mfp.container.append(arrowLeft.add(arrowRight));
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1760,13 +1817,17 @@ $.magnificPopup.registerModule('gallery', {
|
||||
|
||||
},
|
||||
next: function() {
|
||||
var newIndex = _getLoopedId(mfp.index + 1);
|
||||
if (!mfp.st.gallery.loop && newIndex === 0 ) return false;
|
||||
mfp.direction = true;
|
||||
mfp.index = _getLoopedId(mfp.index + 1);
|
||||
mfp.index = newIndex;
|
||||
mfp.updateItemHTML();
|
||||
},
|
||||
prev: function() {
|
||||
var newIndex = mfp.index - 1;
|
||||
if (!mfp.st.gallery.loop && newIndex < 0) return false;
|
||||
mfp.direction = false;
|
||||
mfp.index = _getLoopedId(mfp.index - 1);
|
||||
mfp.index = _getLoopedId(newIndex);
|
||||
mfp.updateItemHTML();
|
||||
},
|
||||
goTo: function(newIndex) {
|
||||
@@ -1813,10 +1874,31 @@ $.magnificPopup.registerModule('gallery', {
|
||||
|
||||
|
||||
item.preloaded = true;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Show/hide the gallery prev/next buttons if we're at the start/end, if looping is turned off
|
||||
* Added by Joloco for Veg
|
||||
*/
|
||||
updateGalleryButtons: function() {
|
||||
|
||||
if ( !mfp.st.gallery.loop && typeof mfp.arrowPrev === 'object' && mfp.arrowPrev !== null) {
|
||||
|
||||
if (mfp.index === 0) mfp.arrowPrev.hide();
|
||||
else mfp.arrowPrev.show();
|
||||
|
||||
if (mfp.index === (mfp.items.length - 1)) mfp.arrowNext.hide();
|
||||
else mfp.arrowNext.show();
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
/*>>gallery*/
|
||||
|
||||
/*>>retina*/
|
||||
|
||||
5
dist/jquery.magnific-popup.min.js
vendored
5
dist/jquery.magnific-popup.min.js
vendored
File diff suppressed because one or more lines are too long
334
dist/magnific-popup.css
vendored
334
dist/magnific-popup.css
vendored
@@ -8,7 +8,8 @@
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
background: #0b0b0b;
|
||||
opacity: 0.8; }
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.mfp-wrap {
|
||||
top: 0;
|
||||
@@ -18,7 +19,8 @@
|
||||
z-index: 1043;
|
||||
position: fixed;
|
||||
outline: none !important;
|
||||
-webkit-backface-visibility: hidden; }
|
||||
-webkit-backface-visibility: hidden;
|
||||
}
|
||||
|
||||
.mfp-container {
|
||||
text-align: center;
|
||||
@@ -28,16 +30,19 @@
|
||||
left: 0;
|
||||
top: 0;
|
||||
padding: 0 8px;
|
||||
box-sizing: border-box; }
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.mfp-container:before {
|
||||
content: '';
|
||||
content: "";
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
vertical-align: middle; }
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.mfp-align-top .mfp-container:before {
|
||||
display: none; }
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mfp-content {
|
||||
position: relative;
|
||||
@@ -45,29 +50,35 @@
|
||||
vertical-align: middle;
|
||||
margin: 0 auto;
|
||||
text-align: left;
|
||||
z-index: 1045; }
|
||||
z-index: 1045;
|
||||
}
|
||||
|
||||
.mfp-inline-holder .mfp-content,
|
||||
.mfp-ajax-holder .mfp-content {
|
||||
width: 100%;
|
||||
cursor: auto; }
|
||||
cursor: auto;
|
||||
}
|
||||
|
||||
.mfp-ajax-cur {
|
||||
cursor: progress; }
|
||||
cursor: progress;
|
||||
}
|
||||
|
||||
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
|
||||
cursor: -moz-zoom-out;
|
||||
cursor: -webkit-zoom-out;
|
||||
cursor: zoom-out; }
|
||||
cursor: zoom-out;
|
||||
}
|
||||
|
||||
.mfp-zoom {
|
||||
cursor: pointer;
|
||||
cursor: -webkit-zoom-in;
|
||||
cursor: -moz-zoom-in;
|
||||
cursor: zoom-in; }
|
||||
cursor: zoom-in;
|
||||
}
|
||||
|
||||
.mfp-auto-cursor .mfp-content {
|
||||
cursor: auto; }
|
||||
cursor: auto;
|
||||
}
|
||||
|
||||
.mfp-close,
|
||||
.mfp-arrow,
|
||||
@@ -75,13 +86,16 @@
|
||||
.mfp-counter {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none; }
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.mfp-loading.mfp-figure {
|
||||
display: none; }
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mfp-hide {
|
||||
display: none !important; }
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.mfp-preloader {
|
||||
color: #CCC;
|
||||
@@ -92,20 +106,24 @@
|
||||
margin-top: -0.8em;
|
||||
left: 8px;
|
||||
right: 8px;
|
||||
z-index: 1044; }
|
||||
.mfp-preloader a {
|
||||
color: #CCC; }
|
||||
.mfp-preloader a:hover {
|
||||
color: #FFF; }
|
||||
z-index: 1044;
|
||||
}
|
||||
.mfp-preloader a {
|
||||
color: #CCC;
|
||||
}
|
||||
.mfp-preloader a:hover {
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
.mfp-s-ready .mfp-preloader {
|
||||
display: none; }
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mfp-s-error .mfp-content {
|
||||
display: none; }
|
||||
display: none;
|
||||
}
|
||||
|
||||
button.mfp-close,
|
||||
button.mfp-arrow {
|
||||
button.mfp-close, button.mfp-arrow {
|
||||
overflow: visible;
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
@@ -116,11 +134,12 @@ button.mfp-arrow {
|
||||
padding: 0;
|
||||
z-index: 1046;
|
||||
box-shadow: none;
|
||||
touch-action: manipulation; }
|
||||
|
||||
touch-action: manipulation;
|
||||
}
|
||||
button::-moz-focus-inner {
|
||||
padding: 0;
|
||||
border: 0; }
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.mfp-close {
|
||||
width: 44px;
|
||||
@@ -136,15 +155,18 @@ button::-moz-focus-inner {
|
||||
color: #FFF;
|
||||
font-style: normal;
|
||||
font-size: 28px;
|
||||
font-family: Arial, Baskerville, monospace; }
|
||||
.mfp-close:hover,
|
||||
.mfp-close:focus {
|
||||
opacity: 1; }
|
||||
.mfp-close:active {
|
||||
top: 1px; }
|
||||
font-family: Arial, Baskerville, monospace;
|
||||
}
|
||||
.mfp-close:hover, .mfp-close:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
.mfp-close:active {
|
||||
top: 1px;
|
||||
}
|
||||
|
||||
.mfp-close-btn-in .mfp-close {
|
||||
color: #333; }
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.mfp-image-holder .mfp-close,
|
||||
.mfp-iframe-holder .mfp-close {
|
||||
@@ -152,7 +174,8 @@ button::-moz-focus-inner {
|
||||
right: -6px;
|
||||
text-align: right;
|
||||
padding-right: 6px;
|
||||
width: 100%; }
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mfp-counter {
|
||||
position: absolute;
|
||||
@@ -161,7 +184,8 @@ button::-moz-focus-inner {
|
||||
color: #CCC;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
white-space: nowrap; }
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mfp-arrow {
|
||||
position: absolute;
|
||||
@@ -172,74 +196,89 @@ button::-moz-focus-inner {
|
||||
padding: 0;
|
||||
width: 90px;
|
||||
height: 110px;
|
||||
-webkit-tap-highlight-color: transparent; }
|
||||
.mfp-arrow:active {
|
||||
margin-top: -54px; }
|
||||
.mfp-arrow:hover,
|
||||
.mfp-arrow:focus {
|
||||
opacity: 1; }
|
||||
.mfp-arrow:before,
|
||||
.mfp-arrow:after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
margin-top: 35px;
|
||||
margin-left: 35px;
|
||||
border: medium inset transparent; }
|
||||
.mfp-arrow:after {
|
||||
border-top-width: 13px;
|
||||
border-bottom-width: 13px;
|
||||
top: 8px; }
|
||||
.mfp-arrow:before {
|
||||
border-top-width: 21px;
|
||||
border-bottom-width: 21px;
|
||||
opacity: 0.7; }
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
.mfp-arrow:active {
|
||||
margin-top: -54px;
|
||||
}
|
||||
.mfp-arrow:hover, .mfp-arrow:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
.mfp-arrow:before, .mfp-arrow:after {
|
||||
content: "";
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
margin-top: 35px;
|
||||
margin-left: 35px;
|
||||
border: medium inset transparent;
|
||||
}
|
||||
.mfp-arrow:after {
|
||||
border-top-width: 13px;
|
||||
border-bottom-width: 13px;
|
||||
top: 8px;
|
||||
}
|
||||
.mfp-arrow:before {
|
||||
border-top-width: 21px;
|
||||
border-bottom-width: 21px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.mfp-arrow-left {
|
||||
left: 0; }
|
||||
.mfp-arrow-left:after {
|
||||
border-right: 17px solid #FFF;
|
||||
margin-left: 31px; }
|
||||
.mfp-arrow-left:before {
|
||||
margin-left: 25px;
|
||||
border-right: 27px solid #3F3F3F; }
|
||||
left: 0;
|
||||
}
|
||||
.mfp-arrow-left:after {
|
||||
border-right: 17px solid #FFF;
|
||||
margin-left: 31px;
|
||||
}
|
||||
.mfp-arrow-left:before {
|
||||
margin-left: 25px;
|
||||
border-right: 27px solid #3F3F3F;
|
||||
}
|
||||
|
||||
.mfp-arrow-right {
|
||||
right: 0; }
|
||||
.mfp-arrow-right:after {
|
||||
border-left: 17px solid #FFF;
|
||||
margin-left: 39px; }
|
||||
.mfp-arrow-right:before {
|
||||
border-left: 27px solid #3F3F3F; }
|
||||
right: 0;
|
||||
}
|
||||
.mfp-arrow-right:after {
|
||||
border-left: 17px solid #FFF;
|
||||
margin-left: 39px;
|
||||
}
|
||||
.mfp-arrow-right:before {
|
||||
border-left: 27px solid #3F3F3F;
|
||||
}
|
||||
|
||||
.mfp-iframe-holder {
|
||||
padding-top: 40px;
|
||||
padding-bottom: 40px; }
|
||||
.mfp-iframe-holder .mfp-content {
|
||||
line-height: 0;
|
||||
width: 100%;
|
||||
max-width: 900px; }
|
||||
.mfp-iframe-holder .mfp-close {
|
||||
top: -40px; }
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
.mfp-iframe-holder .mfp-content {
|
||||
line-height: 0;
|
||||
width: 100%;
|
||||
max-width: 900px;
|
||||
}
|
||||
.mfp-iframe-holder .mfp-close {
|
||||
top: -40px;
|
||||
}
|
||||
|
||||
.mfp-iframe-scaler {
|
||||
width: 100%;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
padding-top: 56.25%; }
|
||||
.mfp-iframe-scaler iframe {
|
||||
position: absolute;
|
||||
display: block;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
||||
background: #000; }
|
||||
padding-top: 56.25%;
|
||||
}
|
||||
.mfp-iframe-scaler iframe {
|
||||
position: absolute;
|
||||
display: block;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
||||
background: #000;
|
||||
}
|
||||
|
||||
/* Main image in popup */
|
||||
img.mfp-img {
|
||||
@@ -250,31 +289,36 @@ img.mfp-img {
|
||||
line-height: 0;
|
||||
box-sizing: border-box;
|
||||
padding: 40px 0 40px;
|
||||
margin: 0 auto; }
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* The shadow behind the image */
|
||||
.mfp-figure {
|
||||
line-height: 0; }
|
||||
.mfp-figure:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 40px;
|
||||
bottom: 40px;
|
||||
display: block;
|
||||
right: 0;
|
||||
width: auto;
|
||||
height: auto;
|
||||
z-index: -1;
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
||||
background: #444; }
|
||||
.mfp-figure small {
|
||||
color: #BDBDBD;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
line-height: 14px; }
|
||||
.mfp-figure figure {
|
||||
margin: 0; }
|
||||
line-height: 0;
|
||||
}
|
||||
.mfp-figure:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 40px;
|
||||
bottom: 40px;
|
||||
display: block;
|
||||
right: 0;
|
||||
width: auto;
|
||||
height: auto;
|
||||
z-index: -1;
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
||||
background: #444;
|
||||
}
|
||||
.mfp-figure small {
|
||||
color: #BDBDBD;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
}
|
||||
.mfp-figure figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.mfp-bottom-bar {
|
||||
margin-top: -36px;
|
||||
@@ -282,36 +326,44 @@ img.mfp-img {
|
||||
top: 100%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
cursor: auto; }
|
||||
cursor: auto;
|
||||
}
|
||||
|
||||
.mfp-title {
|
||||
text-align: left;
|
||||
line-height: 18px;
|
||||
color: #F3F3F3;
|
||||
word-wrap: break-word;
|
||||
padding-right: 36px; }
|
||||
padding-right: 36px;
|
||||
}
|
||||
|
||||
.mfp-image-holder .mfp-content {
|
||||
max-width: 100%; }
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.mfp-gallery .mfp-image-holder .mfp-figure {
|
||||
cursor: pointer; }
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
|
||||
/**
|
||||
* Remove all paddings around the image on small screen
|
||||
*/
|
||||
* Remove all paddings around the image on small screen
|
||||
*/
|
||||
.mfp-img-mobile .mfp-image-holder {
|
||||
padding-left: 0;
|
||||
padding-right: 0; }
|
||||
padding-right: 0;
|
||||
}
|
||||
.mfp-img-mobile img.mfp-img {
|
||||
padding: 0; }
|
||||
padding: 0;
|
||||
}
|
||||
.mfp-img-mobile .mfp-figure:after {
|
||||
top: 0;
|
||||
bottom: 0; }
|
||||
bottom: 0;
|
||||
}
|
||||
.mfp-img-mobile .mfp-figure small {
|
||||
display: inline;
|
||||
margin-left: 5px; }
|
||||
margin-left: 5px;
|
||||
}
|
||||
.mfp-img-mobile .mfp-bottom-bar {
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
bottom: 0;
|
||||
@@ -319,12 +371,15 @@ img.mfp-img {
|
||||
top: auto;
|
||||
padding: 3px 5px;
|
||||
position: fixed;
|
||||
box-sizing: border-box; }
|
||||
.mfp-img-mobile .mfp-bottom-bar:empty {
|
||||
padding: 0; }
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.mfp-img-mobile .mfp-bottom-bar:empty {
|
||||
padding: 0;
|
||||
}
|
||||
.mfp-img-mobile .mfp-counter {
|
||||
right: 5px;
|
||||
top: 3px; }
|
||||
top: 3px;
|
||||
}
|
||||
.mfp-img-mobile .mfp-close {
|
||||
top: 0;
|
||||
right: 0;
|
||||
@@ -334,18 +389,29 @@ img.mfp-img {
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
position: fixed;
|
||||
text-align: center;
|
||||
padding: 0; } }
|
||||
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
@media all and (max-width: 900px) {
|
||||
.mfp-arrow {
|
||||
-webkit-transform: scale(0.75);
|
||||
transform: scale(0.75); }
|
||||
transform: scale(0.75);
|
||||
}
|
||||
|
||||
.mfp-arrow-left {
|
||||
-webkit-transform-origin: 0;
|
||||
transform-origin: 0; }
|
||||
transform-origin: 0;
|
||||
}
|
||||
|
||||
.mfp-arrow-right {
|
||||
-webkit-transform-origin: 100%;
|
||||
transform-origin: 100%; }
|
||||
transform-origin: 100%;
|
||||
}
|
||||
|
||||
.mfp-container {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px; } }
|
||||
padding-right: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=magnific-popup.css.map */
|
||||
@@ -34,7 +34,8 @@
|
||||
"node": ">= 0.8.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "grunt jshint"
|
||||
"test": "grunt jshint",
|
||||
"prod": "grunt production"
|
||||
},
|
||||
"devDependencies": {
|
||||
"dart-sass": "^1.25.0",
|
||||
|
||||
Reference in New Issue
Block a user