Skip to content

Commit

Permalink
style: unify code block border style on engineering blog (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
huijing authored Aug 5, 2024
1 parent 068e9c4 commit be9972a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ export default defineConfig({
],
expressiveCode: {
themes: ["github-dark-dimmed"],
styleOverrides: {
borderColor: "transparent",
borderRadius: "var(--border-radius)",
},
},
}),
],
Expand Down
4 changes: 4 additions & 0 deletions src/layouts/BlogLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,8 @@ article :global(tbody tr:last-of-type th:last-child),
article :global(tbody tr:last-of-type td:last-child) {
border-end-end-radius: var(--border-radius);
}

article :global(.expressive-code) {
margin-block-end: var(--space-s);
}
</style>

0 comments on commit be9972a

Please sign in to comment.