aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2019-12-29 18:30:58 +0000
committers-ol <s-ol@users.noreply.github.com>2019-12-29 18:30:58 +0000
commitc6ca31d55c2b6986509d25d16b947881a63ad595 (patch)
treef2afb45b6551cfbf72b4321db737a1c1163c4797
parentmarginnote embedding (diff)
downloadmmm-c6ca31d55c2b6986509d25d16b947881a63ad595.tar.gz
mmm-c6ca31d55c2b6986509d25d16b947881a63ad595.zip
print styling fixes
-rw-r--r--scss/_content.scss3
-rw-r--r--scss/_print.scss11
-rw-r--r--scss/_sidenotes.scss1
3 files changed, 4 insertions, 11 deletions
diff --git a/scss/_content.scss b/scss/_content.scss
index e809204..e40145e 100644
--- a/scss/_content.scss
+++ b/scss/_content.scss
@@ -47,6 +47,7 @@
width: inherit;
height: inherit;
max-width: inherit;
+ break-inside: avoid-page;
line-height: normal;
@@ -78,6 +79,7 @@
margin: 0 var(--margin-wide);
padding: 1em;
white-space: pre-wrap;
+ break-inside: avoid-page;
overflow-x: auto;
line-height: normal;
@@ -110,6 +112,7 @@
line-height: normal;
background: $gray-bright;
border-color: $gray-neutral;
+ break-inside: avoid-page;
}
.well-warning {
diff --git a/scss/_print.scss b/scss/_print.scss
index 36f2a96..1eac26a 100644
--- a/scss/_print.scss
+++ b/scss/_print.scss
@@ -4,8 +4,6 @@
}
.view {
- flex: 1 0 auto;
-
.content {
flex: 1 0 auto;
}
@@ -20,12 +18,3 @@
size: a4;
margin: 2.5cm 0 2.5cm;
}
-
-@page :first {
- margin-top: 0;
-}
-
-@page :last {
- margin-bottom: 0;
-}
-
diff --git a/scss/_sidenotes.scss b/scss/_sidenotes.scss
index 2cd4965..607b713 100644
--- a/scss/_sidenotes.scss
+++ b/scss/_sidenotes.scss
@@ -27,6 +27,7 @@ $sidenote-width: 14rem;
font-size: 0.8em;
line-height: 1.1;
text-align: initial;
+ break-inside: avoid-page;
.hook {
position: absolute;