2017 © Pedro Peláez
 

library bootstrap-print

Bootstrap print for Bootstrap v3. Mange grids using Bootstrap v3 for printed media.

image

natshah/bootstrap-print

Bootstrap print for Bootstrap v3. Mange grids using Bootstrap v3 for printed media.

  • Saturday, April 1, 2017
  • by Natshah
  • Repository
  • 8 Watchers
  • 54 Stars
  • 64 Installations
  • 0 Dependents
  • 0 Suggesters
  • 21 Forks
  • 0 Open issues
  • 2 Versions
  • 39 % Grown

The README.md

Bootstrap Print 3.1.5

Bootstrap print for Bootstrap v3., (*1)

Mange grids using Bootstrap v3 for printed media.

This will help controlling grid columns size on printed pages. with RTL (right to left)., (*2)

We do style most of our bootstrap theme sites based on the Small devices (sm).

LESS, (*3)

  @import '../bootstrap/less/variables';
  @import '../bootstrap/less/mixins/grid-framework';
  @import '../bootstrap/less/mixins/grid';
  @import '../bootstrap-print/less/bootstrap-print.less';
  @import '../bootstrap-print/less/bootstrap-print-sm.less';

CSS, (*4)

../bootstrap-print/css/bootstrap-print.css
../bootstrap-print/css/bootstrap-print-sm.css

We will have the list of custom set of print column sizes, so that we could change the layout in the printed media as well., (*5)

 .col-p-1,
 .col-p-2,
 .col-p-3,
 .col-p-4,
 .col-p-5,
 .col-p-6,
 .col-p-7,
 .col-p-8,
 .col-p-9,
 .col-p-10,
 .col-p-11,
 .col-p-12

For Example:, (*6)

<html>
  <head>
    <link rel="stylesheet" type="text/css" href="../bootstrap-print/css/bootstrap-print.css">
    <link rel="stylesheet" type="text/css" href="../bootstrap-print/css/bootstrap-print-sm.css">
  <head>
  <body>
    <div class="container">
      <!-- In print media the sm Small devices will be used -->
      <div class="row">
        <div class="left col-sm-8"></div>
        <div class="right col-sm-4"></div>
      </div>

      <!-- In print media the p print will override the sm Small devices -->
      <div class="row">
        <div class="left col-sm-8 col-p-6"></div>
        <div class="right col-sm-4 col-p-6"></div>
      </div>
    </div>
  </body>
</html>

And you have a list of helper CSS classes.

Always insert a page break after the element., (*7)

.always-page-break-after
.always-pba

Avoid page break after the element (if possible)., (*8)

.avoid-page-break-after
.avoid-pba

Insert page breaks after the element so that the next page is formatted as a left page., (*9)

.left-page-break-after
.left-pba

Insert page breaks after the element so that the next page is formatted as a right page., (*10)

.right-page-break-after
.right-pba

Always insert a page break before the element., (*11)

.always-page-break-before
.always-pbb

Avoid page break before the element (if possible)., (*12)

.avoid-page-break-before
.avoid-pbb

Insert page breaks before the element so that the next page is formatted as a left page., (*13)

.left-page-break-before
.left-pbb

Insert page breaks before the element so that the next page is formatted as a right page., (*14)

.right-page-break-before
.right-pbb

Avoid page break inside the element (if possible)., (*15)

.avoid-page-break-inside
.avoid-pbi

All link's href URLs will be hidden in print media too., (*16)

Install with the composer, (*17)

composer require vardot/bootstrap-print

We could use one of the following options to use the same style in print., (*18)

Large devices (lg) style in print.

LESS, (*19)

  @import '../bootstrap-print/less/bootstrap-print.less';
  @import '../bootstrap-print/less/bootstrap-print-lg.less';

CSS, (*20)

../bootstrap-print/css/bootstrap-print.css
../bootstrap-print/css/bootstrap-print-lg.css

Medium devices (md) style in print.

LESS, (*21)

  @import '../bootstrap-print/less/bootstrap-print.less';
  @import '../bootstrap-print/less/bootstrap-print-md.less';

CSS, (*22)

../bootstrap-print/css/bootstrap-print.css
../bootstrap-print/css/bootstrap-print-md.css

Small devices (sm) style in print.

LESS, (*23)

  @import '../bootstrap-print/less/bootstrap-print.less';
  @import '../bootstrap-print/less/bootstrap-print-sm.less';

CSS, (*24)

../bootstrap-print/css/bootstrap-print.css
../bootstrap-print/css/bootstrap-print-sm.css

Extra small devices (xs) style in print.

LESS, (*25)

  @import '../bootstrap-print/less/bootstrap-print.less';
  @import '../bootstrap-print/less/bootstrap-print-xs.less';

CSS, (*26)

../bootstrap-print/css/bootstrap-print.css
../bootstrap-print/css/bootstrap-print-xs.css

-, (*27)

For right to left:

LESS, (*28)

  @import '../bootstrap/less/variables';
  @import '../bootstrap/less/mixins/grid-framework-rtl';
  @import '../bootstrap/less/mixins/grid-rtl';
  @import '../bootstrap-print/less/bootstrap-print-rtl.less';
  @import '../bootstrap-print/less/bootstrap-print-rtl-sm.less';

CSS, (*29)

../bootstrap-print/css/rtl/bootstrap-print-rtl.css
../bootstrap-print/css/rtl/bootstrap-print-rtl-sm.css

The Versions

01/04 2017

3.1.x-dev

3.1.9999999.9999999-dev https://github.com/Vardot/bootstrap-print

Bootstrap print for Bootstrap v3. Mange grids using Bootstrap v3 for printed media.

  Sources   Download

MIT

28/01 2017

3.1.2

3.1.2.0 https://github.com/Natshah/bootstrap-print

Bootstrap print for Bootstrap v3. Mange grids using Bootstrap v3 for printed media.

  Sources   Download

MIT