diff --git a/content/onepage.md b/content/onepage.md deleted file mode 100644 index f373920..0000000 --- a/content/onepage.md +++ /dev/null @@ -1,4 +0,0 @@ -+++ -title = "Infusion" -type = "onepage" -+++ diff --git a/content/print-version.md b/content/print-version.md new file mode 100644 index 0000000..a00e9eb --- /dev/null +++ b/content/print-version.md @@ -0,0 +1,6 @@ ++++ +title = "Infusion" +type = "print-version" ++++ + +You don't want to edit this file :-) diff --git a/docs/css/styles.css b/docs/css/styles.css index 053fe60..d26a82c 100644 --- a/docs/css/styles.css +++ b/docs/css/styles.css @@ -302,6 +302,11 @@ caption { border: 0; } +.logo img { + width: 100%; + max-width: 12rem; +} + .library-desc { font-style: italic; margin-top: 0.5rem; @@ -678,7 +683,7 @@ pre[class*=language-] code * { padding: 0.75rem 0; } -[id^="expandable-"] { +[id^="js-expandable-"] { margin: 0; padding: 1.5rem 0 0.75rem; } @@ -838,11 +843,11 @@ h1 svg { /* Single page layout */ -.wrapper.one-page .main-and-footer { +.wrapper.print-version .main-and-footer { margin-left: 0; } -.wrapper.one-page .intro-and-nav { +.wrapper.print-version .intro-and-nav { position: static; border: 0; width: auto; @@ -852,36 +857,46 @@ h1 svg { justify-content: center; } -.wrapper.one-page main { +.wrapper.print-version main { min-height: 0; } -.wrapper.one-page .library-desc { +.wrapper.print-version .library-desc { font-size: 1rem; } -.wrapper.one-page .intro-and-nav > div { +.wrapper.print-version .intro-and-nav > div { height: auto; } -.wrapper.one-page #patterns-list { +.wrapper.print-version #patterns-list { margin-left: 0; margin-top: 1.5rem; display: block; } -.wrapper.one-page .toc { +.wrapper.print-version .toc { font-size: 1rem; } -.wrapper.one-page .toc h2 { +.wrapper.print-version .toc h2 { font-size: 1.66rem; } -.wrapper.one-page #patterns-list h3 { +.wrapper.print-version #patterns-list h3 { font-size: 1.25rem; } +.pattern-section + .pattern-section { + padding-top: 5rem; + margin-top: 5rem; + border-top: 2px solid; +} + +.pattern-section h1 { + padding: 0 !important; +} + @media screen and (max-width: 45em) { [role="banner"] { @@ -898,10 +913,6 @@ h1 svg { padding: 1.5rem; } - .logo img { - max-width: 15rem; - } - .main-and-footer { margin: 0; } @@ -966,8 +977,8 @@ h1 svg { @media print { - .wrapper:not(.one-page) .intro-and-nav, - .wrapper:not(.one-page) [role="contentinfo"] { + .wrapper:not(.print-version) .intro-and-nav, + .wrapper:not(.print-version) [role="contentinfo"] { display: none; } @@ -1010,7 +1021,7 @@ h1 svg { margin-top: 0.75rem; } - [id^="expandable-"] { + [id^="js-expandable-"] { display: block; } diff --git a/docs/index.xml b/docs/index.xml index a1c3e1c..187e2d0 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -131,11 +131,11 @@ The file tree is described using a markdown nested list structure: Infusion - https://heydon.github.io/infusion/onepage/ + https://heydon.github.io/infusion/print-version/ Mon, 01 Jan 0001 00:00:00 +0000 - https://heydon.github.io/infusion/onepage/ - + https://heydon.github.io/infusion/print-version/ + You don’t want to edit this file :-) diff --git a/docs/onepage/index.html b/docs/onepage/index.html deleted file mode 100644 index 1f338a7..0000000 --- a/docs/onepage/index.html +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Infusion - - - - - - - - - - - - - - W3C - SVG - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
- - - - - diff --git a/docs/patterns/writing/expandable-sections/index.html b/docs/patterns/writing/expandable-sections/index.html index d6231be..d281df2 100644 --- a/docs/patterns/writing/expandable-sections/index.html +++ b/docs/patterns/writing/expandable-sections/index.html @@ -322,7 +322,7 @@ Here is some markdown including [a link](https://twitter.com/heydonworks). Donec

-

-