Skip to content

Commit

Permalink
Style external links
Browse files Browse the repository at this point in the history
  • Loading branch information
ediblecode committed Aug 12, 2016
1 parent 62f8919 commit f7582e3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stylesheets/helpers/_helpers-glyphs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ $glyphs: (
greater-than: '003e',
less-than: '003c',
copyright: '00a9',
left-double-quotation-mark: '201C'
left-double-quotation-mark: '201C',
ne-arrow: '021D7'
// Add more entity codes here as and when they're needed
);

Expand Down
15 changes: 15 additions & 0 deletions src/stylesheets/typography/_typography-global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,21 @@ a {
@include default-focus-style;
background-color: $focus-colour;
}

// Add icon to external links
&[rel='external'] {
&::after {
color: $link-colour;
content: get-glyph(ne-arrow);
display: inline-block;
position: relative;
top: -.5em;
}

&:hover::after {
color: $link-hover-colour;
}
}
}

p,
Expand Down

0 comments on commit f7582e3

Please sign in to comment.