Skip to content

Commit 9cc79b5

Browse files
committed
Add GitHub icon to GitHub link
1 parent ecff843 commit 9cc79b5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

demo/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,18 @@
127127
text-decoration: underline;
128128
}
129129

130+
a[href^="https://github.com"]::after {
131+
content: "";
132+
display: inline-block;
133+
width: 1ch;
134+
height: 1ch;
135+
background-size: cover;
136+
margin-left: 0.1ch;
137+
vertical-align: super;
138+
font-style: normal;
139+
background-image: url(https://github.githubassets.com/favicons/favicon.svg);
140+
}
141+
130142
img, video {
131143
max-width: 100%;
132144
height: auto;

0 commit comments

Comments
 (0)