0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

fix broken table in the forms docs

This commit is contained in:
Mark Otto 2015-08-05 23:19:15 -07:00
parent 36800a2740
commit 0173b553d5
3 changed files with 48 additions and 52 deletions

View File

@ -7,39 +7,31 @@
.bd-docs { .bd-docs {
padding-top: 3.65rem; } padding-top: 3.65rem; }
.bd-container { .bd-content > table {
position: relative; display: block;
max-width: 62rem; width: 100%;
padding: 0 1rem 1rem; max-width: 100%;
margin-right: auto; overflow-y: auto;
margin-left: auto; } margin-bottom: 1rem; }
@media (min-width: 48em) { .bd-content > table > thead > tr > th,
.bd-container { .bd-content > table > thead > tr > td,
padding: 2rem; } } .bd-content > table > tbody > tr > th,
@media (min-width: 62em) { .bd-content > table > tbody > tr > td,
.bd-container { .bd-content > table > tfoot > tr > th,
padding: 4rem; } .bd-content > table > tfoot > tr > td {
.bd-container .carbonad { padding: 0.75rem;
float: right !important; line-height: 1.5;
margin: 0.5rem 0 1rem 2rem !important; } } vertical-align: top;
.bd-container > table { border: 1px solid #eceeef; }
display: block; .bd-content > table > thead > tr > th > p:last-child,
width: 100%; .bd-content > table > thead > tr > td > p:last-child,
max-width: 100%; .bd-content > table > tbody > tr > th > p:last-child,
overflow-y: auto; .bd-content > table > tbody > tr > td > p:last-child,
margin-bottom: 1rem; } .bd-content > table > tfoot > tr > th > p:last-child,
.bd-container > table > thead > tr > th, .bd-content > table > tfoot > tr > td > p:last-child {
.bd-container > table > thead > tr > td, margin-bottom: 0; }
.bd-container > table > tbody > tr > th, .bd-content > table td:first-child > code {
.bd-container > table > tbody > tr > td, white-space: nowrap; }
.bd-container > table > tfoot > tr > th,
.bd-container > table > tfoot > tr > td {
padding: 0.75rem;
line-height: 1.5;
vertical-align: top;
border: 1px solid #eceeef; }
.bd-container > table td:first-child > code {
white-space: nowrap; }
.bd-pageheader { .bd-pageheader {
margin-bottom: 3rem; margin-bottom: 3rem;

File diff suppressed because one or more lines are too long

View File

@ -7,25 +7,25 @@
// //
// Doesn't use the default `.container` styles for easier modifications. // Doesn't use the default `.container` styles for easier modifications.
.bd-container { .bd-content {
position: relative; // position: relative;
max-width: 62rem; // max-width: 62rem;
padding: 0 1rem 1rem; // padding: 0 1rem 1rem;
margin-right: auto; // margin-right: auto;
margin-left: auto; // margin-left: auto;
@include media-breakpoint-up(md) { // @include media-breakpoint-up(md) {
padding: 2rem; // padding: 2rem;
} // }
//
@include media-breakpoint-up(lg) { // @include media-breakpoint-up(lg) {
padding: 4rem; // padding: 4rem;
//
.carbonad { // .carbonad {
float: right !important; // float: right !important;
margin: .5rem 0 1rem 2rem !important; // margin: .5rem 0 1rem 2rem !important;
} // }
} // }
> table { > table {
display: block; display: block;
@ -47,6 +47,10 @@
vertical-align: top; vertical-align: top;
// border-top: 1px solid $table-border-color; // border-top: 1px solid $table-border-color;
border: 1px solid $table-border-color; border: 1px solid $table-border-color;
> p:last-child {
margin-bottom: 0;
}
} }
} }
} }