1 // stylelint-disable declaration-no-important, selector-no-qualifying-type
3 // Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.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 // http://css-discuss.incutio.com/wiki/Printing_Tables
64 display: table-header-group;
69 page-break-inside: avoid;
81 page-break-after: avoid;
84 // Bootstrap specific changes start
86 // Specify a size and min-width to make printing closer across browsers.
87 // We don't set margin here because it breaks `size` in Chrome. We also
88 // don't use `!important` on `size` as it breaks in Chrome.
90 size: $print-page-size;
93 min-width: $print-body-min-width !important;
96 min-width: $print-body-min-width !important;
99 // Bootstrap components
104 border: $border-width solid $black;
108 border-collapse: collapse !important;
112 background-color: $white !important;
119 border: 1px solid $gray-300 !important;
130 border-color: $table-border-color;
134 .table .thead-dark th {
136 border-color: $table-border-color;
139 // Bootstrap specific changes end