[Table] Fix headers in firefox

Don't use table-cell displays for cells, resolves issues with zero-sized
tbody causing thead to be 100% of table size.

Fixes https://github.com/nasa/openmct/issues/809
This commit is contained in:
Pete Richards 2016-05-04 11:13:12 -07:00
parent 01f290dc45
commit 1c6ef28b80

View File

@ -34,17 +34,28 @@
}
.mct-table {
table-layout: fixed;
th {
box-sizing: border-box;
thead {
display: block;
tr {
display: block;
white-space: nowrap;
th {
display: inline-block;
box-sizing: border-box;
}
}
}
tbody {
tr {
position: absolute;
white-space: nowrap;
display: block;
}
td {
white-space: nowrap;
overflow: hidden;
box-sizing: border-box;
display: inline-block;
}
}
}
}