Reduce amount of blank pages when printing in Chrome

Close #1196
This commit is contained in:
Michael Rose 2017-08-22 15:32:48 -04:00
parent 1f4f71636d
commit 20821e67b0
4 changed files with 39 additions and 11 deletions

View file

@ -7,6 +7,7 @@
### Bug Fixes
- Fix license URL in README file. [#1189](https://github.com/mmistakes/minimal-mistakes/pull/1189)
- Reduce amount of blank pages when printing in Chrome. [#1196](https://github.com/mmistakes/minimal-mistakes/issues/1196)
## [4.5.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.1)

View file

@ -15,19 +15,20 @@
}
html {
font-size: 16px;
margin: 0;
padding: 0;
min-height: auto !important;
font-size: 16px;
}
body {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
margin: 0 auto;
background: #fff !important;
color: #000 !important;
font-size: 1rem;
line-height: 1.5;
margin: 0 auto;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
@ -185,6 +186,16 @@
content: " (" attr(title) ")";
}
#main {
max-width: 100%;
}
.page {
margin: 0;
padding: 0;
width: 100%;
}
.page-break,
.page-break-before {
page-break-before: always;
@ -233,7 +244,9 @@
.author__content,
.author__urls-wrapper,
.nav__list,
.sidebar,
.adsbygoogle {
display: none !important;
height: 1px !important;
}
}
}

View file

@ -4,7 +4,7 @@ permalink: /docs/history/
excerpt: "Change log of enhancements and bug fixes made to the theme."
sidebar:
nav: docs
last_modified_at: 2017-08-22T14:47:05-04:00
last_modified_at: 2017-08-22T15:32:24-04:00
---
## Unreleased
@ -16,6 +16,7 @@ last_modified_at: 2017-08-22T14:47:05-04:00
### Bug Fixes
- Fix license URL in README file. [#1189](https://github.com/mmistakes/minimal-mistakes/pull/1189)
- Reduce amount of blank pages when printing in Chrome. [#1196](https://github.com/mmistakes/minimal-mistakes/issues/1196)
## [4.5.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.1)

View file

@ -15,19 +15,20 @@
}
html {
font-size: 16px;
margin: 0;
padding: 0;
min-height: auto !important;
font-size: 16px;
}
body {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
margin: 0 auto;
background: #fff !important;
color: #000 !important;
font-size: 1rem;
line-height: 1.5;
margin: 0 auto;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
@ -185,6 +186,16 @@
content: " (" attr(title) ")";
}
#main {
max-width: 100%;
}
.page {
margin: 0;
padding: 0;
width: 100%;
}
.page-break,
.page-break-before {
page-break-before: always;
@ -233,7 +244,9 @@
.author__content,
.author__urls-wrapper,
.nav__list,
.sidebar,
.adsbygoogle {
display: none !important;
height: 1px !important;
}
}
}