diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-05 18:42:21 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-05 18:42:21 -0700 |
commit | f38d68c3555abddd30481018230c2c3c915d4517 (patch) | |
tree | a03e392387a3bc9a7816e91500f13cff509274dc /theme | |
parent | 865bf40e1a761f09383294b1f3d5d70b24bc4a4b (diff) | |
download | gitbook-f38d68c3555abddd30481018230c2c3c915d4517.zip gitbook-f38d68c3555abddd30481018230c2c3c915d4517.tar.gz gitbook-f38d68c3555abddd30481018230c2c3c915d4517.tar.bz2 |
Improve style of exercises in pdf format
Diffstat (limited to 'theme')
-rw-r--r-- | theme/assets/print.css | 2 | ||||
-rw-r--r-- | theme/stylesheets/print.less | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/theme/assets/print.css b/theme/assets/print.css index 25e9410..2caddeb 100644 --- a/theme/assets/print.css +++ b/theme/assets/print.css @@ -1 +1 @@ -h1,h2{page-break-after:avoid;page-break-before:auto}pre,blockquote{border:1px solid #999;page-break-inside:avoid}img{max-width:100%!important;page-break-inside:avoid}section{page-break-after:always}section#cover{padding:3cm 0;text-align:center}section#cover h1{font-size:1.5cm}section#summary{text-align:center}section#summary ul{font-size:.5cm;line-height:1.8em;padding:0;margin:0;list-style:none}section#summary>ul>li{margin-bottom:1cm}section#summary>ul>li>a{font-size:.6cm}section article{margin:1.5cm}section article.new-chapter{page-break-after:always;font-size:.6cm;text-align:center;padding:3cm 0;border-top:1px solid #ccc}@media print{section article.new-chapter{border:0}}section article .exercise{border:3px solid #ddd}
\ No newline at end of file +h1,h2{page-break-after:avoid;page-break-before:auto}pre,blockquote{border:1px solid #999;page-break-inside:avoid}img{max-width:100%!important;page-break-inside:avoid}section{page-break-after:always}section#cover{padding:3cm 0;text-align:center}section#cover h1{font-size:1.5cm}section#summary{text-align:center}section#summary ul{font-size:.5cm;line-height:1.8em;padding:0;margin:0;list-style:none}section#summary>ul>li{margin-bottom:1cm}section#summary>ul>li>a{font-size:.6cm}section article{margin:1.5cm}section article.new-chapter{page-break-after:always;font-size:.6cm;text-align:center;padding:3cm 0;border-top:1px solid #ccc}@media print{section article.new-chapter{border:0}}section article .exercise{margin:1cm 0;padding:.4cm;page-break-inside:avoid;border:3px solid #ddd}section article .exercise .exercise-header{margin-bottom:.4cm;padding-bottom:.2cm;border-bottom:1px solid #ddd}
\ No newline at end of file diff --git a/theme/stylesheets/print.less b/theme/stylesheets/print.less index 1c59ce6..33fe3d8 100644 --- a/theme/stylesheets/print.less +++ b/theme/stylesheets/print.less @@ -65,8 +65,17 @@ section { } .exercise { + margin: 1cm 0cm; + padding: 0.4cm; + page-break-inside: avoid; + border: 3px solid #ddd; - + + .exercise-header { + margin-bottom: 0.4cm; + padding-bottom: 0.2cm; + border-bottom: 1px solid #ddd; + } } } }
\ No newline at end of file |