diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-06-16 13:55:07 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-06-16 13:55:07 +0200 |
commit | f03153eb0c25ba07760f80c0346570a5c955b49a (patch) | |
tree | 6e958f58de9593e9c6a0ad20b55d7fc4dfd7b1af | |
parent | 3d8b6e550a1ca6ed2c3f3f459c375d6c62432d91 (diff) | |
download | gitbook-f03153eb0c25ba07760f80c0346570a5c955b49a.zip gitbook-f03153eb0c25ba07760f80c0346570a5c955b49a.tar.gz gitbook-f03153eb0c25ba07760f80c0346570a5c955b49a.tar.bz2 |
Remove page break between articles in ebook
Add title for exercise solutions sections
-rwxr-xr-x | theme/assets/print.css | 2 | ||||
-rwxr-xr-x | theme/stylesheets/ebook.less | 3 | ||||
-rw-r--r-- | theme/templates/page.html | 1 |
3 files changed, 2 insertions, 4 deletions
diff --git a/theme/assets/print.css b/theme/assets/print.css index ec90288..3f5b96b 100755 --- a/theme/assets/print.css +++ b/theme/assets/print.css @@ -1 +1 @@ -.link-inherit{color:inherit}.link-inherit:hover,.link-inherit:focus{color:inherit}.hljs-comment,.hljs-title{color:#8e908c}.hljs-variable,.hljs-attribute,.hljs-tag,.hljs-regexp,.ruby .hljs-constant,.xml .hljs-tag .hljs-title,.xml .hljs-pi,.xml .hljs-doctype,.html .hljs-doctype,.css .hljs-id,.css .hljs-class,.css .hljs-pseudo{color:#c82829}.hljs-number,.hljs-preprocessor,.hljs-pragma,.hljs-built_in,.hljs-literal,.hljs-params,.hljs-constant{color:#f5871f}.ruby .hljs-class .hljs-title,.css .hljs-rules .hljs-attribute{color:#eab700}.hljs-string,.hljs-value,.hljs-inheritance,.hljs-header,.ruby .hljs-symbol,.xml .hljs-cdata{color:#718c00}.css .hljs-hexcolor{color:#3e999f}.hljs-function,.python .hljs-decorator,.python .hljs-title,.ruby .hljs-function .hljs-title,.ruby .hljs-title .hljs-keyword,.perl .hljs-sub,.javascript .hljs-title,.coffeescript .hljs-title{color:#4271ae}.hljs-keyword,.javascript .hljs-function{color:#8959a8}.hljs{display:block;background:white;color:#4d4d4c;padding:.5em}.coffeescript .javascript,.javascript .xml,.tex .hljs-formula,.xml .javascript,.xml .vbscript,.xml .css,.xml .hljs-cdata{opacity:.5}.book-chapter{display:none}article{page-break-after:always}pre,blockquote{border:1px solid #999;page-break-inside:avoid;background:#f1f1f1;padding:8px}img{max-width:100%!important;page-break-inside:avoid;margin:0 auto}.exercise,.quiz{margin:1cm 0;padding:.4cm;page-break-inside:avoid;border:3px solid #ddd}.exercise .exercise-header,.quiz .exercise-header{margin-bottom:.4cm;padding-bottom:.2cm;border-bottom:1px solid #ddd}.exercise .question,.quiz .question{margin-top:.4cm}
\ No newline at end of file +.link-inherit{color:inherit}.link-inherit:hover,.link-inherit:focus{color:inherit}.hljs-comment,.hljs-title{color:#8e908c}.hljs-variable,.hljs-attribute,.hljs-tag,.hljs-regexp,.ruby .hljs-constant,.xml .hljs-tag .hljs-title,.xml .hljs-pi,.xml .hljs-doctype,.html .hljs-doctype,.css .hljs-id,.css .hljs-class,.css .hljs-pseudo{color:#c82829}.hljs-number,.hljs-preprocessor,.hljs-pragma,.hljs-built_in,.hljs-literal,.hljs-params,.hljs-constant{color:#f5871f}.ruby .hljs-class .hljs-title,.css .hljs-rules .hljs-attribute{color:#eab700}.hljs-string,.hljs-value,.hljs-inheritance,.hljs-header,.ruby .hljs-symbol,.xml .hljs-cdata{color:#718c00}.css .hljs-hexcolor{color:#3e999f}.hljs-function,.python .hljs-decorator,.python .hljs-title,.ruby .hljs-function .hljs-title,.ruby .hljs-title .hljs-keyword,.perl .hljs-sub,.javascript .hljs-title,.coffeescript .hljs-title{color:#4271ae}.hljs-keyword,.javascript .hljs-function{color:#8959a8}.hljs{display:block;background:white;color:#4d4d4c;padding:.5em}.coffeescript .javascript,.javascript .xml,.tex .hljs-formula,.xml .javascript,.xml .vbscript,.xml .css,.xml .hljs-cdata{opacity:.5}.book-chapter{display:none}pre,blockquote{border:1px solid #999;page-break-inside:avoid;background:#f1f1f1;padding:8px}img{max-width:100%!important;page-break-inside:avoid;margin:0 auto}.exercise,.quiz{margin:1cm 0;padding:.4cm;page-break-inside:avoid;border:3px solid #ddd}.exercise .exercise-header,.quiz .exercise-header{margin-bottom:.4cm;padding-bottom:.2cm;border-bottom:1px solid #ddd}.exercise .question,.quiz .question{margin-top:.4cm}
\ No newline at end of file diff --git a/theme/stylesheets/ebook.less b/theme/stylesheets/ebook.less index 0a9d655..154c3bf 100755 --- a/theme/stylesheets/ebook.less +++ b/theme/stylesheets/ebook.less @@ -7,9 +7,6 @@ display: none; } -article { - page-break-after: always; -} pre, blockquote { border: 1px solid #999; diff --git a/theme/templates/page.html b/theme/templates/page.html index 6c8cd54..9c58ab1 100644 --- a/theme/templates/page.html +++ b/theme/templates/page.html @@ -52,6 +52,7 @@ {% set exercise = 1 %} <article> <h1 class="book-chapter book-chapter-1">Exercise Solutions</h1> + <h1>Exercise Solutions</h1> {% for item in progress.chapters %} {% if pages[item.path] %} |