aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-29 16:58:51 -0800
committerMark Otto <[email protected]>2012-01-29 16:58:51 -0800
commitfda77e69eb825f6b098a303fedcc96d257b4b050 (patch)
tree31199c1eca0b0686085b48725b87207315aeb108
parentb078050702d92551ab53545edfb484f39511278e (diff)
downloadbootstrap-fda77e69eb825f6b098a303fedcc96d257b4b050.tar.xz
bootstrap-fda77e69eb825f6b098a303fedcc96d257b4b050.zip
move vars and mixins for default grid back to appropriate files
-rw-r--r--docs/assets/bootstrap.zipbin51339 -> 51339 bytes
-rw-r--r--less/grid.less25
-rw-r--r--less/mixins.less15
-rw-r--r--less/variables.less11
4 files changed, 26 insertions, 25 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip
index 21df15cef..cb200386a 100644
--- a/docs/assets/bootstrap.zip
+++ b/docs/assets/bootstrap.zip
Binary files differ
diff --git a/less/grid.less b/less/grid.less
index 4493d0b95..2ef767a4a 100644
--- a/less/grid.less
+++ b/less/grid.less
@@ -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
// ---------------------
.row {
diff --git a/less/mixins.less b/less/mixins.less
index 2d0e2d4c0..cba2670db 100644
--- a/less/mixins.less
+++ b/less/mixins.less
@@ -139,6 +139,21 @@
.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
diff --git a/less/variables.less b/less/variables.less
index c1e21978c..f09a88cdb 100644
--- a/less/variables.less
+++ b/less/variables.less
@@ -40,6 +40,17 @@
+// GRID SYSTEM VARIABLES
+// --------------------------------------------------
+
+@gridColumns: 12;
+@gridColumnWidth: 60px;
+@gridGutterWidth: 20px;
+@gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
+@gridTotalWidth: @gridRowWidth;
+
+
+
// COMPONENT VARIABLES
// --------------------------------------------------