Skip to content

Commit

Permalink
Reduce blank pages when printing in Chrome
Browse files Browse the repository at this point in the history
Close #29
  • Loading branch information
mmistakes committed Sep 14, 2017
1 parent 4e715da commit ac18104
Show file tree
Hide file tree
Showing 3 changed files with 281 additions and 224 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

### Fixed
- `/_sass/_print.scss` to reduce blank pages when printing in Chrome. [#29](https://github.com/mmistakes/jekyll-theme-basically-basic/issues/29)

## [1.1.1] - 2017-09-06
### Changed
- Change `gems` key in `_config.yml` to `plugins`. [#23](https://github.com/mmistakes/jekyll-theme-basically-basic/pull/23)
Expand Down
30 changes: 28 additions & 2 deletions _sass/basically-basic/_print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,20 @@
html {
margin: 0;
padding: 0;
height: auto;
min-height: auto !important;
font-size: 16px;
}

body {
margin: 0 auto;
margin: 0;
height: auto;
background: #fff !important;
color: #000 !important;
font-size: 1rem;
line-height: 1.5;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
line-height: 1.5;
text-rendering: optimizeLegibility;
}

Expand Down Expand Up @@ -185,6 +188,26 @@
content: ' (' attr(title) ')';
}

.wrapper {
min-height: auto !important;
}

#main {
max-width: 100%;
}

.inner {
margin: 0;
padding: 0;
width: 100%;
max-width: 100%;
}

.intro-actions .btn {
color: #fff;
background: #000;
}

.page-break,
.page-break-before {
page-break-before: always;
Expand Down Expand Up @@ -216,11 +239,14 @@
Hide the following elements on print
========================================================================== */

.skip-links,
.sidebar-toggle-wrapper,
.sidebar,
.title-area,
.pager,
.site-footer,
.adsbygoogle {
display: none !important;
height: 1px;
}
}
Loading

0 comments on commit ac18104

Please sign in to comment.