on master help sign in
allow code blocks in docs to expand wider
commit431f341e14200fbe5ea5cddffc6ac7720a9cd7ab authorTyler Brown Cifu Shuster <tyler@fivepaths.com> dateMon 26 Apr 2021, 16:30 (6 years ago) parent53ba557
2 files changed+15−1
sass/_main.scss+14 templates/doc.html+1−1
sass/_main.scss+14
@@ -314,6 +314,15 @@ nav ul.docs {
314314 line-height: 30px;
315315}
316316
317+.doc {
318+ > *:not(pre) {
319+ @extend .measure-wide;
320+ }
321+ pre {
322+ max-width: 60em;
323+ }
324+}
325+
317326 // pagination
318327nav.previous, nav.next {
319328 max-width: 40% !important;
@@ -452,6 +461,11 @@ pre {
452461 padding: 1.25rem;
453462 overflow-x: scroll;
454463 @extend .bg-gray5;
464+
465+ code {
466+ overflow: scroll;
467+ white-space: pre;
468+ }
455469}
456470
457471code, .code, .mono {
templates/doc.html+1−1
@@ -17,7 +17,7 @@
1717<!-- header -->
1818<!-- content -->
1919{% include "partials/navigation-docs.html" %}
20−<article class="mt4 mb6 full c4-12-lg measure-wide">
20+<article class="mt4 mb6 full c4-12-lg doc">
2121 <!-- header -->
2222 <h1>{{ page.title }}</h1>
2323 <!-- body -->