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 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
michael@0 | 6 | @namespace html url("http://www.w3.org/1999/xhtml"); |
michael@0 | 7 | |
michael@0 | 8 | textbox { |
michael@0 | 9 | -moz-appearance: textfield; |
michael@0 | 10 | cursor: text; |
michael@0 | 11 | margin: 4px; |
michael@0 | 12 | border: 3px solid; |
michael@0 | 13 | -moz-border-top-colors: transparent #888888 #000000; |
michael@0 | 14 | -moz-border-right-colors: transparent #FFFFFF #000000; |
michael@0 | 15 | -moz-border-bottom-colors: transparent #FFFFFF #000000; |
michael@0 | 16 | -moz-border-left-colors: transparent #888888 #000000; |
michael@0 | 17 | border-top-right-radius: 2px; |
michael@0 | 18 | border-bottom-left-radius: 2px; |
michael@0 | 19 | padding: 0px 1px; |
michael@0 | 20 | background-color: -moz-Field; |
michael@0 | 21 | color: -moz-FieldText; |
michael@0 | 22 | } |
michael@0 | 23 | |
michael@0 | 24 | html|*.textbox-input, |
michael@0 | 25 | html|*.textbox-textarea { |
michael@0 | 26 | margin: 0px !important; |
michael@0 | 27 | border: none !important; |
michael@0 | 28 | padding: 0px !important; |
michael@0 | 29 | background-color: inherit; |
michael@0 | 30 | color: inherit; |
michael@0 | 31 | font: inherit; |
michael@0 | 32 | } |
michael@0 | 33 | |
michael@0 | 34 | .textbox-contextmenu { |
michael@0 | 35 | cursor: default; |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | textbox[focused="true"] { |
michael@0 | 39 | -moz-border-top-colors: -moz-mac-focusring -moz-mac-focusring #000000; |
michael@0 | 40 | -moz-border-right-colors: -moz-mac-focusring -moz-mac-focusring #000000; |
michael@0 | 41 | -moz-border-bottom-colors: -moz-mac-focusring -moz-mac-focusring #000000; |
michael@0 | 42 | -moz-border-left-colors: -moz-mac-focusring -moz-mac-focusring #000000; |
michael@0 | 43 | } |
michael@0 | 44 | |
michael@0 | 45 | textbox[readonly="true"] { |
michael@0 | 46 | background-color: -moz-Dialog; |
michael@0 | 47 | color: -moz-DialogText; |
michael@0 | 48 | } |
michael@0 | 49 | |
michael@0 | 50 | textbox[disabled="true"] { |
michael@0 | 51 | cursor: default; |
michael@0 | 52 | -moz-border-top-colors: transparent ThreeDShadow -moz-Dialog; |
michael@0 | 53 | -moz-border-right-colors: transparent ThreeDShadow -moz-Dialog; |
michael@0 | 54 | -moz-border-bottom-colors: transparent ThreeDShadow -moz-Dialog; |
michael@0 | 55 | -moz-border-left-colors: transparent ThreeDShadow -moz-Dialog; |
michael@0 | 56 | background-color: -moz-Dialog; |
michael@0 | 57 | color: GrayText; |
michael@0 | 58 | } |
michael@0 | 59 | |
michael@0 | 60 | textbox.plain { |
michael@0 | 61 | -moz-appearance: none !important; |
michael@0 | 62 | background-color: transparent; |
michael@0 | 63 | padding: 0px !important; |
michael@0 | 64 | margin: 0px !important; |
michael@0 | 65 | border: none !important; |
michael@0 | 66 | } |
michael@0 | 67 | |
michael@0 | 68 | /* ::::: search box ::::: */ |
michael@0 | 69 | |
michael@0 | 70 | textbox[type="search"] { |
michael@0 | 71 | -moz-appearance: searchfield; |
michael@0 | 72 | padding: 1px 2px; |
michael@0 | 73 | font-size: 12px; |
michael@0 | 74 | } |
michael@0 | 75 | |
michael@0 | 76 | .textbox-search-clear { |
michael@0 | 77 | list-style-image: url(chrome://global/skin/icons/searchfield-regular-cancel.png); |
michael@0 | 78 | -moz-image-region: rect(0, 14px, 14px, 0); |
michael@0 | 79 | margin-bottom: 1px; |
michael@0 | 80 | } |
michael@0 | 81 | |
michael@0 | 82 | .textbox-search-clear:active:hover { |
michael@0 | 83 | -moz-image-region: rect(0, 28px, 14px, 14px); |
michael@0 | 84 | } |
michael@0 | 85 | |
michael@0 | 86 | textbox[type="search"].compact { |
michael@0 | 87 | padding: 0 1px; |
michael@0 | 88 | font-size: 11px; |
michael@0 | 89 | } |
michael@0 | 90 | |
michael@0 | 91 | textbox[type="search"].compact > .textbox-input-box > .textbox-search-icons > .textbox-search-clear { |
michael@0 | 92 | list-style-image: url(chrome://global/skin/icons/searchfield-small-cancel.png); |
michael@0 | 93 | -moz-image-region: rect(0, 11px, 11px, 0); |
michael@0 | 94 | } |
michael@0 | 95 | |
michael@0 | 96 | textbox[type="search"].compact > .textbox-input-box > .textbox-search-icons > .textbox-search-clear:active:hover { |
michael@0 | 97 | -moz-image-region: rect(0, 22px, 11px, 11px); |
michael@0 | 98 | } |
michael@0 | 99 | |
michael@0 | 100 | .textbox-search-clear:not([disabled]) { |
michael@0 | 101 | cursor: default; |
michael@0 | 102 | } |
michael@0 | 103 | |
michael@0 | 104 | .textbox-search-icons:not([selectedIndex="1"]) { |
michael@0 | 105 | visibility: hidden; |
michael@0 | 106 | } |