Bug 949462 - Use the theme-twisty class for devtools variables view twisties. r=bgrins

This commit is contained in:
Tim Nguyen 2014-06-10 16:44:11 -07:00
parent b12c4c03fe
commit 39bc9c42e0
5 changed files with 16 additions and 30 deletions

View File

@ -1797,7 +1797,7 @@ Scope.prototype = {
element.className = aTargetClassName;
let arrow = this._arrow = document.createElement("hbox");
arrow.className = "arrow";
arrow.className = "arrow theme-twisty";
let name = this._name = document.createElement("label");
name.className = "plain name";

View File

@ -282,6 +282,10 @@ div.CodeMirror span.eval-text {
background-position: -42px -14px;
}
.theme-twisty[invisible] {
visibility: hidden;
}
.theme-checkbox {
display: inline-block;
border: 0;

View File

@ -282,6 +282,10 @@ div.CodeMirror span.eval-text {
background-position: -14px -14px;
}
.theme-twisty[invisible] {
visibility: hidden;
}
/* Use white twisty when next to a selected item in markup view */
.theme-selected ~ .theme-twisty {
background-position: -28px -14px;

View File

@ -630,8 +630,12 @@
color: inherit !important;
}
.variable-or-property > .title > .arrow {
-moz-margin-start: 3px;
.variables-view-container .theme-twisty {
margin: 2px;
}
.variable-or-property > .title > .theme-twisty {
-moz-margin-start: 5px;
}
.variable-or-property:not([untitled]) > .variables-view-element-details {
@ -892,22 +896,6 @@
margin: 0;
}
/* Expand/collapse arrow */
.arrow {
-moz-appearance: treetwisty;
width: 20px;
height: 20px;
}
.arrow[open] {
-moz-appearance: treetwistyopen;
}
.arrow[invisible] {
visibility: hidden;
}
/* Canvas graphs */
.graph-widget-canvas {

View File

@ -6,14 +6,4 @@
.breadcrumbs-widget-item:-moz-focusring > .button-box {
border-width: 0;
}
.arrow {
-moz-appearance: none;
background: url("chrome://global/skin/tree/twisty-clsd.png") center center no-repeat;
}
.arrow[open] {
-moz-appearance: none;
background-image: url("chrome://global/skin/tree/twisty-open.png");
}
}