mirror of https://github.com/zulip/zulip.git
bootstrap: Remove unnecessary CSS defined using ".table".
We do not use classes like "success", "warning", "info" and "error" for "tr" elements used in tables and thus we can remove the related CSS from bootstrap.css. We also do not have selectors of the form ".table .table" and so we can remove that CSS from bootstrap.css as well. ALso, the CSS defined using ".table tbody + tbody" to set the border is not required as we already set borders on th and td elements. The browser defaults for font-weight for `th` elements is "bold" so we can remove the CSS to set font-weight from bootstrap.css.
This commit is contained in:
parent
3da647c246
commit
2976f3f9e7
|
@ -233,21 +233,12 @@ table {
|
|||
vertical-align: top;
|
||||
border-top: 1px solid #dddddd;
|
||||
}
|
||||
.table th {
|
||||
font-weight: bold;
|
||||
}
|
||||
.table thead th {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
.table thead:first-child tr:first-child th {
|
||||
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;
|
||||
|
@ -290,18 +281,6 @@ table {
|
|||
.table-striped tbody > tr:nth-child(odd) > td {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
form {
|
||||
margin: 0 0 20px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue