Skip to content

Commit 4105f6c

Browse files
authored
Add external link icon style (#58)
1 parent e2f8cd8 commit 4105f6c

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

src/css/doc.css

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -180,21 +180,6 @@
180180
color: var(--link_unresolved-font-color) !important;
181181
}
182182

183-
.doc a.external::after {
184-
font-family: "Material Icons Outlined", sans-serif;
185-
content: "\e89e";
186-
font-size: calc(16 / var(--rem-base) * 1rem);
187-
vertical-align: bottom;
188-
margin-left: var(--ds-space-h);
189-
font-weight: normal;
190-
}
191-
192-
.doc a.ds-button.external::after {
193-
margin-left: calc(6 / var(--rem-base) * 1rem);
194-
margin-bottom: var(--ds-space-q);
195-
font-size: calc(20 / var(--rem-base) * 1rem);
196-
}
197-
198183
.doc i.fa {
199184
hyphens: none;
200185
font-style: normal;

src/css/external-link-icon.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.doc a.external::after,
2+
.doc a[href^="https://"]:not([href*="docs.datastax.com"]):not([href*="localhost"]):not([href*="127.0.0.1"]):not(.remove-ext-icon)::after,
3+
.doc a[href^="http://"]:not([href*="docs.datastax.com"]):not([href*="localhost"]):not([href*="127.0.0.1"]):not(.remove-ext-icon)::after {
4+
font-family: "Material Icons Outlined", sans-serif;
5+
content: '\e89e';
6+
font-size: calc(16 / var(--rem-base) * 1rem);
7+
vertical-align: bottom;
8+
margin-left: var(--ds-space-h);
9+
font-weight: normal;
10+
}

src/css/site.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@
2828
@import "print.css";
2929
@import "docsearch.css";
3030
@import "tailwind/tailwind.css";
31+
@import "external-link-icon.css";

0 commit comments

Comments
 (0)