Skip to content

Commit

Permalink
External link icon fixes (#1613)
Browse files Browse the repository at this point in the history
* Suppress external link icons on docs image links

* Prevent external links from line wrapping
  • Loading branch information
rogermparent authored Jul 22, 2020
1 parent 5fb3b4a commit a91c205
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions src/components/Documentation/Markdown/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,22 @@
text-align: center;
}

a[target='_blank']::after {
position: relative;
top: 1px;
right: 0;
width: 12px;
height: 12px;
margin-left: 1px;
content: url(/img/external-link.svg);
a[target='_blank'] {
white-space: nowrap;

&::after {
position: relative;
top: 1px;
right: 0;
width: 12px;
height: 12px;
margin-left: 1px;
content: url(/img/external-link.svg);
}
}

:global(a.gatsby-resp-image-link)::after {
content: unset;
}

.anchor {
Expand Down

0 comments on commit a91c205

Please sign in to comment.