Skip to content

Commit 011008b

Browse files
committed
Make examples scrollable if they overflow.
1 parent 579e1e8 commit 011008b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

website/www/_static/style.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ dd p.first { margin-block-start: 0; }
318318
/* assume desktop reader for local html files, also no contact
319319
page for local doc files */
320320

321+
/* make examples with long lines scrollable */
322+
div.highlight { overflow: auto;}
323+
321324
@media only screen and (max-width:960px) {
322325
/* setup for layout/page frame */
323326
body { padding-inline-start: unset; /* remove space for float menu */}
@@ -337,8 +340,6 @@ dd p.first { margin-block-start: 0; }
337340
div.contents ul.simple li { padding-block: .5em; }
338341
ul.simple li a { min-height: 48px;
339342
display: block;}
340-
/* make examples with long lines scrollable */
341-
div.highlight pre { overflow: auto;}
342343
}
343344

344345
/* Contact page */

0 commit comments

Comments
 (0)