Sha256: 91968e909d870eec1d255c9b24043d515dcace67fd8f963b8634e07bc5c214d2

Contents?: true

Size: 1.82 KB

Versions: 8

Compression:

Stored size: 1.82 KB

Contents

// Foundation for Sites by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

////
/// @group typography
////

// scss-lint:disable all

@mixin foundation-print-styles {
  .show-for-print { display: none !important; }

  @media print {
    * {
      background: transparent !important;
      color: black !important; // Black prints faster: h5bp.com/s
      box-shadow: none !important;
      text-shadow: none !important;
    }

    .show-for-print { display: block !important; }
    .hide-for-print { display: none !important; }

    table.show-for-print { display: table !important; }
    thead.show-for-print { display: table-header-group !important; }
    tbody.show-for-print { display: table-row-group !important; }
    tr.show-for-print { display: table-row !important; }
    td.show-for-print { display: table-cell !important; }
    th.show-for-print { display: table-cell !important; }

    // Display the URL of a link after the text
    a,
    a:visited { text-decoration: underline;}
    a[href]:after { content: " (" attr(href) ")"; }

    // Don't display the URL for images or JavaScript/internal links
    .ir a:after,
    a[href^='javascript:']:after,
    a[href^='#']:after { content: ''; }

    // Display what an abbreviation stands for after the text
    abbr[title]:after { content: " (" attr(title) ")"; }

    // Prevent page breaks in the middle of a blockquote or preformatted text block
    pre,
    blockquote {
      border: 1px solid #999;
      page-break-inside: avoid;
    }

    // h5bp.com/t
    thead { display: table-header-group; }

    tr,
    img { page-break-inside: avoid; }

    img { max-width: 100% !important; }

    @page { margin: 0.5cm; }

    p,
    h2,
    h3 {
      orphans: 3;
      widows: 3;
    }

    // Avoid page breaks after a heading
    h2,
    h3 { page-break-after: avoid; }
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
locomotivecms_wagon-2.4.0.rc2 generators/foundation/public/stylesheets/foundation6/typography/_print.scss
locomotivecms_wagon-2.4.0.rc1 generators/foundation/public/stylesheets/foundation6/typography/_print.scss
locomotivecms_wagon-2.3.0 generators/foundation/public/stylesheets/foundation6/typography/_print.scss
locomotivecms_wagon-2.3.0.rc1 generators/foundation/public/stylesheets/foundation6/typography/_print.scss
locomotivecms_wagon-2.2.0 generators/foundation/public/stylesheets/foundation6/typography/_print.scss
locomotivecms_wagon-2.2.0.rc3 generators/foundation/public/stylesheets/foundation6/typography/_print.scss
locomotivecms_wagon-2.2.0.rc2 generators/foundation/public/stylesheets/foundation6/typography/_print.scss
locomotivecms_wagon-2.2.0.rc1 generators/foundation/public/stylesheets/foundation6/typography/_print.scss