Skip to content

Commit 4d00fd8

Browse files
committed
don't show ext link icon on images or svg
1 parent 5c208ab commit 4d00fd8

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

src/css/asciidoc/doc.css

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,15 +1045,23 @@
10451045
padding-left: calc(28 / var(--rem-base) * 1rem);
10461046
}
10471047

1048-
.doc a.external::after,
1049-
.doc a[href^="https://"]:not([href*="docs.datastax.com"]):not([href*="localhost"]):not([href*="127.0.0.1"]):not(.remove-ext-icon)::after,
1050-
.doc a[href^="http://"]:not([href*="docs.datastax.com"]):not([href*="localhost"]):not([href*="127.0.0.1"]):not(.remove-ext-icon)::after
1051-
{
1052-
font-family: "Material Icons Outlined", sans-serif;
1053-
content: "\e89e";
1054-
font-size: calc(16 / var(--rem-base) * 1rem);
1055-
vertical-align: bottom;
1056-
margin-left: var(--ds-space-h);
1057-
font-weight: normal;
1048+
.doc a.external,
1049+
.doc a[href^="https://"],
1050+
.doc a[href^="http://"] {
1051+
&:not(
1052+
.remove-ext-icon,
1053+
:has(img),
1054+
:has(svg),
1055+
[href*="docs.datastax.com"],
1056+
[href*="localhost"],
1057+
[href*="127.0.0.1"]
1058+
)::after {
1059+
font-family: "Material Icons Outlined", sans-serif;
1060+
content: "\e89e";
1061+
font-size: calc(16 / var(--rem-base) * 1rem);
1062+
vertical-align: bottom;
1063+
margin-left: var(--ds-space-h);
1064+
font-weight: normal;
1065+
}
10581066
}
10591067
}

0 commit comments

Comments
 (0)