All Projects → Natshah → bootstrap-print

Natshah / bootstrap-print

Licence: MIT license
To manage print media for Twitter Bootstrap v3.

Projects that are alternatives of or similar to bootstrap-print

Gutenberg
Modern framework to print the web correctly.
Stars: ✭ 4,425 (+7275%)
Mutual labels:  printer, printing
Printooth
A well documented, high-level Android interface that makes printing via bluetooth printers easier
Stars: ✭ 231 (+285%)
Mutual labels:  printer, printing
chrome-raw-print
Chrome app to enable raw printing from a browser
Stars: ✭ 57 (-5%)
Mutual labels:  printer, printing
Codeprinter
🖨️ Print out code easily
Stars: ✭ 233 (+288.33%)
Mutual labels:  printer, printing
Prettier
Prettier is an opinionated code formatter.
Stars: ✭ 41,411 (+68918.33%)
Mutual labels:  less, printer
Web Study
本仓库是自己总结的前端开发一些基础知识,包括html5,css3, canvas, jQuery, less ,ES6, webpack,Vue等,也包含了一些算法和数据结构方面的练习,同时也记录了自己工作中的踩坑总结,适合想要学习前端开发的伙伴,你可以clone项目到本地,然后一步一步跟着我的demo敲,希望大家都能全栈。
Stars: ✭ 176 (+193.33%)
Mutual labels:  less, bootstrap3
Cups
Apple CUPS Sources
Stars: ✭ 1,223 (+1938.33%)
Mutual labels:  printer, printing
Bootstrap Blog Template
An awesome blog template constructed using Twitter Bootstrap 3
Stars: ✭ 29 (-51.67%)
Mutual labels:  less, bootstrap3
Bootstrap 4 Utilities
Bootstrap 4 utility classes in LESS CSS for Bootstrap 3 or any other projects.
Stars: ✭ 105 (+75%)
Mutual labels:  less, bootstrap3
Admin Theme
Primefaces admin theme based on Admin LTE and Bootstrap
Stars: ✭ 136 (+126.67%)
Mutual labels:  less, bootstrap3
chaldene
Chaldene Admin Template
Stars: ✭ 46 (-23.33%)
Mutual labels:  less, bootstrap3
cordova-plugin-exoplayer
Media player plugin for Cordova that uses Google's ExoPlayer
Stars: ✭ 48 (-20%)
Mutual labels:  media
materialize-social
Social Login Buttons for MaterializeCSS
Stars: ✭ 50 (-16.67%)
Mutual labels:  less
UOC-notifier-chrome
UOC notifier for Google Chrome
Stars: ✭ 26 (-56.67%)
Mutual labels:  bootstrap3
autowp
WheelsAge.org / AutoWP.ru website sources
Stars: ✭ 19 (-68.33%)
Mutual labels:  less
floaxie
Floating point printing and parsing library based on Grisu2 and Krosh algorithms
Stars: ✭ 28 (-53.33%)
Mutual labels:  printing
jekyll-material-design
Jekyll Bootstrap 3 with the material design flavour. Publish your materialized blog using GitHub Pages easily.
Stars: ✭ 67 (+11.67%)
Mutual labels:  bootstrap3
dart-more
More Dart — Literally.
Stars: ✭ 81 (+35%)
Mutual labels:  printer
mediadc
Nextcloud Media Duplicate Collector application
Stars: ✭ 57 (-5%)
Mutual labels:  media
uniquify
Uniquify is a Telegram bot interface used to remove duplicate media files from a chat
Stars: ✭ 45 (-25%)
Mutual labels:  media

Bootstrap Print 3.1.5

Bootstrap print for Bootstrap v3.

Mange grids using Bootstrap v3 for printed media.

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

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

LESS

  @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

../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.

 .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:

<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.

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

Avoid page break after the element (if possible).

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

Insert page breaks after the element so that the next page is formatted as a left page.

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

Insert page breaks after the element so that the next page is formatted as a right page.

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

Always insert a page break before the element.

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

Avoid page break before the element (if possible).

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

Insert page breaks before the element so that the next page is formatted as a left page.

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

Insert page breaks before the element so that the next page is formatted as a right page.

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

Avoid page break inside the element (if possible).

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

All link's href URLs will be hidden in print media too.

Install with the composer

composer require vardot/bootstrap-print

We could use one of the following options to use the same style in print.

Large devices (lg) style in print.

LESS

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

CSS

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

Medium devices (md) style in print.

LESS

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

CSS

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

Small devices (sm) style in print.

LESS

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

CSS

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

Extra small devices (xs) style in print.

LESS

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

CSS

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

For right to left:

LESS

  @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

../bootstrap-print/css/rtl/bootstrap-print-rtl.css
../bootstrap-print/css/rtl/bootstrap-print-rtl-sm.css
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].