make ready for 0.5 release (designed for Mozilla 0.9)
[themes.git] / EarlyBlue / global / skin / textbox.css
1 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to HTML */
2 @namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for XUL elements */
3
4 /** generic text fields (in dialogs)
5  **/
6  
7 /* outer frame */
8   textbox
9     {
10       border              : 1px inset #CCD0DD;
11       font                : inherit;
12       color               : #000000;
13       padding             : 0px;
14       margin              : 1px 3px 2px 4px;
15       background-color    : #FFFFFF;
16       cursor              : text;
17     }
18     
19   textbox[readonly="true"]
20     {
21       background-color    : #CCCCCC;
22     }
23   
24   textbox[focused="true"]
25     {
26       border              : 2px solid #6699cc;
27       margin              : 0px 2px 1px 3px;
28     }
29     
30   textbox[focused="true"][readonly="true"]
31     {
32       border              : 1px inset #CCCCCC;
33       margin              : 1px 3px 2px 4px;
34     }
35
36 /* internal frame */
37   .textbox-internal-box 
38     {
39       margin              : 0px;
40       padding             : 1px 2px 1px 2px;
41       cursor              : text;
42       border              : none;
43       background-color    : inherit;
44       color               : inherit;
45     }
46   
47   textbox[disabled="true"] > .textbox-internal-box
48     {
49       border              : none;
50     }
51   
52   .textarea-internal-box
53     {
54       padding             : 0px 0px 0px 2px;
55     }
56   
57 /* internal text widget */
58   .textbox-input, .textbox-textarea
59     {
60       border              : none !important;
61       margin              : 0px;
62       font                : inherit;
63       background-color    : inherit;
64     }
65
66   textbox[disabled="true"] 
67     {
68       cursor              : default ! important;
69     } 
70     
71 /** plain atomic textfields, class="plain" **/
72   textbox.plain, 
73   textbox.plain > .textbox-internal-box, 
74   textbox.plain > .textarea-internal-box
75     {
76       padding             : 0px !important;
77       margin              : 0px !important;
78       border              : none !important;
79     }
80
81   .scrollfield
82     {
83       border              : none !important;
84       margin              : 0px;
85       margin-top          : 1px;      
86       padding             : 0px !important;
87       background          : inherit;
88     }    
89     
90   .scrollfield > .textbox-internal-box
91     {
92       border              : none !important;
93       margin              : 0px !important;
94       padding             : 0px !important;
95     }
96     
97     
98