Commit | Line | Data |
---|---|---|
351107c9 | 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 | ||
3d6dd546 | 38 | /** Contains style definitions for the navigator application |
351107c9 | 39 | **/ |
40 | ||
b1eaa419 | 41 | @import url("chrome://navigator/content/navigator.css"); |
42 | @import url("chrome://communicator/skin/"); | |
b1eaa419 | 43 | @import url("chrome://communicator/skin/bookmarks/bookmarksToolbar.css"); |
351107c9 | 44 | |
45 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
46 | ||
47 | /********** resource bundle binding **********/ | |
48 | ||
b1eaa419 | 49 | /* ::::: primary toolbar buttons ::::: */ |
351107c9 | 50 | |
b1eaa419 | 51 | #back-button { |
e10e7add RK |
52 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
53 | -moz-image-region: rect(42px 25px 63px 0px); | |
b1eaa419 | 54 | } |
351107c9 | 55 | |
56 | #back-button:hover, | |
242fc635 | 57 | #back-button:hover:active, |
b1eaa419 | 58 | #back-button[open="true"] { |
e10e7add | 59 | -moz-image-region: rect(42px 72px 63px 50px); |
b1eaa419 | 60 | } |
61 | ||
62 | #back-button[disabled="true"] { | |
e10e7add | 63 | -moz-image-region: rect(42px 50px 63px 25px) !important; |
b1eaa419 | 64 | } |
65 | ||
66 | #forward-button { | |
e10e7add RK |
67 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
68 | -moz-image-region: rect(63px 25px 84px 0px); | |
b1eaa419 | 69 | } |
351107c9 | 70 | |
71 | #forward-button:hover, | |
242fc635 | 72 | #forward-button:hover:active, |
b1eaa419 | 73 | #forward-button[open="true"] { |
e10e7add | 74 | -moz-image-region: rect(63px 75px 84px 50px); |
b1eaa419 | 75 | } |
351107c9 | 76 | |
b1eaa419 | 77 | #forward-button[disabled="true"] { |
e10e7add | 78 | -moz-image-region: rect(63px 50px 84px 25px) !important; |
b1eaa419 | 79 | } |
80 | ||
81 | #reload-button { | |
82 | list-style-image: url("chrome://navigator/skin/icons/reload.gif"); | |
83 | } | |
351107c9 | 84 | |
85 | #reload-button:hover, | |
b1eaa419 | 86 | #reload-button:hover:active { |
87 | list-style-image: url("chrome://navigator/skin/icons/reload-hover.gif"); | |
88 | } | |
89 | ||
90 | #reload-button[disabled="true"] { | |
91 | list-style-image: url("chrome://navigator/skin/icons/reload-disabled.gif") !important; | |
92 | } | |
93 | ||
94 | #stop-button { | |
e10e7add RK |
95 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
96 | -moz-image-region: rect(21px 25px 42px 0px); | |
b1eaa419 | 97 | } |
351107c9 | 98 | |
99 | #stop-button:hover, | |
b1eaa419 | 100 | #stop-button:hover:active { |
e10e7add | 101 | -moz-image-region: rect(21px 75px 42px 50px); |
3d6dd546 | 102 | } |
351107c9 | 103 | |
b1eaa419 | 104 | #stop-button[disabled="true"] { |
e10e7add | 105 | -moz-image-region: rect(21px 50px 42px 25px) !important; |
3d6dd546 | 106 | } |
b1eaa419 | 107 | |
108 | #print-button { | |
e10e7add RK |
109 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
110 | -moz-image-region: rect(0px 25px 21px 0px); | |
b1eaa419 | 111 | } |
351107c9 | 112 | |
113 | #print-button:hover, | |
242fc635 | 114 | #print-button:hover:active, |
b1eaa419 | 115 | #print-button[open="true"] { |
e10e7add | 116 | -moz-image-region: rect(0px 75px 21px 50px); |
b1eaa419 | 117 | } |
118 | ||
119 | #print-button[disabled="true"] { | |
e10e7add | 120 | -moz-image-region: rect(0px 50px 21px 25px) !important; |
b1eaa419 | 121 | } |
351107c9 | 122 | |
b1e5c9b1 | 123 | #clear-button { |
124 | list-style-image: url("chrome://global/skin/icons/close-button.gif"); | |
125 | } | |
126 | ||
61290d60 | 127 | #clear-button:hover { |
128 | list-style-image: url("chrome://global/skin/icons/close-button-hover.gif"); | |
129 | } | |
130 | ||
80916bc4 | 131 | /* ::::: small primary toolbar buttons ::::: */ |
132 | ||
7a7b11b3 RK |
133 | #nav-bar[inFullscreen="true"] .toolbar-grippy { |
134 | /* display: none; */ | |
80916bc4 | 135 | } |
136 | ||
137 | /* ::::: fullscreen window controls ::::: */ | |
138 | ||
139 | #window-controls { | |
140 | -moz-box-align: center; | |
e20d243c | 141 | padding: 0 3px 0 1px; |
142 | border-left: 3px solid #000000; | |
143 | } | |
144 | ||
145 | #window-controls > toolbarbutton { | |
146 | padding: 2px 0px 2px 2px; | |
80916bc4 | 147 | } |
148 | ||
7a7b11b3 RK |
149 | toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon { |
150 | display: -moz-box; | |
151 | } | |
152 | ||
80916bc4 | 153 | #minimize-button { |
154 | list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif"); | |
155 | } | |
156 | ||
e20d243c | 157 | #minimize-button:hover { |
158 | list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif"); | |
159 | } | |
160 | ||
80916bc4 | 161 | #restore-button { |
162 | list-style-image: url("chrome://navigator/skin/icons/win-restore.gif"); | |
163 | } | |
164 | ||
e20d243c | 165 | #restore-button:hover { |
166 | list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif"); | |
167 | } | |
168 | ||
80916bc4 | 169 | #close-button { |
170 | list-style-image: url("chrome://navigator/skin/icons/win-close.gif"); | |
171 | } | |
172 | ||
e20d243c | 173 | #close-button:hover { |
174 | list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif"); | |
175 | } | |
176 | ||
b1eaa419 | 177 | /* ::::: nav-bar-inner ::::: */ |
178 | ||
179 | #nav-bar-inner { | |
180 | padding-left: 0px; | |
181 | min-width: 0px; | |
3d6dd546 | 182 | margin: 6px 4px 7px 4px; |
b1eaa419 | 183 | } |
184 | ||
185 | #urlbar { | |
7c6f4fb9 | 186 | -moz-border-radius: 5px; |
e10e7add RK |
187 | outline: none; |
188 | border: 1px solid #9C9CFF; | |
b1eaa419 | 189 | background-color: #000000; |
190 | margin: 0px 7px 0px 0px; | |
191 | } | |
192 | ||
d84b9613 | 193 | #urlbar[level="high"] > .autocomplete-textbox-container, |
194 | #urlbar[level="low"] > .autocomplete-textbox-container { | |
195 | background-color: #FFCF00; | |
196 | color: #000000; | |
197 | } | |
198 | ||
b1eaa419 | 199 | /* ::::: page proxy icon ::::: */ |
3d6dd546 | 200 | |
b1eaa419 | 201 | #page-proxy-deck, |
202 | #page-proxy-favicon, | |
203 | #page-proxy-button { | |
204 | width: 16px; | |
205 | height: 16px; | |
206 | } | |
351107c9 | 207 | |
208 | #page-proxy-deck { | |
d2f0d128 | 209 | cursor: -moz-grab; |
b1eaa419 | 210 | margin: 1px 1px 1px 2px; |
3d6dd546 | 211 | } |
351107c9 | 212 | |
b1eaa419 | 213 | #page-proxy-button { |
3d6dd546 | 214 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif"); |
b1eaa419 | 215 | padding-top: 2px; |
216 | padding-bottom: 2px; | |
3d6dd546 | 217 | } |
218 | ||
b1eaa419 | 219 | #page-proxy-favicon { |
220 | list-style-image: none; | |
3d6dd546 | 221 | } |
351107c9 | 222 | |
b1eaa419 | 223 | /* ::::: autocomplete ::::: */ |
224 | ||
01fc5c11 | 225 | .autocomplete-treebody::-moz-tree-cell-text(value) { |
b1eaa419 | 226 | padding-left: 13px; |
227 | } | |
228 | ||
01fc5c11 | 229 | .autocomplete-treebody::-moz-tree-cell-text(comment) { |
b1eaa419 | 230 | color: #E7ADE7; |
231 | /* font-style: italic; */ | |
351107c9 | 232 | } |
233 | ||
b1eaa419 | 234 | .autocomplete-search-box { |
235 | border-top: 1px solid #FF9F00; | |
236 | background-color: #9C9CFF; | |
237 | color: #000000; | |
3d6dd546 | 238 | } |
351107c9 | 239 | |
b1eaa419 | 240 | .autocomplete-result-popup[nomatch] > .autocomplete-search-box { |
241 | border-top: 1px solid #9C9CFF; | |
351107c9 | 242 | } |
351107c9 | 243 | |
b1eaa419 | 244 | .autocomplete-search-engine { |
245 | padding: 2px; | |
3d6dd546 | 246 | } |
351107c9 | 247 | |
b1eaa419 | 248 | .autocomplete-search-engine[menuactive="true"] { |
249 | background-color: #008484; | |
250 | color: #FFCF00; | |
3d6dd546 | 251 | } |
351107c9 | 252 | |
b1eaa419 | 253 | .autocomplete-search-engine-img { |
254 | margin-right: 4px; | |
255 | } | |
256 | ||
f8bb6584 RK |
257 | .autocomplete-history-dropmarker:hover { |
258 | background-color: #FFCF00; | |
259 | } | |
260 | ||
261 | .autocomplete-history-dropmarker:hover:active, | |
262 | .autocomplete-history-dropmarker[open="true"] { | |
263 | background-color: #FF9F00; | |
264 | } | |
265 | ||
b1eaa419 | 266 | /* ::::: go and searchbuttons ::::: */ |
267 | ||
3d6dd546 | 268 | #search-button, |
351107c9 | 269 | #go-button { |
61290d60 | 270 | margin: 1px 3px 1px 0px; |
b1eaa419 | 271 | /* min-height: 25px; */ |
272 | font-weight: bold; | |
273 | background-color: #000000; | |
351107c9 | 274 | } |
275 | ||
3d6dd546 | 276 | #search-button:hover, |
351107c9 | 277 | #go-button:hover { |
b1eaa419 | 278 | background-color: #FFCF00; |
351107c9 | 279 | } |
280 | ||
b1eaa419 | 281 | #search-button { |
282 | /* list-style-image: url("chrome://communicator/skin/icons/search.gif"); */ | |
283 | font-weight: bold; | |
284 | } | |
351107c9 | 285 | |
7a7b11b3 RK |
286 | /* |
287 | toolbar[mode="text"] #search-button > .button-box > .button-icon, | |
288 | toolbar[mode="icons"] #search-button > .button-box > .button-text { | |
289 | display: none; | |
290 | } | |
291 | */ | |
292 | ||
31e46317 RK |
293 | /* ::::: throbber ::::: */ |
294 | ||
295 | #throbber-box { | |
296 | -moz-margin-start: 2px; | |
297 | } | |
298 | ||
dc8e1207 | 299 | /* ::::: security button ::::: */ |
351107c9 | 300 | |
dc8e1207 | 301 | #security-button { |
302 | list-style-image:url("chrome://communicator/skin/icons/lock-insecure.gif"); | |
31e46317 | 303 | -moz-margin-start: 2px; |
b1eaa419 | 304 | } |
351107c9 | 305 | |
57d23eae | 306 | /* |high| and |low| styles could be different, to better reflect the secure level... */ |
307 | #security-button[level="high"], | |
dc8e1207 | 308 | #security-button[level="low"] { |
309 | list-style-image:url("chrome://communicator/skin/icons/lock-secure.gif"); | |
310 | } | |
311 | ||
312 | #security-button[level="broken"] { | |
313 | list-style-image:url("chrome://communicator/skin/icons/lock-broken.gif"); | |
b1eaa419 | 314 | } |
351107c9 | 315 | |
a3b3d4d6 | 316 | #popupIcon { |
317 | list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif"); | |
318 | } | |
319 | ||
dc8e1207 | 320 | /* ::::: personal toolbar ::::: */ |
351107c9 | 321 | |
dc8e1207 | 322 | #bookmarks-button { |
323 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif"); | |
b1eaa419 | 324 | } |
351107c9 | 325 | |
dc8e1207 | 326 | #bookmarks-button[open="true"] { |
327 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); | |
b1eaa419 | 328 | } |
351107c9 | 329 | |
dc8e1207 | 330 | #home-button { |
331 | list-style-image: url("chrome://communicator/skin/bookmarks/home.gif"); | |
b1eaa419 | 332 | } |
ac1cdf20 | 333 | |
e10e7add RK |
334 | #bookmarks-chevron { |
335 | list-style-image: url("chrome://navigator/skin/icons/chevron.gif") !important; | |
ac1cdf20 | 336 | margin-right: 2px; |
337 | } | |
338 | ||
e10e7add RK |
339 | #bookmarks-chevron:hover, |
340 | #bookmarks-chevron[open="true"] { | |
341 | list-style-image: url("chrome://navigator/skin/icons/chevron-hover.gif") !important; | |
ac1cdf20 | 342 | } |
343 | ||
7a7b11b3 | 344 | toolbarbutton.chevron > .toolbarbutton-menu-dropmarker { |
ac1cdf20 | 345 | display: none; |
346 | } | |
e10e7add | 347 | |
7a7b11b3 RK |
348 | toolbarbutton.chevron > .toolbarbutton-text { |
349 | display: none; /* hide chevron label which has a width even if blank */ | |
350 | } | |
351 | ||
352 | toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon { | |
353 | display: -moz-box; /* display chevron icon in text mode */ | |
354 | } | |
355 | ||
356 | /* Prevent [mode="icons"|"text"] from hiding the label and icon */ | |
357 | #bookmarks-ptf .bookmark-item > .toolbarbutton-text, | |
358 | #bookmarks-ptf .bookmark-item > .toolbarbutton-icon { | |
359 | display: -moz-box !important; | |
360 | } | |
361 | ||
e10e7add RK |
362 | /* ::::: feeds ::::: */ |
363 | ||
364 | #feedsMenu { | |
365 | list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png") !important; | |
366 | -moz-image-region: rect(0px 16px 16px 0px); | |
367 | } | |
368 | ||
369 | #feedsMenu[disabled="true"] { | |
370 | -moz-image-region: rect(32px 16px 48px 0px); | |
371 | } | |
372 | ||
373 | #feedsButton { | |
374 | list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png"); | |
375 | -moz-image-region: rect(0px 32px 16px 16px); | |
376 | } | |
377 | ||
378 | #feedsButton:hover { | |
379 | -moz-image-region: rect(16px 32px 32px 16px); | |
380 | } | |
381 | ||
382 | #feedsButton:hover:active { | |
383 | -moz-image-region: rect(48px 32px 64px 16px); | |
384 | } | |
7a7b11b3 | 385 | |
acb63e9c RK |
386 | #urlbar-icons { |
387 | -moz-margin-end: 2px; | |
388 | } | |
389 | ||
7a7b11b3 RK |
390 | /* ::::: home button on the personal toolbar ::::: */ |
391 | ||
392 | #PersonalToolbar[iconsize="small"] > #home-button > .toolbarbutton-icon { | |
393 | /* width: 16px; | |
394 | height: 16px; */ | |
395 | } | |
396 | ||
397 | #PersonalToolbar > #home-button { | |
398 | cursor: pointer; | |
399 | } | |
400 | ||
401 | #PersonalToolbar > #home-button[disabled="true"] { | |
402 | cursor: default !important; | |
403 | } |