Add external-link icon to sidebar using CSS (#863)

This commit is contained in:
Patrice Chalin 2021-09-19 11:53:46 -04:00 committed by GitHub
parent c52dcffffe
commit 9bbf5c6395
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -9,6 +9,7 @@ what the workaround is for
cursor: pointer;
}
// External link icon
a > .fa-external-link-alt::before,
a > span > .fa-external-link-alt::before {
font-size: 50%;
@ -17,6 +18,15 @@ a > span > .fa-external-link-alt::before {
vertical-align: top;
}
.td-sidebar-nav a[target="_blank"]:after {
@extend .fas;
font-size: 50%;
margin-left: 3px;
opacity: 0.8;
vertical-align: text-top;
content: fa-content($fa-var-external-link-alt);
}
/*
Docsy's 'cover/block' option for setting background images does
not currently support svg's. This sets the background on hero

@ -1 +1 @@
Subproject commit 36745d9b01133a81e5c970ecb6fccc01cb5a9cd6
Subproject commit 19186eef26b2678237496de0a16ef85d9ac2cb2c