Source: Help:External link icons - Wikipedia
Has anyone implemented something similar in phpBB's CSS?
Adding the following Wikipedia's CSS coding to the bottom of
links.css
, purging phpBB cache and browser cache does not seem to work for me on my phpBB 3.3.11 test instance.
Code: Select all
a[href*=".pdf"].external {
background: url("//upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right;
/* @noflip */
padding: 8px 18px 8px 0;
}
Code: Select all
/*
For this to work you need to have already included FontAwesome (https://fortawesome.github.io/Font-Awesome/) in your <head>:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
*/
a[href$=".pdf"]:after {
font-family: FontAwesome;
content: "\00a0\f1c1"; /* 00a0 is a non-breaking space, f1c1 is the pdf symbol */
}