Commit | Line | Data |
---|---|---|
128000f4 | 1 | /* ***** BEGIN LICENSE BLOCK ***** |
2 | * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | |
3 | * | |
4 | * The contents of this file are subject to the Mozilla Public License Version | |
5 | * 1.1 (the "License"); you may not use this file except in compliance with | |
6 | * the License. You may obtain a copy of the License at | |
7 | * http://www.mozilla.org/MPL/ | |
8 | * | |
9 | * Software distributed under the License is distributed on an "AS IS" basis, | |
10 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | |
11 | * for the specific language governing rights and limitations under the | |
12 | * License. | |
13 | * | |
14 | * The Original Code is "Classic" theme of mozilla.org code. | |
15 | * | |
16 | * The Initial Developer of the Original Code is | |
17 | * the Mozilla Organization. | |
18 | * Portions created by the Initial Developer are Copyright (C) 1998-2001 | |
19 | * the Initial Developer. All Rights Reserved. | |
20 | * | |
21 | * Contributor(s): | |
22 | * Robert Kaiser <KaiRo@KaiRo.at> | |
23 | * | |
24 | * Alternatively, the contents of this file may be used under the terms of | |
25 | * either the GNU General Public License Version 2 or later (the "GPL"), or | |
26 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | |
27 | * in which case the provisions of the GPL or the LGPL are applicable instead | |
28 | * of those above. If you wish to allow use of your version of this file only | |
29 | * under the terms of either the GPL or the LGPL, and not to allow others to | |
30 | * use your version of this file under the terms of the MPL, indicate your | |
31 | * decision by deleting the provisions above and replace them with the notice | |
32 | * and other provisions required by the GPL or the LGPL. If you do not delete | |
33 | * the provisions above, a recipient may use your version of this file under | |
34 | * the terms of any one of the MPL, the GPL or the LGPL. | |
35 | * | |
36 | * ***** END LICENSE BLOCK ***** */ | |
37 | ||
76983f4c | 38 | /** Contains style definitions for the navigator application |
f6e0a33f | 39 | **/ |
40 | ||
74d14f90 | 41 | @import url("chrome://navigator/content/navigator.css"); |
42 | @import url("chrome://communicator/skin/"); | |
74d14f90 | 43 | @import url("chrome://communicator/skin/bookmarks/bookmarksToolbar.css"); |
f6e0a33f | 44 | |
f840e302 | 45 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
46 | ||
74d14f90 | 47 | /* ::::: primary toolbar buttons ::::: */ |
f6e0a33f | 48 | |
74d14f90 | 49 | #back-button { |
ecb2fda9 RK |
50 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
51 | -moz-image-region: rect(42px 25px 63px 0px); | |
74d14f90 | 52 | } |
f6e0a33f | 53 | |
74d14f90 | 54 | #back-button[disabled="true"] { |
ecb2fda9 | 55 | -moz-image-region: rect(42px 50px 63px 25px) !important; |
74d14f90 | 56 | } |
f6e0a33f | 57 | |
74d14f90 | 58 | #forward-button { |
ecb2fda9 RK |
59 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
60 | -moz-image-region: rect(63px 25px 84px 0px); | |
74d14f90 | 61 | } |
62 | ||
63 | #forward-button[disabled="true"] { | |
ecb2fda9 | 64 | -moz-image-region: rect(63px 50px 84px 25px) !important; |
74d14f90 | 65 | } |
66 | ||
67 | #reload-button { | |
68 | list-style-image: url("chrome://navigator/skin/icons/reload.gif"); | |
69 | } | |
70 | ||
71 | #reload-button[disabled="true"] { | |
72 | list-style-image: url("chrome://navigator/skin/icons/reload-disabled.gif") !important; | |
73 | } | |
74 | ||
75 | #stop-button { | |
ecb2fda9 RK |
76 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
77 | -moz-image-region: rect(21px 25px 42px 0px); | |
74d14f90 | 78 | } |
79 | ||
80 | #stop-button[disabled="true"] { | |
ecb2fda9 | 81 | -moz-image-region: rect(21px 50px 42px 25px) !important; |
76983f4c | 82 | } |
74d14f90 | 83 | |
84 | #print-button { | |
ecb2fda9 RK |
85 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
86 | -moz-image-region: rect(0px 25px 21px 0px); | |
74d14f90 | 87 | } |
f6e0a33f | 88 | |
89 | #print-button[disabled="true"] { | |
ecb2fda9 | 90 | -moz-image-region: rect(0px 50px 21px 25px) !important; |
74d14f90 | 91 | } |
f6e0a33f | 92 | |
f2450795 | 93 | #clear-button { |
94 | list-style-image: url("chrome://global/skin/icons/close-button.gif"); | |
95 | } | |
96 | ||
459f2165 | 97 | /* Hides text below the above buttons - should now be configurable */ |
98 | /* | |
74d14f90 | 99 | .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-text, |
100 | .toolbarbutton-1 > .toolbarbutton-text { | |
f6e0a33f | 101 | display: none; |
102 | } | |
459f2165 | 103 | */ |
f6e0a33f | 104 | |
74d14f90 | 105 | #fullscreen-exit-button { |
106 | list-style-image: none; | |
107 | } | |
108 | ||
109 | #fullscreen-exit-button > .toolbarbutton-text { | |
76983f4c | 110 | /* display: normal; */ |
74d14f90 | 111 | } |
112 | ||
c8120ee9 | 113 | /* ::::: small primary toolbar buttons ::::: */ |
114 | ||
459f2165 | 115 | .toolbarbutton-text[toolbarmode="small"] { |
116 | display: none; | |
c9b2b3ef | 117 | } |
118 | ||
459f2165 | 119 | .toolbarbutton-icon[toolbarmode="small"] { |
120 | display: inline; | |
c8120ee9 | 121 | } |
122 | ||
6c5a63bb RK |
123 | #nav-bar[mode="text"] > #nav-bar-inner, |
124 | #nav-bar[mode="icons"] > #nav-bar-inner, | |
c8120ee9 | 125 | #nav-bar[toolbarmode="small"] > #nav-bar-inner { |
083cee4a | 126 | margin: 2px 0px 2px 4px; |
c8120ee9 | 127 | } |
128 | ||
c9b2b3ef | 129 | toolbar[toolbarmode="small"] > toolbargrippy { |
c8120ee9 | 130 | display: none; |
131 | } | |
132 | ||
133 | /* ::::: fullscreen window controls ::::: */ | |
134 | ||
135 | #window-controls { | |
136 | -moz-box-align: center; | |
137 | padding: 0 2px 0 4px; | |
083cee4a | 138 | border-left: 1px solid #9999CC; |
139 | } | |
140 | ||
141 | #window-controls > toolbarbutton { | |
142 | padding: 2px 0px 2px 2px; | |
c8120ee9 | 143 | } |
144 | ||
145 | #minimize-button { | |
146 | list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif"); | |
147 | } | |
148 | ||
149 | #restore-button { | |
150 | list-style-image: url("chrome://navigator/skin/icons/win-restore.gif"); | |
151 | } | |
152 | ||
153 | #close-button { | |
154 | list-style-image: url("chrome://navigator/skin/icons/win-close.gif"); | |
155 | } | |
156 | ||
74d14f90 | 157 | /* ::::: nav-bar-inner ::::: */ |
158 | ||
159 | #nav-bar-inner { | |
160 | padding-left: 0px; | |
161 | min-width: 0px; | |
f2450795 | 162 | margin: 7px 4px 8px 4px; |
74d14f90 | 163 | } |
76983f4c | 164 | |
74d14f90 | 165 | #urlbar { |
fb49b432 RK |
166 | outline: none; |
167 | border: 1px inset #CCD0DD; | |
74d14f90 | 168 | margin: 0px 7px 0px 0px; |
76983f4c | 169 | } |
74d14f90 | 170 | |
d84b9613 | 171 | #urlbar[level="high"] > .autocomplete-textbox-container, |
172 | #urlbar[level="low"] > .autocomplete-textbox-container { | |
173 | background-color: #FFFFCC; | |
174 | } | |
175 | ||
74d14f90 | 176 | /* ::::: page proxy icon ::::: */ |
76983f4c | 177 | |
74d14f90 | 178 | #page-proxy-deck, |
179 | #page-proxy-favicon, | |
180 | #page-proxy-button { | |
181 | width: 16px; | |
182 | height: 16px; | |
183 | } | |
2d09e496 | 184 | |
185 | #page-proxy-deck { | |
d2f0d128 | 186 | cursor: -moz-grab; |
74d14f90 | 187 | margin: 1px 1px 1px 2px; |
188 | } | |
189 | ||
190 | #page-proxy-button { | |
76983f4c | 191 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif"); |
74d14f90 | 192 | padding-top: 2px; |
193 | padding-bottom: 2px; | |
76983f4c | 194 | } |
74d14f90 | 195 | |
196 | #page-proxy-favicon { | |
197 | list-style-image: none; | |
76983f4c | 198 | } |
f6e0a33f | 199 | |
74d14f90 | 200 | /* ::::: autocomplete ::::: */ |
201 | ||
a1f525f0 | 202 | .autocomplete-treebody::-moz-tree-cell-text(value) { |
74d14f90 | 203 | padding-left: 13px; |
f6e0a33f | 204 | } |
f6e0a33f | 205 | |
a1f525f0 | 206 | .autocomplete-treebody::-moz-tree-cell-text(comment) { |
74d14f90 | 207 | color: #808080; |
208 | /* font-style: italic; */ | |
f6e0a33f | 209 | } |
210 | ||
74d14f90 | 211 | .autocomplete-search-box { |
212 | border-top: 1px solid #9999CC; | |
213 | background-color: #666699; | |
214 | color: #000000; | |
215 | } | |
f6e0a33f | 216 | |
74d14f90 | 217 | .autocomplete-result-popup[nomatch] > .autocomplete-search-box { |
218 | border-top: 1px solid #666699; | |
219 | } | |
220 | ||
221 | .autocomplete-search-engine { | |
222 | padding: 2px; | |
223 | } | |
224 | ||
225 | .autocomplete-search-engine[menuactive="true"] { | |
226 | background-color: #9999CC; | |
227 | color: #000000; | |
228 | } | |
229 | ||
230 | .autocomplete-search-engine-img { | |
231 | margin-right: 4px; | |
232 | } | |
233 | ||
234 | /* ::::: go and searchbuttons ::::: */ | |
f6e0a33f | 235 | |
76983f4c | 236 | #search-button, |
f6e0a33f | 237 | #go-button { |
74d14f90 | 238 | margin: 0px 3px 0px 0px; |
239 | /* min-height: 25px; */ | |
240 | font-weight: bold; | |
241 | background-color: #9999CC; | |
f6e0a33f | 242 | } |
243 | ||
74d14f90 | 244 | #search-button { |
245 | /* list-style-image: url("chrome://communicator/skin/icons/search.gif"); */ | |
246 | font-weight: bold; | |
f6e0a33f | 247 | } |
248 | ||
459f2165 | 249 | /* ::::: security button ::::: */ |
74d14f90 | 250 | |
459f2165 | 251 | #security-button { |
252 | list-style-image:url("chrome://communicator/skin/icons/lock-insecure.gif"); | |
253 | margin-left: 2px; | |
f6e0a33f | 254 | } |
255 | ||
b70a3a73 | 256 | /* |high| and |low| styles could be different, to better reflect the secure level... */ |
257 | #security-button[level="high"], | |
459f2165 | 258 | #security-button[level="low"] { |
259 | list-style-image:url("chrome://communicator/skin/icons/lock-secure.gif"); | |
74d14f90 | 260 | } |
f6e0a33f | 261 | |
459f2165 | 262 | #security-button[level="broken"] { |
263 | list-style-image:url("chrome://communicator/skin/icons/lock-broken.gif"); | |
74d14f90 | 264 | } |
f6e0a33f | 265 | |
4c66fa00 | 266 | #popupIcon { |
c37975cc | 267 | list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif"); |
4c66fa00 | 268 | } |
269 | ||
459f2165 | 270 | /* ::::: personal toolbar ::::: */ |
f6e0a33f | 271 | |
459f2165 | 272 | #bookmarks-button { |
273 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif"); | |
74d14f90 | 274 | } |
275 | ||
459f2165 | 276 | #bookmarks-button[open="true"] { |
277 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); | |
74d14f90 | 278 | } |
459f2165 | 279 | |
280 | #home-button { | |
281 | list-style-image: url("chrome://communicator/skin/bookmarks/home.gif"); | |
b618d1fd | 282 | } |
283 | ||
56029caf RK |
284 | #bookmarks-chevron { |
285 | list-style-image: url("chrome://navigator/skin/icons/chevron.gif") !important; | |
b618d1fd | 286 | } |
287 | ||
56029caf | 288 | #bookmarks-chevron > .toolbarbutton-menu-dropmarker { |
b618d1fd | 289 | display: none; |
290 | } | |
6082be94 RK |
291 | |
292 | /* ::::: feeds ::::: */ | |
293 | ||
294 | #feedsMenu { | |
295 | list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png") !important; | |
296 | -moz-image-region: rect(0px 16px 16px 0px); | |
297 | } | |
298 | ||
299 | #feedsMenu[disabled="true"] { | |
300 | -moz-image-region: rect(32px 16px 48px 0px); | |
301 | } | |
302 | ||
303 | #feedsButton { | |
304 | list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png"); | |
305 | -moz-image-region: rect(0px 32px 16px 16px); | |
306 | } | |
307 | ||
308 | #feedsButton:hover { | |
309 | -moz-image-region: rect(16px 32px 32px 16px); | |
310 | } | |
311 | ||
312 | #feedsButton:hover:active { | |
313 | -moz-image-region: rect(48px 32px 64px 16px); | |
314 | } |