Skip to content

Commit e4e8cb4

Browse files
authored
Merge pull request #113 from kraken-tech/cwd/external-links
Rework external link marker style
2 parents cb94806 + 01bad42 commit e4e8cb4

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

docs/static/css/theme.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,17 @@
1313

1414
/* External link icon */
1515
.md-content a[href^="http"]:after {
16-
content: "↗";
17-
font-size: 0.7em;
18-
opacity: 0.7;
19-
margin-left: 0.1em;
16+
--link-icon-svg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2048 2048'%3E%3Cpath d='M1792 256v640h-128V475l-851 850-90-90 850-851h-421V256h640zm-512 1007h128v529H256V640h529v128H384v896h896v-401z'/%3E%3C/svg%3E");
17+
18+
width: .5rem;
19+
height: .5rem;
2020
vertical-align: super;
21+
22+
display: inline-block;
23+
background-color: currentColor;
24+
content: '';
25+
-webkit-mask-image: var(--link-icon-svg);
26+
mask-image: var(--link-icon-svg);
27+
-webkit-mask-size: cover;
28+
mask-size: cover;
2129
}

0 commit comments

Comments
 (0)