Code Monkey home page Code Monkey logo

simple-grid's Introduction

Simple Grid

A lightweight, responsive CSS grid

Developed by Zach Cole

Simple Grid and Simple Code

Simple Grid is a mobile-first 12-column CSS grid system to make developing responsive websites easy and fast.

All the code you need is simple and familiar. A parent container class contains the grid. Within the container are rows. Row classes denote rows of content, which can be filled with up to 12 columns. Columns must be nested within a row.

To define your column width, declare how many columns you want your content to take up on desktop and large screens. For example, if your content should take up 6 out of 12 columns (or half the container), your class name will be .col-6.

If you don’t want columns to expand on mobile devices and small screens, simply add -sm to the end of your column class name. For example, if you want to have two blocks of content floating side-by-side on small screens, each would be given the class name .col-6-sm.

Update: Grid styles are now available in SASS/SCSS. Hooray! Thanks to shankariyerr for contributing as well.

Learn more and see code samples at: http://simplegrid.io

License

Open source under the MIT License.

simple-grid's People

Contributors

llcoolray avatar marcobiedermann avatar zachacole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simple-grid's Issues

Remove excess styles

There's a lot of code at the start of this that gives styles for fonts and typography. This is not what i expect out of a simple grid – which should be simply a grid. I recommend removing this and implementing them as another repo (so as to not make this into yet another framework).

  • Jeff

Is nesting supported?

Is nesting supported? For example:

<div class="container">
	<div class="row">
		<div class="col-3">
			
		</div><!-- .col-3 -->
		<div class="col-9">
			<div class="row">
				<div class="col-6">
					
				</div><!-- .col-6 -->
				<div class="col-6">
					
				</div><!-- .col-6 -->
			</div><!-- .row -->
		</div><!-- .col-9 -->
	</div><!-- .row -->
</div><!-- .container -->

^= unqualified attribute selector

As per CSS Lint ^= was flagged as an unqualified attribute selector, which indicates a potential performance issue. I'm unfamiliar with this kind of selection ^=. @zachacole or any other contributor could you explain a bit how this selector works in Simple-Grid, and if this should be of any concern?

.row [class^="col"] {
  float: left;
  margin: 0.5rem 2%;
  min-height: 0.125rem;
}

how to right push a row to the right?

Hello,

Thanks for this lightweight grid system which comes in handy when bloates frameworks are not needed.

I was just wondering how you could push a sidebar to the right while having the content on the left and bigger in height.

Not available as a node module

While using bundlers such as webpack people don't prefer downloading the css file and include it in a project. So it will be good if simple grid is available as a node module. I found some other guy have published it in npmjs link is https://www.npmjs.com/package/simplegrid. If you found it good just add it your readme and website so people can easily install your module by running npm install --save simplegrid. I came here actually looking whether simple-grid is available as a npm package.

including google fonts?

i noticed this line:

@import url(https://fonts.googleapis.com/css?family=Lato:400,300,300italic,400italic,700,700italic);

is this really necessary?

also, your zip download on teh site contains teh whole .git directory and __MACOSX which is probably hidden for you...

SASS

What about a SASS/SCSS version?

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.