Skip to content

Commit

Permalink
Add external link icon style (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
josuebran authored Dec 8, 2023
1 parent e2f8cd8 commit 4105f6c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/css/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,21 +180,6 @@
color: var(--link_unresolved-font-color) !important;
}

.doc a.external::after {
font-family: "Material Icons Outlined", sans-serif;
content: "\e89e";
font-size: calc(16 / var(--rem-base) * 1rem);
vertical-align: bottom;
margin-left: var(--ds-space-h);
font-weight: normal;
}

.doc a.ds-button.external::after {
margin-left: calc(6 / var(--rem-base) * 1rem);
margin-bottom: var(--ds-space-q);
font-size: calc(20 / var(--rem-base) * 1rem);
}

.doc i.fa {
hyphens: none;
font-style: normal;
Expand Down
10 changes: 10 additions & 0 deletions src/css/external-link-icon.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.doc a.external::after,
.doc a[href^="https://"]:not([href*="docs.datastax.com"]):not([href*="localhost"]):not([href*="127.0.0.1"]):not(.remove-ext-icon)::after,
.doc a[href^="http://"]:not([href*="docs.datastax.com"]):not([href*="localhost"]):not([href*="127.0.0.1"]):not(.remove-ext-icon)::after {
font-family: "Material Icons Outlined", sans-serif;
content: '\e89e';
font-size: calc(16 / var(--rem-base) * 1rem);
vertical-align: bottom;
margin-left: var(--ds-space-h);
font-weight: normal;
}
1 change: 1 addition & 0 deletions src/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@
@import "print.css";
@import "docsearch.css";
@import "tailwind/tailwind.css";
@import "external-link-icon.css";

0 comments on commit 4105f6c

Please sign in to comment.