two column layout example for blueprint.
This commit is contained in:
parent
5e48e074de
commit
853169f616
8
doc-src/content/examples/blueprint/grid/two_cols.haml
Normal file
8
doc-src/content/examples/blueprint/grid/two_cols.haml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: Two Column Layout
|
||||
description: A semantic two-column layout
|
||||
framework: blueprint
|
||||
stylesheet: blueprint/_grid.sass
|
||||
example: true
|
||||
---
|
||||
= render "partials/example"
|
19
doc-src/content/examples/blueprint/grid/two_cols/markup.haml
Normal file
19
doc-src/content/examples/blueprint/grid/two_cols/markup.haml
Normal file
@ -0,0 +1,19 @@
|
||||
.two-col
|
||||
#header
|
||||
%h1 This is the Header
|
||||
#sidebar
|
||||
%ul
|
||||
%li
|
||||
%a(href="#") Nav #1
|
||||
%li
|
||||
%a(href="#") Nav #2
|
||||
%li
|
||||
%a(href="#") Nav #3
|
||||
#content
|
||||
%p
|
||||
Lorem ipsum dolor sit amet,
|
||||
consectetur adipisicing elit, sed do
|
||||
eiusmod tempor incididunt ut labore et
|
||||
dolore magna aliqua.
|
||||
#footer
|
||||
This is the footer.
|
@ -0,0 +1,16 @@
|
||||
!blueprint_grid_columns = 8
|
||||
!blueprint_grid_width = 40px
|
||||
|
||||
@import blueprint
|
||||
|
||||
.two-col
|
||||
+container
|
||||
background-color: #ccc
|
||||
#header, #footer
|
||||
+column(8)
|
||||
#sidebar
|
||||
+column(3)
|
||||
#content
|
||||
+column(5, true)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user