зеркало из https://github.com/mozilla/pjs.git
Bug 592708: Hide the bottom border of the details grid. r=Unfocused, a=dtownsend
This commit is contained in:
Родитель
23afe41928
Коммит
085857b4ab
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче