From: Mark Otto Date: Sat, 10 Sep 2011 03:47:38 +0000 (-0700) Subject: start updating the grid docs for customizing it X-Git-Tag: v1.3.0~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c56e229ed73824778c672a67e7e70c4521623fe9;p=thirdparty%2Fbootstrap.git start updating the grid docs for customizing it --- diff --git a/docs/index.html b/docs/index.html index 4d722d8679..79f8f3012b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -263,7 +263,10 @@
16
-

Offsetting columns

+ +
+ +

Offsetting columns

4
8 offset 4
@@ -283,22 +286,73 @@
10 offset 6
-

Nesting columns

-

Nest your content if you must by creating a .row within an existing column.

-
-
- Level 1 of column +
+ +
+
+

Nesting columns

+

Nest your content if you must by creating a .row within an existing column.

+
+
+

Example of nested columns

-
- Level 2 -
-
- Level 2 +
+ Level 1 of column +
+
+ Level 2 +
+
+ Level 2 +
+
-
- Level 1 of column +
+ +
+ +
+
+

Roll your own grid

+

Built into Bootstrap are a handful of variables for customizing the default 940px grid system. With a bit of customization, you can modify the size of columns, their gutters, and the container they reside in.

+
+
+

Inside the grid

+

The variables needed to modify the grid system currently all reside in preboot.less.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VariableDefault valueDescription
@gridColumns16The number of columns within the grid
@gridColumnWidth40pxThe width of each column within the grid
@gridGutterWidth20pxThe negative space between each column
@siteWidthComputed sum of all columns and guttersWe use some basic match to count the number of columns and gutters and set the width of the .fixed-container() mixin.
+