Skip to content

Commit

Permalink
Fix AMP preview icon in Firefox
Browse files Browse the repository at this point in the history
The AMP preview icon isn't displaying correctly in Firefox (probably because of a different interpretation of the text-indent css rule). My proposed fix works in latest releases of Firefox, Chrome, Safari, Edge and IE.
  • Loading branch information
zigasancin committed Jan 30, 2018
1 parent e06e7c8 commit f99aefe
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions assets/css/amp-post-meta-box.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,21 @@
border-top-left-radius: 0;
border-bottom-left-radius: 0;
text-indent: -9999px;
padding-right: 7px;
padding-left: 7px;
padding-right: 14px;
padding-left: 14px;
position: relative;
}

.wp-core-ui #amp-post-preview.preview::after {
content: "icon";
width: 14px;
float: left;
background: no-repeat center url( '../images/amp-icon.svg' );
background-size: 14px !important;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: block;
position: absolute;
}

.wp-core-ui #amp-post-preview.preview.disabled::after {
Expand Down

0 comments on commit f99aefe

Please sign in to comment.