Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ronin-grid

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ronin-grid

  • 1.1.0.alpha.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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-480(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

FAQs

Package last updated on 25 Mar 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc