2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-30 15:24:08 +03:00

fix uber size in responsive; remove @extraspace variable by changing grid to use :first-child over negative margin

This commit is contained in:
Mark Otto
2011-10-16 03:08:14 -07:00
parent 9e9109469e
commit be926a04bc
4 changed files with 38 additions and 41 deletions
+1 -1
View File
@@ -82,7 +82,7 @@
width: (@gridColumnWidth * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1));
}
.offset(@columnOffset: 1) {
margin-left: (@gridColumnWidth * @columnOffset) + (@gridGutterWidth * (@columnOffset - 1)) + @extraSpace;
margin-left: (@gridColumnWidth * @columnOffset) + (@gridGutterWidth * (@columnOffset - 1)) + @gridGutterWidth;
}
// Necessary grid styles for every column to make them appear next to each other horizontally
.gridColumn() {
-1
View File
@@ -41,7 +41,6 @@
@gridColumns: 12;
@gridColumnWidth: 60px;
@gridGutterWidth: 20px;
@extraSpace: (@gridGutterWidth * 2); // For our grid calculations
@siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));