diff options
| author | Mark Otto <[email protected]> | 2011-09-08 10:36:56 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2011-09-08 10:36:56 -0700 |
| commit | 1c03a075919681c398622bc36ca9f78b5f3c1737 (patch) | |
| tree | 97fd4820d5a9d67cf4c0c528daf99fedacd35149 /lib/preboot.less | |
| parent | 1af96b9a58b0bbd27a705000ed1ce68b5af04b7f (diff) | |
| download | bootstrap-1c03a075919681c398622bc36ca9f78b5f3c1737.tar.xz bootstrap-1c03a075919681c398622bc36ca9f78b5f3c1737.zip | |
bump css to 1.3.0, update makefile to reflect that, update form css to prepend form to the .clearfix to prevent some bullshit, small tweaks elsewhere
Diffstat (limited to 'lib/preboot.less')
| -rw-r--r-- | lib/preboot.less | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/preboot.less b/lib/preboot.less index 3f44e376b..dffeb64bf 100644 --- a/lib/preboot.less +++ b/lib/preboot.less @@ -121,7 +121,7 @@ } // Grid System -.fixed-container { +.fixed-container() { width: @siteWidth; margin-left: auto; margin-right: auto; @@ -133,6 +133,17 @@ .offset(@columnOffset: 1) { margin-left: (@gridColumnWidth * @columnOffset) + (@gridGutterWidth * (@columnOffset - 1)) + @extraSpace; } +// Necessary grid styles for every column to make them appear next to each other horizontally +.gridColumn() { + display: inline; + float: left; + margin-left: @gridGutterWidth; +} +// makeColumn can be used to mark any element (e.g., .content-primary) as a column without changing markup to .span something +.makeColumn(@columnSpan: 1) { + .gridColumn(); + .columns(@columnSpan); +} // Border Radius .border-radius(@radius: 5px) { |
