github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

chriseppstein / compass-960-plugin

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 69
    • 6
  • Source
  • Commits
  • Network (6)
  • Issues (3)
  • Downloads (1)
  • Wiki (2)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (1)
    • v0.9.7
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Sass Port of 960.gs as part of the Compass Stylesheet Framework. — Read more

  cancel

http://compass-style.org/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Release version 0.9.10 which fixes a bug introduced in 0.9.9. 
chriseppstein (author)
Sun Sep 27 13:11:45 -0700 2009
commit  e091abed193c9289fdf78ae5d6b424f3e60c5190
tree    eb32fc333763ca7ea4d0de19b18f80581158fac2
parent  b04d167b30cce50e6dfa875d423b05412a962f1e
compass-960-plugin / README.mkdn README.mkdn
100644 57 lines (38 sloc) 1.394 kb
edit raw blame history

960 Grid System - Compass Plugin

  • Port of Version 1.0
  • 2008-03-24

Created by Nathan Smith. See the official site for more info: http://960.gs/


This plugin adds the 960 Grid System framework to Compass.

Install

sudo gem install chriseppstein-compass
sudo gem install chriseppstein-compass-960-plugin

Create a 960-based Compass Project

compass -r ninesixty -f 960 <project name>

Then edit your grid.sass and text.sass files accordingly. A reset is added into grid.sass automatically.

Customizing your Grid System

To create a grid system with other number of columns use the +grid-system mixin to generate the corresponding classes.

Example:

#wrap
  +grid-system(24)

Making Semantic Grids

  • Use the +grid-container mixin to declare your container element.
  • Use the +grid mixin to declare a grid element.
  • Use the +alpha and +omega mixins to declare the first and last grid elements for a row.
  • User the +grid-prefix and +grid-suffix mixins to add grid columns before or after a grid element.

Example:

#wrap
  +grid-container
  #left-nav
    +alpha
    +grid(5,16)
  #main-content
    +grid-prefix(1,16)
    +grid(10, 16)
    +omega
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server