-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexternallinkmark.css
42 lines (33 loc) · 2.48 KB
/
externallinkmark.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
:root {
--external-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='green' width='1em' title='external-link-alt'%3E%3Cpath d='M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z' /%3E%3C/svg%3E");
--pdf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512' width='.75em' fill='green' title='file-pdf'%3E%3Cpath d='M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z' /%3E%3C/svg%3E");
}
a[href^="https"][target="_blank"] > *:first-child:after,
a[href^="http"][target="_blank"] > *:first-child:after,
a[target="_blank"] {
content: " " var(--external-icon);
}
a[href$=".pdf" i] > *:first-child:after {
content: " " var(--pdf-icon);
}
a[href^="mailto"] > *:first-child:after {
content: " " url(https://img.icons8.com/windows/14/null/new-post.png);
}
a[href^="https://github.com/"] > *:first-child:after
{
content: " " url(/img/custom-resized-github-mark.svg);
}
a[href^="https://youtube.com/"]:not(.NoYTLinkIcon) > *:first-child:after, a[href^="http://www.youtube.com/"]:not(.NoYTLinkIcon):first-child:after
{
content: " " url(https://img.icons8.com/color/16/null/youtube-play.png);
}
a[href^="https://github.com/"] > *:first-child:after
{
content: " " url(/img/custom-resized-github-mark.svg);
}
a[href^="https://wikipedia.com/"] > *:first-child:after {
content: " " url(/img/custom-resized-github-mark.svg);
}
/*
* orignal css file from kevin powell *
*/