toolkit/themes/windows/global/textbox.css

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

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 /* ===== textbox.css ==================================================
michael@0 6 == Styles used by the XUL textbox element.
michael@0 7 ======================================================================= */
michael@0 8
michael@0 9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
michael@0 10 @namespace html url("http://www.w3.org/1999/xhtml");
michael@0 11
michael@0 12 /* ::::: textbox ::::: */
michael@0 13
michael@0 14 textbox {
michael@0 15 -moz-appearance: textfield;
michael@0 16 cursor: text;
michael@0 17 margin: 2px 4px;
michael@0 18 border: 2px solid;
michael@0 19 -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
michael@0 20 -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
michael@0 21 -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
michael@0 22 -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
michael@0 23 padding: 2px 3px 3px;
michael@0 24 -moz-padding-start: 5px;
michael@0 25 background-color: -moz-Field;
michael@0 26 color: -moz-FieldText;
michael@0 27 }
michael@0 28
michael@0 29 html|*.textbox-input,
michael@0 30 html|*.textbox-textarea {
michael@0 31 margin: 0px !important;
michael@0 32 border: none !important;
michael@0 33 padding: 0px !important;
michael@0 34 background-color: inherit;
michael@0 35 color: inherit;
michael@0 36 font: inherit;
michael@0 37 }
michael@0 38
michael@0 39 .textbox-contextmenu {
michael@0 40 cursor: default;
michael@0 41 }
michael@0 42
michael@0 43 /* ..... readonly state ..... */
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 /* ..... disabled state ..... */
michael@0 51
michael@0 52 textbox[disabled="true"] {
michael@0 53 cursor: default;
michael@0 54 background-color: -moz-Dialog;
michael@0 55 color: GrayText;
michael@0 56 }
michael@0 57
michael@0 58 /* ::::: plain textbox ::::: */
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 textbox ::::: */
michael@0 69
michael@0 70 .textbox-search-icon {
michael@0 71 list-style-image: url(chrome://global/skin/icons/Search-glass.png);
michael@0 72 -moz-image-region: rect(0, 16px, 16px, 0);
michael@0 73 }
michael@0 74
michael@0 75 .textbox-search-icon:-moz-locale-dir(rtl) {
michael@0 76 transform: scaleX(-1);
michael@0 77 }
michael@0 78
michael@0 79 .textbox-search-icon[searchbutton]:not([disabled]) {
michael@0 80 cursor: pointer;
michael@0 81 }
michael@0 82
michael@0 83 .textbox-search-clear {
michael@0 84 list-style-image: url(chrome://global/skin/icons/Search-close.png);
michael@0 85 -moz-image-region: rect(0, 16px, 16px, 0);
michael@0 86 }
michael@0 87
michael@0 88 .textbox-search-clear:not([disabled]) {
michael@0 89 cursor: default;
michael@0 90 }
michael@0 91
michael@0 92 .textbox-search-clear:not([disabled]):hover ,
michael@0 93 .textbox-search-icon[searchbutton]:not([disabled]):hover {
michael@0 94 -moz-image-region: rect(0, 32px, 16px, 16px);
michael@0 95 }
michael@0 96
michael@0 97 .textbox-search-clear:not([disabled]):hover:active ,
michael@0 98 .textbox-search-icon[searchbutton]:not([disabled]):hover:active {
michael@0 99 -moz-image-region: rect(0, 48px, 16px, 32px);
michael@0 100 }
michael@0 101
michael@0 102 /* ::::: textboxes inside toolbarpaletteitems ::::: */
michael@0 103
michael@0 104 toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {
michael@0 105 visibility: hidden;
michael@0 106 }
michael@0 107

mercurial