Fixed double top border on component template tables

This commit is contained in:
Jeremy Stretch 2016-06-24 12:56:36 -04:00
parent 4cbf09e0e1
commit 0b66b547a3
3 changed files with 15 additions and 11 deletions

View File

@ -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',
}

View File

@ -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;

View File

@ -22,8 +22,6 @@
<div class="panel-heading">
<strong>{{ title }}</strong>
</div>
<table class="table table-hover panel-body">
{% render_table table table_template|default:'table.html' %}
</table>
{% render_table table 'table.html' %}
</div>
{% endif %}