Created
January 19, 2018 20:26
-
-
Save joshfitzgerald/5a3b4d486ae8693220ca8c48bb5a54ed to your computer and use it in GitHub Desktop.
Style links that point to a .pdf file as a ghost button with a font awesome icon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* style links to PDF files */ | |
a[href$=".pdf"] { | |
display: inline-block; | |
padding: 10px; | |
margin: 5px; | |
border: #F46036 2px solid; | |
color: #F46036; | |
font-weight: 600; | |
} | |
a[href$=".pdf"]:before { | |
font-family: 'FontAwesome'; | |
content: "\f1c1"; | |
position: relative; | |
margin-right: 5px; | |
font-size: 110%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment