The bootstrap css file I'm using contains this:
@media print {
*,
*:before,
*:after {
color: #000 !important;
background: transparent !important;
}
}
which unfortunately is messing up the CSS coloring of my content (which includes a 3rd party Javascript widget library). I.e., I'm seeing something that's black and white and not colored. What can I do in my html page so that my page is styled as if I deleted those lines from the bootstrap css file?
I thought this might work:
@media print {
*,
*:before,
*:after {
color:initial !important;
background:initial !important;
}
}
but that doesn't seem to be having any effect. I could set the color (e.g. red), but that would set everything to be red whereas I want the colors that would take effect if Bootstrap hadn't set anything.
Is this possible?
Here's an example of the problem I'm describing: https://jsfiddle.net/ty59susm/3/