Skip to content

Commit

Permalink
Update Magnific Popup 0.9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
krisxoofoo committed Oct 6, 2013
1 parent c97119a commit 946e03d
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 98 deletions.
172 changes: 76 additions & 96 deletions css/magnific-popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
.mfp-ajax-cur {
cursor: progress; }

.mfp-zoom-out-cur,
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
cursor: -moz-zoom-out;
cursor: -webkit-zoom-out;
cursor: zoom-out; }
Expand Down Expand Up @@ -97,21 +96,18 @@
left: 8px;
right: 8px;
z-index: 1044; }

.mfp-preloader a {
color: #cccccc; }

.mfp-preloader a:hover {
color: white; }
.mfp-preloader a {
color: #cccccc; }
.mfp-preloader a:hover {
color: white; }

.mfp-s-ready .mfp-preloader {
display: none; }

.mfp-s-error .mfp-content {
display: none; }

button.mfp-close,
button.mfp-arrow {
button.mfp-close, button.mfp-arrow {
overflow: visible;
cursor: pointer;
background: transparent;
Expand All @@ -122,7 +118,6 @@ button.mfp-arrow {
z-index: 1046;
-webkit-box-shadow: none;
box-shadow: none; }

button::-moz-focus-inner {
padding: 0;
border: 0; }
Expand Down Expand Up @@ -176,36 +171,32 @@ button::-moz-focus-inner {
width: 90px;
height: 110px;
-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,
.mfp-arrow .mfp-b,
.mfp-arrow .mfp-a {
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,
.mfp-arrow .mfp-a {
border-top-width: 13px;
border-bottom-width: 13px;
top: 8px; }
.mfp-arrow:before,
.mfp-arrow .mfp-b {
border-top-width: 21px;
border-bottom-width: 21px; }
.mfp-arrow:active {
margin-top: -54px; }
.mfp-arrow:hover, .mfp-arrow:focus {
opacity: 1; }
.mfp-arrow:before, .mfp-arrow:after,
.mfp-arrow .mfp-b,
.mfp-arrow .mfp-a {
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,
.mfp-arrow .mfp-a {
border-top-width: 13px;
border-bottom-width: 13px;
top: 8px; }
.mfp-arrow:before,
.mfp-arrow .mfp-b {
border-top-width: 21px;
border-bottom-width: 21px; }

.mfp-arrow-left {
left: 0; }
Expand All @@ -231,30 +222,27 @@ button::-moz-focus-inner {
.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-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: black; }

.mfp-iframe-holder .mfp-close {
top: -40px; }
.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: black; }

/* Main image in popup */
img.mfp-img {
Expand All @@ -270,22 +258,26 @@ img.mfp-img {
margin: 0 auto; }

/* 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 {
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-bottom-bar {
margin-top: -36px;
Expand All @@ -302,12 +294,6 @@ img.mfp-img {
word-wrap: break-word;
padding-right: 36px; }

.mfp-figure small {
color: #bdbdbd;
display: block;
font-size: 12px;
line-height: 14px; }

.mfp-image-holder .mfp-content {
max-width: 100%; }

Expand All @@ -321,15 +307,16 @@ img.mfp-img {
.mfp-img-mobile .mfp-image-holder {
padding-left: 0;
padding-right: 0; }

.mfp-img-mobile img.mfp-img {
padding: 0; }

/* The shadow behind the image */
.mfp-img-mobile .mfp-figure:after {
top: 0;
bottom: 0; }

.mfp-img-mobile .mfp-figure {
/* The shadow behind the image */ }
.mfp-img-mobile .mfp-figure:after {
top: 0;
bottom: 0; }
.mfp-img-mobile .mfp-figure small {
display: inline;
margin-left: 5px; }
.mfp-img-mobile .mfp-bottom-bar {
background: rgba(0, 0, 0, 0.6);
bottom: 0;
Expand All @@ -340,14 +327,11 @@ img.mfp-img {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }

.mfp-img-mobile .mfp-bottom-bar:empty {
padding: 0; }

.mfp-img-mobile .mfp-bottom-bar:empty {
padding: 0; }
.mfp-img-mobile .mfp-counter {
right: 5px;
top: 3px; }

.mfp-img-mobile .mfp-close {
top: 0;
right: 0;
Expand All @@ -357,11 +341,7 @@ img.mfp-img {
background: rgba(0, 0, 0, 0.6);
position: fixed;
text-align: center;
padding: 0; }

.mfp-img-mobile .mfp-figure small {
display: inline;
margin-left: 5px; } }
padding: 0; } }
@media all and (max-width: 900px) {
.mfp-arrow {
-webkit-transform: scale(0.75);
Expand Down
Loading

0 comments on commit 946e03d

Please sign in to comment.