Skip to content

Commit 72dd463

Browse files
committed
configure so external links alwasy have up-right arrow and open in a new tab
1 parent 0291439 commit 72dd463

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/stylesheets/extra.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/*
2+
* Materialize links that open in a new window/tab with a right-up arrow icon
3+
*/
4+
.md-main a[target="_blank"]::after,
5+
.document a[target="_blank"]::after {
6+
content: "↗";
7+
display: inline-block;
8+
margin-left: 0.2em;
9+
width: 1em;
10+
height: 1em;
11+
}
12+
113
/* Custom styles to override MkDocs defaults and enhance theme */
214

315
/* Unordered list <ul> symbols:

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ extra_javascript:
8181
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
8282

8383
plugins:
84+
- open-in-new-tab
8485
- search
8586
- htmlproofer:
8687
enabled: !ENV [CHECK_BROKEN_LINKS, False]

0 commit comments

Comments
 (0)