mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 875165 - Update help button style to be compatible with XBL refactoring changes. r=dao
--HG-- extra : rebase_source : 2874a068bc0de77161268810bf6c8daff92ed3e8
This commit is contained in:
parent
1a7c66ba89
commit
4206002ca0
@ -3,6 +3,7 @@
|
|||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||||
|
@namespace xbl "http://www.mozilla.org/xbl";
|
||||||
|
|
||||||
button {
|
button {
|
||||||
-moz-appearance: button;
|
-moz-appearance: button;
|
||||||
@ -83,17 +84,28 @@ button[dlgtype="help"]:-moz-focusring {
|
|||||||
-moz-outline-radius: 10000px;
|
-moz-outline-radius: 10000px;
|
||||||
}
|
}
|
||||||
|
|
||||||
button[dlgtype="help"] > .button-box > .button-icon {
|
button[dlgtype="help"] > .button-box > .button-icon,
|
||||||
|
/* Due to XBL refactoring changes, default content in a binding is
|
||||||
|
contained in a <xbl:children> element and thus the selector above
|
||||||
|
will not match the help button icon. When the XBL refactoring is
|
||||||
|
shipped (bug 653881), the selector above may be removed. */
|
||||||
|
button[dlgtype="help"] > .button-box > xbl|children > .button-icon {
|
||||||
list-style-image: url("chrome://global/skin/icons/question-mark.png");
|
list-style-image: url("chrome://global/skin/icons/question-mark.png");
|
||||||
-moz-image-region: rect(0 24px 24px 0);
|
-moz-image-region: rect(0 24px 24px 0);
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
button[dlgtype="help"]:active > .button-box > .button-icon {
|
button[dlgtype="help"]:active > .button-box > .button-icon,
|
||||||
|
/* When the XBL refactoring is shipped (bug 653881),
|
||||||
|
the selector above may be removed. */
|
||||||
|
button[dlgtype="help"]:active > .button-box > xbl|children > .button-icon {
|
||||||
-moz-image-region: rect(0 48px 24px 24px);
|
-moz-image-region: rect(0 48px 24px 24px);
|
||||||
}
|
}
|
||||||
|
|
||||||
button[dlgtype="help"] > .button-box > .button-text {
|
button[dlgtype="help"] > .button-box > .button-text,
|
||||||
|
/* When the XBL refactoring is shipped (bug 653881),
|
||||||
|
the selector above may be removed. */
|
||||||
|
button[dlgtype="help"] > .button-box > xbl|children > .button-text {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user