Bug 460668 - Remove useless search-sidebar-closebutton from help.xul (also add emptytext attribute and remove some obsolete css). NPODB. r=Neil.

This commit is contained in:
stefanh@inbox.com 2008-10-25 17:10:10 +02:00
Родитель 9915bd5215
Коммит e5804e32d1
5 изменённых файлов: 6 добавлений и 69 удалений

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

@ -182,9 +182,8 @@
<toolbarspring flex="1"/> <toolbarspring flex="1"/>
<toolbaritem id="search-box" <toolbaritem id="search-box"
align="center" pack="center"> align="center" pack="center">
<label value="&searchtab.label;" accesskey="&searchtab.accesskey;" <textbox id="findText" type="search" emptytext="&search.emptytext;"
control="findText"/> oncommand="doFind();"/>
<textbox id="findText" type="search" oncommand="doFind();"/>
</toolbaritem> </toolbaritem>
</toolbar> </toolbar>
</toolbox> </toolbox>
@ -234,10 +233,8 @@
</vbox> </vbox>
<vbox id="help-search-sidebar" hidden="true" flex="1"> <vbox id="help-search-sidebar" hidden="true" flex="1">
<sidebarheader align="center"> <sidebarheader align="center">
<label id="help-search-sidebar-header" flex="1" crop="end" value="&searchtab.label;"/> <label id="help-search-sidebar-header" flex="1" crop="end"
<toolbarbutton id="search-sidebar-closebutton" value="&searchHeader.label;"/>
tooltiptext="&searchClose.tooltip;"
oncommand="hideSearchSidebar();"/>
</sidebarheader> </sidebarheader>
<tree id="help-search-tree" class="focusring" <tree id="help-search-tree" class="focusring"
flex="1" hidecolumnpicker="true" flex="1" hidecolumnpicker="true"

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

@ -22,9 +22,8 @@
<!ENTITY printButton.tooltip "Print this page"> <!ENTITY printButton.tooltip "Print this page">
<!ENTITY closeWindow.commandkey "W"> <!ENTITY closeWindow.commandkey "W">
<!ENTITY searchtab.label "Search"> <!ENTITY search.emptytext "Search">
<!ENTITY searchtab.accesskey "S"> <!ENTITY searchHeader.label "Search results">
<!ENTITY searchClose.tooltip "Close search results">
<!ENTITY toctab.label "Contents"> <!ENTITY toctab.label "Contents">
<!ENTITY toctab.accesskey "C"> <!ENTITY toctab.accesskey "C">

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

@ -107,10 +107,6 @@
/* Set the minimum sidebar width so the help contents aren't squeezed together.*/ /* Set the minimum sidebar width so the help contents aren't squeezed together.*/
#help-sidebar { min-width: 15em; width: 20em; max-width: 25em; } #help-sidebar { min-width: 15em; width: 20em; max-width: 25em; }
#search-sidebar-closebutton {
list-style-image: url("moz-icon://stock/gtk-close?size=menu");
}
#context-copy[disabled="true"] { #context-copy[disabled="true"] {
display: none; display: none;
} }

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

@ -59,7 +59,6 @@
border: 0px !important; border: 0px !important;
} }
/* Hide labels for the toolbar because we really don't need them what with the /* Hide labels for the toolbar because we really don't need them what with the
tooltips */ tooltips */
#HelpToolbar .toolbarbutton-text { #HelpToolbar .toolbarbutton-text {
@ -69,22 +68,6 @@
/* Set the minimum sidebar width so the help contents aren't squeezed together.*/ /* Set the minimum sidebar width so the help contents aren't squeezed together.*/
#help-sidebar { min-width: 15em; width: 20em; max-width: 25em; } #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 { -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: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); } #help-back-button[disabled="true"] { -moz-image-region: rect(48px 24px 72px 0px); }
@ -150,28 +133,6 @@
-moz-image-region: rect(72px, 14px, 96px, 0px); -moz-image-region: rect(72px, 14px, 96px, 0px);
} }
#helpsidebar-splitter { #helpsidebar-splitter {
border-right: 1px solid #bebebe; border-right: 1px solid #bebebe;
} }
#helpsidebar-box toolbarbutton {
background-image: url("chrome://global/skin/icons/white-gray-gradient.gif");
background-repeat: repeat-x;
background-position: bottom right;
background-color: rgb(246, 246, 246);
border-bottom: 1px solid #b3b3b3;
border-right: 1px solid #bebebe;
margin: 0px;
text-align: left;
color: #505050;
}
#helpsidebar-box toolbarbutton[selected="true"] {
color: #000;
}
#helpsidebar-box tree {
margin: 0px !important;
padding: 0px !important;
}

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

@ -64,22 +64,6 @@
/* Set the minimum sidebar width so the help contents aren't squeezed together.*/ /* Set the minimum sidebar width so the help contents aren't squeezed together.*/
#help-sidebar { min-width: 15em; width: 20em; max-width: 25em; } #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, 14px, 14px, 0px);
}
#search-sidebar-closebutton:hover {
-moz-image-region: rect(0px, 28px, 14px, 14px);
}
#search-sidebar-closebutton:hover:active {
-moz-image-region: rect(0px, 42px, 14px, 28px);
}
/* ----- BACK BUTTON ----- */ /* ----- BACK BUTTON ----- */
#help-back-button { #help-back-button {