Skip to content

Instantly share code, notes, and snippets.

@cahnory
Forked from anonymous/dabblet.css
Created June 5, 2012 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cahnory/2874355 to your computer and use it in GitHub Desktop.
Save cahnory/2874355 to your computer and use it in GitHub Desktop.
Untitled
a {
display: block;
margin-top: 6px;
color: #000;
text-decoration: none;
}
a[href$=".doc"],
a[href$=".xls"],
a[href$=".pdf"] { background: none } /* some style */
a[href$=".doc"]:after {
content: " (doc)";
}
a[href$=".xls"]:after {
content: " (xls)";
}
a[href$=".pdf"]:after {
content: " (pdf)";
}
<a href="nimp.pdf">inscription 2012</a>
<a href="loule.doc">mon CV</a>
<a href="1337.doc">prévisionnel 2022</a>
<a href="foo.xls">tableau comparatif</a>
<a href="kiwi.pdf">élevage de kiwis</a>
<a href="nimp2.pdf">inscription 2013</a>
<a href="loule.doc">mon CV de l'an dernier</a>
<a href="1337.doc">prévisionnel 2023</a>
<a href="foo.xls">autre tableau comparatif</a>
<a href="kiwi.pdf">domptage de kiwis</a>
{"view":"split","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