Skip to content

Commit

Permalink
keep icon on the same line
Browse files Browse the repository at this point in the history
  • Loading branch information
Aprillion committed Jan 2, 2025
1 parent e67f7f5 commit 1fe4251
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions app/root.css
Original file line number Diff line number Diff line change
Expand Up @@ -640,20 +640,29 @@ a:not(:hover, :focus-visible) {
text-decoration: none;
}

.contents a[target='_blank'][href^='http']:not(.icon-link, .transparent-link) {
margin-right: 12px;
}

.contents a[target='_blank'][href^='http']:not(.icon-link, .transparent-link):after {
content: ' ';
display: inline-block;
content: '';
position: absolute;
width: 10px;
height: 10px;
margin-left: 1px;
margin-bottom: 6px;
margin-top: 8px;
-webkit-mask: url('/assets/Icon_External_Link.svg') no-repeat center center;
mask: url('/assets/Icon_External_Link.svg') no-repeat center center;
-webkit-mask-size: cover;
mask-size: cover;
background-color: currentColor;
}

sup {
/* external link icon above looks best when line-height does not change on lines with footnotes */
line-height: 1;
}

hr {
border: 1px solid var(--colors-cool-grey-200);
border-bottom: 0;
Expand Down

0 comments on commit 1fe4251

Please sign in to comment.