Project

ronin-grid

0.0
No commit activity in last 3 years
No release in over 3 years
The objective of Ronin is to provide a framework for developing flexible, responsive web designs that are compatible back to IE7. Ronin aims to be somewhat of a "framework framework", meaning that it is column-count- and width-agnostic. It makes no assumptions about the preferred maximum width of a design or the number of columns.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.1
 Project Readme

Ronin

Ronin is a framework for creating responsive web designs with SASS.


Installation

Rails

In your Gemfile:

gem 'ronin-grid' 

Run the installer:

rake ronin-grid:install

We do not want Ronin's SASS files to be compiled, so remove the following line from app/assets/stylesheets/application.css:

*= require_tree .

Import Ronin into your SASS stylesheets:

@import 'ronin-grid';

Customize:

vim app/assets/stylesheets/ronin-grid/_setup.scss

Non-Rails

Use the binary:

ronin-grid install
# Creates ronin-grid/lib/ronin-grid/...

or:

ronin-grid install-bare
# Creates _ronin-grid.scss
# Creates ronin-grid/...

Usage

Given the following HTML:

<div class='page-container'>
  <div id='some-content'>
    <p>Lorem ipsum...</p>
  </div>

  <div id='more-content'>
    <p>Lorem ipsum...</p>
  </div>
</div>

Apply Ronin's container mixin to your content container, and the cols mixin to your content:

.page-container {
  @include container;
}

#some-content {
  @include cols(6);
}

#more-content {
  @include cols(6);
}

Respond with media queries with ease, writing the queries explicitly or using Ronin's built-in mixins:

#some-content {
  @include cols(6);
  @media screen and (max-width: 480px) {
    @include cols(12);
  }
}

#more-content {
  @include cols(6);
  @include respond-to(840px, 9);
  @include respond-to(480px, 12);
}

Advanced Usage

Ronin can be used as a starting point for a project-specific framework. The code is well-marked up and easily tailored to a project, and I'm around to provide support on Twitter.


About Breakpoints

I'm using the term loosely. "Breakpoint" is usually used to mean the point at which a site's layout breaks and media queries should be used to prevent breakage. I'm using it to mean a point at which adjusting content width would improve readability or usability on a page.

The [example page][grid_example_page] has a table of Ronin's default breakpoints and how they effect elements using the cols mixin.


Limitations

Elements using the cols mixin cannot be nested inside of one another.


Author & License

Ronin is by Jonathan Clem.

Copyright (c) 2012, Jonathan Clem

All rights reserved.

Released under a modified MIT license