From 3e76d6565603fafa2c85ad81d7b6345c4e279c72 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 28 May 2017 22:50:57 -0700 Subject: Rearrange all the docs to allow for a docs/major.minor/ setup --- docs/4.0/examples/grid/grid.css | 27 ++++++ docs/4.0/examples/grid/index.html | 173 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 200 insertions(+) create mode 100644 docs/4.0/examples/grid/grid.css create mode 100644 docs/4.0/examples/grid/index.html (limited to 'docs/4.0/examples/grid') diff --git a/docs/4.0/examples/grid/grid.css b/docs/4.0/examples/grid/grid.css new file mode 100644 index 000000000..5f7e1af66 --- /dev/null +++ b/docs/4.0/examples/grid/grid.css @@ -0,0 +1,27 @@ +body { + padding-top: 2rem; + padding-bottom: 2rem; +} + +h3 { + margin-top: 2rem; +} + +.row { + margin-bottom: 1rem; +} +.row .row { + margin-top: 1rem; + margin-bottom: 0; +} +[class*="col-"] { + padding-top: 1rem; + padding-bottom: 1rem; + background-color: rgba(86,61,124,.15); + border: 1px solid rgba(86,61,124,.2); +} + +hr { + margin-top: 2rem; + margin-bottom: 2rem; +} diff --git a/docs/4.0/examples/grid/index.html b/docs/4.0/examples/grid/index.html new file mode 100644 index 000000000..783eee35d --- /dev/null +++ b/docs/4.0/examples/grid/index.html @@ -0,0 +1,173 @@ + + + + + + + + + + Grid Template for Bootstrap + + + + + + + + + +
+ +

Bootstrap grid examples

+

Basic grid layouts to get you familiar with building within the Bootstrap grid system.

+ +

Five grid tiers

+

There are five tiers to the Bootstrap grid system, one for each range of devices we support. Each tier starts at a minimum viewport size and automatically applies to the larger devices unless overridden.

+ +
+
.col-4
+
.col-4
+
.col-4
+
+ +
+
.col-sm-4
+
.col-sm-4
+
.col-sm-4
+
+ +
+
.col-md-4
+
.col-md-4
+
.col-md-4
+
+ +
+
.col-lg-4
+
.col-lg-4
+
.col-lg-4
+
+ +
+
.col-xl-4
+
.col-xl-4
+
.col-xl-4
+
+ +

Three equal columns

+

Get three equal-width columns starting at desktops and scaling to large desktops. On mobile devices, tablets and below, the columns will automatically stack.

+
+
.col-md-4
+
.col-md-4
+
.col-md-4
+
+ +

Three unequal columns

+

Get three columns starting at desktops and scaling to large desktops of various widths. Remember, grid columns should add up to twelve for a single horizontal block. More than that, and columns start stacking no matter the viewport.

+
+
.col-md-3
+
.col-md-6
+
.col-md-3
+
+ +

Two columns

+

Get two columns starting at desktops and scaling to large desktops.

+
+
.col-md-8
+
.col-md-4
+
+ +

Full width, single column

+

No grid classes are necessary for full-width elements.

+ +
+ +

Two columns with two nested columns

+

Per the documentation, nesting is easy—just put a row of columns within an existing column. This gives you two columns starting at desktops and scaling to large desktops, with another two (equal widths) within the larger column.

+

At mobile device sizes, tablets and down, these columns and their nested columns will stack.

+
+
+ .col-md-8 +
+
.col-md-6
+
.col-md-6
+
+
+
.col-md-4
+
+ +
+ +

Mixed: mobile and desktop

+

The Bootstrap v4 grid system has five tiers of classes: xs (extra small), sm (small), md (medium), lg (large), and xl (extra large). You can use nearly any combination of these classes to create more dynamic and flexible layouts.

+

Each tier of classes scales up, meaning if you plan on setting the same widths for xs and sm, you only need to specify xs.

+
+
.col-12 .col-md-8
+
.col-6 .col-md-4
+
+
+
.col-6 .col-md-4
+
.col-6 .col-md-4
+
.col-6 .col-md-4
+
+
+
.col-6
+
.col-6
+
+ +
+ +

Mixed: mobile, tablet, and desktop

+

+
+
.col-12 .col-sm-6 .col-lg-8
+
.col-6 .col-lg-4
+
+
+
.col-6 .col-sm-4
+
.col-6 .col-sm-4
+
.col-6 .col-sm-4
+
+ +
+ +

Column clearing

+

Clear floats at specific breakpoints to prevent awkward wrapping with uneven content.

+
+
+ .col-6 .col-sm-3 +
+ Resize your viewport or check it out on your phone for an example. +
+
.col-6 .col-sm-3
+ + +
+ +
.col-6 .col-sm-3
+
.col-6 .col-sm-3
+
+ +
+ +

Offset, push, and pull resets

+

Reset offsets, pushes, and pulls at specific breakpoints.

+
+
.col-sm-5 .col-md-6
+
.col-sm-5 .offset-sm-2 .col-md-6 .offset-md-0
+
+
+
.col-sm-6 .col-md-5 .col-lg-6
+
.col-sm-6 .col-md-5 .offset-md-2 .col-lg-6 .offset-lg-0
+
+ +
+ + + + + + + -- cgit v1.2.3 From 0ef7cb866e8eb3289470c57fe35d01f31a4c0e14 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 29 May 2017 11:55:36 -0700 Subject: more examples path fixing --- docs/4.0/examples/grid/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/4.0/examples/grid') diff --git a/docs/4.0/examples/grid/index.html b/docs/4.0/examples/grid/index.html index 783eee35d..06d674847 100644 --- a/docs/4.0/examples/grid/index.html +++ b/docs/4.0/examples/grid/index.html @@ -10,7 +10,7 @@ Grid Template for Bootstrap - + @@ -168,6 +168,6 @@ ================================================== --> - + -- cgit v1.2.3