diff options
| author | Mark Otto <[email protected]> | 2011-04-28 11:46:32 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2011-04-28 11:46:32 -0700 |
| commit | eb3389303d169b4ad8e85292e23fbc1a1be87f1b (patch) | |
| tree | 1d47f86b41bd9939cd17153606eeef0d4169c9a6 /less | |
| parent | 8c2e1286984152c0a354296d8a9f6fcfc9a14dfd (diff) | |
| download | bootstrap-eb3389303d169b4ad8e85292e23fbc1a1be87f1b.tar.xz bootstrap-eb3389303d169b4ad8e85292e23fbc1a1be87f1b.zip | |
Added in mini layout docs; cleaned up layout markup and added the css for it;
Diffstat (limited to 'less')
| -rw-r--r-- | less/docs.less | 74 | ||||
| -rw-r--r-- | less/scaffolding.less | 17 |
2 files changed, 82 insertions, 9 deletions
diff --git a/less/docs.less b/less/docs.less index 8ce89e276..b21c39aa8 100644 --- a/less/docs.less +++ b/less/docs.less @@ -1,3 +1,13 @@ +/* + Baseline's documentation styles + Special styles for presenting Baseline's documentation and examples +*/ + + +/* Body and structure +-------------------------------------------------- */ + +// Give us a gradient background body { #gradient > .vertical-three-colors(#eee, #fff, 0.15, #fff); background-attachment: fixed; @@ -5,7 +15,7 @@ body { position: relative; } -// Give us some love +// Give us some love on HTML5 elements (hardly use these in Basline thus far though) header, section, footer, @@ -14,6 +24,13 @@ aside { display: block; } +// Break up sections +section { + padding-top: @baseline * 4; + margin-bottom: @baseline * -2; +} + +// Blueprint-style header and footer #masthead, #footer { #gradient > .vertical(darken(@blue-dark, 5%), darken(@blue, 7.5%)); @@ -69,7 +86,10 @@ aside { } } -// Show the grids + +/* Special grid styles +-------------------------------------------------- */ + .show-grid { margin-top: 20px; margin-bottom: 20px; @@ -89,13 +109,10 @@ aside { } } -// Break up sections -section { - padding-top: @baseline * 4; - margin-bottom: @baseline * -2; -} -// Hashgrid.js grid +/* Hashgrid.js grid (press G & H to view) +-------------------------------------------------- */ + #grid { width: 980px; position: absolute; @@ -121,3 +138,44 @@ section { border-color: rgba(255,0,0,.25); } } + + + +/* Render mini layout previews +-------------------------------------------------- */ + +div.mini-layout { + height: 340px; + margin-bottom: @baseline; + padding: 9px; + border: 1px solid rgba(0,0,0,.25); + .border-radius(6px); + .box-shadow(0 1px 3px rgba(0,0,0,.125)); + // Default mini layout (fixed container) + div { + .border-radius(3px); + &.mini-layout-body { + background-color: rgba(141,192,219,.25); + margin: 0 auto; + width: 450px; + height: 340px; + } + } + // Fluid layout (sidebar) + &.fluid { + div.mini-layout-sidebar, + div.mini-layout-header, + div.mini-layout-body { + float: left; + } + div.mini-layout-sidebar { + background-color: rgba(141,192,219,.5); + width: 90px; + height: 340px; + } + div.mini-layout-body { + width: 400px; + margin-left: 10px; + } + } +} diff --git a/less/scaffolding.less b/less/scaffolding.less index 88bcf714a..fc920ab3a 100644 --- a/less/scaffolding.less +++ b/less/scaffolding.less @@ -41,12 +41,27 @@ body { .box-shadow(inset 0 1px 0 #fff); } -// Containers +// Container (centered, fixed-width layouts) div.container { width: 940px; margin: 0 auto; } +// Fluid layouts (left aligned, with sidebar, min- & max-width content) +div.container-fluid { + padding: 20px; + .clearfix(); + div.sidebar { + float: left; + width: 220px; + } + div.content { + min-width: 700px; + max-width: 1180px; + margin-left: 240px; + } +} + /* Base Styles -------------------------------------------------- */ |
