Bug 592708: Hide the bottom border of the details grid. r=Unfocused, a=dtownsend

This commit is contained in:
Roland Warmerdam 2010-10-07 10:28:04 -07:00
Родитель 23afe41928
Коммит 085857b4ab
4 изменённых файлов: 28 добавлений и 3 удалений

Просмотреть файл

@ -1997,6 +1997,16 @@ var gDetailView = {
}
document.getElementById("detail-prefs").hidden = !aIsRemote && !aAddon.optionsURL;
var gridRows = document.querySelectorAll("#detail-grid rows row");
for (var i = 0, first = true; i < gridRows.length; ++i) {
if (first && window.getComputedStyle(gridRows[i], null).getPropertyValue("display") != "none") {
gridRows[i].setAttribute("first-row", true);
first = false;
} else {
gridRows[i].removeAttribute("first-row");
}
}
this.updateState();

Просмотреть файл

@ -605,9 +605,14 @@
margin-bottom: 2em;
}
.detail-row[first-row="true"],
.detail-row-complex[first-row="true"] {
border-top: none;
}
.detail-row,
.detail-row-complex {
border-bottom: 1px solid grey;
border-top: 1px solid grey;
-moz-box-align: center;
}

Просмотреть файл

@ -656,9 +656,14 @@
margin-bottom: 2em;
}
.detail-row[first-row="true"],
.detail-row-complex[first-row="true"] {
border-top: none;
}
.detail-row,
.detail-row-complex {
border-bottom: 1px solid grey;
border-top: 1px solid grey;
-moz-box-align: center;
}

Просмотреть файл

@ -641,9 +641,14 @@
margin-bottom: 2em;
}
.detail-row[first-row="true"],
.detail-row-complex[first-row="true"] {
border-top: none;
}
.detail-row,
.detail-row-complex {
border-bottom: 1px solid grey;
border-top: 1px solid grey;
-moz-box-align: center;
}