Skip to content

Commit b0a9c41

Browse files
committed
chore: fix padding around codeblock on homepage
1 parent ff681ca commit b0a9c41

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/components/Hero.module.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,14 @@
7070
position: relative;
7171
width: 100%;
7272
color: var(--rp-code-block-color);
73-
margin: 8px 0;
73+
margin: 0.5em 0;
74+
}
75+
76+
.codeBlock > :global(.rp-codeblock) {
77+
margin: 0;
7478
}
7579

7680
.codeBlock pre {
77-
padding: 1.25rem;
81+
padding: 0 1.25rem;
7882
padding-right: 3.5rem;
7983
}

0 commit comments

Comments
 (0)