Skip to content

Commit f2149ff

Browse files
authored
Merge pull request #11 from interledger/chj/2/update-codeblock-component
feat: update the CodeBlock component
2 parents cf1bdd7 + b25cd16 commit f2149ff

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

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.1.2",
3+
"version": "0.1.3",
44
"type": "module",
55
"description": "Shared styles and components used across all Interledger Starlight documentation sites",
66
"exports": {

src/components/CodeBlock.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ div {
1717
margin-top: 0;
1818
}
1919

20+
.codeblock :global(.expressive-code) {
21+
margin-top: 0;
22+
}
23+
2024
p {
2125
margin-top: var(--space-s);
2226
border-top-right-radius: var(--border-radius);

src/styles/ilf-docs.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@
281281
table,
282282
pre,
283283
.starlight-aside,
284-
.img-outline {
284+
.img-outline,
285+
.expressive-code {
285286
border-radius: var(--border-radius);
286287
box-shadow: var(--sl-shadow-sm);
287288
}

0 commit comments

Comments
 (0)