Skip to content

Commit bc70245

Browse files
committed
docs: Change external links styling
1 parent 347ce76 commit bc70245

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docs/css/mkdocstrings.css

+8-3
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,23 @@ div.doc-contents:not(.first) {
55
}
66

77
/* Mark external links as such */
8-
a.autorefs-external:hover::after {
8+
a.autorefs-external::after {
99
/* https://primer.style/octicons/arrow-up-right-24 */
1010
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="rgb(0, 0, 0)" d="M18.25 15.5a.75.75 0 00.75-.75v-9a.75.75 0 00-.75-.75h-9a.75.75 0 000 1.5h7.19L6.22 16.72a.75.75 0 101.06 1.06L17.5 7.56v7.19c0 .414.336.75.75.75z"></path></svg>');
1111
content: ' ';
1212

1313
display: inline-block;
14-
position: absolute;
14+
position: relative;
15+
top: 0.1em;
1516
margin-left: 0.2em;
16-
margin-top: 0.4em;
17+
margin-right: 0.1em;
18+
/* padding-top: 0.8em; */
1719

1820
height: 1em;
1921
width: 1em;
2022
border-radius: 100%;
23+
background-color: var(--md-typeset-a-color);
24+
}
25+
a.autorefs-external:hover::after {
2126
background-color: var(--md-accent-fg-color);
2227
}

0 commit comments

Comments
 (0)