mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-12 00:24:03 +02:00
move vars and mixins for default grid back to appropriate files
This commit is contained in:
Binary file not shown.
@@ -2,31 +2,6 @@
|
|||||||
// -----------
|
// -----------
|
||||||
|
|
||||||
|
|
||||||
// Default grid sizing
|
|
||||||
// -------------------
|
|
||||||
@gridColumns: 12;
|
|
||||||
@gridColumnWidth: 60px;
|
|
||||||
@gridGutterWidth: 20px;
|
|
||||||
|
|
||||||
@gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
|
|
||||||
@gridTotalWidth: @gridRowWidth;
|
|
||||||
|
|
||||||
|
|
||||||
// Columns and offseting mixins
|
|
||||||
// ----------------------------
|
|
||||||
.columns(@columns: 1) {
|
|
||||||
//width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
|
|
||||||
width: @gridTotalWidth * ((((@gridGutterWidth+@gridColumnWidth)*@columns)-@gridGutterWidth)/@gridRowWidth);
|
|
||||||
}
|
|
||||||
.offset(@columns: 1) {
|
|
||||||
margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)) + (@gridGutterWidth * 2);
|
|
||||||
}
|
|
||||||
// Necessary grid styles for every column to make them appear next to each other horizontally
|
|
||||||
.gridColumn() {
|
|
||||||
float: left;
|
|
||||||
margin-left: @gridGutterWidth;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Grid rows and columns
|
// Grid rows and columns
|
||||||
// ---------------------
|
// ---------------------
|
||||||
.row {
|
.row {
|
||||||
|
@@ -139,6 +139,21 @@
|
|||||||
.clearfix();
|
.clearfix();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Columns and offseting mixins
|
||||||
|
// ----------------------------
|
||||||
|
.columns(@columns: 1) {
|
||||||
|
//width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
|
||||||
|
width: @gridTotalWidth * ((((@gridGutterWidth+@gridColumnWidth)*@columns)-@gridGutterWidth)/@gridRowWidth);
|
||||||
|
}
|
||||||
|
.offset(@columns: 1) {
|
||||||
|
margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)) + (@gridGutterWidth * 2);
|
||||||
|
}
|
||||||
|
// Necessary grid styles for every column to make them appear next to each other horizontally
|
||||||
|
.gridColumn() {
|
||||||
|
float: left;
|
||||||
|
margin-left: @gridGutterWidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// CSS3 PROPERTIES
|
// CSS3 PROPERTIES
|
||||||
|
@@ -40,6 +40,17 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// GRID SYSTEM VARIABLES
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
@gridColumns: 12;
|
||||||
|
@gridColumnWidth: 60px;
|
||||||
|
@gridGutterWidth: 20px;
|
||||||
|
@gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
|
||||||
|
@gridTotalWidth: @gridRowWidth;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// COMPONENT VARIABLES
|
// COMPONENT VARIABLES
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user