Skip to content

Commit 18e4e27

Browse files
authored
make p code elements in docs scrollable (#8056)
Co-authored-by: Joel Drake <[email protected]>
1 parent bc4a905 commit 18e4e27

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sites/site-kit/src/lib/styles/text.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@
5656
background: transparent;
5757
}
5858

59+
.text p code {
60+
max-width: 100%;
61+
display: inline-flex;
62+
overflow-x: auto;
63+
padding-top: 0;
64+
padding-bottom: 0;
65+
}
66+
5967
.text .code-block .filename {
6068
content: attr(data-file);
6169
display: block;

0 commit comments

Comments
 (0)