Sha256: 8be6161b56f878fd74afb2163a13d45c8354a4613876b21d1432c910c357f0e5

Contents?: true

Size: 1.21 KB

Versions: 93

Compression:

Stored size: 1.21 KB

Contents

// Page layout can be done using mixins applied to your semantic classes and IDs
// For instance this layout defines a two column layout on pages with
// a body class of "two-col".
//
// The markup would look like:
//    <div id="container">
//      <div id="header"></div>
//      <div id="sidebar"></div>
//      <div id="content"></div>
//      <div id="footer"></div>
//    </div>
//
// and the layout would look like:
//    +------------------------+
//    |        #header         |
//    +--------+---------------+
//    |        |               |
//    |#sidebar|    #content   |
//    |        |               |
//    +------------------------+
//    |        #footer         |
//    +--------+---------------+

body.two-col
  #container
    +container
  #header, #footer
    +column($blueprint-grid-columns)
  #sidebar
    // One third of the grid columns, rounding down. With 24 cols, this is 8.
    $sidebar-columns: floor($blueprint-grid-columns / 3)
    +column($sidebar-columns)
  #content
    // Two thirds of the grid columns, rounding up.
    // With 24 cols, this is 16.
    $content-columns: ceil(2 * $blueprint-grid-columns / 3)
    // true means it's the last column in the row
    +column($content-columns, true)

Version data entries

93 entries across 92 versions & 8 rubygems

Version Path
frontsau-0.0.3 lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_two_col.sass
frontsau-0.0.2 lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_two_col.sass
frontsau-0.0.1 lib/Phamlp/sass/extensions/compass/frameworks/blueprint/templates/semantic/partials/_two_col.sass
compass-blueprint-1.0.0 framework/blueprint/templates/semantic/partials/_two_col.sass
compass-0.12.7 frameworks/blueprint/templates/semantic/partials/_two_col.sass
sadui-0.0.4 vendor/bundle/ruby/2.0.0/gems/compass-0.12.3/frameworks/blueprint/templates/semantic/partials/_two_col.sass
sadui-0.0.4 vendor/bundle/ruby/2.1.0/gems/compass-0.12.3/frameworks/blueprint/templates/semantic/partials/_two_col.sass
compass-0.12.6 frameworks/blueprint/templates/semantic/partials/_two_col.sass
compass-0.12.5 frameworks/blueprint/templates/semantic/partials/_two_col.sass
compass-0.12.4 frameworks/blueprint/templates/semantic/partials/_two_col.sass
compass-0.12.3 frameworks/blueprint/templates/semantic/partials/_two_col.sass
compass-sourcemaps-0.12.4.sourcemaps.a4836f1 frameworks/blueprint/templates/semantic/partials/_two_col.sass
compass-blueprint-0.0.1 framework/blueprint/templates/semantic/partials/_two_col.sass
compass-0.12.2 frameworks/blueprint/templates/semantic/partials/_two_col.sass
compass-0.12.2.rc.1 frameworks/blueprint/templates/semantic/partials/_two_col.sass
compass-0.12.2.rc.0 frameworks/blueprint/templates/semantic/partials/_two_col.sass
compass-0.13.alpha.0 frameworks/blueprint/templates/semantic/partials/_two_col.sass
compass-0.12.1 frameworks/blueprint/templates/semantic/partials/_two_col.sass
compass-0.12.0 frameworks/blueprint/templates/semantic/partials/_two_col.sass
radiant-1.0.0 ruby-debug/ruby/1.8/gems/compass-0.11.7/frameworks/blueprint/templates/semantic/partials/_two_col.sass