Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
michael@0 | 6 | |
michael@0 | 7 | findbar { |
michael@0 | 8 | box-shadow: 0 1px 1px rgba(0,0,0,.1) inset; |
michael@0 | 9 | background-image: linear-gradient(rgba(0,0,0,.15) 1px, rgba(255,255,255,.15) 1px); |
michael@0 | 10 | background-size: 100% 2px; |
michael@0 | 11 | background-repeat: no-repeat; |
michael@0 | 12 | min-width: 1px; |
michael@0 | 13 | transition-property: margin-bottom, opacity, visibility; |
michael@0 | 14 | transition-duration: 150ms, 150ms, 0s; |
michael@0 | 15 | transition-timing-function: ease-in-out, ease-in-out, linear; |
michael@0 | 16 | } |
michael@0 | 17 | |
michael@0 | 18 | findbar[hidden] { |
michael@0 | 19 | /* Override display:none to make the transition work. */ |
michael@0 | 20 | display: -moz-box; |
michael@0 | 21 | visibility: collapse; |
michael@0 | 22 | margin-bottom: -1em; |
michael@0 | 23 | opacity: 0; |
michael@0 | 24 | transition-delay: 0s, 0s, 150ms; |
michael@0 | 25 | } |
michael@0 | 26 | |
michael@0 | 27 | .findbar-container { |
michael@0 | 28 | -moz-padding-start: 8px; |
michael@0 | 29 | padding-top: 4px; |
michael@0 | 30 | padding-bottom: 4px; |
michael@0 | 31 | } |
michael@0 | 32 | |
michael@0 | 33 | .findbar-closebutton { |
michael@0 | 34 | -moz-margin-start: 4px; |
michael@0 | 35 | -moz-padding-start: 0; |
michael@0 | 36 | -moz-padding-end: 8px; |
michael@0 | 37 | border: none; |
michael@0 | 38 | -moz-appearance: none; |
michael@0 | 39 | } |
michael@0 | 40 | |
michael@0 | 41 | |
michael@0 | 42 | /* Search field */ |
michael@0 | 43 | |
michael@0 | 44 | .findbar-textbox { |
michael@0 | 45 | -moz-appearance: none; |
michael@0 | 46 | border: 1px solid ThreeDShadow; |
michael@0 | 47 | border-radius: 2px 0 0 2px; |
michael@0 | 48 | margin: 0; |
michael@0 | 49 | padding: 1px 5px; |
michael@0 | 50 | width: 14em; |
michael@0 | 51 | } |
michael@0 | 52 | |
michael@0 | 53 | .findbar-textbox:-moz-locale-dir(rtl) { |
michael@0 | 54 | border-radius: 0 2px 2px 0; |
michael@0 | 55 | } |
michael@0 | 56 | |
michael@0 | 57 | .findbar-textbox[focused="true"] { |
michael@0 | 58 | border-color: Highlight; |
michael@0 | 59 | } |
michael@0 | 60 | |
michael@0 | 61 | .findbar-textbox[status="notfound"] { |
michael@0 | 62 | background-color: #f66; |
michael@0 | 63 | color: white; |
michael@0 | 64 | } |
michael@0 | 65 | |
michael@0 | 66 | .findbar-textbox[flash="true"] { |
michael@0 | 67 | background-color: yellow; |
michael@0 | 68 | color: black; |
michael@0 | 69 | } |
michael@0 | 70 | |
michael@0 | 71 | .findbar-textbox.minimal { |
michael@0 | 72 | border-radius: 2px; |
michael@0 | 73 | } |
michael@0 | 74 | |
michael@0 | 75 | /* Buttons */ |
michael@0 | 76 | |
michael@0 | 77 | .findbar-find-previous, |
michael@0 | 78 | .findbar-find-next { |
michael@0 | 79 | -moz-margin-start: 0; |
michael@0 | 80 | -moz-appearance: none; |
michael@0 | 81 | background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.2)); |
michael@0 | 82 | border: 1px solid ThreeDShadow; |
michael@0 | 83 | box-shadow: 0 1px #fff inset; |
michael@0 | 84 | list-style-image: url("chrome://global/skin/icons/find-arrows.png"); |
michael@0 | 85 | padding: 1px 5px; |
michael@0 | 86 | line-height: 1em; |
michael@0 | 87 | } |
michael@0 | 88 | |
michael@0 | 89 | .findbar-find-previous:not([disabled]):active, |
michael@0 | 90 | .findbar-find-next:not([disabled]):active { |
michael@0 | 91 | background: rgba(23,50,76,.2); |
michael@0 | 92 | box-shadow: 0 1px 2px rgba(10,31,51,.2) inset; |
michael@0 | 93 | } |
michael@0 | 94 | |
michael@0 | 95 | .findbar-find-previous { |
michael@0 | 96 | -moz-image-region: rect(0, 12px, 9px, 0); |
michael@0 | 97 | } |
michael@0 | 98 | |
michael@0 | 99 | .findbar-find-next { |
michael@0 | 100 | -moz-image-region: rect(0, 24px, 9px, 12px); |
michael@0 | 101 | } |
michael@0 | 102 | |
michael@0 | 103 | .findbar-find-previous, |
michael@0 | 104 | .findbar-find-previous:not([disabled]):active { |
michael@0 | 105 | border-right: none; |
michael@0 | 106 | border-left: none; |
michael@0 | 107 | } |
michael@0 | 108 | |
michael@0 | 109 | .findbar-find-previous > .toolbarbutton-icon, |
michael@0 | 110 | .findbar-find-next > .toolbarbutton-icon { |
michael@0 | 111 | margin: 0; |
michael@0 | 112 | } |
michael@0 | 113 | |
michael@0 | 114 | .findbar-find-previous > .toolbarbutton-text, |
michael@0 | 115 | .findbar-find-next > .toolbarbutton-text { |
michael@0 | 116 | margin: 0; |
michael@0 | 117 | padding: 0; |
michael@0 | 118 | width: 0; |
michael@0 | 119 | } |
michael@0 | 120 | |
michael@0 | 121 | .findbar-find-previous[disabled="true"] > .toolbarbutton-icon, |
michael@0 | 122 | .findbar-find-next[disabled="true"] > .toolbarbutton-icon { |
michael@0 | 123 | opacity: .5; |
michael@0 | 124 | } |
michael@0 | 125 | |
michael@0 | 126 | .findbar-find-next:-moz-locale-dir(ltr) { |
michael@0 | 127 | border-top-right-radius: 2px; |
michael@0 | 128 | border-bottom-right-radius: 2px; |
michael@0 | 129 | } |
michael@0 | 130 | |
michael@0 | 131 | .findbar-find-next:-moz-locale-dir(rtl) { |
michael@0 | 132 | border-top-left-radius: 2px; |
michael@0 | 133 | border-bottom-left-radius: 2px; |
michael@0 | 134 | } |
michael@0 | 135 | |
michael@0 | 136 | .findbar-highlight, |
michael@0 | 137 | .findbar-case-sensitive { |
michael@0 | 138 | -moz-margin-start: 5px; |
michael@0 | 139 | } |
michael@0 | 140 | |
michael@0 | 141 | .findbar-highlight > .toolbarbutton-icon, |
michael@0 | 142 | .findbar-case-sensitive > .toolbarbutton-icon { |
michael@0 | 143 | display: none; |
michael@0 | 144 | } |
michael@0 | 145 | |
michael@0 | 146 | .findbar-find-status { |
michael@0 | 147 | color: GrayText; |
michael@0 | 148 | margin: 0 !important; |
michael@0 | 149 | -moz-margin-start: 12px !important; |
michael@0 | 150 | } |
michael@0 | 151 | |
michael@0 | 152 | .find-status-icon[status="pending"] { |
michael@0 | 153 | list-style-image: url("chrome://global/skin/icons/loading_16.png"); |
michael@0 | 154 | } |