From 4789073e6d462c27dae8d61f539bac84ee78f52a Mon Sep 17 00:00:00 2001 From: Mathieu David Date: Sat, 5 Sep 2015 11:40:40 +0200 Subject: [PATCH] Added print button + avoid pagebreaks after titles (doesn't work on chrome, should be tested in Firefox) --- src/theme/book.css | 11 +++++++++++ src/theme/index.hbs | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/theme/book.css b/src/theme/book.css index b234d401..7e35439c 100644 --- a/src/theme/book.css +++ b/src/theme/book.css @@ -110,6 +110,7 @@ html, body { .menu-bar i { position: relative; + margin: 0 10px; z-index: 10; line-height: 50px; -webkit-transition: color 0.5s; /* Safari */ @@ -118,6 +119,10 @@ html, body { transition: color 0.5s; } + .menu-bar .right-buttons { + float: right; + } + .menu-bar :hover { /* Animate color change */ color: #333; @@ -285,4 +290,10 @@ html, body { color: #4183c4; text-decoration: none; } + + h1, h2, h3, h4, h5, h6 { + page-break-inside: avoid; + page-break-after: avoid; + /*break-after: avoid;*/ + } } diff --git a/src/theme/index.hbs b/src/theme/index.hbs index b3dd9d53..23cc6ce3 100644 --- a/src/theme/index.hbs +++ b/src/theme/index.hbs @@ -22,8 +22,15 @@