update magnific popup to latest (v. 0.9.9)
This commit is contained in:
parent
5150376e12
commit
bfd2fd8607
|
@ -1,46 +1,5 @@
|
||||||
/* Magnific Popup CSS */
|
/* Magnific Popup CSS */
|
||||||
|
|
||||||
////////////////////////
|
|
||||||
// Settings //
|
|
||||||
////////////////////////
|
|
||||||
|
|
||||||
// overlay
|
|
||||||
$overlay-color: #0b0b0b; // Color of overlay screen
|
|
||||||
$overlay-opacity: 0.8; // Opacity of overlay screen
|
|
||||||
$shadow: 0 0 8px rgba(0, 0, 0, 0.6); // Shadow on image or iframe
|
|
||||||
|
|
||||||
// spacing
|
|
||||||
$popup-padding-left: 8px; // Padding from left and from right side
|
|
||||||
$popup-padding-left-mobile: 6px; // Same as above, but is applied when width of window is less than 800px
|
|
||||||
|
|
||||||
$z-index-base: 1050; // Base z-index of popup
|
|
||||||
|
|
||||||
// controls
|
|
||||||
$include-arrows: true; // Include styles for nav arrows
|
|
||||||
$controls-opacity: 0.65; // Opacity of controls
|
|
||||||
$controls-color: #FFF; // Color of controls
|
|
||||||
$inner-close-icon-color: #333; // Color of close button when inside
|
|
||||||
$controls-text-color: #CCC; // Color of preloader and "1 of X" indicator
|
|
||||||
$controls-text-color-hover: #FFF; // Hover color of preloader and "1 of X" indicator
|
|
||||||
$IE7support: false; // Very basic IE7 support
|
|
||||||
|
|
||||||
// Iframe-type options
|
|
||||||
$include-iframe-type: false; // Enable Iframe-type popups
|
|
||||||
$iframe-padding-top: 40px; // Iframe padding top
|
|
||||||
$iframe-background: #000; // Background color of iframes
|
|
||||||
$iframe-max-width: 900px; // Maximum width of iframes
|
|
||||||
$iframe-ratio: 9/16; // Ratio of iframe (9/16 = widescreen, 3/4 = standard, etc.)
|
|
||||||
|
|
||||||
// Image-type options
|
|
||||||
$include-image-type: true; // Enable Image-type popups
|
|
||||||
$image-padding-top: 40px; // Image padding top
|
|
||||||
$image-padding-bottom: 40px; // Image padding bottom
|
|
||||||
$include-mobile-layout-for-image: true; // Removes paddings from top and bottom
|
|
||||||
|
|
||||||
// Image caption options
|
|
||||||
$caption-title-color: #F3F3F3; // Caption title color
|
|
||||||
$caption-subtitle-color: #BDBDBD; // Caption subtitle color
|
|
||||||
|
|
||||||
////////////////////////
|
////////////////////////
|
||||||
//
|
//
|
||||||
// Contents:
|
// Contents:
|
||||||
|
@ -76,7 +35,7 @@ $shadow: 0 0 8px rgba(0, 0, 0, 0.6) !default; // shadow
|
||||||
$popup-padding-left: 8px !default; // Padding from left and from right side
|
$popup-padding-left: 8px !default; // Padding from left and from right side
|
||||||
$popup-padding-left-mobile: 6px !default; // Same as above, but is applied when width of window is less than 800px
|
$popup-padding-left-mobile: 6px !default; // Same as above, but is applied when width of window is less than 800px
|
||||||
|
|
||||||
$z-index-base: 500 !default; // Base z-index of popup
|
$z-index-base: 1040 !default; // Base z-index of popup
|
||||||
$include-arrows: true !default; // include styles for nav arrows
|
$include-arrows: true !default; // include styles for nav arrows
|
||||||
$controls-opacity: 0.65 !default;
|
$controls-opacity: 0.65 !default;
|
||||||
$controls-color: #FFF !default;
|
$controls-color: #FFF !default;
|
||||||
|
@ -94,6 +53,7 @@ $iframe-ratio: 9/16 !default;
|
||||||
|
|
||||||
// Image-type options
|
// Image-type options
|
||||||
$include-image-type: true !default;
|
$include-image-type: true !default;
|
||||||
|
$image-background: #444 !default;
|
||||||
$image-padding-top: 40px !default;
|
$image-padding-top: 40px !default;
|
||||||
$image-padding-bottom: 40px !default;
|
$image-padding-bottom: 40px !default;
|
||||||
$include-mobile-layout-for-image: true !default; // Removes paddings from top and bottom
|
$include-mobile-layout-for-image: true !default; // Removes paddings from top and bottom
|
||||||
|
@ -102,6 +62,9 @@ $include-mobile-layout-for-image: true !default; // Removes paddings from top an
|
||||||
$caption-title-color: #F3F3F3 !default;
|
$caption-title-color: #F3F3F3 !default;
|
||||||
$caption-subtitle-color: #BDBDBD !default;
|
$caption-subtitle-color: #BDBDBD !default;
|
||||||
|
|
||||||
|
// A11y
|
||||||
|
$use-visuallyhidden: false !default; // Hide content from browsers, but make it available for screen readers
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////
|
////////////////////////
|
||||||
|
@ -121,7 +84,7 @@ $caption-subtitle-color: #BDBDBD !default;
|
||||||
background: $overlay-color;
|
background: $overlay-color;
|
||||||
opacity: $overlay-opacity;
|
opacity: $overlay-opacity;
|
||||||
@if $IE7support {
|
@if $IE7support {
|
||||||
filter: alpha(opacity=$overlay-opacity*100);
|
filter: unquote("alpha(opacity=#{$overlay-opacity*100})");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,7 +102,6 @@ $caption-subtitle-color: #BDBDBD !default;
|
||||||
|
|
||||||
// Root container
|
// Root container
|
||||||
.mfp-container {
|
.mfp-container {
|
||||||
height: 100%;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -153,16 +115,22 @@ $caption-subtitle-color: #BDBDBD !default;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Vertical centerer helper
|
// Vertical centerer helper
|
||||||
.mfp-container:before {
|
.mfp-container {
|
||||||
content: '';
|
&:before {
|
||||||
display: inline-block;
|
content: '';
|
||||||
height: 100%;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
height: 100%;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove vertical centering when popup has class `mfp-align-top`
|
// Remove vertical centering when popup has class `mfp-align-top`
|
||||||
.mfp-align-top .mfp-container:before {
|
.mfp-align-top {
|
||||||
display: none;
|
.mfp-container {
|
||||||
|
&:before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Popup content holder
|
// Popup content holder
|
||||||
|
@ -174,21 +142,24 @@ $caption-subtitle-color: #BDBDBD !default;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
z-index: $z-index-base + 5;
|
z-index: $z-index-base + 5;
|
||||||
}
|
}
|
||||||
.mfp-inline-holder .mfp-content,
|
.mfp-inline-holder,
|
||||||
.mfp-ajax-holder .mfp-content {
|
.mfp-ajax-holder {
|
||||||
width: 100%;
|
.mfp-content {
|
||||||
cursor: auto;
|
width: 100%;
|
||||||
|
cursor: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cursors
|
// Cursors
|
||||||
.mfp-ajax-cur {
|
.mfp-ajax-cur {
|
||||||
cursor: progress;
|
cursor: progress;
|
||||||
}
|
}
|
||||||
.mfp-zoom-out-cur,
|
.mfp-zoom-out-cur {
|
||||||
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
|
&, .mfp-image-holder .mfp-close {
|
||||||
cursor: -moz-zoom-out;
|
cursor: -moz-zoom-out;
|
||||||
cursor: -webkit-zoom-out;
|
cursor: -webkit-zoom-out;
|
||||||
cursor: zoom-out;
|
cursor: zoom-out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.mfp-zoom {
|
.mfp-zoom {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -196,8 +167,10 @@ $caption-subtitle-color: #BDBDBD !default;
|
||||||
cursor: -moz-zoom-in;
|
cursor: -moz-zoom-in;
|
||||||
cursor: zoom-in;
|
cursor: zoom-in;
|
||||||
}
|
}
|
||||||
.mfp-auto-cursor .mfp-content {
|
.mfp-auto-cursor {
|
||||||
cursor: auto;
|
.mfp-content {
|
||||||
|
cursor: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mfp-close,
|
.mfp-close,
|
||||||
|
@ -210,17 +183,32 @@ $caption-subtitle-color: #BDBDBD !default;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide the image during the loading
|
// Hide the image during the loading
|
||||||
.mfp-loading.mfp-figure {
|
.mfp-loading {
|
||||||
display: none;
|
&.mfp-figure {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper class that hides stuff
|
// Helper class that hides stuff
|
||||||
.mfp-hide {
|
@if $use-visuallyhidden {
|
||||||
display: none !important;
|
// From HTML5 Boilerplate https://github.com/h5bp/html5-boilerplate/blob/v4.2.0/doc/css.md#visuallyhidden
|
||||||
|
.mfp-hide {
|
||||||
|
border: 0 !important;
|
||||||
|
clip: rect(0 0 0 0) !important;
|
||||||
|
height: 1px !important;
|
||||||
|
margin: -1px !important;
|
||||||
|
overflow: hidden !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
position: absolute !important;
|
||||||
|
width: 1px !important;
|
||||||
|
}
|
||||||
|
} @else {
|
||||||
|
.mfp-hide {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////
|
////////////////////////
|
||||||
// 3. Appearance
|
// 3. Appearance
|
||||||
////////////////////////
|
////////////////////////
|
||||||
|
@ -236,47 +224,55 @@ $caption-subtitle-color: #BDBDBD !default;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
right: 8px;
|
right: 8px;
|
||||||
z-index: $z-index-base + 4;
|
z-index: $z-index-base + 4;
|
||||||
}
|
a {
|
||||||
.mfp-preloader a {
|
color: $controls-text-color;
|
||||||
color: $controls-text-color;
|
&:hover {
|
||||||
}
|
color: $controls-text-color-hover;
|
||||||
.mfp-preloader a:hover {
|
}
|
||||||
color: $controls-text-color-hover;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide preloader when content successfully loaded
|
// Hide preloader when content successfully loaded
|
||||||
.mfp-s-ready .mfp-preloader {
|
.mfp-s-ready {
|
||||||
display: none;
|
.mfp-preloader {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide content when it was not loaded
|
// Hide content when it was not loaded
|
||||||
.mfp-s-error .mfp-content {
|
.mfp-s-error {
|
||||||
display: none;
|
.mfp-content {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// CSS-reset for buttons
|
// CSS-reset for buttons
|
||||||
button.mfp-close,
|
button {
|
||||||
button.mfp-arrow {
|
&.mfp-close,
|
||||||
overflow: visible;
|
&.mfp-arrow {
|
||||||
cursor: pointer;
|
overflow: visible;
|
||||||
background: transparent;
|
cursor: pointer;
|
||||||
border: 0;
|
background: transparent;
|
||||||
-webkit-appearance: none;
|
border: 0;
|
||||||
display: block;
|
-webkit-appearance: none;
|
||||||
padding: 0;
|
display: block;
|
||||||
z-index: $z-index-base + 6;
|
outline: none;
|
||||||
}
|
|
||||||
button::-moz-focus-inner {
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0
|
z-index: $z-index-base + 6;
|
||||||
|
-webkit-box-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
&::-moz-focus-inner {
|
||||||
|
padding: 0;
|
||||||
|
border: 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Close icon
|
// Close icon
|
||||||
.mfp-close {
|
.mfp-close {
|
||||||
width: 44px;
|
width: 44px;
|
||||||
height:44px;
|
height: 44px;
|
||||||
line-height: 44px;
|
line-height: 44px;
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -285,6 +281,9 @@ button::-moz-focus-inner {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
opacity: $controls-opacity;
|
opacity: $controls-opacity;
|
||||||
|
@if $IE7support {
|
||||||
|
filter: unquote("alpha(opacity=#{$controls-opacity*100})");
|
||||||
|
}
|
||||||
padding: 0 0 18px 10px;
|
padding: 0 0 18px 10px;
|
||||||
color: $controls-color;
|
color: $controls-color;
|
||||||
|
|
||||||
|
@ -295,28 +294,35 @@ button::-moz-focus-inner {
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
@if $IE7support {
|
||||||
|
filter: unquote("alpha(opacity=#{1*100})");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
top: 1px;
|
top: 1px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mfp-close-btn-in .mfp-close {
|
.mfp-close-btn-in {
|
||||||
color: $inner-close-icon-color;
|
.mfp-close {
|
||||||
|
color: $inner-close-icon-color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.mfp-image-holder .mfp-close,
|
.mfp-image-holder,
|
||||||
.mfp-iframe-holder .mfp-close {
|
.mfp-iframe-holder {
|
||||||
color: $controls-color;
|
.mfp-close {
|
||||||
right: -6px;
|
color: $controls-color;
|
||||||
text-align: right;
|
right: -6px;
|
||||||
padding-right: 6px;
|
text-align: right;
|
||||||
width: 100%;
|
padding-right: 6px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// "1 of X" counter
|
// "1 of X" counter
|
||||||
.mfp-counter {
|
.mfp-counter {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top:0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
color: $controls-text-color;
|
color: $controls-text-color;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
@ -327,8 +333,10 @@ button::-moz-focus-inner {
|
||||||
@if $include-arrows {
|
@if $include-arrows {
|
||||||
.mfp-arrow {
|
.mfp-arrow {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
|
||||||
opacity: $controls-opacity;
|
opacity: $controls-opacity;
|
||||||
|
@if $IE7support {
|
||||||
|
filter: unquote("alpha(opacity=#{$controls-opacity*100})");
|
||||||
|
}
|
||||||
margin: 0;
|
margin: 0;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
margin-top: -55px;
|
margin-top: -55px;
|
||||||
|
@ -336,17 +344,16 @@ button::-moz-focus-inner {
|
||||||
width: 90px;
|
width: 90px;
|
||||||
height: 110px;
|
height: 110px;
|
||||||
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||||
}
|
&:active {
|
||||||
.mfp-arrow:active {
|
margin-top: -54px;
|
||||||
margin-top: -54px;
|
}
|
||||||
}
|
&:hover,
|
||||||
.mfp-arrow:hover,
|
&:focus {
|
||||||
.mfp-arrow:focus {
|
opacity: 1;
|
||||||
opacity: 1;
|
@if $IE7support {
|
||||||
}
|
filter: unquote("alpha(opacity=#{1*100})");
|
||||||
|
}
|
||||||
.mfp-arrow {
|
}
|
||||||
|
|
||||||
&:before,
|
&:before,
|
||||||
&:after,
|
&:after,
|
||||||
.mfp-b,
|
.mfp-b,
|
||||||
|
@ -360,21 +367,21 @@ button::-moz-focus-inner {
|
||||||
top: 0;
|
top: 0;
|
||||||
margin-top: 35px;
|
margin-top: 35px;
|
||||||
margin-left: 35px;
|
margin-left: 35px;
|
||||||
border: solid transparent;
|
border: medium inset transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:after,
|
&:after,
|
||||||
.mfp-a {
|
.mfp-a {
|
||||||
opacity: $overlay-opacity;
|
|
||||||
border-top-width: 12px;
|
border-top-width: 13px;
|
||||||
border-bottom-width: 12px;
|
border-bottom-width: 13px;
|
||||||
top:8px;
|
top:8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:before,
|
&:before,
|
||||||
.mfp-b {
|
.mfp-b {
|
||||||
border-top-width: 20px;
|
border-top-width: 21px;
|
||||||
border-bottom-width: 20px;
|
border-bottom-width: 21px;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -384,12 +391,13 @@ button::-moz-focus-inner {
|
||||||
|
|
||||||
&:after,
|
&:after,
|
||||||
.mfp-a {
|
.mfp-a {
|
||||||
border-right: 12px solid #000;
|
border-right: 17px solid #FFF;
|
||||||
left: 5px;
|
margin-left: 31px;
|
||||||
}
|
}
|
||||||
&:before,
|
&:before,
|
||||||
.mfp-b {
|
.mfp-b {
|
||||||
border-right: 20px solid #FFF;
|
margin-left: 25px;
|
||||||
|
border-right: 27px solid #3f3f3f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -397,12 +405,12 @@ button::-moz-focus-inner {
|
||||||
right: 0;
|
right: 0;
|
||||||
&:after,
|
&:after,
|
||||||
.mfp-a {
|
.mfp-a {
|
||||||
border-left: 12px solid #000;
|
border-left: 17px solid #FFF;
|
||||||
left: 3px;
|
margin-left: 39px
|
||||||
}
|
}
|
||||||
&:before,
|
&:before,
|
||||||
.mfp-b {
|
.mfp-b {
|
||||||
border-left: 20px solid #FFF;
|
border-left: 27px solid #3f3f3f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -414,30 +422,30 @@ button::-moz-focus-inner {
|
||||||
.mfp-iframe-holder {
|
.mfp-iframe-holder {
|
||||||
padding-top: $iframe-padding-top;
|
padding-top: $iframe-padding-top;
|
||||||
padding-bottom: $iframe-padding-top;
|
padding-bottom: $iframe-padding-top;
|
||||||
}
|
.mfp-content {
|
||||||
.mfp-iframe-holder .mfp-content {
|
line-height: 0;
|
||||||
line-height: 0;
|
width: 100%;
|
||||||
width: 100%;
|
max-width: $iframe-max-width;
|
||||||
max-width: $iframe-max-width;
|
}
|
||||||
|
.mfp-close {
|
||||||
|
top: -40px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.mfp-iframe-scaler {
|
.mfp-iframe-scaler {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 0;
|
height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding-top: $iframe-ratio * 100%;
|
padding-top: $iframe-ratio * 100%;
|
||||||
}
|
iframe {
|
||||||
.mfp-iframe-scaler iframe {
|
position: absolute;
|
||||||
position: absolute;
|
display: block;
|
||||||
display: block;
|
top: 0;
|
||||||
top: 0;
|
left: 0;
|
||||||
left: 0;
|
width: 100%;
|
||||||
width: 100%;
|
height: 100%;
|
||||||
height: 100%;
|
box-shadow: $shadow;
|
||||||
box-shadow: $shadow;
|
background: $iframe-background;
|
||||||
background: $iframe-background;
|
}
|
||||||
}
|
|
||||||
.mfp-iframe-holder .mfp-close {
|
|
||||||
top: -40px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -447,38 +455,50 @@ button::-moz-focus-inner {
|
||||||
@if $include-image-type {
|
@if $include-image-type {
|
||||||
|
|
||||||
/* Main image in popup */
|
/* Main image in popup */
|
||||||
img.mfp-img {
|
img {
|
||||||
width: auto;
|
&.mfp-img {
|
||||||
max-width: 100%;
|
width: auto;
|
||||||
height: auto;
|
max-width: 100%;
|
||||||
display: block;
|
height: auto;
|
||||||
line-height: 0;
|
display: block;
|
||||||
-webkit-box-sizing: border-box;
|
line-height: 0;
|
||||||
-moz-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
padding: $image-padding-top 0 $image-padding-bottom;
|
box-sizing: border-box;
|
||||||
margin: 0 auto;
|
padding: $image-padding-top 0 $image-padding-bottom;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The shadow behind the image */
|
/* The shadow behind the image */
|
||||||
.mfp-figure:after {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
top: $image-padding-top;
|
|
||||||
bottom: $image-padding-bottom;
|
|
||||||
display: block;
|
|
||||||
right: 0;
|
|
||||||
width: auto;
|
|
||||||
height: auto;
|
|
||||||
z-index: -1;
|
|
||||||
box-shadow: $shadow;
|
|
||||||
}
|
|
||||||
.mfp-figure {
|
.mfp-figure {
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
|
&:after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: $image-padding-top;
|
||||||
|
bottom: $image-padding-bottom;
|
||||||
|
display: block;
|
||||||
|
right: 0;
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
z-index: -1;
|
||||||
|
box-shadow: $shadow;
|
||||||
|
background: $image-background;
|
||||||
|
}
|
||||||
|
small {
|
||||||
|
color: $caption-subtitle-color;
|
||||||
|
display: block;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 14px;
|
||||||
|
}
|
||||||
|
figure {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.mfp-bottom-bar {
|
.mfp-bottom-bar {
|
||||||
margin-top: -36px;
|
margin-top: -$image-padding-bottom + 4;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -489,45 +509,52 @@ button::-moz-focus-inner {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
color: $caption-title-color;
|
color: $caption-title-color;
|
||||||
word-break: break-word;
|
word-wrap: break-word;
|
||||||
padding-right: 36px; // leave some space for counter at right side
|
padding-right: 36px; // leave some space for counter at right side
|
||||||
}
|
}
|
||||||
|
|
||||||
.mfp-figure small {
|
.mfp-image-holder {
|
||||||
color: $caption-subtitle-color;
|
.mfp-content {
|
||||||
display: block;
|
max-width: 100%;
|
||||||
font-size: 12px;
|
}
|
||||||
line-height: 14px;
|
|
||||||
}
|
|
||||||
.mfp-image-holder .mfp-content {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mfp-gallery .mfp-image-holder .mfp-figure {
|
.mfp-gallery {
|
||||||
cursor: pointer;
|
.mfp-image-holder {
|
||||||
|
.mfp-figure {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@if $include-mobile-layout-for-image {
|
@if $include-mobile-layout-for-image {
|
||||||
|
@media screen and (max-width: 800px) and (orientation:landscape), screen and (max-height: 300px) {
|
||||||
@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-img-mobile .mfp-image-holder {
|
.mfp-image-holder {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
.mfp-img-mobile img.mfp-img {
|
img {
|
||||||
padding: 0;
|
&.mfp-img {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* The shadow behind the image */
|
.mfp-figure {
|
||||||
.mfp-img-mobile .mfp-figure:after {
|
/* The shadow behind the image */
|
||||||
top: 0;
|
&:after {
|
||||||
bottom: 0;
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
small {
|
||||||
|
display: inline;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
.mfp-bottom-bar {
|
||||||
.mfp-img-mobile .mfp-bottom-bar {
|
|
||||||
background: rgba(0,0,0,0.6);
|
background: rgba(0,0,0,0.6);
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -537,15 +564,15 @@ button::-moz-focus-inner {
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
&:empty {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.mfp-img-mobile .mfp-bottom-bar:empty {
|
.mfp-counter {
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
.mfp-img-mobile .mfp-counter {
|
|
||||||
right: 5px;
|
right: 5px;
|
||||||
top: 3px;
|
top: 3px;
|
||||||
}
|
}
|
||||||
.mfp-img-mobile .mfp-close {
|
.mfp-close {
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
width: 35px;
|
width: 35px;
|
||||||
|
@ -556,19 +583,15 @@ button::-moz-focus-inner {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.mfp-img-mobile .mfp-figure small {
|
|
||||||
display: inline;
|
|
||||||
margin-left: 5px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Scale navigation arrows and reduce padding from sides
|
// Scale navigation arrows and reduce padding from sides
|
||||||
@media all and (max-width: 800px) {
|
@media all and (max-width: 900px) {
|
||||||
.mfp-arrow {
|
.mfp-arrow {
|
||||||
-webkit-transform: scale(0.75);
|
-webkit-transform: scale(0.75);
|
||||||
transform: scale(0.75);
|
transform: scale(0.75);
|
||||||
|
@ -578,7 +601,7 @@ button::-moz-focus-inner {
|
||||||
transform-origin: 0;
|
transform-origin: 0;
|
||||||
}
|
}
|
||||||
.mfp-arrow-right {
|
.mfp-arrow-right {
|
||||||
-webkit-transform-origin: 100%;
|
-webkit-transform-origin: 100%;
|
||||||
transform-origin: 100%;
|
transform-origin: 100%;
|
||||||
}
|
}
|
||||||
.mfp-container {
|
.mfp-container {
|
||||||
|
|
|
@ -1,46 +1,5 @@
|
||||||
/* Magnific Popup CSS */
|
/* Magnific Popup CSS */
|
||||||
|
|
||||||
////////////////////////
|
|
||||||
// Settings //
|
|
||||||
////////////////////////
|
|
||||||
|
|
||||||
// overlay
|
|
||||||
$overlay-color: #0b0b0b; // Color of overlay screen
|
|
||||||
$overlay-opacity: 0.8; // Opacity of overlay screen
|
|
||||||
$shadow: 0 0 8px rgba(0, 0, 0, 0.6); // Shadow on image or iframe
|
|
||||||
|
|
||||||
// spacing
|
|
||||||
$popup-padding-left: 8px; // Padding from left and from right side
|
|
||||||
$popup-padding-left-mobile: 6px; // Same as above, but is applied when width of window is less than 800px
|
|
||||||
|
|
||||||
$z-index-base: 1050; // Base z-index of popup
|
|
||||||
|
|
||||||
// controls
|
|
||||||
$include-arrows: true; // Include styles for nav arrows
|
|
||||||
$controls-opacity: 0.65; // Opacity of controls
|
|
||||||
$controls-color: #FFF; // Color of controls
|
|
||||||
$inner-close-icon-color: #333; // Color of close button when inside
|
|
||||||
$controls-text-color: #CCC; // Color of preloader and "1 of X" indicator
|
|
||||||
$controls-text-color-hover: #FFF; // Hover color of preloader and "1 of X" indicator
|
|
||||||
$IE7support: false; // Very basic IE7 support
|
|
||||||
|
|
||||||
// Iframe-type options
|
|
||||||
$include-iframe-type: false; // Enable Iframe-type popups
|
|
||||||
$iframe-padding-top: 40px; // Iframe padding top
|
|
||||||
$iframe-background: #000; // Background color of iframes
|
|
||||||
$iframe-max-width: 900px; // Maximum width of iframes
|
|
||||||
$iframe-ratio: 9/16; // Ratio of iframe (9/16 = widescreen, 3/4 = standard, etc.)
|
|
||||||
|
|
||||||
// Image-type options
|
|
||||||
$include-image-type: true; // Enable Image-type popups
|
|
||||||
$image-padding-top: 40px; // Image padding top
|
|
||||||
$image-padding-bottom: 40px; // Image padding bottom
|
|
||||||
$include-mobile-layout-for-image: true; // Removes paddings from top and bottom
|
|
||||||
|
|
||||||
// Image caption options
|
|
||||||
$caption-title-color: #F3F3F3; // Caption title color
|
|
||||||
$caption-subtitle-color: #BDBDBD; // Caption subtitle color
|
|
||||||
|
|
||||||
////////////////////////
|
////////////////////////
|
||||||
//
|
//
|
||||||
// Contents:
|
// Contents:
|
||||||
|
@ -76,7 +35,7 @@ $shadow: 0 0 8px rgba(0, 0, 0, 0.6) !default; // shadow
|
||||||
$popup-padding-left: 8px !default; // Padding from left and from right side
|
$popup-padding-left: 8px !default; // Padding from left and from right side
|
||||||
$popup-padding-left-mobile: 6px !default; // Same as above, but is applied when width of window is less than 800px
|
$popup-padding-left-mobile: 6px !default; // Same as above, but is applied when width of window is less than 800px
|
||||||
|
|
||||||
$z-index-base: 500 !default; // Base z-index of popup
|
$z-index-base: 1040 !default; // Base z-index of popup
|
||||||
$include-arrows: true !default; // include styles for nav arrows
|
$include-arrows: true !default; // include styles for nav arrows
|
||||||
$controls-opacity: 0.65 !default;
|
$controls-opacity: 0.65 !default;
|
||||||
$controls-color: #FFF !default;
|
$controls-color: #FFF !default;
|
||||||
|
@ -94,6 +53,7 @@ $iframe-ratio: 9/16 !default;
|
||||||
|
|
||||||
// Image-type options
|
// Image-type options
|
||||||
$include-image-type: true !default;
|
$include-image-type: true !default;
|
||||||
|
$image-background: #444 !default;
|
||||||
$image-padding-top: 40px !default;
|
$image-padding-top: 40px !default;
|
||||||
$image-padding-bottom: 40px !default;
|
$image-padding-bottom: 40px !default;
|
||||||
$include-mobile-layout-for-image: true !default; // Removes paddings from top and bottom
|
$include-mobile-layout-for-image: true !default; // Removes paddings from top and bottom
|
||||||
|
@ -102,6 +62,9 @@ $include-mobile-layout-for-image: true !default; // Removes paddings from top an
|
||||||
$caption-title-color: #F3F3F3 !default;
|
$caption-title-color: #F3F3F3 !default;
|
||||||
$caption-subtitle-color: #BDBDBD !default;
|
$caption-subtitle-color: #BDBDBD !default;
|
||||||
|
|
||||||
|
// A11y
|
||||||
|
$use-visuallyhidden: false !default; // Hide content from browsers, but make it available for screen readers
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////
|
////////////////////////
|
||||||
|
@ -121,7 +84,7 @@ $caption-subtitle-color: #BDBDBD !default;
|
||||||
background: $overlay-color;
|
background: $overlay-color;
|
||||||
opacity: $overlay-opacity;
|
opacity: $overlay-opacity;
|
||||||
@if $IE7support {
|
@if $IE7support {
|
||||||
filter: alpha(opacity=$overlay-opacity*100);
|
filter: unquote("alpha(opacity=#{$overlay-opacity*100})");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,7 +102,6 @@ $caption-subtitle-color: #BDBDBD !default;
|
||||||
|
|
||||||
// Root container
|
// Root container
|
||||||
.mfp-container {
|
.mfp-container {
|
||||||
height: 100%;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -148,21 +110,27 @@ $caption-subtitle-color: #BDBDBD !default;
|
||||||
top: 0;
|
top: 0;
|
||||||
padding: 0 $popup-padding-left;
|
padding: 0 $popup-padding-left;
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Vertical centerer helper
|
// Vertical centerer helper
|
||||||
.mfp-container:before {
|
.mfp-container {
|
||||||
content: '';
|
&:before {
|
||||||
display: inline-block;
|
content: '';
|
||||||
height: 100%;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
height: 100%;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove vertical centering when popup has class `mfp-align-top`
|
// Remove vertical centering when popup has class `mfp-align-top`
|
||||||
.mfp-align-top .mfp-container:before {
|
.mfp-align-top {
|
||||||
display: none;
|
.mfp-container {
|
||||||
|
&:before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Popup content holder
|
// Popup content holder
|
||||||
|
@ -174,21 +142,24 @@ $caption-subtitle-color: #BDBDBD !default;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
z-index: $z-index-base + 5;
|
z-index: $z-index-base + 5;
|
||||||
}
|
}
|
||||||
.mfp-inline-holder .mfp-content,
|
.mfp-inline-holder,
|
||||||
.mfp-ajax-holder .mfp-content {
|
.mfp-ajax-holder {
|
||||||
width: 100%;
|
.mfp-content {
|
||||||
cursor: auto;
|
width: 100%;
|
||||||
|
cursor: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cursors
|
// Cursors
|
||||||
.mfp-ajax-cur {
|
.mfp-ajax-cur {
|
||||||
cursor: progress;
|
cursor: progress;
|
||||||
}
|
}
|
||||||
.mfp-zoom-out-cur,
|
.mfp-zoom-out-cur {
|
||||||
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
|
&, .mfp-image-holder .mfp-close {
|
||||||
cursor: -moz-zoom-out;
|
cursor: -moz-zoom-out;
|
||||||
cursor: -webkit-zoom-out;
|
cursor: -webkit-zoom-out;
|
||||||
cursor: zoom-out;
|
cursor: zoom-out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.mfp-zoom {
|
.mfp-zoom {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -196,8 +167,10 @@ $caption-subtitle-color: #BDBDBD !default;
|
||||||
cursor: -moz-zoom-in;
|
cursor: -moz-zoom-in;
|
||||||
cursor: zoom-in;
|
cursor: zoom-in;
|
||||||
}
|
}
|
||||||
.mfp-auto-cursor .mfp-content {
|
.mfp-auto-cursor {
|
||||||
cursor: auto;
|
.mfp-content {
|
||||||
|
cursor: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mfp-close,
|
.mfp-close,
|
||||||
|
@ -210,17 +183,32 @@ $caption-subtitle-color: #BDBDBD !default;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide the image during the loading
|
// Hide the image during the loading
|
||||||
.mfp-loading.mfp-figure {
|
.mfp-loading {
|
||||||
display: none;
|
&.mfp-figure {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper class that hides stuff
|
// Helper class that hides stuff
|
||||||
.mfp-hide {
|
@if $use-visuallyhidden {
|
||||||
display: none !important;
|
// From HTML5 Boilerplate https://github.com/h5bp/html5-boilerplate/blob/v4.2.0/doc/css.md#visuallyhidden
|
||||||
|
.mfp-hide {
|
||||||
|
border: 0 !important;
|
||||||
|
clip: rect(0 0 0 0) !important;
|
||||||
|
height: 1px !important;
|
||||||
|
margin: -1px !important;
|
||||||
|
overflow: hidden !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
position: absolute !important;
|
||||||
|
width: 1px !important;
|
||||||
|
}
|
||||||
|
} @else {
|
||||||
|
.mfp-hide {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////
|
////////////////////////
|
||||||
// 3. Appearance
|
// 3. Appearance
|
||||||
////////////////////////
|
////////////////////////
|
||||||
|
@ -236,47 +224,55 @@ $caption-subtitle-color: #BDBDBD !default;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
right: 8px;
|
right: 8px;
|
||||||
z-index: $z-index-base + 4;
|
z-index: $z-index-base + 4;
|
||||||
}
|
a {
|
||||||
.mfp-preloader a {
|
color: $controls-text-color;
|
||||||
color: $controls-text-color;
|
&:hover {
|
||||||
}
|
color: $controls-text-color-hover;
|
||||||
.mfp-preloader a:hover {
|
}
|
||||||
color: $controls-text-color-hover;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide preloader when content successfully loaded
|
// Hide preloader when content successfully loaded
|
||||||
.mfp-s-ready .mfp-preloader {
|
.mfp-s-ready {
|
||||||
display: none;
|
.mfp-preloader {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide content when it was not loaded
|
// Hide content when it was not loaded
|
||||||
.mfp-s-error .mfp-content {
|
.mfp-s-error {
|
||||||
display: none;
|
.mfp-content {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// CSS-reset for buttons
|
// CSS-reset for buttons
|
||||||
button.mfp-close,
|
button {
|
||||||
button.mfp-arrow {
|
&.mfp-close,
|
||||||
overflow: visible;
|
&.mfp-arrow {
|
||||||
cursor: pointer;
|
overflow: visible;
|
||||||
background: transparent;
|
cursor: pointer;
|
||||||
border: 0;
|
background: transparent;
|
||||||
-webkit-appearance: none;
|
border: 0;
|
||||||
display: block;
|
-webkit-appearance: none;
|
||||||
padding: 0;
|
display: block;
|
||||||
z-index: $z-index-base + 6;
|
outline: none;
|
||||||
}
|
|
||||||
button::-moz-focus-inner {
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0
|
z-index: $z-index-base + 6;
|
||||||
|
-webkit-box-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
&::-moz-focus-inner {
|
||||||
|
padding: 0;
|
||||||
|
border: 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Close icon
|
// Close icon
|
||||||
.mfp-close {
|
.mfp-close {
|
||||||
width: 44px;
|
width: 44px;
|
||||||
height:44px;
|
height: 44px;
|
||||||
line-height: 44px;
|
line-height: 44px;
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -285,6 +281,9 @@ button::-moz-focus-inner {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
opacity: $controls-opacity;
|
opacity: $controls-opacity;
|
||||||
|
@if $IE7support {
|
||||||
|
filter: unquote("alpha(opacity=#{$controls-opacity*100})");
|
||||||
|
}
|
||||||
padding: 0 0 18px 10px;
|
padding: 0 0 18px 10px;
|
||||||
color: $controls-color;
|
color: $controls-color;
|
||||||
|
|
||||||
|
@ -295,28 +294,35 @@ button::-moz-focus-inner {
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
@if $IE7support {
|
||||||
|
filter: unquote("alpha(opacity=#{1*100})");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
top: 1px;
|
top: 1px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mfp-close-btn-in .mfp-close {
|
.mfp-close-btn-in {
|
||||||
color: $inner-close-icon-color;
|
.mfp-close {
|
||||||
|
color: $inner-close-icon-color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.mfp-image-holder .mfp-close,
|
.mfp-image-holder,
|
||||||
.mfp-iframe-holder .mfp-close {
|
.mfp-iframe-holder {
|
||||||
color: $controls-color;
|
.mfp-close {
|
||||||
right: -6px;
|
color: $controls-color;
|
||||||
text-align: right;
|
right: -6px;
|
||||||
padding-right: 6px;
|
text-align: right;
|
||||||
width: 100%;
|
padding-right: 6px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// "1 of X" counter
|
// "1 of X" counter
|
||||||
.mfp-counter {
|
.mfp-counter {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top:0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
color: $controls-text-color;
|
color: $controls-text-color;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
@ -327,8 +333,10 @@ button::-moz-focus-inner {
|
||||||
@if $include-arrows {
|
@if $include-arrows {
|
||||||
.mfp-arrow {
|
.mfp-arrow {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
|
||||||
opacity: $controls-opacity;
|
opacity: $controls-opacity;
|
||||||
|
@if $IE7support {
|
||||||
|
filter: unquote("alpha(opacity=#{$controls-opacity*100})");
|
||||||
|
}
|
||||||
margin: 0;
|
margin: 0;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
margin-top: -55px;
|
margin-top: -55px;
|
||||||
|
@ -336,17 +344,16 @@ button::-moz-focus-inner {
|
||||||
width: 90px;
|
width: 90px;
|
||||||
height: 110px;
|
height: 110px;
|
||||||
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||||
}
|
&:active {
|
||||||
.mfp-arrow:active {
|
margin-top: -54px;
|
||||||
margin-top: -54px;
|
}
|
||||||
}
|
&:hover,
|
||||||
.mfp-arrow:hover,
|
&:focus {
|
||||||
.mfp-arrow:focus {
|
opacity: 1;
|
||||||
opacity: 1;
|
@if $IE7support {
|
||||||
}
|
filter: unquote("alpha(opacity=#{1*100})");
|
||||||
|
}
|
||||||
.mfp-arrow {
|
}
|
||||||
|
|
||||||
&:before,
|
&:before,
|
||||||
&:after,
|
&:after,
|
||||||
.mfp-b,
|
.mfp-b,
|
||||||
|
@ -360,21 +367,21 @@ button::-moz-focus-inner {
|
||||||
top: 0;
|
top: 0;
|
||||||
margin-top: 35px;
|
margin-top: 35px;
|
||||||
margin-left: 35px;
|
margin-left: 35px;
|
||||||
border: solid transparent;
|
border: medium inset transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:after,
|
&:after,
|
||||||
.mfp-a {
|
.mfp-a {
|
||||||
opacity: $overlay-opacity;
|
|
||||||
border-top-width: 12px;
|
border-top-width: 13px;
|
||||||
border-bottom-width: 12px;
|
border-bottom-width: 13px;
|
||||||
top:8px;
|
top:8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:before,
|
&:before,
|
||||||
.mfp-b {
|
.mfp-b {
|
||||||
border-top-width: 20px;
|
border-top-width: 21px;
|
||||||
border-bottom-width: 20px;
|
border-bottom-width: 21px;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -384,12 +391,13 @@ button::-moz-focus-inner {
|
||||||
|
|
||||||
&:after,
|
&:after,
|
||||||
.mfp-a {
|
.mfp-a {
|
||||||
border-right: 12px solid #000;
|
border-right: 17px solid #FFF;
|
||||||
left: 5px;
|
margin-left: 31px;
|
||||||
}
|
}
|
||||||
&:before,
|
&:before,
|
||||||
.mfp-b {
|
.mfp-b {
|
||||||
border-right: 20px solid #FFF;
|
margin-left: 25px;
|
||||||
|
border-right: 27px solid #3f3f3f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -397,12 +405,12 @@ button::-moz-focus-inner {
|
||||||
right: 0;
|
right: 0;
|
||||||
&:after,
|
&:after,
|
||||||
.mfp-a {
|
.mfp-a {
|
||||||
border-left: 12px solid #000;
|
border-left: 17px solid #FFF;
|
||||||
left: 3px;
|
margin-left: 39px
|
||||||
}
|
}
|
||||||
&:before,
|
&:before,
|
||||||
.mfp-b {
|
.mfp-b {
|
||||||
border-left: 20px solid #FFF;
|
border-left: 27px solid #3f3f3f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -414,30 +422,30 @@ button::-moz-focus-inner {
|
||||||
.mfp-iframe-holder {
|
.mfp-iframe-holder {
|
||||||
padding-top: $iframe-padding-top;
|
padding-top: $iframe-padding-top;
|
||||||
padding-bottom: $iframe-padding-top;
|
padding-bottom: $iframe-padding-top;
|
||||||
}
|
.mfp-content {
|
||||||
.mfp-iframe-holder .mfp-content {
|
line-height: 0;
|
||||||
line-height: 0;
|
width: 100%;
|
||||||
width: 100%;
|
max-width: $iframe-max-width;
|
||||||
max-width: $iframe-max-width;
|
}
|
||||||
|
.mfp-close {
|
||||||
|
top: -40px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.mfp-iframe-scaler {
|
.mfp-iframe-scaler {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 0;
|
height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding-top: $iframe-ratio * 100%;
|
padding-top: $iframe-ratio * 100%;
|
||||||
}
|
iframe {
|
||||||
.mfp-iframe-scaler iframe {
|
position: absolute;
|
||||||
position: absolute;
|
display: block;
|
||||||
display: block;
|
top: 0;
|
||||||
top: 0;
|
left: 0;
|
||||||
left: 0;
|
width: 100%;
|
||||||
width: 100%;
|
height: 100%;
|
||||||
height: 100%;
|
box-shadow: $shadow;
|
||||||
box-shadow: $shadow;
|
background: $iframe-background;
|
||||||
background: $iframe-background;
|
}
|
||||||
}
|
|
||||||
.mfp-iframe-holder .mfp-close {
|
|
||||||
top: -40px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -447,38 +455,50 @@ button::-moz-focus-inner {
|
||||||
@if $include-image-type {
|
@if $include-image-type {
|
||||||
|
|
||||||
/* Main image in popup */
|
/* Main image in popup */
|
||||||
img.mfp-img {
|
img {
|
||||||
width: auto;
|
&.mfp-img {
|
||||||
max-width: 100%;
|
width: auto;
|
||||||
height: auto;
|
max-width: 100%;
|
||||||
display: block;
|
height: auto;
|
||||||
line-height: 0;
|
display: block;
|
||||||
-webkit-box-sizing: border-box;
|
line-height: 0;
|
||||||
-moz-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
padding: $image-padding-top 0 $image-padding-bottom;
|
box-sizing: border-box;
|
||||||
margin: 0 auto;
|
padding: $image-padding-top 0 $image-padding-bottom;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The shadow behind the image */
|
/* The shadow behind the image */
|
||||||
.mfp-figure:after {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
top: $image-padding-top;
|
|
||||||
bottom: $image-padding-bottom;
|
|
||||||
display: block;
|
|
||||||
right: 0;
|
|
||||||
width: auto;
|
|
||||||
height: auto;
|
|
||||||
z-index: -1;
|
|
||||||
box-shadow: $shadow;
|
|
||||||
}
|
|
||||||
.mfp-figure {
|
.mfp-figure {
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
|
&:after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: $image-padding-top;
|
||||||
|
bottom: $image-padding-bottom;
|
||||||
|
display: block;
|
||||||
|
right: 0;
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
z-index: -1;
|
||||||
|
box-shadow: $shadow;
|
||||||
|
background: $image-background;
|
||||||
|
}
|
||||||
|
small {
|
||||||
|
color: $caption-subtitle-color;
|
||||||
|
display: block;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 14px;
|
||||||
|
}
|
||||||
|
figure {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.mfp-bottom-bar {
|
.mfp-bottom-bar {
|
||||||
margin-top: -36px;
|
margin-top: -$image-padding-bottom + 4;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -489,45 +509,52 @@ button::-moz-focus-inner {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
color: $caption-title-color;
|
color: $caption-title-color;
|
||||||
word-break: break-word;
|
word-wrap: break-word;
|
||||||
padding-right: 36px; // leave some space for counter at right side
|
padding-right: 36px; // leave some space for counter at right side
|
||||||
}
|
}
|
||||||
|
|
||||||
.mfp-figure small {
|
.mfp-image-holder {
|
||||||
color: $caption-subtitle-color;
|
.mfp-content {
|
||||||
display: block;
|
max-width: 100%;
|
||||||
font-size: 12px;
|
}
|
||||||
line-height: 14px;
|
|
||||||
}
|
|
||||||
.mfp-image-holder .mfp-content {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mfp-gallery .mfp-image-holder .mfp-figure {
|
.mfp-gallery {
|
||||||
cursor: pointer;
|
.mfp-image-holder {
|
||||||
|
.mfp-figure {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@if $include-mobile-layout-for-image {
|
@if $include-mobile-layout-for-image {
|
||||||
|
@media screen and (max-width: 800px) and (orientation:landscape), screen and (max-height: 300px) {
|
||||||
@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-img-mobile .mfp-image-holder {
|
.mfp-image-holder {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
.mfp-img-mobile img.mfp-img {
|
img {
|
||||||
padding: 0;
|
&.mfp-img {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* The shadow behind the image */
|
.mfp-figure {
|
||||||
.mfp-img-mobile .mfp-figure:after {
|
/* The shadow behind the image */
|
||||||
top: 0;
|
&:after {
|
||||||
bottom: 0;
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
small {
|
||||||
|
display: inline;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
.mfp-bottom-bar {
|
||||||
.mfp-img-mobile .mfp-bottom-bar {
|
|
||||||
background: rgba(0,0,0,0.6);
|
background: rgba(0,0,0,0.6);
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -535,17 +562,17 @@ button::-moz-focus-inner {
|
||||||
padding: 3px 5px;
|
padding: 3px 5px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
&:empty {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.mfp-img-mobile .mfp-bottom-bar:empty {
|
.mfp-counter {
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
.mfp-img-mobile .mfp-counter {
|
|
||||||
right: 5px;
|
right: 5px;
|
||||||
top: 3px;
|
top: 3px;
|
||||||
}
|
}
|
||||||
.mfp-img-mobile .mfp-close {
|
.mfp-close {
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
width: 35px;
|
width: 35px;
|
||||||
|
@ -556,19 +583,15 @@ button::-moz-focus-inner {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.mfp-img-mobile .mfp-figure small {
|
|
||||||
display: inline;
|
|
||||||
margin-left: 5px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Scale navigation arrows and reduce padding from sides
|
// Scale navigation arrows and reduce padding from sides
|
||||||
@media all and (max-width: 800px) {
|
@media all and (max-width: 900px) {
|
||||||
.mfp-arrow {
|
.mfp-arrow {
|
||||||
-webkit-transform: scale(0.75);
|
-webkit-transform: scale(0.75);
|
||||||
transform: scale(0.75);
|
transform: scale(0.75);
|
||||||
|
@ -578,7 +601,7 @@ button::-moz-focus-inner {
|
||||||
transform-origin: 0;
|
transform-origin: 0;
|
||||||
}
|
}
|
||||||
.mfp-arrow-right {
|
.mfp-arrow-right {
|
||||||
-webkit-transform-origin: 100%;
|
-webkit-transform-origin: 100%;
|
||||||
transform-origin: 100%;
|
transform-origin: 100%;
|
||||||
}
|
}
|
||||||
.mfp-container {
|
.mfp-container {
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue