1 | /* -------------------------------------------------------------- |
---|
2 | |
---|
3 | link-icons.css |
---|
4 | * Icons for links based on protocol or file type. |
---|
5 | |
---|
6 | See the Readme file in this folder for additional instructions. |
---|
7 | |
---|
8 | -------------------------------------------------------------- */ |
---|
9 | |
---|
10 | /* Use this class if a link gets an icon when it shouldn't. */ |
---|
11 | body a.noicon { |
---|
12 | background:transparent none !important; |
---|
13 | padding:0 !important; |
---|
14 | margin:0 !important; |
---|
15 | } |
---|
16 | |
---|
17 | /* Make sure the icons are not cut */ |
---|
18 | a[href^="http:"], a[href^="mailto:"], a[href^="http:"]:visited, |
---|
19 | a[href$=".pdf"], a[href$=".doc"], a[href$=".xls"], a[href$=".rss"], |
---|
20 | a[href$=".rdf"], a[href^="aim:"] { |
---|
21 | padding:2px 22px 2px 0; |
---|
22 | margin:-2px 0; |
---|
23 | background-repeat: no-repeat; |
---|
24 | background-position: right center; |
---|
25 | } |
---|
26 | |
---|
27 | /* External links */ |
---|
28 | a[href^="http:"] { background-image: url(icons/external.png); } |
---|
29 | a[href^="mailto:"] { background-image: url(icons/email.png); } |
---|
30 | a[href^="http:"]:visited { background-image: url(icons/visited.png); } |
---|
31 | |
---|
32 | /* Files */ |
---|
33 | a[href$=".pdf"] { background-image: url(icons/pdf.png); } |
---|
34 | a[href$=".doc"] { background-image: url(icons/doc.png); } |
---|
35 | a[href$=".xls"] { background-image: url(icons/xls.png); } |
---|
36 | |
---|
37 | /* Misc */ |
---|
38 | a[href$=".rss"], |
---|
39 | a[href$=".rdf"] { background-image: url(icons/feed.png); } |
---|
40 | a[href^="aim:"] { background-image: url(icons/im.png); } |
---|