Skip to content

Commit a189705

Browse files
committed
Add padding around code examples.
They were all squished against the edges of the box. This makes them less squished and prevents overlap of bottom scroll bar with the bottom row of text.
1 parent fc24643 commit a189705

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

doc/_static/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ div.highlight > pre {
440440
background-color: #f5f4d8;
441441
background-size: 20px 100%, 20px 100%, 16px 100%, 16px 100%;
442442
background-attachment: local, local, scroll, scroll;
443+
padding: 0.5em;
443444
}
444445

445446
/* https://moderncss.dev/totally-custom-list-styles/ make a list

website/www/_static/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ div.highlight > pre {
440440
background-color: #f5f4d8;
441441
background-size: 20px 100%, 20px 100%, 16px 100%, 16px 100%;
442442
background-attachment: local, local, scroll, scroll;
443+
padding: 0.5em;
443444
}
444445

445446
/* https://moderncss.dev/totally-custom-list-styles/ make a list

0 commit comments

Comments
 (0)