8000 docs: Improve suggestion for styling external links · AntoineD/mkdocstrings-python@5852612 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5852612

Browse files
committed
docs: Improve suggestion for styling external links
1 parent 0be0809 commit 5852612

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

docs/css/mkdocstrings.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ a.autorefs-external::after {
1212
content: ' ';
1313

1414
display: inline-block;
15+
vertical-align: middle;
1516
position: relative;
16-
top: 0.1em;
17+
bottom: 0.1em;
1718
margin-left: 0.2em;
1819
margin-right: 0.1em;
1920

20-
height: 1em;
21-
width: 1em;
21+
height: 0.7em;
22+
width: 0.7em;
2223
border-radius: 100%;
2324
background-color: var(--md-typeset-a-color);
2425
}

docs/usage/customization.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,20 @@ a.autorefs-external::after {
7070
content: ' ';
7171

7272
display: inline-block;
73+
vertical-align: middle;
7374
position: relative;
74-
top: 0.1em;
75+
bottom: 0.1em;
7576
margin-left: 0.2em;
7677
margin-right: 0.1em;
7778

78-
height: 1em;
79-
width: 1em;
79+
height: 0.7em;
80+
width: 0.7em;
8081
border-radius: 100%;
8182
background-color: var(--md-typeset-a-color);
8283
}
8384
a.autorefs-external:hover::after {
8485
background-color: var(--md-accent-fg-color);
8586
}
86-
8787
```
8888

8989
### Recommended style (ReadTheDocs)

0 commit comments

Comments
 (0)
0