Skip to content

Commit

Permalink
fix: add margin for code blocks on website
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mulier-p committed Feb 3, 2025
1 parent 5944bfb commit c086629
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/plugins/SchemaToHtml.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,15 @@
padding-bottom: 0.5rem !important;
}
:deep(.markdown pre) {
&:last-child {
margin-bottom: 0;
}
:deep(.markdown) {
> pre, > .code-block {
&:last-child {
margin-bottom: 0;
}
&:not(:first-child) {
margin-top: calc(var(--spacer) * .75);
&:not(:first-child) {
margin-top: calc(var(--spacer) * .75);
}
}
}
Expand Down

1 comment on commit c086629

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.