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

ballerina-grid

v1.0.0-beta1

Published

Custom CSS responsive table-like grid system.

Downloads

18

Readme

ballerina-grid

Custom CSS responsive table-like grid system.

Why ballerina?

It's flexible, beautifull and do things that almost no one can do.

Getting started

You will need an structure that remembers a table, but it's more grid friendly than usual tables.

Install

You can download the source directly from here and link the CSS files.

OR

You can install it via NPM and link the CSS files anyway. :p

By NPM you can control the version of the ballerina-grid you are using and also can easly update the package when updates are released!

npm install ballerina-grid --save

Setting your HTML

The container

First of all, will you create a container: <div class="ballerina">.

That container supports some optional classes:

| Optional Class | Variations | Description | |---|---|---| | .ballerina-<breakpoint-size> | us, xs, sm, md, lg | Responsive classes in which <sizes> are breakpoints for turning the ballerina into a flexible table-like or a simple block element. |
| .ballerina-align-<alignment> | tpo, middle, bottom | This will vertically align your columns inside a .ballerina-row (see next step). |
| .ballerina-force | null | Never lets .ballerina be turned into a block element. |
| .ballerina-fluid | null | Makes .ballerina less adaptative but gives you more control. (less table behavior and more div behavior) |

The row

Inside your container you can have as many rows as you want: <div class="ballerina-row">. Inside your rows you will put your columns.

<div class="ballerina">

    <div class="ballerina-row">...</div>

    <div class="ballerina-row">...</div>

    <div class="ballerina-row">...</div>

    ...
    
</div>

The column

Finally the column element is: <div class="ballerina-col">.

Columns can have any child you want and more, columns can have a <div class="ballerina"> inside it.

So your final structure will be something like:


<div class="ballerina">


    <div class="ballerina-row">
    
        <div class="ballerina-col">...</div>
    
        <div class="ballerina-col">...</div>
    
    </div><!-- /.ballerina-row -->
    

    <div class="ballerina-row">
    
        <div class="ballerina-col">...</div>
    
        <div class="ballerina-col">...</div>
    
        <div class="ballerina-col">...</div>
        
    </div><!-- /.ballerina-row -->
    

    <div class="ballerina-row">
    
        <div class="ballerina-col">
        
        
            <div class="ballerina">
            

                <div class="ballerina-row">

                    <div class="ballerina-col">...</div>
                    
                </div><!-- /.ballerina-row -->
                
                
            </div><!-- /.ballerina -->
            
            
        </div><!-- /.ballerina-col -->
            
        <div class="ballerina-col">...</div><!-- /.ballerina-col -->
        
    </div><!-- /.ballerina-row -->
    

    ...
    
    
</div><!-- /.ballerina -->