Skip to content

Instantly share code, notes, and snippets.

@vasilisvg
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vasilisvg/77c4ad3f79e24b0dce8b to your computer and use it in GitHub Desktop.
Save vasilisvg/77c4ad3f79e24b0dce8b to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
a[href$='.pdf'] {
font-size: 1.5em;
}
a[href$='.pdf']::before {
content: url(http://www.adobe.com/images/shared/product_mnemonics/50x50/acrobat_reader_50x50.gif);
display: inline-block;
vertical-align: middle;
transform: scale(.5);
}
a[data-size]::after {
content: attr(data-size) "kb";
display: inline-block;
vertical-align: middle;
margin-left: .5em;
text-decoration: inherit;
}
<!-- content to be placed inside <body>…</body> -->
<a href="download.pdf" data-size="1337">Download this PDF</a>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment