Skip to content

Commit

Permalink
add pdf link styles
Browse files Browse the repository at this point in the history
JoelCDL committed Jan 29, 2016
1 parent 9384d8a commit fe4439d
Showing 3 changed files with 13 additions and 0 deletions.
Binary file added dev/images/pdf-icon_18x18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions dev/includes/links.html
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@
<a href="" class="link__primary">Primary link</a>
</p>

<p>
<a href="file.pdf" class="link__primary">Primary link to a PDF</a>
</p>

<p>
<a href="" class="link__over-beige">Link over beige background</a>
</p>
9 changes: 9 additions & 0 deletions dev/scss/_links.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// ##### Link Elements ##### //

%link__primary {
position: relative;
border-bottom: 1px solid $design-light-gray-border-color;
color: $design-primary-color;
text-decoration: none;
@@ -11,6 +12,14 @@
text-decoration: none; // bootstrap override
}

&[href$='.pdf']:after {
position: absolute;
right: -25px;
width: 15px;
height: 15px;
content: url('../images/pdf-icon_18x18.png');
}

}

.link__primary {

0 comments on commit fe4439d

Please sign in to comment.