mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-06 04:08:22 +01:00
restore table styles
This commit is contained in:
parent
6ac6be2a5e
commit
cb99c4b63a
174
docs/assets/css/bootstrap.css
vendored
174
docs/assets/css/bootstrap.css
vendored
@ -730,6 +730,180 @@ pre code {
|
|||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
max-width: 100%;
|
||||||
|
background-color: transparent;
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table {
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table th,
|
||||||
|
.table td {
|
||||||
|
padding: 8px;
|
||||||
|
line-height: 20px;
|
||||||
|
text-align: left;
|
||||||
|
vertical-align: top;
|
||||||
|
border-top: 1px solid #dddddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table th {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table thead th {
|
||||||
|
vertical-align: bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table caption + thead tr:first-child th,
|
||||||
|
.table caption + thead tr:first-child td,
|
||||||
|
.table colgroup + thead tr:first-child th,
|
||||||
|
.table colgroup + thead tr:first-child td,
|
||||||
|
.table thead:first-child tr:first-child th,
|
||||||
|
.table thead:first-child tr:first-child td {
|
||||||
|
border-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table tbody + tbody {
|
||||||
|
border-top: 2px solid #dddddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table .table {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-condensed th,
|
||||||
|
.table-condensed td {
|
||||||
|
padding: 4px 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-bordered {
|
||||||
|
border: 1px solid #dddddd;
|
||||||
|
border-collapse: separate;
|
||||||
|
border-left: 0;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-bordered th,
|
||||||
|
.table-bordered td {
|
||||||
|
border-left: 1px solid #dddddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-bordered caption + thead tr:first-child th,
|
||||||
|
.table-bordered caption + tbody tr:first-child th,
|
||||||
|
.table-bordered caption + tbody tr:first-child td,
|
||||||
|
.table-bordered colgroup + thead tr:first-child th,
|
||||||
|
.table-bordered colgroup + tbody tr:first-child th,
|
||||||
|
.table-bordered colgroup + tbody tr:first-child td,
|
||||||
|
.table-bordered thead:first-child tr:first-child th,
|
||||||
|
.table-bordered tbody:first-child tr:first-child th,
|
||||||
|
.table-bordered tbody:first-child tr:first-child td {
|
||||||
|
border-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-bordered thead:first-child tr:first-child > th:first-child,
|
||||||
|
.table-bordered tbody:first-child tr:first-child > td:first-child,
|
||||||
|
.table-bordered tbody:first-child tr:first-child > th:first-child {
|
||||||
|
border-top-left-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-bordered thead:first-child tr:first-child > th:last-child,
|
||||||
|
.table-bordered tbody:first-child tr:first-child > td:last-child,
|
||||||
|
.table-bordered tbody:first-child tr:first-child > th:last-child {
|
||||||
|
border-top-right-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-bordered thead:last-child tr:last-child > th:first-child,
|
||||||
|
.table-bordered tbody:last-child tr:last-child > td:first-child,
|
||||||
|
.table-bordered tbody:last-child tr:last-child > th:first-child,
|
||||||
|
.table-bordered tfoot:last-child tr:last-child > td:first-child,
|
||||||
|
.table-bordered tfoot:last-child tr:last-child > th:first-child {
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-bordered thead:last-child tr:last-child > th:last-child,
|
||||||
|
.table-bordered tbody:last-child tr:last-child > td:last-child,
|
||||||
|
.table-bordered tbody:last-child tr:last-child > th:last-child,
|
||||||
|
.table-bordered tfoot:last-child tr:last-child > td:last-child,
|
||||||
|
.table-bordered tfoot:last-child tr:last-child > th:last-child {
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-bordered tfoot + tbody:last-child tr:last-child > td:first-child {
|
||||||
|
border-bottom-left-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-bordered tfoot + tbody:last-child tr:last-child > td:last-child {
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-bordered caption + thead tr:first-child th:first-child,
|
||||||
|
.table-bordered caption + tbody tr:first-child td:first-child,
|
||||||
|
.table-bordered colgroup + thead tr:first-child th:first-child,
|
||||||
|
.table-bordered colgroup + tbody tr:first-child td:first-child {
|
||||||
|
border-top-left-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-bordered caption + thead tr:first-child th:last-child,
|
||||||
|
.table-bordered caption + tbody tr:first-child td:last-child,
|
||||||
|
.table-bordered colgroup + thead tr:first-child th:last-child,
|
||||||
|
.table-bordered colgroup + tbody tr:first-child td:last-child {
|
||||||
|
border-top-right-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-striped tbody > tr:nth-child(odd) > td,
|
||||||
|
.table-striped tbody > tr:nth-child(odd) > th {
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-hover tbody tr:hover > td,
|
||||||
|
.table-hover tbody tr:hover > th {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
table td[class*="span"],
|
||||||
|
table th[class*="span"] {
|
||||||
|
display: table-cell;
|
||||||
|
float: none;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table tbody tr.success > td {
|
||||||
|
background-color: #dff0d8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table tbody tr.error > td {
|
||||||
|
background-color: #f2dede;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table tbody tr.warning > td {
|
||||||
|
background-color: #fcf8e3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table tbody tr.info > td {
|
||||||
|
background-color: #d9edf7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-hover tbody tr.success:hover > td {
|
||||||
|
background-color: #d0e9c6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-hover tbody tr.error:hover > td {
|
||||||
|
background-color: #ebcccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-hover tbody tr.warning:hover > td {
|
||||||
|
background-color: #faf2cc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-hover tbody tr.info:hover > td {
|
||||||
|
background-color: #c4e3f3;
|
||||||
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
|
2
less/bootstrap.less
vendored
2
less/bootstrap.less
vendored
@ -21,6 +21,8 @@
|
|||||||
@import "code.less";
|
@import "code.less";
|
||||||
@import "grid.less";
|
@import "grid.less";
|
||||||
|
|
||||||
|
|
||||||
|
@import "tables.less";
|
||||||
@import "buttons.less";
|
@import "buttons.less";
|
||||||
|
|
||||||
// Components: common
|
// Components: common
|
||||||
|
Loading…
x
Reference in New Issue
Block a user