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

css-light-grid

v1.1.3

Published

CSS Light Grid is a lightweight CSS grid module that helps you quickly build responsive websites without the hassle of learning the CSS Grid Framework. The grid is based on a 12 column layout.

Downloads

23

Readme

CSS Light Grid

CSS Light Grid is a lightweight CSS grid module that helps you quickly build responsive websites without the hassle of learning the CSS Grid Framework. The grid is based on a 12 column layout.

(Remember that this is an Early release)

  • < 1.77 KB CSS file size
  • < 40 bytes after Gzip
  • Easy to remember class-names
  • Responsive by default (< 480px)
  • Based on CSS Grid (no floats, no flexbox, no negative margins..)

DEMO

Installation

With npm

npm i css-light-grid --save-dev

Implementation

Using with sass

Import the css module to your stylesheet or scss/sass partials

Node-sass / Node-bourbon
@import "~/css-light-grid.min.css";
Other
@import "../node_modules/css-light-grid/css-light-grid.min.css";
CDN

The easiest and most simple way to use the css is to use the cdn hosted version. Include it in the head of your html with:

<link rel="stylesheet" href="https://unpkg.com/[email protected]/css-light-grid.min.css" />
Locally

The built css is located in the root directory. It contains an minified version. You can either cut and paste that css or link to it directly in your html.

<link rel="stylesheet" href="path/to/module/css-light-grid.min.css">

Usage

CSS Grid works by using the container rather then it's children to create a grid, therefor we have to define a container as grid by applying the following class="grid" to the container HTML element.

Container Classes

| Classes | Breakpoint | Usage | | ------------- |-------------| -----| | grid | Defines Elem as Grid | class="grid" | | mq-desktop | Breakpoint < 1024px | class="grid mq-desktop" | | mq-tablet | Breakpoint < 768px | class="grid mq-tablet " |

Gap Classes

| Classes | Gap size | Usage | | ------------- |-------------| -----| | gap-xs | 10px | class="grid gap-xs" | | gap-s | 20px | class="grid gap-s" | | gap-md | 40px | class="grid gap-md" | | gap-l | 60px | class="grid gap-l" | | gap-xl | 80px | class="grid gap-xl" |

Column classes

| Classes | Column size | Usage | | ------------- |-------------| -----| | col-1 | 1/12 | class="col-1" | | col-2 | 2/12 | class="col-2" | | col-3 | 3/12 | class="col-3" | | col-4 | 4/12 | class="col-4" | | col-5 | 5/12 | class="col-5" | | col-6 | 6/12 | class="col-6" | | col-7 | 7/12 | class="col-7" | | col-8 | 8/12 | class="col-8" | | col-9 | 9/12 | class="col-9" | | col-10 | 10/12 | class="col-10" | | col-11 | 11/12 | class="col-11" | | col-12 | 12/12 | class="col-12" |

Examples

2 column layout

  <div class="grid gap-s">
    <div class="col-6">col-6 (50%)</div>
    <div class="col-6">col-6 (50%)</div>
  </div>

3 column layout

  <div class="grid gap-s">
    <div class="col-4">col-4 (33.33%)</div>
    <div class="col-4">col-4 (33.33%)</div>
    <div class="col-4">col-4 (33.33%)</div>
  </div>

mixed column layout + tablet breapoint

  <div class="grid gap-s mq-tablet">
    <div class="col-2">col-2</div>
    <div class="col-7">col-7</div>
    <div class="col-3">col-3</div>
  </div>

Author

License

MIT