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-only-css

v4.1.3

Published

The grid and responsive utilities classes extracted from the Bootstrap 4 framework, compiled into CSS.

Downloads

1,392

Readme

Developer Release GitHub License GitHub Downloads NPM Downloads Donate Twitter

bootstrap-grid.css

Original Copyright: (c) 2011-2018 Twitter, Inc.

:pushpin: View Demo

Purpose

There are times when you only want to use the excellent Bootstrap grid functionality but don't want the extra classes and typography changes included, often when asked to work on existing client sites that do not include any responsive frameworks and you just want to get the changes done quickly and responsively. With Bootstrap 4, extracting the grid functionality is easy.

Included Features

  • Grid framework
  • Responsive Utilities (ported from alpha)
  • .img-fluid class (formerly .img-responsive in Bootstrap 3)
  • clearfix utility

Installation

NPM

npm install bootstrap-grid-css

Bower Installation

bower install bootstrap4-grid-only

Usage

Unlike traditional Bootstrapped, the grid must be wrapped with the .bootstrap-wrapper class in an attempt to minimize potential conflicts with other libraries.

Simply download the appropriate CSS file and include it in your HTML header (you only need one):

  • bootstrap-grid.css - The expanded version
  • bootstrap-grid.min.css - The minified version

Documentation for the grid system may be found on the Bootstrap web site.

Linking Stylesheets

Linking to stylesheet example:

<link rel="stylesheet" href="dist/css/bootstrap-grid.min.css" />

CDN: jsDelivr

Supports both HTTP and HTTPS.

<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/dmhendricks/[email protected]/dist/css/bootstrap-grid.min.css" />

Basic Usage Example

<div class="bootstrap-wrapper">
	<div class="container">
		<div class="row">
			<div class="col-md-4">.col-md-4</div>
			<div class="col-md-4">.col-md-4</div>
			<div class="col-md-4">.col-md-4</div>
		</div>
		<div class="row hidden-sm-down"> <!-- Hidden on small screens -->
			<div class="col-md-6">.col-md-6</div>
			<div class="col-md-6">.col-md-6</div>
		</div>
	</div>
</div>

See the demo for more information.

Custom Build Tutorial

You can make your own custom build of Bootstrap by downloading the source, making changes to the SCSS files and compiling.

Here is how to accomplish what I have done here:

  1. Download and extract the Bootstrap source files
  2. Modify the SCSS files as desired. For example, to generate this build I added the .bootstrap-wrapper class to scss/bootstrap-grid.scss (lines 23 and 50), included the responsive utilities (line 43) and .img-fluid class (line 48). I also ported the scss/utilities/_visibility.scss responsive utilities that were found in alpha for convenience.
  3. Once you are done making your changes, use a program like Koala or Scout to compile the SCSS files into usable CSS files. If you have Gulp and npm installed, you can simply run the command: gulp styles