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

gridotg

v1.0.51

Published

Grid On-The-Go - A simple powerful grid system for modern browsers

Downloads

5

Readme

version release dependencies license

Grid On-The-Go

Grid On-The-Go - A simple powerful grid system for modern browsers


How to install

This frameworks is available on Github and Npm, you can either download via cli or clone the github repository.

Installing via npm:

npm install gridotg --save

Installing via github (via HTTPS):

git clone https://github.com/lurique/gridotg.git

Now you've downloaded it, you can compile the file main.scss under SCSS folder or copy the compiled version of it under CSS folder (gridotg.min.css).


Grids

After compiling / copying the compiled file, just import it in the header of your website.

You'll need to create a container to be able to use rows and columns. Inheritance will be explained below:

<div class="container">
  <div class="row with-three-columns">
    <div class="column"></div>
    <div class="column"></div>
    <div class="column"></div>
  </div>
</div>

Remember: If you set "with-three-columns", the column count needs to be exactly 3, or it'll not work.

The gridotg comes with twelve columns system, and you can call it like the demo above or follow the cheatsheet with all classes below:

# List of standalone classes
.container
.row
.column

# List of classes for container
.is-fullwidth

# List of classes for row
.with-one-column
.with-two-columns
.with-three-columns
.with-four-columns
.with-five-columns
.with-six-columns
.with-seven-columns
.with-eight-columns
.with-nine-columns
.with-ten-columns
.with-eleven-columns
.with-twelve-columns

# List of classes for column
.is-1
.is-2
.is-3
.is-4
.is-5
.is-6
.is-7
.is-8
.is-9
.is-10
.is-11
.is-12

NOTE: The row needs to be inside container and with one of the additional classes listed above. Inside the row needs to be the columns in the same amount as the class described in row.


Elements

Documentation will be coming soon, below are all elements listed in this framework:

  • Buttons
  • Forms
  • Tables

Components

The components below don't have specific documentation about them, only the HTML code. The components have some javascript on it (and it's your option to use)

You could use the javascript by just adding data-script="name of script" on your parent element. - See below for JS documentation.

Navbar

<nav class="navbar navbar-default navbar-fixed-top" id="default-navbar" data-script="Navbar">
  <div class="navbar-open" data-navbar="default-navbar"><span class="bar"></span><span class="bar"></span><span class="bar"></span></div>
  <div class="navbar-items with-three-columns has-uppercase-text">
    <div class="is-aligned-left">
      <ul>
        <li><a href="#" rel="bookmark" title="GridOTG">GridOTG</a></li>
      </ul>
    </div>
    <div class="is-aligned-center">
      <ul>
        <li class="dropdown"><a href="#" rel="bookmark" title="Documentation">Docs</a>
          <ul>
            <li><a href="#" rel="bookmark" title="Items">Items</a></li>
            <li><a href="#" rel="bookmark" title="Modal">Modal</a></li>
          </ul>
        </li>
        <li><a href="#" rel="bookmark" title="News">News</a></li>
        <li><a href="#" rel="bookmark" title="Contribute">Contribute</a></li>
      </ul>
    </div>
    <div class="is-aligned-right">
      <ul>
        <li><a href="#" target="_blank" rel="noopener" title="Github">Github</a></li>
        <li><a href="#" target="_blank" rel="noopener" title="Codepen">Codepen</a></li>
        <li><a href="#" target="self" rel="bookmark" title="Download">Download</a></li>
      </ul>
    </div>
  </div>
</nav>

Footer

<footer class="footer footer-default">
  <div class="container is-fullwidth">
    <div class="row with-two-columns">
      <div class="column is-aligned-left">
        <p>2017 &copy; GridOTG - All rights reserved.</p>
      </div>
      <div class="column is-aligned-right">
        <p>Created by <a href="#">Lucas Henrique</a></p>
      </div>
    </div>
  </div>
</footer>

Modal

<div class="modal modal-default" id="modal-announcement" data-script="Modal">
  <div class="modal-content">
    <div class="modal-header">
      <h1>Modal annoucement</h1><a class="modal-close" href="#"><span class="bar"></span><span class="bar"></span></a>
    </div>
    <div class="modal-body">
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut assumenda ullam, autem possimus? Sint voluptatibus mollitia quibusdam, culpa neque ducimus voluptas totam animi obcaecati velit aspernatur optio. Assumenda, sapiente, enim?</p>
    </div>
    <div class="modal-footer is-aligned-right">
      <button class="modal-close button button-error">No</button>
      <button class="modal-close button button-success">Yes</button>
    </div>
  </div>
</div>
<button class="modal-open button button-default" data-modal="modal-announcement">Open modal</button>

Toast

<div class="toast toast-success active" data-script="Toast"><a class="toast-close" href="#"><span class="bar"></span><span class="bar"></span></a>
  <div class="toast-content">
    <p>This is a toast example</p>
  </div>
</div>

Panel

<div class="container">
  <div class="row with-one-column">
    <div class="column">
      <div class="panel panel-default">
        <div class="panel-header">
          <h1>Panel heading</h1>
        </div>
        <div class="panel-body">
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sit minima perspiciatis aperiam, necessitatibus reprehenderit, consequuntur, id dolores sequi enim facilis rem ullam! Repellendus aut, eum nihil cumque velit veniam eveniet.</p>
        </div>
        <div class="panel-footer is-aligned-right">
          <button class="button button-success">Accept</button>
        </div>
      </div>
    </div>
  </div>
</div>

Javascript

Documentation coming soon (code already available).


Some notes

YES! It's already responsive (~~kinda~~).


Author

| @lurique | | :---: |