Include updated, "customized" build of MagnificPopup.

Also adds missing test to Modernizr build.

References #85
This commit is contained in:
Matthias Mees 2014-04-20 14:00:44 +02:00
parent 49ce068117
commit 6b8f893299
3 changed files with 1421 additions and 1871 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -2267,16 +2267,14 @@ input[name="serendipity[filter][fileCategory]"] {
text-align: left; text-align: left;
z-index: 1045; } z-index: 1045; }
.mfp-inline-holder .mfp-content, .mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
.mfp-ajax-holder .mfp-content {
width: 100%; width: 100%;
cursor: auto; } cursor: auto; }
.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-zoom-out-cur .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; }
@ -2290,10 +2288,7 @@ input[name="serendipity[filter][fileCategory]"] {
.mfp-auto-cursor .mfp-content { .mfp-auto-cursor .mfp-content {
cursor: auto; } cursor: auto; }
.mfp-close, .mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
user-select: none; } user-select: none; }
@ -2314,12 +2309,10 @@ input[name="serendipity[filter][fileCategory]"] {
left: 8px; left: 8px;
right: 8px; right: 8px;
z-index: 1044; } z-index: 1044; }
.mfp-preloader a {
.mfp-preloader a { color: #cccccc; }
color: #cccccc; } .mfp-preloader a:hover {
color: white; }
.mfp-preloader a:hover {
color: white; }
.mfp-s-ready .mfp-preloader { .mfp-s-ready .mfp-preloader {
display: none; } display: none; }
@ -2327,17 +2320,18 @@ input[name="serendipity[filter][fileCategory]"] {
.mfp-s-error .mfp-content { .mfp-s-error .mfp-content {
display: none; } display: none; }
button.mfp-close, button.mfp-close, button.mfp-arrow {
button.mfp-arrow {
overflow: visible; overflow: visible;
cursor: pointer; cursor: pointer;
background: transparent; background: transparent;
border: 0; border: 0;
-webkit-appearance: none; -webkit-appearance: none;
display: block; display: block;
outline: none;
padding: 0; padding: 0;
z-index: 1046; } z-index: 1046;
-webkit-box-shadow: none;
box-shadow: none; }
button::-moz-focus-inner { button::-moz-focus-inner {
padding: 0; padding: 0;
border: 0; } border: 0; }
@ -2352,21 +2346,22 @@ button::-moz-focus-inner {
text-decoration: none; text-decoration: none;
text-align: center; text-align: center;
opacity: 0.65; opacity: 0.65;
filter: alpha(opacity=65);
padding: 0 0 18px 10px; padding: 0 0 18px 10px;
color: white; color: white;
font-style: normal; font-style: normal;
font-size: 28px; font-size: 28px;
font-family: Arial, Baskerville, monospace; } font-family: Arial, Baskerville, monospace; }
.mfp-close:hover, .mfp-close:focus { .mfp-close:hover, .mfp-close:focus {
opacity: 1; } opacity: 1;
filter: alpha(opacity=100); }
.mfp-close:active { .mfp-close:active {
top: 1px; } top: 1px; }
.mfp-close-btn-in .mfp-close { .mfp-close-btn-in .mfp-close {
color: #333333; } color: #333333; }
.mfp-image-holder .mfp-close, .mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
.mfp-iframe-holder .mfp-close {
color: white; color: white;
right: -6px; right: -6px;
text-align: right; text-align: right;
@ -2384,6 +2379,7 @@ button::-moz-focus-inner {
.mfp-arrow { .mfp-arrow {
position: absolute; position: absolute;
opacity: 0.65; opacity: 0.65;
filter: alpha(opacity=65);
margin: 0; margin: 0;
top: 50%; top: 50%;
margin-top: -55px; margin-top: -55px;
@ -2391,85 +2387,72 @@ 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); }
.mfp-arrow:active {
.mfp-arrow:active { margin-top: -54px; }
margin-top: -54px; } .mfp-arrow:hover, .mfp-arrow:focus {
opacity: 1;
.mfp-arrow:hover, filter: alpha(opacity=100); }
.mfp-arrow:focus { .mfp-arrow:before, .mfp-arrow:after, .mfp-arrow .mfp-b, .mfp-arrow .mfp-a {
opacity: 1; } content: '';
display: block;
.mfp-arrow:before, .mfp-arrow:after, width: 0;
.mfp-arrow .mfp-b, height: 0;
.mfp-arrow .mfp-a { position: absolute;
content: ''; left: 0;
display: block; top: 0;
width: 0; margin-top: 35px;
height: 0; margin-left: 35px;
position: absolute; border: medium inset transparent; }
left: 0; .mfp-arrow:after, .mfp-arrow .mfp-a {
top: 0; border-top-width: 13px;
margin-top: 35px; border-bottom-width: 13px;
margin-left: 35px; top: 8px; }
border: solid transparent; } .mfp-arrow:before, .mfp-arrow .mfp-b {
.mfp-arrow:after, border-top-width: 21px;
.mfp-arrow .mfp-a { border-bottom-width: 21px;
border-top-width: 13px; opacity: 0.7; }
border-bottom-width: 13px;
top: 8px; }
.mfp-arrow:before,
.mfp-arrow .mfp-b {
border-top-width: 21px;
border-bottom-width: 21px; }
.mfp-arrow-left { .mfp-arrow-left {
left: 0; } left: 0; }
.mfp-arrow-left:after, .mfp-arrow-left:after, .mfp-arrow-left .mfp-a {
.mfp-arrow-left .mfp-a {
border-right: 17px solid white; border-right: 17px solid white;
margin-left: 31px; } margin-left: 31px; }
.mfp-arrow-left:before, .mfp-arrow-left:before, .mfp-arrow-left .mfp-b {
.mfp-arrow-left .mfp-b {
margin-left: 25px; margin-left: 25px;
border-right: 27px solid #3f3f3f; } border-right: 27px solid #3f3f3f; }
.mfp-arrow-right { .mfp-arrow-right {
right: 0; } right: 0; }
.mfp-arrow-right:after, .mfp-arrow-right:after, .mfp-arrow-right .mfp-a {
.mfp-arrow-right .mfp-a {
border-left: 17px solid white; border-left: 17px solid white;
margin-left: 39px; } margin-left: 39px; }
.mfp-arrow-right:before, .mfp-arrow-right:before, .mfp-arrow-right .mfp-b {
.mfp-arrow-right .mfp-b {
border-left: 27px solid #3f3f3f; } border-left: 27px solid #3f3f3f; }
.mfp-iframe-holder { .mfp-iframe-holder {
padding-top: 40px; padding-top: 40px;
padding-bottom: 40px; } padding-bottom: 40px; }
.mfp-iframe-holder .mfp-content {
.mfp-iframe-holder .mfp-content { line-height: 0;
line-height: 0; width: 100%;
width: 100%; max-width: 900px; }
max-width: 900px; } .mfp-iframe-holder .mfp-close {
top: -40px; }
.mfp-iframe-scaler { .mfp-iframe-scaler {
width: 100%; width: 100%;
height: 0; height: 0;
overflow: hidden; overflow: hidden;
padding-top: 56.25%; } padding-top: 56.25%; }
.mfp-iframe-scaler 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: 0 0 8px rgba(0, 0, 0, 0.6);
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); background: black; }
background: black; }
.mfp-iframe-holder .mfp-close {
top: -40px; }
/* Main image in popup */ /* Main image in popup */
img.mfp-img { img.mfp-img {
@ -2485,22 +2468,28 @@ img.mfp-img {
margin: 0 auto; } margin: 0 auto; }
/* The shadow behind the image */ /* The shadow behind the image */
.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: #444444; }
.mfp-figure { .mfp-figure {
line-height: 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: #444444; }
.mfp-figure small {
color: #bdbdbd;
display: block;
font-size: 12px;
line-height: 14px; }
.mfp-figure figure {
margin: 0; }
.mfp-bottom-bar { .mfp-bottom-bar {
margin-top: -36px; margin-top: -36px;
@ -2514,15 +2503,9 @@ img.mfp-img {
text-align: left; text-align: left;
line-height: 18px; line-height: 18px;
color: #f3f3f3; color: #f3f3f3;
word-break: break-word; word-wrap: break-word;
padding-right: 36px; } padding-right: 36px; }
.mfp-figure small {
color: #bdbdbd;
display: block;
font-size: 12px;
line-height: 14px; }
.mfp-image-holder .mfp-content { .mfp-image-holder .mfp-content {
max-width: 100%; } max-width: 100%; }
@ -2531,20 +2514,19 @@ img.mfp-img {
@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-image-holder { .mfp-img-mobile .mfp-image-holder {
padding-left: 0; padding-left: 0;
padding-right: 0; } padding-right: 0; }
.mfp-img-mobile img.mfp-img { .mfp-img-mobile img.mfp-img {
padding: 0; } padding: 0; }
/* The shadow behind the image */
.mfp-img-mobile .mfp-figure:after { .mfp-img-mobile .mfp-figure:after {
top: 0; top: 0;
bottom: 0; } bottom: 0; }
.mfp-img-mobile .mfp-figure small {
display: inline;
margin-left: 5px; }
.mfp-img-mobile .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;
@ -2555,14 +2537,11 @@ img.mfp-img {
-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; }
.mfp-img-mobile .mfp-bottom-bar:empty {
.mfp-img-mobile .mfp-bottom-bar:empty { padding: 0; }
padding: 0; }
.mfp-img-mobile .mfp-counter { .mfp-img-mobile .mfp-counter {
right: 5px; right: 5px;
top: 3px; } top: 3px; }
.mfp-img-mobile .mfp-close { .mfp-img-mobile .mfp-close {
top: 0; top: 0;
right: 0; right: 0;
@ -2572,27 +2551,22 @@ img.mfp-img {
background: rgba(0, 0, 0, 0.6); background: rgba(0, 0, 0, 0.6);
position: fixed; position: fixed;
text-align: center; text-align: center;
padding: 0; } padding: 0; } }
.mfp-img-mobile .mfp-figure small {
display: inline;
margin-left: 5px; } }
@media all and (max-width: 900px) { @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); }
.mfp-arrow-left { .mfp-arrow-left {
-webkit-transform-origin: 0; -webkit-transform-origin: 0;
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 {
padding-left: 6px; padding-left: 6px;
padding-right: 6px; } } padding-right: 6px; } }
.mfp-ie7 .mfp-img { .mfp-ie7 .mfp-img {
padding: 0; } padding: 0; }
.mfp-ie7 .mfp-bottom-bar { .mfp-ie7 .mfp-bottom-bar {