fix: 🐛 display target blank icon only for sidebar menu

Signed-off-by: jffarge <jf@dagger.io>
This commit is contained in:
jffarge 2021-08-09 11:54:28 +02:00
parent 795430024b
commit 31d36e5293

View File

@ -129,15 +129,15 @@ p {
line-height: 24px; line-height: 24px;
} }
a[target="_blank"]:not(.edit-this-page) { a.menu__link[target="_blank"] {
svg { svg {
display: none; display: none;
} }
&:after { &:after {
background: var(--ifm-color-primary-darker); background: var(--ifm-color-primary-darker);
mask: url("/img/Dagger_Icons_External-link.svg") no-repeat; mask: url("/img/Dagger_Icons_External-link.svg") no-repeat;
position: absolute; position: absolute;
content:''; content: "";
right: var(--ifm-menu-link-padding-horizontal); right: var(--ifm-menu-link-padding-horizontal);
top: var(--ifm-menu-link-padding-vertical); top: var(--ifm-menu-link-padding-vertical);
height: 1.25rem; height: 1.25rem;