Skip to content

Commit

Permalink
Making Template preview on safari great again (ampproject#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
camelburrito authored Mar 3, 2017
1 parent 5dd90e4 commit 00eb527
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions components/lightbox/template-preview.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@
.ampstart-mobile-frame,
.ampstart-tablet-frame,
.ampstart-desktop-frame {
visibility: hidden;
opacity: 0;
}


[option="mobile"][selected] + .ampstart-mobile-frame,
[option="tablet"][selected] + .ampstart-tablet-frame,
[option="desktop"][selected] + .ampstart-desktop-frame {
visibility: visible;
opacity: 1;
z-index: var(--zindex-max);
}

.ampstart-mobile-frame amp-iframe {
Expand Down Expand Up @@ -167,12 +168,13 @@
.ampstart-mobile-frame,
[option="mobile"][selected] + .ampstart-mobile-frame,
[option="tablet"][selected] + .ampstart-tablet-frame {
visibility: hidden;
opacity: 0;
}

.ampstart-desktop-frame,
[option="desktop"][selected] + .ampstart-desktop-frame {
visibility: visible;
opacity: 1;
z-index: var(--zindex-max);
}

.ampstart-device-preview [option] {
Expand Down

0 comments on commit 00eb527

Please sign in to comment.