0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-02 14:24:19 +01:00

Merge pull request #14790 from twbs/print

Print style updates
This commit is contained in:
XhmikosR 2014-10-13 20:39:50 +03:00
commit 87c1665528
9 changed files with 113 additions and 99 deletions

View File

@ -188,8 +188,11 @@ td,
th { th {
padding: 0; padding: 0;
} }
/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */
@media print { @media print {
* { *,
*:before,
*:after {
color: #000 !important; color: #000 !important;
text-shadow: none !important; text-shadow: none !important;
background: transparent !important; background: transparent !important;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -188,8 +188,11 @@ td,
th { th {
padding: 0; padding: 0;
} }
/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */
@media print { @media print {
* { *,
*:before,
*:after {
color: #000 !important; color: #000 !important;
text-shadow: none !important; text-shadow: none !important;
background: transparent !important; background: transparent !important;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,14 @@
// /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */
// Basic print styles
// -------------------------------------------------- // ==========================================================================
// Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css // Print styles.
// Inlined to avoid the additional HTTP request: h5bp.com/r
// ==========================================================================
@media print { @media print {
* { *,
*:before,
*:after {
background: transparent !important; background: transparent !important;
color: #000 !important; // Black prints faster: h5bp.com/s color: #000 !important; // Black prints faster: h5bp.com/s
box-shadow: none !important; box-shadow: none !important;
@ -62,6 +66,8 @@
page-break-after: avoid; page-break-after: avoid;
} }
// Bootstrap specific changes start
//
// Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245 // Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245
// Once fixed, we can just straight up remove this. // Once fixed, we can just straight up remove this.
select { select {
@ -96,4 +102,6 @@
border: 1px solid #ddd !important; border: 1px solid #ddd !important;
} }
} }
// Bootstrap specific changes end
} }