Coder Social home page Coder Social logo

viewport-grid's Introduction

Viewport Width Grid System

Use

There are several ways to use the viewport grid in your project:

CSS

If you'd like to use the viewport grid as a standalone css file, just copy dist/viewport-grid.css into your site, and add a link to it in your head:

<link rel="stylesheet" href="path/to/viewport-grid.css">

SASS

If you'd like to use the viewport grid as a sass library, you'll find it inside of lib. Customize your grid by editing the values in _config.scss.

NPM

To install viewport-grid via npm, you can simply run:

npm install esripdx/viewport-grid

The main Sass file will be in node_modules/viewport-grid/lib/viewport-grid.scss.

Bower

Assuming you have already installed bower, just type bower install viewport-grid --save.

Then import it as a library in your main styles.scss file like this:

@import "../bower_components/viewport-grid/lib/viewport-grid.scss";

Note, this will import everything, including the static classes. A separate file called _imports.scss contains just the classes and mixins. So if you have a main stylesheet that gets loaded on every page, you can load the full library into that, but if you just want access to the mixins without adding any generated css to your page, you can do:

@import "../bower_components/viewport-grid/lib/_imports.scss";

Contributing

Pull requests are welcome. In lieu of a formal styleguide, we ask that you simply try to maintain the formatting that is already in place.

To set up a local development environment you must have node and grunt installed on your system. Then simply clone the project, npm install, and grunt to run a dev server.

License

ISC

viewport-grid's People

Contributors

nikolaswise avatar paulcpederson avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.