Skip to content

Commit

Permalink
Merge pull request #11 from interledger/chj/2/update-codeblock-component
Browse files Browse the repository at this point in the history
feat: update the CodeBlock component
  • Loading branch information
huijing authored Nov 29, 2023
2 parents cf1bdd7 + b25cd16 commit f2149ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interledger/docs-design-system",
"version": "0.1.2",
"version": "0.1.3",
"type": "module",
"description": "Shared styles and components used across all Interledger Starlight documentation sites",
"exports": {
Expand Down
4 changes: 4 additions & 0 deletions src/components/CodeBlock.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ div {
margin-top: 0;
}

.codeblock :global(.expressive-code) {
margin-top: 0;
}

p {
margin-top: var(--space-s);
border-top-right-radius: var(--border-radius);
Expand Down
3 changes: 2 additions & 1 deletion src/styles/ilf-docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@
table,
pre,
.starlight-aside,
.img-outline {
.img-outline,
.expressive-code {
border-radius: var(--border-radius);
box-shadow: var(--sl-shadow-sm);
}
Expand Down

0 comments on commit f2149ff

Please sign in to comment.