diff options
| author | Mark Otto <[email protected]> | 2012-01-25 10:48:08 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-01-25 10:48:08 -0800 |
| commit | 4a3ad1aa891f65547bd2e3e6de8862e3b26f47c9 (patch) | |
| tree | 09b91452168924f36079337e077f34e63d4e5465 /lib/responsive.less | |
| parent | 324ebb59900fd69411aec323a85953aec8c55bb6 (diff) | |
| download | bootstrap-4a3ad1aa891f65547bd2e3e6de8862e3b26f47c9.tar.xz bootstrap-4a3ad1aa891f65547bd2e3e6de8862e3b26f47c9.zip | |
update responsive to use latest grid mixins
Diffstat (limited to 'lib/responsive.less')
| -rw-r--r-- | lib/responsive.less | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/responsive.less b/lib/responsive.less index 452116ea0..2999eef4d 100644 --- a/lib/responsive.less +++ b/lib/responsive.less @@ -165,11 +165,11 @@ @siteWidth: 748px; // Bring grid mixins to recalculate widths - .columns(@columnSpan: 1) { - width: (@gridColumnWidth * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1)); + .columns(@columns: 1) { + width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)); } - .offset(@columnOffset: 1) { - margin-left: (@gridColumnWidth * @columnOffset) + (@gridGutterWidth * (@columnOffset - 1)) + @gridGutterWidth; + .offset(@columns: 1) { + margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)) + (@gridGutterWidth * 2); } // 16cols at 30px wide with 16px gutters @@ -219,11 +219,11 @@ @siteWidth: 1170px; // Bring grid mixins to recalculate widths - .columns(@columnSpan: 1) { - width: (@gridColumnWidth * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1)); + .columns(@columns: 1) { + width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)); } - .offset(@columnOffset: 1) { - margin-left: (@gridColumnWidth * @columnOffset) + (@gridGutterWidth * (@columnOffset - 1)) + @gridGutterWidth; + .offset(@columns: 1) { + margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)) + (@gridGutterWidth * 2); } .container { |
