Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 | %include shared.inc |
michael@0 | 6 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
michael@0 | 7 | |
michael@0 | 8 | findbar { |
michael@0 | 9 | background: @scopeBarBackground@; |
michael@0 | 10 | border-top: @scopeBarSeparatorBorder@; |
michael@0 | 11 | min-width: 1px; |
michael@0 | 12 | transition-property: margin-bottom, opacity, visibility; |
michael@0 | 13 | transition-duration: 150ms, 150ms, 0s; |
michael@0 | 14 | transition-timing-function: ease-in-out, ease-in-out, linear; |
michael@0 | 15 | } |
michael@0 | 16 | |
michael@0 | 17 | findbar[hidden] { |
michael@0 | 18 | /* Override display:none to make the transition work. */ |
michael@0 | 19 | display: -moz-box; |
michael@0 | 20 | visibility: collapse; |
michael@0 | 21 | margin-bottom: -1em; |
michael@0 | 22 | opacity: 0; |
michael@0 | 23 | transition-delay: 0s, 0s, 150ms; |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | findbar:-moz-lwtheme { |
michael@0 | 27 | -moz-appearance: none; |
michael@0 | 28 | background: none; |
michael@0 | 29 | border-style: none; |
michael@0 | 30 | } |
michael@0 | 31 | |
michael@0 | 32 | .findbar-container { |
michael@0 | 33 | -moz-padding-start: 2px; |
michael@0 | 34 | padding-top: 4px; |
michael@0 | 35 | padding-bottom: 4px; |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | label.findbar-find-fast { |
michael@0 | 39 | color: @scopeBarTitleColor@; |
michael@0 | 40 | margin: 0; |
michael@0 | 41 | -moz-margin-start: 12px; |
michael@0 | 42 | text-shadow: @loweredShadow@; |
michael@0 | 43 | } |
michael@0 | 44 | |
michael@0 | 45 | label.findbar-find-fast:-moz-lwtheme, |
michael@0 | 46 | .findbar-find-status:-moz-lwtheme { |
michael@0 | 47 | color: inherit; |
michael@0 | 48 | text-shadow: inherit; |
michael@0 | 49 | } |
michael@0 | 50 | |
michael@0 | 51 | .findbar-closebutton { |
michael@0 | 52 | -moz-margin-start: 4px; |
michael@0 | 53 | -moz-padding-start: 0; |
michael@0 | 54 | -moz-padding-end: 8px; |
michael@0 | 55 | border: none; |
michael@0 | 56 | /* make sure the closebutton is displayed as the first element in the bar: */ |
michael@0 | 57 | -moz-box-ordinal-group: 0; |
michael@0 | 58 | } |
michael@0 | 59 | |
michael@0 | 60 | @media (min-resolution: 2dppx) { |
michael@0 | 61 | .findbar-closebutton > .toolbarbutton-icon { |
michael@0 | 62 | width: 16px; |
michael@0 | 63 | } |
michael@0 | 64 | } |
michael@0 | 65 | |
michael@0 | 66 | .findbar-find-next, |
michael@0 | 67 | .findbar-find-previous, |
michael@0 | 68 | .findbar-highlight, |
michael@0 | 69 | .findbar-case-sensitive { |
michael@0 | 70 | -moz-appearance: none; |
michael@0 | 71 | border-radius: 10000px; |
michael@0 | 72 | border: @roundButtonBorder@; |
michael@0 | 73 | background: @roundButtonBackground@; |
michael@0 | 74 | box-shadow: @roundButtonShadow@; |
michael@0 | 75 | color: buttontext; |
michael@0 | 76 | margin: 0; |
michael@0 | 77 | } |
michael@0 | 78 | |
michael@0 | 79 | .findbar-highlight, |
michael@0 | 80 | .findbar-case-sensitive { |
michael@0 | 81 | -moz-margin-end: 5px; |
michael@0 | 82 | padding: 0 3px; |
michael@0 | 83 | } |
michael@0 | 84 | |
michael@0 | 85 | .findbar-container > toolbarbutton:-moz-focusring, |
michael@0 | 86 | .findbar-find-next:-moz-focusring, |
michael@0 | 87 | .findbar-find-previous:-moz-focusring { |
michael@0 | 88 | position: relative; |
michael@0 | 89 | box-shadow: @focusRingShadow@, @roundButtonShadow@; |
michael@0 | 90 | } |
michael@0 | 91 | |
michael@0 | 92 | .findbar-container > toolbarbutton[disabled] { |
michael@0 | 93 | color: GrayText !important; |
michael@0 | 94 | } |
michael@0 | 95 | |
michael@0 | 96 | .findbar-find-next:not([disabled]):hover:active, |
michael@0 | 97 | .findbar-find-previous:not([disabled]):hover:active, |
michael@0 | 98 | .findbar-highlight:not([disabled]):hover:active, |
michael@0 | 99 | .findbar-case-sensitive:not([disabled]):hover:active, |
michael@0 | 100 | .findbar-highlight:not([disabled])[checked="true"], |
michael@0 | 101 | .findbar-case-sensitive:not([disabled])[checked="true"] { |
michael@0 | 102 | text-shadow: @loweredShadow@; |
michael@0 | 103 | background: @roundButtonPressedBackground@; |
michael@0 | 104 | box-shadow: @roundButtonPressedShadow@; |
michael@0 | 105 | } |
michael@0 | 106 | |
michael@0 | 107 | .findbar-find-next:hover:active:-moz-focusring, |
michael@0 | 108 | .findbar-find-previous:hover:active:-moz-focusring { |
michael@0 | 109 | text-shadow: @loweredShadow@; |
michael@0 | 110 | background: @roundButtonPressedBackground@; |
michael@0 | 111 | box-shadow: @focusRingShadow@, @roundButtonPressedShadow@; |
michael@0 | 112 | } |
michael@0 | 113 | |
michael@0 | 114 | .findbar-closebutton > .toolbarbutton-text { |
michael@0 | 115 | display: none; |
michael@0 | 116 | } |
michael@0 | 117 | |
michael@0 | 118 | /* Search field */ |
michael@0 | 119 | |
michael@0 | 120 | .findbar-textbox { |
michael@0 | 121 | position: relative; |
michael@0 | 122 | -moz-appearance: none; |
michael@0 | 123 | border: @roundButtonBorder@; |
michael@0 | 124 | border-radius: 10000px 0 0 10000px; |
michael@0 | 125 | box-shadow: @roundButtonShadow@; |
michael@0 | 126 | background: url("chrome://global/skin/icons/search-textbox.png") -moz-Field no-repeat 5px center; |
michael@0 | 127 | margin: 0; |
michael@0 | 128 | padding: 2px 8px; |
michael@0 | 129 | -moz-padding-start: 19px; |
michael@0 | 130 | } |
michael@0 | 131 | |
michael@0 | 132 | .findbar-textbox:-moz-locale-dir(rtl) { |
michael@0 | 133 | border-radius: 0 10000px 10000px 0; |
michael@0 | 134 | } |
michael@0 | 135 | |
michael@0 | 136 | .findbar-textbox:not([focused="true"]):-moz-lwtheme { |
michael@0 | 137 | opacity: 0.9; |
michael@0 | 138 | } |
michael@0 | 139 | |
michael@0 | 140 | .findbar-textbox[focused="true"] { |
michael@0 | 141 | box-shadow: @focusRingShadow@; |
michael@0 | 142 | } |
michael@0 | 143 | |
michael@0 | 144 | .findbar-textbox[flash="true"] { |
michael@0 | 145 | background-color: #F7E379; |
michael@0 | 146 | } |
michael@0 | 147 | |
michael@0 | 148 | .findbar-textbox[status="notfound"] { |
michael@0 | 149 | background-color: #FD919B; |
michael@0 | 150 | color: #FFF; |
michael@0 | 151 | } |
michael@0 | 152 | |
michael@0 | 153 | .findbar-textbox.minimal { |
michael@0 | 154 | border-radius: 10000px; |
michael@0 | 155 | -moz-margin-start: 5px; |
michael@0 | 156 | } |
michael@0 | 157 | |
michael@0 | 158 | /* Find previous/next buttons */ |
michael@0 | 159 | |
michael@0 | 160 | .findbar-find-previous, |
michael@0 | 161 | .findbar-find-next { |
michael@0 | 162 | -moz-margin-start: 0; |
michael@0 | 163 | list-style-image: url(chrome://global/skin/icons/find-arrows.png); |
michael@0 | 164 | padding: 2px 6px; |
michael@0 | 165 | } |
michael@0 | 166 | |
michael@0 | 167 | .findbar-find-previous > .toolbarbutton-text, |
michael@0 | 168 | .findbar-find-next > .toolbarbutton-text { |
michael@0 | 169 | margin: 0 !important; |
michael@0 | 170 | padding: 0; |
michael@0 | 171 | width: 0; |
michael@0 | 172 | } |
michael@0 | 173 | |
michael@0 | 174 | .findbar-find-previous > .toolbarbutton-icon, |
michael@0 | 175 | .findbar-find-next > .toolbarbutton-icon { |
michael@0 | 176 | margin: 0; |
michael@0 | 177 | } |
michael@0 | 178 | |
michael@0 | 179 | .findbar-find-previous { |
michael@0 | 180 | border-left: none; |
michael@0 | 181 | border-right: none; |
michael@0 | 182 | -moz-margin-end: 0; |
michael@0 | 183 | -moz-image-region: rect(0, 10px, 9px, 0); |
michael@0 | 184 | border-radius: 0; |
michael@0 | 185 | } |
michael@0 | 186 | |
michael@0 | 187 | .findbar-find-next { |
michael@0 | 188 | -moz-image-region: rect(0, 20px, 9px, 10px); |
michael@0 | 189 | -moz-padding-end: 7px; |
michael@0 | 190 | } |
michael@0 | 191 | |
michael@0 | 192 | .findbar-find-next:-moz-locale-dir(ltr) { |
michael@0 | 193 | border-top-left-radius: 0; |
michael@0 | 194 | border-bottom-left-radius: 0; |
michael@0 | 195 | } |
michael@0 | 196 | |
michael@0 | 197 | .findbar-find-next:-moz-locale-dir(rtl) { |
michael@0 | 198 | border-top-right-radius: 0; |
michael@0 | 199 | border-bottom-right-radius: 0; |
michael@0 | 200 | } |
michael@0 | 201 | |
michael@0 | 202 | /* Status description */ |
michael@0 | 203 | |
michael@0 | 204 | .find-status-icon { |
michael@0 | 205 | display: none; |
michael@0 | 206 | } |
michael@0 | 207 | |
michael@0 | 208 | .find-status-icon[status="pending"] { |
michael@0 | 209 | display: block; |
michael@0 | 210 | list-style-image: url("chrome://global/skin/icons/loading_16.png"); |
michael@0 | 211 | } |
michael@0 | 212 | |
michael@0 | 213 | .findbar-find-status { |
michael@0 | 214 | color: rgba(0,0,0,.5); |
michael@0 | 215 | margin: 0 !important; |
michael@0 | 216 | -moz-margin-start: 12px !important; |
michael@0 | 217 | text-shadow: 0 1px rgba(255,255,255,.4); |
michael@0 | 218 | } |
michael@0 | 219 | |
michael@0 | 220 | /* Highlight and Case Sensitive toggles */ |
michael@0 | 221 | |
michael@0 | 222 | .findbar-highlight { |
michael@0 | 223 | -moz-margin-start: 8px; |
michael@0 | 224 | } |