npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bootstrap-grid

v3.0.1

Published

Standalone version of Bootstrap's grid system

Downloads

2,938

Readme

bootstrap-grid

Standalone version of Bootstrap 3 grid system. See the test file for a demo.

If you want to use the grid from Bootstrap 4 you should use Bootstrap directly. It includes a standalone version of its grid system in its downloadable bundle and npm package so go ahead and use that instead of this package.

Why?

Bootstrap 3 contains a best of breed responsive grid system. It's useful without all the rest of Bootstrap. This project contains a standalone version of it with related utility classes.

How to use the grid system?

See Bootstrap's grid system and responsive utilities documentation.

How do I use this project?

You have several choices:

  1. Download the grid.css or grid.min.css file from the dist folder and include it in your project.
  2. Install this package with npm and include/require grid.css or grid.min.css directly from node_modules.
  3. If you are using webpack with css-loader you can just require("bootstrap-grid").
  4. Any other way you can think of really.

The Bootstrap grid system expects the columns and containers to have box-sizing: border-box set. The grid.css file doesn't have that rule because it's set in Bootstrap's scaffolding.less file that also includes lot's of other modifications to global element styles. We could set the rule for you globally but a small library like this shouldn't include such things.

Because of this you must set it yourself using * { box-sizing: border-box; }. You can also set it separately for every Bootstrap class but that's not really fun...

You can check the test file for an example how to use and setup the grid.

What's included?

The following classes are included:

  • clearfix
  • container
  • container-fluid
  • row
  • All the col classes from col-xs-1 to col-lg-12 including push, pull and offset versions: col-(xs-lg)-[(push|pull|offset)-](1-12)
  • hidden classes for all breakpoints: hidden-(xs-lg|print)
  • visible classes for all breakpoints and display values: visible-(xs-lg|print)-(block|inline|inline-block).
  • visible-(xs-lg|print) are also included but they are deprecated as of Bootstrap v3.2.0 and should not be used.

How do I build this?

Install dependencies

$ npm install

Run build

$ npm run build

grid.css and the minified grid.min.css are generated.