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

Print style for code block #1742

Closed
akhyarrh opened this issue Oct 9, 2015 · 8 comments
Closed

Print style for code block #1742

akhyarrh opened this issue Oct 9, 2015 · 8 comments

Comments

@akhyarrh
Copy link

akhyarrh commented Oct 9, 2015

2015-07-30_15-07-00

On some sites, code block are not wrapped when printed. This is bad as I'm one of the people who love printing some articles to read later or archived it.

Currently I use stylish to inject style below to all site.

@media print {
  pre {
    white-space: pre-wrap !important;
  }
}

I think its good to add that style or maybe someone have another idea ?

@QWp6t
Copy link
Contributor

QWp6t commented Oct 9, 2015

👍

@claughlin-r7
Copy link
Contributor

:+1

@ghost
Copy link

ghost commented Jan 2, 2016

+1

@paulirish
Copy link
Member

sounds like some support for this. wanna write a PR?

@akhyarrh
Copy link
Author

This time I was away from my PC. I'll do that when I've come back later or
maybe someone willing to sent PR using my style ?

2016-08-09 4:56 GMT+08:00 Paul Irish notifications@github.com:

sounds like some support for this. wanna write a PR?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1742 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKIHrxTvDc-JWPcEgZN47f0F_UR0Xzw4ks5qd5f-gaJpZM4GMHQm
.

@claughlin-r7
Copy link
Contributor

@akhyarrh PR #1886 created for this, let me know if this what you meant?

@StephenBrown2
Copy link

I think not, as it should be the pre tag, not blockquote

@claughlin-r7
Copy link
Contributor

claughlin-r7 commented Aug 11, 2016

This change covers pre and blockquote but ill update to only apply to pre

claughlin-r7 added a commit to claughlin-r7/html5-boilerplate that referenced this issue Aug 15, 2016
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

5 participants