зеркало из https://github.com/mozilla/pjs.git
Bug 384948 - Clean up findBar.css (Pinstripe version). r=Mano.
This commit is contained in:
Родитель
65f2653e60
Коммит
a33247560b
|
@ -13,18 +13,18 @@ findbar {
|
|||
min-width: 1px;
|
||||
}
|
||||
|
||||
findbar > toolbarbutton.findbar-closebutton {
|
||||
.findbar-closebutton {
|
||||
padding-right: 4px;
|
||||
list-style-image: url("chrome://global/skin/icons/closetab.png");
|
||||
border: none;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
findbar > toolbarbutton.findbar-closebutton:hover {
|
||||
.findbar-closebutton:hover {
|
||||
list-style-image: url("chrome://global/skin/icons/closetab-hover.png") !important;
|
||||
}
|
||||
|
||||
findbar > toolbarbutton.findbar-closebutton:hover:active {
|
||||
.findbar-closebutton:hover:active {
|
||||
list-style-image: url("chrome://global/skin/icons/closetab-active.png") !important;
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ findbar > checkbox > .checkbox-label-box {
|
|||
}
|
||||
|
||||
findbar .checkbox-icon,
|
||||
findbar > toolbarbutton.findbar-closebutton > .toolbarbutton-text {
|
||||
findbar > .findbar-closebutton > .toolbarbutton-text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ findbar .checkbox-label {
|
|||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
findbar > .find-field-container > textbox.findbar-textbox {
|
||||
.findbar-textbox {
|
||||
-moz-binding: url("chrome://global/content/bindings/findbar.xml#findbar-textbox");
|
||||
background: url("chrome://global/skin/icons/find-bar-background.png") no-repeat;
|
||||
-moz-appearance: none;
|
||||
|
@ -75,96 +75,95 @@ findbar > .find-field-container > textbox.findbar-textbox {
|
|||
padding: 3px 14px 3px 24px;
|
||||
}
|
||||
|
||||
findbar[flash="true"] > .find-field-container > textbox.findbar-textbox {
|
||||
findbar[flash="true"] > .find-field-container > .findbar-textbox {
|
||||
background: url("chrome://global/skin/icons/find-bar-flash.png") no-repeat;
|
||||
}
|
||||
|
||||
findbar > .find-field-container > textbox.findbar-textbox[status="notfound"] {
|
||||
.findbar-textbox[status="notfound"] {
|
||||
background: url("chrome://global/skin/icons/find-bar-notfound.png") no-repeat;
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
/* find-next button */
|
||||
|
||||
findbar > toolbarbutton.findbar-find-next {
|
||||
.findbar-find-next {
|
||||
-moz-image-region: rect(0px 16px 16px 0px);
|
||||
}
|
||||
|
||||
findbar > toolbarbutton.findbar-find-next:hover {
|
||||
.findbar-find-next:hover {
|
||||
-moz-image-region: rect(16px 16px 32px 0px);
|
||||
}
|
||||
|
||||
findbar > toolbarbutton.findbar-find-next[disabled="true"] {
|
||||
.findbar-find-next[disabled="true"] {
|
||||
-moz-image-region: rect(32px 16px 48px 0px) !important;
|
||||
}
|
||||
|
||||
/* find-previous button */
|
||||
|
||||
findbar > toolbarbutton.findbar-find-previous {
|
||||
.findbar-find-previous {
|
||||
-moz-image-region: rect(0px 32px 16px 16px);
|
||||
}
|
||||
|
||||
findbar > toolbarbutton.findbar-find-previous:hover {
|
||||
.findbar-find-previous:hover {
|
||||
-moz-image-region: rect(16px 32px 32px 16px);
|
||||
}
|
||||
|
||||
findbar > toolbarbutton.findbar-find-previous[disabled="true"] {
|
||||
.findbar-find-previous[disabled="true"] {
|
||||
-moz-image-region: rect(32px 32px 48px 16px) !important;
|
||||
}
|
||||
|
||||
/* highlight button */
|
||||
|
||||
findbar > toolbarbutton.findbar-highlight {
|
||||
.findbar-highlight {
|
||||
-moz-image-region: rect(0px 48px 16px 32px);
|
||||
}
|
||||
|
||||
findbar > toolbarbutton.findbar-highlight:hover {
|
||||
.findbar-highlight:hover {
|
||||
-moz-image-region: rect(16px 48px 32px 32px);
|
||||
}
|
||||
|
||||
findbar > toolbarbutton.findbar-highlight[disabled="true"] {
|
||||
.findbar-highlight[disabled="true"] {
|
||||
-moz-image-region: rect(32px 48px 48px 32px) !important;
|
||||
}
|
||||
|
||||
findbar > toolbarbutton.findbar-highlight:active, findbar > .findbar-highlight[checked="true"] {
|
||||
.findbar-highlight:active, .findbar-highlight[checked="true"] {
|
||||
-moz-image-region: rect(48px 48px 64px 32px);
|
||||
}
|
||||
|
||||
findbar > toolbarbutton.findbar-highlight[checked="true"]:hover {
|
||||
.findbar-highlight[checked="true"]:hover {
|
||||
-moz-image-region: rect(64px 48px 80px 32px);
|
||||
}
|
||||
|
||||
findbar > image.find-status-icon {
|
||||
.find-status-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
findbar > label.findbar-find-status {
|
||||
.findbar-find-status {
|
||||
color: #436599 !important;
|
||||
}
|
||||
|
||||
findbar > toolbarbutton.findbar-find-next > .toolbarbutton-text,
|
||||
findbar > toolbarbutton.findbar-find-previous > .toolbarbutton-text,
|
||||
findbar > toolbarbutton.findbar-highlight > .toolbarbutton-text {
|
||||
.findbar-find-next > .toolbarbutton-text,
|
||||
.findbar-find-previous > .toolbarbutton-text,
|
||||
.findbar-highlight > .toolbarbutton-text {
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
|
||||
findbar > toolbarbutton.findbar-find-next:not([disabled]):hover > .toolbarbutton-text,
|
||||
findbar > toolbarbutton.findbar-find-previous:not([disabled]):hover > .toolbarbutton-text,
|
||||
findbar > toolbarbutton.findbar-highlight:not([disabled]):hover > .toolbarbutton-text {
|
||||
.findbar-find-next:not([disabled]):hover > .toolbarbutton-text,
|
||||
.findbar-find-previous:not([disabled]):hover > .toolbarbutton-text,
|
||||
.findbar-highlight:not([disabled]):hover > .toolbarbutton-text {
|
||||
background: url("chrome://global/skin/toolbar/toolbarbutton-customhover-right.png") no-repeat right center;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
findbar > toolbarbutton.findbar-find-next:not([disabled]):hover,
|
||||
findbar > toolbarbutton.findbar-find-previous:not([disabled]):hover,
|
||||
findbar > toolbarbutton.findbar-highlight:not([disabled]):hover
|
||||
{
|
||||
.findbar-find-next:not([disabled]):hover,
|
||||
.findbar-find-previous:not([disabled]):hover,
|
||||
.findbar-highlight:not([disabled]):hover {
|
||||
background: url("chrome://global/skin/toolbar/toolbarbutton-customhover-left.png") no-repeat left center;
|
||||
}
|
||||
|
||||
findbar > toolbarbutton.findbar-find-next:not([disabled]):hover > .toolbarbutton-icon,
|
||||
findbar > toolbarbutton.findbar-find-previous:not([disabled]):hover > .toolbarbutton-icon,
|
||||
findbar > toolbarbutton.findbar-highlight:not([disabled]):hover > .toolbarbutton-icon {
|
||||
.findbar-find-next:not([disabled]):hover > .toolbarbutton-icon,
|
||||
.findbar-find-previous:not([disabled]):hover > .toolbarbutton-icon,
|
||||
.findbar-highlight:not([disabled]):hover > .toolbarbutton-icon {
|
||||
background: url("chrome://global/skin/toolbar/toolbarbutton-customhover-mid.png") repeat-x;
|
||||
color: #fff;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче