0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

Merge pull request #20821 from patrickhlauke/v4-h5bp-print

Update print styles borrowed from h5bp
This commit is contained in:
Patrick H. Lauke 2016-10-03 10:00:09 +01:00 committed by GitHub
commit add8dfe157

View File

@ -14,7 +14,10 @@
*::before, *::before,
*::after, *::after,
*::first-letter, *::first-letter,
*::first-line { p::first-line,
div::first-line,
blockquote::first-line,
li::first-line {
// Bootstrap specific; comment out `color` and `background` // Bootstrap specific; comment out `color` and `background`
//color: #000 !important; // Black prints faster: //color: #000 !important; // Black prints faster:
// http://www.sanbeiji.com/archives/953 // http://www.sanbeiji.com/archives/953
@ -24,7 +27,7 @@
} }
a, a,
a:visited { a::visited {
text-decoration: underline; text-decoration: underline;
} }
@ -44,10 +47,13 @@
// //
//a[href^="#"]::after, //a[href^="#"]::after,
//a[href^="javascript:"]::after { //a[href^="javascript:"]:after {
// content: ""; // content: "";
//} //}
pre {
white-space: pre-wrap !important;
}
pre, pre,
blockquote { blockquote {
border: $border-width solid #999; // Bootstrap custom code; using `$border-width` instead of 1px border: $border-width solid #999; // Bootstrap custom code; using `$border-width` instead of 1px