try to get mac-specific rules in places for toolbars
[themes.git] / LCARStrek / global / textbox.css
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 /* ===== textbox.css ==================================================
6   == Styles used by the XUL textbox element.
7   ======================================================================= */
8
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
10 @namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
11
12 /* ::::: textbox ::::: */
13
14 textbox {
15   border-radius: 3px;
16   -moz-outline-radius: 5px;
17   cursor: text;
18   margin: 1px 2px;
19   border: 1px solid #9C9CFF;
20   padding: 1px 0px;
21   -moz-padding-start: 2px;
22   background-color: #000000;
23   color: #E7ADE7;
24   min-height: 19px;
25 }
26
27 html|*.textbox-input,
28 html|*.textbox-textarea {
29   border-radius: 3px;
30   margin: 0px !important;
31   border: none !important;
32   padding: 0px !important;
33   background-color: inherit;
34   color: inherit;
35   font: inherit;
36 }
37
38 html|*.textbox-input::-moz-placeholder,
39 html|*.textbox-textarea::-moz-placeholder {
40   color: #8050B0;
41   opacity: 1.0;
42 }
43
44 .textbox-input-box menupopup {
45   cursor: default;
46 }
47
48 /* ..... readonly state ..... */
49
50 textbox[readonly="true"] {
51   border: 1px solid #8050B0;
52   color: #8050B0;
53 }
54
55 /* ..... disabled state ..... */
56
57 textbox[disabled="true"] {
58   border: 1px solid #8050B0;
59   cursor: default;
60   color: #8050B0;
61 }
62
63 /* ..... focused state ..... */
64
65 textbox[focused="true"] {
66   border: 1px solid #008484;
67   outline: 1px solid #008484;
68 }
69
70 textbox[focused="true"][readonly="true"] {
71   border: 1px solid #8050B0;
72   outline: none;
73 }
74
75 /* ::::: plain textbox ::::: */
76
77 textbox.plain {
78   padding: 0px !important;
79   margin: 0px !important;
80   border: none !important;
81   outline: none !important;
82   background-color: transparent;
83   color: inherit !important;
84   min-height: 0px;
85 }
86
87 /* ::::: search textbox ::::: */
88
89 .textbox-search-icon {
90   list-style-image: url("chrome://global/skin/icons/search.png");
91   -moz-image-region: rect(0, 16px, 16px, 0);
92 }
93
94 .textbox-search-icon:-moz-locale-dir(rtl) {
95   transform: scaleX(-1);
96 }
97
98 .textbox-search-icon[searchbutton]:not([disabled]) {
99   cursor: pointer;
100 }
101
102 .textbox-search-clear {
103   list-style-image: url("chrome://global/skin/icons/search.png");
104   -moz-image-region: rect(16px, 16px, 32px, 0);
105 }
106
107 .textbox-search-clear:not([disabled]) {
108   cursor: default;
109 }
110
111 /* ::::: textboxes inside toolbarpaletteitems ::::: */
112
113 toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {
114   visibility: hidden;
115 }