Skip to content

Commit 6e75bf6

Browse files
committed
feat: add external link icon to sidebar
1 parent 3e7a51b commit 6e75bf6

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default defineConfig({
1818
If you are using them in an Astro layout file, then the import would look like this for the build to not fail:
1919

2020
```
21-
import '/node_modules/@interledger/docs-design-system/src/styles/green-theme.css';
21+
import '/node_modules/@interledger/docs-design-system/src/styles/teal-theme.css';
2222
```
2323

2424
We also have a number of documentation-specific helper components that can be imported and used where necessary. For these shared components, if you are using both `CodeBlock` and `Disclosure` on the same page, you can import them both like so:
@@ -29,7 +29,7 @@ import { CodeBlock, Disclosure } from "@interledger/docs-design-system";
2929

3030
For more information about importing things in Javascript, please refer to [import on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import).
3131

32-
The available shared components are documented at our [documentation style guide](https://interledger.tech).
32+
The available shared components are documented at our [documentation style guide](https://interledger.net).
3333

3434
## Contributing
3535

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@interledger/docs-design-system",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"type": "module",
55
"description": "Shared styles and components used across all Interledger Starlight documentation sites",
66
"exports": {

src/styles/ilf-docs.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@
9595
padding: var(--space-2xs) var(--sl-sidebar-item-padding-inline);
9696
}
9797

98+
.sidebar-content [data-icon="external"]::after {
99+
content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18"><path stroke="hsl(221,8%,56%)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 3H3a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-4M11 1h6m0 0v6m0-6L7 11"/></svg>');
100+
height: 0.75em;
101+
width: 0.75em;
102+
display: inline-block;
103+
}
104+
98105
.sidebar-content a[aria-current="page"],
99106
.sidebar-content a[aria-current="page"]:hover,
100107
.sidebar-content a[aria-current="page"]:focus {
@@ -514,6 +521,12 @@ input:not([type="submit"]):not([type="file"]):focus {
514521
}
515522
}
516523

524+
@media screen and (min-width: 80rem) {
525+
.expressive-code {
526+
max-width: 48rem;
527+
}
528+
}
529+
517530
/* Footnote styles */
518531
.footnotes.footnotes.footnotes {
519532
margin-block-start: var(--space-l);

0 commit comments

Comments
 (0)