Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive grid not responsive on print devices #4359

Closed
olivierdalang opened this issue Mar 17, 2017 · 1 comment
Closed

Responsive grid not responsive on print devices #4359

olivierdalang opened this issue Mar 17, 2017 · 1 comment

Comments

@olivierdalang
Copy link

Description

When printing a page, the responsive layout doesn't work. The layout is the same as on a small screen, even if the paper size is much bigger.
Changing paper from landscape to portait won't have any effect, while a responsive layout is also a great idea for prints as well.

From what I understood, the problem can be easily fixed by changing @media only screen and (max-width: 992px) { ... } to @media (max-width: 992px) { ... } but I'm pretty sure this was there for a good reason.

Repro Steps

Create a responsive grid. Print it through chrome : it will print with the small-screen layout.

@DanielRuf
Copy link
Contributor

DanielRuf commented Mar 30, 2017

Afaik this is totally normal. Try setting some print stylesheets which set the width of the body to your desired width and possibly more media queries just for print.

Also screen is not print, see

$medium-and-up: "only screen and (min-width : #{$small-screen-up})" !default;
$large-and-up: "only screen and (min-width : #{$medium-screen-up})" !default;
$extra-large-and-up: "only screen and (min-width : #{$large-screen-up})" !default;
$small-and-down: "only screen and (max-width : #{$small-screen})" !default;
$medium-and-down: "only screen and (max-width : #{$medium-screen})" !default;
$medium-only: "only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})" !default;

@fega fega closed this as completed Apr 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants