Skip to content

Commit 02c3444

Browse files
authored
Add external link indicator (#1096)
* Add external link icon * Run prettier
1 parent 46d8cfa commit 02c3444

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Elastic.Markdown/Assets/markdown/typography.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,10 @@
5050

5151
a {
5252
@apply font-body text-blue-elastic hover:text-blue-elastic-100 underline;
53+
54+
&[href^='http']::after {
55+
@apply ml-0.5;
56+
content: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='grey' height='16'><path d='M6.22 8.72a.75.75 0 0 0 1.06 1.06l5.22-5.22v1.69a.75.75 0 0 0 1.5 0v-3.5a.75.75 0 0 0-.75-.75h-3.5a.75.75 0 0 0 0 1.5h1.69L6.22 8.72Z' /><path d='M3.5 6.75c0-.69.56-1.25 1.25-1.25H7A.75.75 0 0 0 7 4H4.75A2.75 2.75 0 0 0 2 6.75v4.5A2.75 2.75 0 0 0 4.75 14h4.5A2.75 2.75 0 0 0 12 11.25V9a.75.75 0 0 0-1.5 0v2.25c0 .69-.56 1.25-1.25 1.25h-4.5c-.69 0-1.25-.56-1.25-1.25v-4.5Z' /></svg>");
57+
}
5358
}
5459
}

0 commit comments

Comments
 (0)