Skip to content

Commit

Permalink
doc: add external link decoration to sidebar
Browse files Browse the repository at this point in the history
External link decorations are already enabled in the documentation
content, but the RTD theme doesn't extend this to the sidebar. This
copies the css from the RTD theme and adds it to the sidebar.

This makes it less of a surprise when you click on a link and find
yourself on a completely different website.
  • Loading branch information
dlech authored and laurensvalk committed Mar 25, 2020
1 parent 87c2b68 commit 6ada013
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/common/_static/css/theme_overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,13 @@ span.caption-number:after {
max-width: 800px;
}
}

/* decorate external links in navigation side bar */
.wy-nav-side a.reference.external:after {
font-family: FontAwesome;
content: "";
color: #b3b3b3;
vertical-align: super;
font-size: 60%;
margin: 0 0.2em;
}

0 comments on commit 6ada013

Please sign in to comment.