Project

simplest

0.0
No commit activity in last 3 years
No release in over 3 years
The Semantic gridsystem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.10.0
>= 3.2.1
 Project Readme

#SIMPLEST GRID SYSTEM

The Semantic gridsystem

  • Responsive
  • Fixed or fluid layout
  • Nested columns

Demo


#Install

gem install simplest

#Setup

###Edit your project file (config.rb)

# Require any additional compass plugins here.
require 'simplest'

# Sets the right amount of decimals for rounding numbers
Sass::Script::Number.precision = 8

###Import Simplest gridsystem

@import simplest

###Configure the SASS variables

$simplest-grid-content  : 940px
$simplest-gutter-width  : 20px
$simplest-margin-width  : 20px
$simplest-grid-columns  : 12
$simplest-fluid-grid    : true

#Usage

HTML

<div class="wrapper">
  <div class="content">
      <div class="main">
        <section>
          <article></article>
          <aside></aside>
        </section>
        <nav></nav>
      </div>
  </div>
</div>

SASS

@import simplest

$simplest-grid-content  : 940px
$simplest-gutter-width  : 20px
$simplest-margin-width  : 20px
$simplest-grid-columns  : 12
$simplest-fluid-grid    : true

.wrapper
  +grid-wrapper
  .content
    +grid-content
    .main
      +row
      section
        +row
        +col(8)
        +first
        article
          +col(2, 4, parent(8))
          +first
        aside
          +col(2, 4, parent(8))
          +last
      nav
        +col(4)
        +last