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

bricks-css

v0.0.7

Published

A tiny, responsive grid.

Downloads

3

Readme

Bricks

A tiny (~2kb), responsive grid.

Get Bricks

Bricks is still beta. Use with caution

From npm

  1. Install node, which bundles the Node Package Manager (npm)

  2. Navigate to the project root and install the package npm install bricks-css

  3. You'll find the file to include here: ./node_modules/bricks-css/dist/bricks.min.css

From Sourcce

  1. Install node, which bundles the Node Package Manager (npm)

  2. Clone this repository git clone https://github.com/robotnoises/Bricks.git

  3. Navigate to the project root and install the dependencies npm install

  4. Compile the SASS into CSS grunt build

  5. The minified CSS will be here: ./dist/bricks.min.css

How to use Bricks

  1. A brick represents a side-by-side container. What you put inside a brick is up to you.

  2. A wall contains bricks. You can put as many bricks in a wall as you like. By default, a wall will take up 100% of its own container. You can make a wall as wide or narrow as you like.

  3. You can control the amount of proportional row space a brick occupies by giving it a special p-* class like this: <div class="brick p-1-3"></div>, which will take up one-third of the space.

  4. You can put a max of 6 bricks in a row before they start breaking to the next line, E.g.

<div class="wall">
  <div class="brick p-1-6"></div>
  <div class="brick p-1-6"></div>
  <div class="brick p-1-6"></div>
  <div class="brick p-1-6"></div>
  <div class="brick p-1-6"></div>
  <div class="brick p-1-6"></div>
</div>
  1. If you want more than 6 bricks in a row, just leave-off the p-* class. These bricks will display as if they were cells in a table row, which you can add an unlimited amount of.

  2. If you want a brick to have a fixed width, you may add that style in a separate class of your choosing. If you want the bricks around it to take up the remaining side-to-side space, leave-off the p-* class. E.g.

<div class="wall">
  <div class="brick fixed"> <!-- .fixed { width: 300px; } -->
    <!-- Content here -->
  </div>
  <div class="brick">
    <!-- Will occupy the remaining space to the right... -->
  </div>
</div>

Available proportions

1/2 brick p-1-2

1/3 brick p-1-3

1/4 brick p-1-4

1/5 brick p-1-5

1/6 brick p-1-6

2/3 brick p-2-3

3/4 brick p-3-4

2/5 brick p-2-5

3/5 brick p-3-5

4/5 brick p-4-5

Browser support

  • All the good ones
  • IE9+

Examples

https://robotnoises.github.io/Bricks/