diff options
-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 |