Bug 365574: Help's search sidebar close button (even more) broken, r=mano

This commit is contained in:
philringnalda%gmail.com 2007-01-27 05:54:34 +00:00
parent a14f8ae1db
commit 30565cbd6f
4 changed files with 36 additions and 1 deletions

View File

@ -234,7 +234,9 @@
<vbox id="help-search-sidebar" hidden="true" flex="1">
<sidebarheader align="center">
<label id="help-search-sidebar-header" flex="1" crop="end" value="&searchtab.label;"/>
<toolbarbutton id="find-closebutton" oncommand="hideSearchSidebar();"/>
<toolbarbutton id="search-sidebar-closebutton"
tooltiptext="&searchClose.tooltip;"
oncommand="hideSearchSidebar();"/>
</sidebarheader>
<tree id="help-search-tree" class="focusring"
flex="1" hidecolumnpicker="true"

View File

@ -24,6 +24,7 @@
<!ENTITY searchtab.label "Search">
<!ENTITY searchtab.accesskey "S">
<!ENTITY searchClose.tooltip "Close search results">
<!ENTITY toctab.label "Contents">
<!ENTITY toctab.accesskey "C">

View File

@ -69,6 +69,22 @@
/* Set the minimum sidebar width so the help contents aren't squeezed together.*/
#help-sidebar { min-width: 15em; width: 20em; max-width: 25em; }
#search-sidebar-closebutton {
-moz-binding: url(chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton-image);
list-style-image: url("chrome://global/skin/icons/closetab.png");
padding-right: 4px;
margin: 0;
border: 0;
}
#search-sidebar-closebutton:hover {
list-style-image: url("chrome://global/skin/icons/closetab-hover.png");
}
#search-sidebar-closebutton:hover:active {
list-style-image: url("chrome://global/skin/icons/closetab-active.png");
}
#help-back-button { -moz-image-region: rect(0px 24px 24px 0px); }
#help-back-button:not([disabled="true"]):hover { -moz-image-region: rect(24px 24px 48px 0px); }
#help-back-button[disabled="true"] { -moz-image-region: rect(48px 24px 72px 0px); }

View File

@ -64,6 +64,22 @@
/* Set the minimum sidebar width so the help contents aren't squeezed together.*/
#help-sidebar { min-width: 15em; width: 20em; max-width: 25em; }
#search-sidebar-closebutton {
border: 1px solid transparent;
padding: 3px 2px 4px 2px !important;
list-style-image: url("chrome://global/skin/icons/close.png");
-moz-appearance: none;
-moz-image-region: rect(0px, 16px, 16px, 0px);
}
#search-sidebar-closebutton:hover {
-moz-image-region: rect(0px, 32px, 16px, 16px);
}
#search-sidebar-closebutton:hover:active {
-moz-image-region: rect(0px, 48px, 16px, 32px);
}
/* ----- BACK BUTTON ----- */
#help-back-button {