Skip to content

Commit 75e29c9

Browse files
committed
Add favicons for known sites
For popular sites, or sites I’ll be linking to a lot, let’s add their little favicon inline. Oooh, that’s nice.
1 parent 9cc79b5 commit 75e29c9

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

demo/index.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@
127127
text-decoration: underline;
128128
}
129129

130-
a[href^="https://github.com"]::after {
130+
a[href^="https://csswizardry.com"]::after,
131+
a[href^="https://github.com"]::after,
132+
a[href^="https://fonts.google.com/"]::after {
131133
content: "";
132134
display: inline-block;
133135
width: 1ch;
@@ -136,9 +138,20 @@
136138
margin-left: 0.1ch;
137139
vertical-align: super;
138140
font-style: normal;
141+
}
142+
143+
a[href^="https://csswizardry.com"]::after {
144+
background-image: url(https://csswizardry.com/icon.png);
145+
}
146+
147+
a[href^="https://github.com"]::after {
139148
background-image: url(https://github.githubassets.com/favicons/favicon.svg);
140149
}
141150

151+
a[href^="https://fonts.google.com/"]::after {
152+
background-image: url(https://www.gstatic.com/images/icons/material/apps/fonts/1x/catalog/v5/favicon.svg);
153+
}
154+
142155
img, video {
143156
max-width: 100%;
144157
height: auto;
@@ -548,7 +561,7 @@ <h2 id=showcase>Showcase</h2>
548561
})();
549562
</script>
550563

551-
<p><small><a href=https://github.com/csswizardry/Obs.js/fork>Submit your site.</a></small></p>
564+
<p><a href=https://github.com/csswizardry/Obs.js/fork>Submit your site</a></p>
552565

553566

554567

0 commit comments

Comments
 (0)