diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 8642bf95db..4d65d053bd 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -787,6 +787,18 @@ pre code { .col-10, .col-11, .col-12, +.col-sm-1, +.col-sm-2, +.col-sm-3, +.col-sm-4, +.col-sm-5, +.col-sm-6, +.col-sm-7, +.col-sm-8, +.col-sm-9, +.col-sm-10, +.col-sm-11, +.col-sm-12, .col-lg-1, .col-lg-2, .col-lg-3, @@ -856,40 +868,43 @@ pre code { } @media (min-width: 768px) { - .col-md-1 { + .container { + max-width: 728px; + } + .col-sm-1 { width: 8.333333333333332%; } - .col-md-2 { + .col-sm-2 { width: 16.666666666666664%; } - .col-md-3 { + .col-sm-3 { width: 25%; } - .col-md-4 { + .col-sm-4 { width: 33.33333333333333%; } - .col-md-5 { + .col-sm-5 { width: 41.66666666666667%; } - .col-md-6 { + .col-sm-6 { width: 50%; } - .col-md-7 { + .col-sm-7 { width: 58.333333333333336%; } - .col-md-8 { + .col-sm-8 { width: 66.66666666666666%; } - .col-md-9 { + .col-sm-9 { width: 75%; } - .col-md-10 { + .col-sm-10 { width: 83.33333333333334%; } - .col-md-11 { + .col-sm-11 { width: 91.66666666666666%; } - .col-md-12 { + .col-sm-12 { width: 100%; } .col-offset-1 { @@ -994,6 +1009,9 @@ pre code { } @media (min-width: 992px) { + .container { + max-width: 940px; + } .col-lg-1 { width: 8.333333333333332%; } @@ -1032,19 +1050,7 @@ pre code { } } -@media screen and (min-width: 768px) { - .container { - max-width: 728px; - } -} - -@media screen and (min-width: 992px) { - .container { - max-width: 940px; - } -} - -@media screen and (min-width: 1200px) { +@media (min-width: 1200px) { .container { max-width: 1170px; } diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index 6a608b4da8..811961d609 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -520,6 +520,7 @@ body { /* Utility classes table ------------------------- */ +.bs-table th small, .responsive-utilities th small { display: block; font-weight: normal; diff --git a/docs/css.html b/docs/css.html index 981626c607..dfab315230 100644 --- a/docs/css.html +++ b/docs/css.html @@ -63,9 +63,64 @@ lead: "Fundamental HTML elements styled and enhanced with extensible classes."
Bootstrap includes a responsive, percent-based grid system that appropriately scales up to 12 columns as the device or viewport size increases—in other words, it's mobile first. It includes predefined classes for this, as well as powerful mixins for generating semantic layouts.
+Bootstrap includes a responsive, mobile-first fluid grid system that appropriately scales up to 12 columns as the device or viewport size increases. It includes predefined classes for easy layout options, as well as powerful mixins for generating more semantic layouts.
+ +Multiple device grids, columns, offsets, and column ordering.
++ | + Tiny grid + Phones (<480px) + | ++ Small grid + Tablets (<768px) + | ++ Medium-large grid + Destkops (>768px) + | +
---|---|---|---|
Grid behavior | +Horizontal at all times | +Collapsed to start, horizontal above breakpoints | +|
Class prefix | +.col- |
+ .col-sm- |
+ .col-lg- |
+
# of columns | +12 | +||
Nestable | +Yes | +||
Offsets | +N/A | +Yes | +|
Column ordering | +N/A | +Yes | +
Bootstrap's grid system includes three levels of column sizing—phone, tablet, and desktop and up. Use each level in conjunction with the others for more control, or stick to the desktop classes for single-column, stacked mobile views.
-On mobile devices, the grid starts out stacked. Above 768px, it becomes horizontal as media queries kick in to apply float
s and width
s. To create a basic grid layout, wrap a series of .col-lg-*
elements within a .row
. As this is a 12-column grid, each .col-lg-*
spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent), even at mobile resolutions.
Be sure to checkout the full-page grid example as well.