Commit 87c16655 authored by XhmikosR's avatar XhmikosR

Merge pull request #14790 from twbs/print

Print style updates
parents 4a89fd02 9f82f27b
...@@ -188,8 +188,11 @@ td, ...@@ -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;
......
This diff was suppressed by a .gitattributes entry.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
...@@ -188,8 +188,11 @@ td, ...@@ -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;
......
This diff was suppressed by a .gitattributes entry.
This source diff could not be displayed because it is too large. You can view the blob instead.
// /*! 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 {
* { *,
background: transparent !important; *:before,
color: #000 !important; // Black prints faster: h5bp.com/s *:after {
box-shadow: none !important; background: transparent !important;
text-shadow: none !important; color: #000 !important; // Black prints faster: h5bp.com/s
} box-shadow: none !important;
text-shadow: none !important;
a, }
a:visited {
text-decoration: underline; a,
} a:visited {
text-decoration: underline;
a[href]:after { }
content: " (" attr(href) ")";
} a[href]:after {
content: " (" attr(href) ")";
abbr[title]:after { }
content: " (" attr(title) ")";
} abbr[title]:after {
content: " (" attr(title) ")";
// Don't show links that are fragment identifiers, }
// or use the `javascript:` pseudo protocol
a[href^="#"]:after, // Don't show links that are fragment identifiers,
a[href^="javascript:"]:after { // or use the `javascript:` pseudo protocol
content: ""; a[href^="#"]:after,
} a[href^="javascript:"]:after {
content: "";
pre, }
blockquote {
border: 1px solid #999; pre,
page-break-inside: avoid; blockquote {
} border: 1px solid #999;
page-break-inside: avoid;
thead { }
display: table-header-group; // h5bp.com/t
} thead {
display: table-header-group; // h5bp.com/t
tr, }
img {
page-break-inside: avoid; tr,
} img {
page-break-inside: avoid;
img { }
max-width: 100% !important;
} img {
max-width: 100% !important;
p, }
h2,
h3 { p,
orphans: 3; h2,
widows: 3; h3 {
} orphans: 3;
widows: 3;
h2, }
h3 {
page-break-after: avoid; h2,
} h3 {
page-break-after: avoid;
// Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245 }
// Once fixed, we can just straight up remove this.
select { // Bootstrap specific changes start
background: #fff !important; //
} // Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245
// Once fixed, we can just straight up remove this.
// Bootstrap components select {
.navbar { background: #fff !important;
display: none; }
}
.btn, // Bootstrap components
.dropup > .btn { .navbar {
> .caret { display: none;
border-top-color: #000 !important; }
} .btn,
} .dropup > .btn {
.label { > .caret {
border: 1px solid #000; border-top-color: #000 !important;
} }
}
.table { .label {
border-collapse: collapse !important; border: 1px solid #000;
}
td,
th { .table {
background-color: #fff !important; border-collapse: collapse !important;
}
} td,
.table-bordered { th {
th, background-color: #fff !important;
td { }
border: 1px solid #ddd !important; }
} .table-bordered {
} th,
td {
border: 1px solid #ddd !important;
}
}
// Bootstrap specific changes end
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment