1
// stylelint-disable declaration-no-important, selector-no-qualifying-type
3
// Source: https://github.com/h5bp/main.css/blob/master/src/_print.css
5
// ==========================================================================
7
// Inlined to avoid the additional HTTP request:
8
// https://www.phpied.com/delay-loading-your-print-css/
9
// ==========================================================================
11
@if $enable-print-styles {
16
// Bootstrap specific; comment out `color` and `background`
17
//color: $black !important; // Black prints faster
18
text-shadow: none !important;
19
//background: transparent !important;
20
box-shadow: none !important;
25
text-decoration: underline;
29
// Bootstrap specific; comment the following selector out
31
// content: " (" attr(href) ")";
35
content: " (" attr(title) ")";
38
// Bootstrap specific; comment the following selector out
40
// Don't show links that are fragment identifiers,
41
// or use the `javascript:` pseudo protocol
44
//a[href^="#"]::after,
45
//a[href^="javascript:"]::after {
50
white-space: pre-wrap !important;
54
border: $border-width solid $gray-500; // Bootstrap custom code; using `$border-width` instead of 1px
55
page-break-inside: avoid;
60
page-break-inside: avoid;
72
page-break-after: avoid;
75
// Bootstrap specific changes start
77
// Specify a size and min-width to make printing closer across browsers.
78
// We don't set margin here because it breaks `size` in Chrome. We also
79
// don't use `!important` on `size` as it breaks in Chrome.
81
size: $print-page-size;
84
min-width: $print-body-min-width !important;
87
min-width: $print-body-min-width !important;
90
// Bootstrap components
95
border: $border-width solid $black;
99
border-collapse: collapse !important;
103
background-color: $white !important;
110
border: 1px solid $gray-300 !important;
121
border-color: $table-border-color;
125
.table .thead-dark th {
127
border-color: $table-border-color;
130
// Bootstrap specific changes end