Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable @media print in bootstrap?

Is it possible to entirely disable any preconfigured @media print css styles from bootstrap without having to recompile it?

The print styles applied by default could be seen here: https://github.com/twbs/bootstrap/blob/master/dist/css/bootstrap.css#L6837

I want my webpage to be printed just as seen, with all css tags applied. Especially colors, like:

b {
  color: #ff0000;
}

In order to disable the print styles from bootstrap, I'd have to explicit override every property again with my custom styles, eg:

b {
  color: #ff0000 !important;
}

But isn't there a global way to disable these default print styles?

like image 676
membersound Avatar asked Jan 27 '16 14:01

membersound


1 Answers

You can download custom bootstrap without media print. http://getbootstrap.com/customize/

just uncheck

Print media styles

like image 125
Dionys Avatar answered Oct 26 '22 01:10

Dionys