Skip to content

Commit 84bbed7

Browse files
author
Jonathan Visser
committed
Fix issue where code blocks dont properly respect page size width
1 parent 280cc88 commit 84bbed7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/_static/scss/components/defaults/_code.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "../../breakpoints" as *;
2+
13
.rst-content section ul {
24
line-height: auto;
35
}
@@ -48,6 +50,15 @@ code.docutils.literal.notranslate {
4850
border-radius: 8px;
4951
background-color: #292d3e;
5052
color: #D9E7F3;
53+
width: min(900px, calc(100vw - 100px));
54+
55+
@media (min-width: $breakpoint-laptop) {
56+
width: min(900px, calc(100vw - 600px));
57+
}
58+
59+
@media (min-width: $breakpoint-landscape) {
60+
width: min(900px, calc(100vw - 400px));
61+
}
5162

5263
.c1 {
5364
color: var(--message-warning);

0 commit comments

Comments
 (0)