Skip to content

Commit d2b2fd7

Browse files
committed
Make code side-scroll on smaller screens
1 parent 73fae02 commit d2b2fd7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

cbv/static/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ html {overflow-y: scroll;}
4747
border-top-left-radius: 0;
4848
border-bottom-left-radius: 0;
4949
}
50+
.highlighttable pre {
51+
white-space: preserve nowrap;
52+
}
53+
.highlighttable td.code pre {
54+
max-width: calc(100vw - 100px);
55+
display: block;
56+
overflow-x: auto;
57+
}
5058
.page-header .docstring {
5159
margin-bottom: 0;
5260
}

0 commit comments

Comments
 (0)