Skip to content

Poor display when printing #4

@paulirish

Description

@paulirish

When printing, the site loses much of its valuable content and identify. Note the logo and histogram curves are entirely gone.

Before / After:

image

This is due to a few CSS lines in bootstrap 3:

@media print {
  *, *:before, *:after {
    color: #000 !important;
    text-shadow: none !important;
    background: transparent !important;
    -webkit-box-shadow: none !important;
            box-shadow: none !important;
  }

They're quite troublesome and plenty of folks have sought a solution to disable them, however there's nothing reasonable short of making a custom bootstrap build without them. We could do that, but it's a bit of a fight with the current build system.

Bootstrap 4 and 5 don't include these troublesome @print styles, thankfully.

@spncr do you have plans to remove the site's use of bootstrap 3 with the new styleguide implementation (#2) ?

If so, I expect these issues to get fixed automagically. If not, I can wrestle up a solution with this older bootstrap release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions