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

flegrix

v0.2.1

Published

tiny grid system for flexbox

Downloads

11

Readme

Flegrix

A tiny grid system to work with flexbox-grids build for PostCSS.

Installation

Run npm install --save-dev flegrix then include in your SCSS:

Usage

postcss([require("flegrix")]);

Options

Debug

If you like to have a visual background-image of the columns

/* global settings */
@flegrix {
  debug: true;
}

Overwrite default grid

The default grid has 12 columns with 3% gutter between the columns. By default there is no visual background for grids.

@flegrix grid {
  debug: true; /* default: false */
  columns: 6; /* default: 12 */
  gutter: 2%; /* default: 3% */
  debug-bg-alpha: 0.5; /* default: 0.1 */
}

Setup named grids

/* setting for grid named 'small' */
@flegrix grid small {
  debug: true; /* default: false */
  columns: 6; /* default: 12 */
  gutter: 2%; /* default: 3% */
  debug-bg-alpha: 0.5; /* default: 0.1 */
}

Use (simple)

<div class="container">
  <!-- 12 column container -->
  <div class="info"><h4>12 column container</h4></div> <div class="left">8 columns wide</div>
  <div class="right">4 columns wide, start in column 9</div>
</div>
.container {
  @flegrix container;
}

.left {
  @flegrix col {
    from: 1;
    to: 8;
  }
}

.right {
  @flegrix col {
    from: 9;
    to: 12;
  }
}

Use (complex)

<div class="container">
  <!-- 12 column container -->
  <div class="left complex">
    <!-- 8 column container -->
    <div class="left-A">4 columns wide in a 8 columns container</div>
    <div class="left-B">4 columns wide in a 8 columns container</div>
    <div class="left-B-push">3 columns wide in a 8 columns container, push 4 columns, append 1 column</div>
  </div>
  <div class="right">4 columns wide, start in column 9</div>
</div>
.container {
  @flegrix container;
}

.left {
  @flegrix col {
    from: 1;
    to: 8;
  }
}

.right {
  @flegrix col {
    from: 9;
    to: 12;
  }
}

@flegrix grid complex {
  columns: 8;

  /* you can reference an other grid here */
  gutter: "default";
}

.complex {
  @flegrix container complex;
}

.left-A {
  @flegrix col complex {
    from: 1;
    to: 4;
  }
}

.left-B {
  @flegrix col complex {
    from: 5;
    to: 8;
  }
}

.left-B-push {
  @flegrix col complex {
    from: 5;
    to: 7;
    push: 4;
    append: 1;
  }
}

Status

Build Status