diff options
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) { |
