Skip to content

Commit

Permalink
Reduce amount of blank pages when printing in Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed Aug 22, 2017
1 parent debe9d2 commit 7824919
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
23 changes: 18 additions & 5 deletions _sass/minimal-mistakes/_print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -233,7 +244,9 @@
.author__content,
.author__urls-wrapper,
.nav__list,
.sidebar,
.adsbygoogle {
display: none !important;
height: 1px !important;
}
}
}
3 changes: 2 additions & 1 deletion docs/_docs/18-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down
23 changes: 18 additions & 5 deletions docs/_sass/minimal-mistakes/_print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -233,7 +244,9 @@
.author__content,
.author__urls-wrapper,
.nav__list,
.sidebar,
.adsbygoogle {
display: none !important;
height: 1px !important;
}
}
}

0 comments on commit 7824919

Please sign in to comment.