From 2976f3f9e7e197e874423e63c622e106e434a0e6 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Mon, 24 Jul 2023 22:13:03 +0530 Subject: [PATCH] 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. --- web/third/bootstrap/css/bootstrap.css | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/web/third/bootstrap/css/bootstrap.css b/web/third/bootstrap/css/bootstrap.css index cfd0d55cff..5011cc64c8 100644 --- a/web/third/bootstrap/css/bootstrap.css +++ b/web/third/bootstrap/css/bootstrap.css @@ -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; }