|
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"); |
|
11 |
|
12 /* ::::: textbox ::::: */ |
|
13 |
|
14 textbox { |
|
15 -moz-appearance: textfield; |
|
16 cursor: text; |
|
17 margin: 2px 4px; |
|
18 border: 2px solid; |
|
19 -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; |
|
20 -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; |
|
21 -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; |
|
22 -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; |
|
23 padding: 2px 3px 3px; |
|
24 -moz-padding-start: 5px; |
|
25 background-color: -moz-Field; |
|
26 color: -moz-FieldText; |
|
27 } |
|
28 |
|
29 html|*.textbox-input, |
|
30 html|*.textbox-textarea { |
|
31 margin: 0px !important; |
|
32 border: none !important; |
|
33 padding: 0px !important; |
|
34 background-color: inherit; |
|
35 color: inherit; |
|
36 font: inherit; |
|
37 } |
|
38 |
|
39 .textbox-contextmenu { |
|
40 cursor: default; |
|
41 } |
|
42 |
|
43 /* ..... readonly state ..... */ |
|
44 |
|
45 textbox[readonly="true"] { |
|
46 background-color: -moz-Dialog; |
|
47 color: -moz-DialogText; |
|
48 } |
|
49 |
|
50 /* ..... disabled state ..... */ |
|
51 |
|
52 textbox[disabled="true"] { |
|
53 cursor: default; |
|
54 background-color: -moz-Dialog; |
|
55 color: GrayText; |
|
56 } |
|
57 |
|
58 /* ::::: plain textbox ::::: */ |
|
59 |
|
60 textbox.plain { |
|
61 -moz-appearance: none !important; |
|
62 background-color: transparent; |
|
63 padding: 0px !important; |
|
64 margin: 0px !important; |
|
65 border: none !important; |
|
66 } |
|
67 |
|
68 /* ::::: search textbox ::::: */ |
|
69 |
|
70 .textbox-search-icon { |
|
71 list-style-image: url(moz-icon://stock/gtk-find?size=menu); |
|
72 } |
|
73 |
|
74 .textbox-search-clear { |
|
75 list-style-image: url(moz-icon://stock/gtk-clear?size=menu); |
|
76 } |
|
77 |
|
78 .textbox-search-icon[searchbutton]:not([disabled]) , |
|
79 .textbox-search-clear:not([disabled]) { |
|
80 cursor: pointer; |
|
81 } |
|
82 |
|
83 /* ::::: textboxes inside toolbarpaletteitems ::::: */ |
|
84 |
|
85 toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input { |
|
86 visibility: hidden; |
|
87 } |
|
88 |
|
89 /* ::::: context menu ::::: */ |
|
90 |
|
91 menuitem:not([type]) { |
|
92 -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic"); |
|
93 } |
|
94 |
|
95 menuitem[cmd="cmd_undo"] { |
|
96 list-style-image: url("moz-icon://stock/gtk-undo?size=menu"); |
|
97 } |
|
98 |
|
99 menuitem[cmd="cmd_undo"][disabled] { |
|
100 list-style-image: url("moz-icon://stock/gtk-undo?size=menu&state=disabled"); |
|
101 } |
|
102 |
|
103 menuitem[cmd="cmd_cut"] { |
|
104 list-style-image: url("moz-icon://stock/gtk-cut?size=menu"); |
|
105 } |
|
106 |
|
107 menuitem[cmd="cmd_cut"][disabled] { |
|
108 list-style-image: url("moz-icon://stock/gtk-cut?size=menu&state=disabled"); |
|
109 } |
|
110 |
|
111 menuitem[cmd="cmd_copy"] { |
|
112 list-style-image: url("moz-icon://stock/gtk-copy?size=menu"); |
|
113 } |
|
114 |
|
115 menuitem[cmd="cmd_copy"][disabled] { |
|
116 list-style-image: url("moz-icon://stock/gtk-copy?size=menu&state=disabled"); |
|
117 } |
|
118 |
|
119 menuitem[cmd="cmd_paste"] { |
|
120 list-style-image: url("moz-icon://stock/gtk-paste?size=menu"); |
|
121 } |
|
122 |
|
123 menuitem[cmd="cmd_paste"][disabled] { |
|
124 list-style-image: url("moz-icon://stock/gtk-paste?size=menu&state=disabled"); |
|
125 } |
|
126 |
|
127 menuitem[cmd="cmd_delete"] { |
|
128 list-style-image: url("moz-icon://stock/gtk-delete?size=menu"); |
|
129 } |
|
130 |
|
131 menuitem[cmd="cmd_delete"][disabled] { |
|
132 list-style-image: url("moz-icon://stock/gtk-delete?size=menu&state=disabled"); |
|
133 } |
|
134 |
|
135 menuitem[cmd="cmd_selectAll"] { |
|
136 list-style-image: url("moz-icon://stock/gtk-select-all?size=menu"); |
|
137 } |
|
138 |
|
139 menuitem[cmd="cmd_selectAll"][disabled] { |
|
140 list-style-image: url("moz-icon://stock/gtk-select-all?size=menu&state=disabled"); |
|
141 } |
|
142 |