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

flex_e_ble

v2.0.4

Published

A simple yet flexible class naming structure on top of a flexbox based grid.

Downloads

35

Readme

flex_e_ble

NPM

Build Status Dev Dependencies Total Downloads renovate-app badge

A simple yet flexible class naming structure on top of a flex based grid.

Flexeble 2.0 removes support for < IE 11 and as such all fall backs and flexbox namespacing

Reasons

  • Can assist you in migrating your current Bootstrap and Foundation grids to flexbox as a drop in replacement.
  • Use a grid system that is the same across your projects but adapts to the naming conventions that your are used to.

See the website flexeble.space for demo examples

See all customisable variables

Requirements

Install

  • npm install flex_e_ble or copy dist/_flex_e_ble.scss

How it works

Flex_e_ble was originally based on purecss.io grid work.

Row css looks like

.row {
  display: flex;
  flex-flow: row wrap;
  position: relative;
}

Grid css looks like

[class*=grid-] {
  display: inline-block;
}

Usage

A basic grid class structure is a follows .$global-name-space-$grid-name-$breakpointsize-$columnindex

Make a simple 5 column grid with 30px gutters either side

@import 'flex_e_ble';
$total-columns: 5;
$column-gutter: 30px;
$auto-column-gutters: true;

Will output the grid as follows


.grid-1 { width: 20%; }

.grid-2 { width: 40%; }

/*...etc... */

Want a Bootstrap class structure?

@import 'flex_e_ble'
// Bootstrap like
$grid-name: 'col-';
$base-grid-name: 'xs';
$column-gutter: 15px;
$auto-column-gutters: true;
$right-name: 'push';
$left-name: 'pull';
$breakpoints: (
  'sm': 480px,
  'md': 768px,
  'lg': 1024px,
  'xl': 1180px
);

Outputs a grid using the bootstrap naming convention

.col-xs-1 { width: 8.33333%; }

.col-xs-2 { width: 16.66667%; }

/*...etc... */

Want a Foundation class structure?

@import 'flex_e_ble';
// foundation like;
$column-gutter: 0.9375rem;
$auto-column-gutters: false;
$independant-grid-name: 'column';
$grid-name: '';
$base-grid-name: 'small';
$breakpoints: (
  'medium': 768px,
  'large': 1024px
);

Will output our grid as follows

.small-1 { width: 8.33333%; }

.small-2 { width: 16.66667%; }

/*...etc... */

But remember underneath the properties outputted are just the same.