diff --git a/netbox/dcim/tables.py b/netbox/dcim/tables.py index c754b0296..3a8f364ef 100644 --- a/netbox/dcim/tables.py +++ b/netbox/dcim/tables.py @@ -145,7 +145,7 @@ class ConsolePortTemplateTable(tables.Table): empty_text = "None" show_header = False attrs = { - 'class': 'table table-hover panel-body', + 'class': 'table table-hover', } @@ -158,7 +158,7 @@ class ConsoleServerPortTemplateTable(tables.Table): empty_text = "None" show_header = False attrs = { - 'class': 'table table-hover panel-body', + 'class': 'table table-hover', } @@ -171,7 +171,7 @@ class PowerPortTemplateTable(tables.Table): empty_text = "None" show_header = False attrs = { - 'class': 'table table-hover panel-body', + 'class': 'table table-hover', } @@ -184,7 +184,7 @@ class PowerOutletTemplateTable(tables.Table): empty_text = "None" show_header = False attrs = { - 'class': 'table table-hover panel-body', + 'class': 'table table-hover', } diff --git a/netbox/project-static/css/base.css b/netbox/project-static/css/base.css index 89fd6f0b7..f44fd1a24 100644 --- a/netbox/project-static/css/base.css +++ b/netbox/project-static/css/base.css @@ -258,16 +258,22 @@ ul.rack_near_face li.empty:hover a { .dark_gray:hover { background-color: #2c3e50; } /* Misc */ -.panel table>thead>tr>th { - border-bottom: 0; +.panel table { + margin-bottom: 0; } -ul.nav-tabs, ul.nav-pills { - margin-bottom: 20px; +.panel .table th { + border-bottom-width: 1px; +} +.panel table tr.even:first-child td { + border-top: 0; } .panel .list-group { max-height: 400px; overflow: auto; } +ul.nav-tabs, ul.nav-pills { + margin-bottom: 20px; +} /* Fix progress bar margin inside table cells */ td .progress { margin-bottom: 0; diff --git a/netbox/templates/dcim/inc/devicetype_component_table.html b/netbox/templates/dcim/inc/devicetype_component_table.html index 3c8913dc6..55bed30e9 100644 --- a/netbox/templates/dcim/inc/devicetype_component_table.html +++ b/netbox/templates/dcim/inc/devicetype_component_table.html @@ -22,8 +22,6 @@