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" empty_text = "None"
show_header = False show_header = False
attrs = { attrs = {
'class': 'table table-hover panel-body', 'class': 'table table-hover',
} }
@ -158,7 +158,7 @@ class ConsoleServerPortTemplateTable(tables.Table):
empty_text = "None" empty_text = "None"
show_header = False show_header = False
attrs = { attrs = {
'class': 'table table-hover panel-body', 'class': 'table table-hover',
} }
@ -171,7 +171,7 @@ class PowerPortTemplateTable(tables.Table):
empty_text = "None" empty_text = "None"
show_header = False show_header = False
attrs = { attrs = {
'class': 'table table-hover panel-body', 'class': 'table table-hover',
} }
@ -184,7 +184,7 @@ class PowerOutletTemplateTable(tables.Table):
empty_text = "None" empty_text = "None"
show_header = False show_header = False
attrs = { 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; } .dark_gray:hover { background-color: #2c3e50; }
/* Misc */ /* Misc */
.panel table>thead>tr>th { .panel table {
border-bottom: 0; margin-bottom: 0;
} }
ul.nav-tabs, ul.nav-pills { .panel .table th {
margin-bottom: 20px; border-bottom-width: 1px;
}
.panel table tr.even:first-child td {
border-top: 0;
} }
.panel .list-group { .panel .list-group {
max-height: 400px; max-height: 400px;
overflow: auto; overflow: auto;
} }
ul.nav-tabs, ul.nav-pills {
margin-bottom: 20px;
}
/* Fix progress bar margin inside table cells */ /* Fix progress bar margin inside table cells */
td .progress { td .progress {
margin-bottom: 0; margin-bottom: 0;

View File

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