Bug 911876 - Increase the find bar close button's clickable area. r=dao

This commit is contained in:
Kai Strecker 2013-11-08 15:23:55 +01:00
Родитель b96fb42e22
Коммит 0d9249e536
4 изменённых файлов: 27 добавлений и 10 удалений

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

@ -192,11 +192,11 @@
type="checkbox"
xbl:inherits="accesskey=matchcaseaccesskey"/>
<xul:label anonid="match-case-status" class="findbar-find-fast"/>
<xul:toolbarbutton anonid="find-closebutton"
class="findbar-closebutton"
tooltiptext="&findCloseButton.tooltip;"
oncommand="close();"/>
</xul:hbox>
<xul:toolbarbutton anonid="find-closebutton"
class="findbar-closebutton"
tooltiptext="&findCloseButton.tooltip;"
oncommand="close();"/>
</content>
<implementation implements="nsIDOMEventListener, nsIEditActionListener">

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

@ -5,7 +5,6 @@
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
findbar {
padding: 4px 8px;
border-top: 2px solid;
-moz-border-top-colors: ThreeDShadow ThreeDHighlight;
min-width: 1px;
@ -23,6 +22,12 @@ findbar[hidden] {
transition-delay: 0s, 0s, 150ms;
}
.findbar-container {
-moz-padding-start: 8px;
padding-top: 4px;
padding-bottom: 4px;
}
.findbar-closebutton {
-moz-margin-start: 4px;
list-style-image: url("moz-icon://stock/gtk-close?size=menu");

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

@ -9,7 +9,6 @@ findbar {
background: @scopeBarBackground@;
border-top: @scopeBarSeparatorBorder@;
min-width: 1px;
padding: 4px 2px;
transition-property: margin-bottom, opacity, visibility;
transition-duration: 150ms, 150ms, 0s;
transition-timing-function: ease-in-out, ease-in-out, linear;
@ -30,6 +29,12 @@ findbar:-moz-lwtheme {
border-style: none;
}
.findbar-container {
-moz-padding-start: 2px;
padding-top: 4px;
padding-bottom: 4px;
}
label.findbar-find-fast {
color: @scopeBarTitleColor@;
margin: 0;
@ -44,8 +49,9 @@ label.findbar-find-fast:-moz-lwtheme,
}
.findbar-closebutton {
padding: 0;
margin: 0 4px;
-moz-margin-start: 4px;
-moz-padding-start: 0;
-moz-padding-end: 8px;
list-style-image: url("chrome://global/skin/icons/close.png");
border: none;
-moz-image-region: rect(0, 16px, 16px, 0);

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

@ -5,7 +5,6 @@
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
findbar {
padding: 4px 8px;
box-shadow: 0 1px 1px rgba(0,0,0,.1) inset;
background-image: linear-gradient(rgba(0,0,0,.15) 1px, rgba(255,255,255,.15) 1px);
background-size: 100% 2px;
@ -25,10 +24,17 @@ findbar[hidden] {
transition-delay: 0s, 0s, 150ms;
}
.findbar-container {
-moz-padding-start: 8px;
padding-top: 4px;
padding-bottom: 4px;
}
.findbar-closebutton {
-moz-margin-start: 4px;
-moz-padding-start: 0;
-moz-padding-end: 8px;
border: none;
padding: 0;
list-style-image: url("chrome://global/skin/icons/close.png");
-moz-appearance: none;
-moz-image-region: rect(0, 16px, 16px, 0);