on master help sign in
Merge pull request #608 from urbit/docswidth
2beef32poprox
sass/_main.scss+15
@@ -314,6 +314,15 @@ nav ul.docs {
314 line-height: 30px;
314 line-height: 30px;
315}
315}
316
316
317+.doc {
318+ > *:not(pre) {
319+ @extend .measure-wide;
320+ }
321+ pre {
322+ max-width: 60em;
323+ }
324+}
325+
317 // pagination
326 // pagination
318nav.previous, nav.next {
327nav.previous, nav.next {
319 max-width: 40% !important;
328 max-width: 40% !important;
@@ -452,6 +461,12 @@ pre {
452 padding: 1.25rem;
461 padding: 1.25rem;
453 overflow-x: scroll;
462 overflow-x: scroll;
454 @extend .bg-gray5;
463 @extend .bg-gray5;
464+
465+ code {
466+ overflow: scroll;
467+ white-space: pre;
468+ padding: 0;
469+ }
455}
470}
456
471
457code, .code, .mono {
472code, .code, .mono {
templates/doc.html+1−1
@@ -17,7 +17,7 @@
17<!-- header -->
17<!-- header -->
18<!-- content -->
18<!-- content -->
19{% include "partials/navigation-docs.html" %}
19{% 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">
21 <!-- header -->
21 <!-- header -->
22 <h1>{{ page.title }}</h1>
22 <h1>{{ page.title }}</h1>
23 <!-- body -->
23 <!-- body -->
templates/sections/docs.html+1−1
@@ -17,7 +17,7 @@
17<!-- header -->
17<!-- header -->
18<!-- content -->
18<!-- content -->
19{% include "partials/navigation-docs.html" %}
19{% 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">
21 <!-- header -->
21 <!-- header -->
22 <h1>{{ section.title }}</h1>
22 <h1>{{ section.title }}</h1>
23 <!-- body -->
23 <!-- body -->
templates/sections/docs/chapters.html+1−1
@@ -17,7 +17,7 @@
17<!-- header -->
17<!-- header -->
18<!-- content -->
18<!-- content -->
19{% include "partials/navigation-docs.html" %}
19{% 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">
21<!-- header -->
21<!-- header -->
22<h1>{{ section.title }}</h1>
22<h1>{{ section.title }}</h1>
23<!-- body -->
23<!-- body -->