Skip to content

Commit 7cc0b88

Browse files
committed
Add temporary fix: Padding top to avoid content overlap
not the prettiest solution, though
1 parent a1fd654 commit 7cc0b88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docusaurus/src/scss/code-block.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ pre.prism-code {
149149
&[class*="codeBlockContainer"],
150150
[class*="codeBlockContainer"] {
151151
background: var(--custom-code-block-background-color);
152+
position: relative;
152153

153154
&:not(:has([class*="codeBlockTitle"])) {
154155
padding: 24px !important;
@@ -208,11 +209,11 @@ pre.prism-code {
208209
position: relative;
209210
}
210211

211-
212212
[class*="codeBlockContent"] {
213213
border-radius: 0;
214214
border-color: transparent;
215215
border: none;
216+
padding-top: 36px;
216217

217218
pre.prism-code {
218219
background-color: var(--strapi-neutral-0) !important;
@@ -307,7 +308,7 @@ pre.prism-code {
307308
background-color: var(--strapi-neutral-200);
308309
position: absolute;
309310
top: -4px;
310-
left: 62px
311+
left: 62px;
311312
}
312313
}
313314
}
@@ -327,7 +328,6 @@ pre.prism-code {
327328
opacity: inherit; // Inherit from parent buttonGroup
328329
}
329330

330-
331331
@include medium-down {
332332
[class*="buttonGroup"],
333333
[class*="buttonGroup"] .clean-btn {
@@ -394,4 +394,4 @@ pre.prism-code {
394394
}
395395
}
396396
}
397-
}
397+
}

0 commit comments

Comments
 (0)