diff --git a/assets/css/docs.css b/assets/css/docs.css index 8783e81498..84cd801503 100644 --- a/assets/css/docs.css +++ b/assets/css/docs.css @@ -418,9 +418,6 @@ body { .bs-example-control-sizing input[type="text"] + input[type="text"] { margin-top: 10px; } -.bs-example-form { - overflow: hidden; -} .bs-example-form .input-group { margin-bottom: 10px; } @@ -431,6 +428,9 @@ body { } /* Navbar examples */ +.bs-example .navbar:last-child { + margin-bottom: 0; +} .bs-navbar-top-example, .bs-navbar-bottom-example { z-index: 1; @@ -457,7 +457,7 @@ body { } .bs-navbar-top-example:after { top: auto; - bottom: -1px; + bottom: 15px; -webkit-border-radius: 0 4px 0 4px; -moz-border-radius: 0 4px 0 4px; border-radius: 0 4px 0 4px; @@ -545,6 +545,37 @@ body { /* Responsive docs -------------------------------------------------- */ +/* Responsive (scrollable) doc tables */ +@media (max-width: 768px) { + .bs-table-scrollable { + width: 100%; + margin-bottom: 15px; + overflow-y: hidden; + overflow-x: scroll; + border: 1px solid #ddd; + } + .bs-table-scrollable .table { + margin-bottom: 0; + border: 0; + } + .bs-table-scrollable .table th, + .bs-table-scrollable .table td { + white-space: nowrap; + } + .bs-table-scrollable .table th:first-child, + .bs-table-scrollable .table td:first-child { + border-left: 0; + } + .bs-table-scrollable .table th:last-child, + .bs-table-scrollable .table td:last-child { + border-right: 0; + } + .bs-table-scrollable .table tr:last-child th, + .bs-table-scrollable .table tr:last-child td { + border-bottom: 0; + } +} + /* Related: responsive utilities tables */ .table code { font-size: 13px; @@ -578,7 +609,7 @@ body { ------------------------- */ .responsive-utilities-test { margin-top: 5px; - margin-left: 0; + padding-left: 0; list-style: none; overflow: hidden; /* clear floats */ } diff --git a/css.html b/css.html index 0c41d4af01..9e7da28f98 100644 --- a/css.html +++ b/css.html @@ -78,56 +78,58 @@ lead: "Global CSS settings, fundamental HTML elements styled and enhanced with e
See how aspects of the Bootstrap grid system work across multiple devices with a handy table.
-- | - 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 | -
+ | + 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 | +
Using a single set of grid classes, you can create a basic grid system that starts out stacked on mobile and tablet devices before becoming horizontal on desktop devices.
@@ -1051,44 +1053,46 @@ For example,<section>
should be wrapped as inline.
Use contextual classes to color table rows or individual cells.
-Class | -Description | -
---|---|
- .success
- |
- Indicates a successful or positive action | -
- .danger
- |
- Indicates a dangerous or potentially negative action | -
- .warning
- |
- Indicates a warning that might need attention | -
- .active
- |
- Applies the hover color to a particular row or cell | -
Class | +Description | +
---|---|
+ .success
+ |
+ Indicates a successful or positive action | +
+ .danger
+ |
+ Indicates a dangerous or potentially negative action | +
+ .warning
+ |
+ Indicates a warning that might need attention | +
+ .active
+ |
+ Applies the hover color to a particular row or cell | +