relicense to MPL2
[themes.git] / EarlyBlue / navigator / navigator.css
CommitLineData
9099c61d
RK
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/. */
128000f4 4
76983f4c 5/** Contains style definitions for the navigator application
f6e0a33f 6 **/
7
74d14f90 8@import url("chrome://navigator/content/navigator.css");
9@import url("chrome://communicator/skin/");
74d14f90 10@import url("chrome://communicator/skin/bookmarks/bookmarksToolbar.css");
f6e0a33f 11
f840e302 12@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
13
74d14f90 14/* ::::: primary toolbar buttons ::::: */
f6e0a33f 15
74d14f90 16#back-button {
ecb2fda9
RK
17 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
18 -moz-image-region: rect(42px 25px 63px 0px);
74d14f90 19}
f6e0a33f 20
74d14f90 21#back-button[disabled="true"] {
749ee109 22 -moz-image-region: rect(42px 50px 63px 25px);
74d14f90 23}
f6e0a33f 24
74d14f90 25#forward-button {
ecb2fda9
RK
26 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
27 -moz-image-region: rect(63px 25px 84px 0px);
74d14f90 28}
29
30#forward-button[disabled="true"] {
749ee109 31 -moz-image-region: rect(63px 50px 84px 25px);
74d14f90 32}
33
34#reload-button {
749ee109
RK
35 list-style-image: url("chrome://navigator/skin/icons/navigatoricons.png");
36 -moz-image-region: rect(0px 25px 21px 0px);
74d14f90 37}
749ee109 38
74d14f90 39#reload-button[disabled="true"] {
749ee109 40 -moz-image-region: rect(0px 50px 21px 25px);
74d14f90 41}
42
43#stop-button {
ecb2fda9
RK
44 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
45 -moz-image-region: rect(21px 25px 42px 0px);
74d14f90 46}
47
48#stop-button[disabled="true"] {
749ee109 49 -moz-image-region: rect(21px 50px 42px 25px);
76983f4c 50}
74d14f90 51
0ef1663c
RK
52#home-button {
53 list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
54 -moz-image-region: rect(84px 25px 105px 0px);
55}
56
57#home-button[disabled="true"] {
58 -moz-image-region: rect(84px 50px 105px 25px);
59}
60
c2e1f790
RK
61#sync-button {
62 list-style-image: url("chrome://communicator/skin/sync/sync-32.png");
63}
64
65#sync-button[status=active] {
66 list-style-image: url("chrome://communicator/skin/sync/sync-32-throbber.png");
67}
68
f2450795 69#clear-button {
70 list-style-image: url("chrome://global/skin/icons/close-button.gif");
71}
72
c2e1f790
RK
73/* ::::: small primary toolbar buttons ::::: */
74
0ef1663c
RK
75toolbar[iconsize="small"] > #back-button {
76 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
77 -moz-image-region: rect(32px 16px 48px 0);
78}
79
80toolbar[iconsize="small"] > #back-button[disabled="true"] {
81 -moz-image-region: rect(32px 32px 48px 16px) !important;
82}
83
84toolbar[iconsize="small"] > #forward-button {
85 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
86 -moz-image-region: rect(48px 16px 64px 0);
87}
88
89toolbar[iconsize="small"] > #forward-button[disabled="true"] {
90 -moz-image-region: rect(48px 32px 64px 16px) !important;
91}
92
93toolbar[iconsize="small"] > #reload-button {
94 list-style-image: url("chrome://navigator/skin/icons/navigatoricons-small.png");
95 -moz-image-region: rect(0 16px 16px 0);
96}
97
98toolbar[iconsize="small"] > #reload-button[disabled="true"] {
99 -moz-image-region: rect(0 32px 16px 16px) !important;
100}
101
102toolbar[iconsize="small"] > #stop-button {
103 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
104 -moz-image-region: rect(16px 16px 32px 0);
105}
106
107toolbar[iconsize="small"] > #stop-button[disabled="true"] {
108 -moz-image-region: rect(16px 32px 32px 16px) !important;
109}
110
0ef1663c
RK
111toolbar[iconsize="small"] > #home-button {
112 list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
113 -moz-image-region: rect(64px 16px 80px 0);
114}
115
116toolbar[iconsize="small"] > #home-button[disabled="true"] {
117 -moz-image-region: rect(64px 32px 80px 16px) !important;
118}
119
c2e1f790
RK
120toolbar[iconsize="small"] > toolbarpaletteitem > #sync-button,
121toolbar[iconsize="small"] > #sync-button {
122 list-style-image: url("chrome://communicator/skin/sync/sync-16.png");
123}
124
125toolbar[iconsize="small"] > toolbarpaletteitem > #sync-button[status=active],
126toolbar[iconsize="small"] > #sync-button[status=active] {
127 list-style-image: url("chrome://communicator/skin/sync/sync-16-throbber.png");
128}
129
f1b199d6
RK
130#FindToolbar:-moz-lwtheme {
131/* -moz-border-top-colors: transparent;
132 -moz-border-bottom-colors: transparent; */
133}
134
c8120ee9 135/* ::::: fullscreen window controls ::::: */
136
137#window-controls {
138 -moz-box-align: center;
749ee109 139 padding: 0 2px;
083cee4a 140 border-left: 1px solid #9999CC;
749ee109 141 -moz-margin-start: 2px;
083cee4a 142}
143
144#window-controls > toolbarbutton {
749ee109
RK
145 padding: 3px;
146 -moz-padding-start: 2px;
147 -moz-padding-end: 1px;
148}
149
150toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon {
151 display: -moz-box;
c8120ee9 152}
153
154#minimize-button {
155 list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif");
156}
157
158#restore-button {
159 list-style-image: url("chrome://navigator/skin/icons/win-restore.gif");
160}
161
162#close-button {
163 list-style-image: url("chrome://navigator/skin/icons/win-close.gif");
164}
165
74d14f90 166/* ::::: nav-bar-inner ::::: */
167
d1476608 168.nav-bar-class {
749ee109
RK
169 -moz-padding-start: 1px;
170 -moz-padding-end: 1px;
74d14f90 171 min-width: 0px;
749ee109 172 -moz-box-align: center;
74d14f90 173}
76983f4c 174
74d14f90 175#urlbar {
749ee109
RK
176 margin: 0;
177 -moz-margin-start: 3px;
178}
179
7197fc13 180.urlbar-security-level {
749ee109 181 padding: 2px;
76983f4c 182}
74d14f90 183
cf3319d7
RK
184.urlbar-security-level[level="high"],
185.urlbar-security-level[level="low"] {
d84b9613 186 background-color: #FFFFCC;
187}
188
e8fc8e8e
RK
189#wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > .button-toolbar,
190#wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > #urlbar > .urlbar-icons {
191 display: none;
192}
193
fb2b5761
RK
194/* ::::: notification popups ::::: */
195
fb2b5761
RK
196.popup-notification-icon {
197 width: 64px;
198 height: 64px;
199 -moz-margin-end: 10px;
200}
201
202.popup-notification-icon[popupid="geolocation"] {
203 list-style-image: url("chrome://communicator/skin/icons/geolocation-64.png");
204}
205
a3b6328b
RK
206.popup-notification-icon[popupid="addon-install-disabled"],
207.popup-notification-icon[popupid="addon-install-blocked"],
b4af54ca
RK
208.popup-notification-icon[popupid="addon-install-started"],
209.popup-notification-icon[popupid="addon-install-cancelled"],
a3b6328b 210.popup-notification-icon[popupid="addon-install-failed"],
c1f7cc84
RK
211.popup-notification-icon[popupid="addon-install-complete"],
212.popup-notification-icon[popupid="lwtheme-install-request"],
213.popup-notification-icon[popupid="lwtheme-install-notification"] {
a3b6328b
RK
214 list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
215 width: 32px;
216 height: 32px;
217}
218
c2e1f790
RK
219.popup-notification-icon[popupid="indexedDB-permissions-prompt"],
220.popup-notification-icon[popupid="indexedDB-quota-prompt"] {
221 list-style-image: url("chrome://global/skin/icons/question-64.png");
222}
223
224.popup-notification-icon[popupid="password-change"],
fb2b5761
RK
225.popup-notification-icon[popupid="password-save"] {
226 list-style-image: url("chrome://mozapps/skin/passwordmgr/key-64.png");
227}
228
719b06bc
RK
229.popup-notification-icon[popupid="click-to-play-plugins"] {
230 list-style-image: url("chrome://mozapps/skin/plugins/pluginGeneric.png");
231 width: 32px;
232 height: 32px;
233}
234
235.addon-progress-description {
236 width: 350px;
237 max-width: 350px;
238}
239
fb2b5761
RK
240/* Notification icon box */
241#notification-popup-box {
242 -moz-margin-end: 3px;
243}
244
245.notification-anchor-icon:-moz-focusring {
246 outline: 1px dotted;
247}
248
c2e1f790
RK
249#default-notification-icon {
250 list-style-image: url("chrome://global/skin/icons/information-16.png");
251 width: 16px;
252 height: 16px;
253}
254
fb2b5761
RK
255#geo-notification-icon {
256 list-style-image: url("chrome://communicator/skin/icons/geolocation-16.png");
257 width: 16px;
258 height: 16px;
259}
260
a3b6328b
RK
261#addons-notification-icon {
262 list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
263 width: 16px;
264 height: 16px;
265}
266
c2e1f790
RK
267#indexedDB-notification-icon {
268 list-style-image: url("chrome://global/skin/icons/question-16.png");
269 width: 16px;
270 height: 16px;
271}
272
fb2b5761
RK
273#password-notification-icon {
274 list-style-image: url("chrome://mozapps/skin/passwordmgr/key-16.png");
275 width: 16px;
276 height: 16px;
277}
278
719b06bc
RK
279#plugins-notification-icon {
280 list-style-image: url("chrome://mozapps/skin/plugins/pluginGeneric-16.png");
281 width: 16px;
282 height: 16px;
283}
284
74d14f90 285/* ::::: page proxy icon ::::: */
76983f4c 286
74d14f90 287#page-proxy-deck,
288#page-proxy-favicon,
289#page-proxy-button {
290 width: 16px;
291 height: 16px;
292}
2d09e496 293
294#page-proxy-deck {
d2f0d128 295 cursor: -moz-grab;
749ee109 296 margin: 0;
74d14f90 297}
298
299#page-proxy-button {
76983f4c 300 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
76983f4c 301}
74d14f90 302
303#page-proxy-favicon {
304 list-style-image: none;
76983f4c 305}
f6e0a33f 306
74d14f90 307/* ::::: autocomplete ::::: */
308
a1f525f0 309.autocomplete-treebody::-moz-tree-cell-text(value) {
e8fc8e8e 310 -moz-padding-start: 13px;
f6e0a33f 311}
f6e0a33f 312
a1f525f0 313.autocomplete-treebody::-moz-tree-cell-text(comment) {
74d14f90 314 color: #808080;
315/* font-style: italic; */
f6e0a33f 316}
317
74d14f90 318.autocomplete-search-box {
319 border-top: 1px solid #9999CC;
320 background-color: #666699;
321 color: #000000;
322}
f6e0a33f 323
74d14f90 324.autocomplete-result-popup[nomatch] > .autocomplete-search-box {
325 border-top: 1px solid #666699;
326}
327
328.autocomplete-search-engine {
329 padding: 2px;
330}
331
332.autocomplete-search-engine[menuactive="true"] {
333 background-color: #9999CC;
334 color: #000000;
335}
336
337.autocomplete-search-engine-img {
8caa872d 338 -moz-margin-end: 4px;
74d14f90 339}
340
5ddff932
RK
341.autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
342 color: #808080;
343}
344
74d14f90 345/* ::::: go and searchbuttons ::::: */
f6e0a33f 346
76983f4c 347#search-button,
f6e0a33f 348#go-button {
749ee109
RK
349 margin: 0;
350 padding: 1px 0;
351 -moz-margin-start: 2px;
74d14f90 352 background-color: #9999CC;
f6e0a33f 353}
354
749ee109
RK
355/* care that those buttons base on the same min height of 16px that the urlbar
356 autocomplete box gets through site icon and urlbar icons at the right */
d1476608 357#search-button > .button-box,
749ee109
RK
358#go-button > .button-box {
359 min-height: 16px;
360}
361
74d14f90 362#search-button {
363/* list-style-image: url("chrome://communicator/skin/icons/search.gif"); */
364 font-weight: bold;
f6e0a33f 365}
366
c1f7cc84
RK
367#search-button > .button-box > .button-icon {
368 display: -moz-box;
369}
370
749ee109
RK
371/*
372toolbar[mode="text"] #search-button > .button-box > .button-icon,
373toolbar[mode="icons"] #search-button > .button-box > .button-text {
374 display: none;
375}
376*/
377
5ddff932
RK
378/* ::::: search bar ::::: */
379
380.autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment),
381.autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment) {
382 color: #808080;
383 font-size: smaller;
384}
385
386.autocomplete-treebody::-moz-tree-cell(suggesthint) {
387 border-top: 1px solid #808080;
388}
389
459f2165 390/* ::::: security button ::::: */
74d14f90 391
459f2165 392#security-button {
8caa872d 393 -moz-margin-start: 2px;
f6e0a33f 394}
395
ff5bd775 396#security-button {
aeb317b8
RK
397 list-style-image: url("chrome://communicator/skin/icons/lock-insecure.gif");
398}
399
b70a3a73 400/* |high| and |low| styles could be different, to better reflect the secure level... */
ff5bd775
RK
401#security-button[level="high"] > .statusbarpanel-contentbox,
402#security-button[level="low"] > .statusbarpanel-contentbox {
aeb317b8
RK
403 list-style-image: url("chrome://communicator/skin/icons/lock-secure.gif");
404 background-color: #FFFFCC;
74d14f90 405}
f6e0a33f 406
ff5bd775 407#security-button[level="broken"] > .statusbarpanel-contentbox {
aeb317b8
RK
408 list-style-image: url("chrome://communicator/skin/icons/lock-broken.gif");
409 background-color: #FFCCCC;
410}
411
ff5bd775
RK
412#security-button[label] > .statusbarpanel-contentbox {
413 background-color: #33FF33;
414}
415
537196e5 416#security-button > .statusbarpanel-contentbox > .statusbarpanel-text {
aeb317b8 417 margin: 0px;
aeb317b8 418 color: #000000;
74d14f90 419}
f6e0a33f 420
ff5bd775
RK
421/* make same background-color translucent on lwthemes */
422#security-button[level="high"] > .statusbarpanel-contentbox:-moz-lwtheme,
423#security-button[level="low"] > .statusbarpanel-contentbox:-moz-lwtheme {
424 background-color: rgba(255, 255, 204, .8);
425}
426
427#security-button[level="broken"] > .statusbarpanel-contentbox:-moz-lwtheme {
428 background-color: rgba(255, 204, 204, .8);
429}
430
431#security-button[label] > .statusbarpanel-contentbox:-moz-lwtheme {
432 background-color: rgba(51, 255, 51, .8);
433}
434
d9954aaf
RK
435#ev-button {
436 list-style-image: url("chrome://communicator/skin/icons/identity.png");
437}
438
4c66fa00 439#popupIcon {
c37975cc 440 list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif");
4c66fa00 441}
442
fb2b5761
RK
443#invalid-form-popup {
444 border : 1px outset #FFFFCC;
445 padding: 2px 3px 0px 3px;
446 max-width: 40em;
447 background-color : #FFFFCC;
448 color: #000000;
449 font-weight: bold;
450}
451
459f2165 452/* ::::: personal toolbar ::::: */
f6e0a33f 453
459f2165 454#bookmarks-button {
455 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
74d14f90 456}
457
459f2165 458#bookmarks-button[open="true"] {
459 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
74d14f90 460}
459f2165 461
749ee109 462#toolbarbutton.chevron {
56029caf 463 list-style-image: url("chrome://navigator/skin/icons/chevron.gif") !important;
b618d1fd 464}
465
749ee109 466#toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
b618d1fd 467 display: none;
468}
6082be94 469
749ee109
RK
470toolbarbutton.chevron > .toolbarbutton-text {
471 display: none; /* hide chevron label which has a width even if blank */
472}
473
474toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon {
475 display: -moz-box; /* display chevron icon in text mode */
476}
477
478/* Prevent [mode="icons"|"text"] from hiding the label and icon */
479#bookmarks-ptf .bookmark-item > .toolbarbutton-text,
480#bookmarks-ptf .bookmark-item > .toolbarbutton-icon {
481 display: -moz-box !important;
482}
483
e8fc8e8e 484#PersonalToolbar[iconsize="small"] > toolbarpaletteitem > #home-button > .toolbarbutton-icon,
0ef1663c
RK
485#PersonalToolbar[iconsize="small"] > #home-button > .toolbarbutton-icon {
486 /* width: 16px;
487 height: 16px; */
488}
489
490#PersonalToolbar > #home-button {
491 cursor: pointer;
492}
493
494#PersonalToolbar > #home-button[disabled="true"] {
495 cursor: default !important;
496}
497
e8fc8e8e
RK
498/*
499 In customize mode we hide the normal bookmark items and show a placeholder
500 for the drag/drop UI.
501*/
502.bookmarks-toolbar-customize {
d3d79c39 503 list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png");
e8fc8e8e
RK
504 display: none;
505 max-width: 15em !important;
506}
507
d3d79c39
RK
508#wrapper-personal-bookmarks[place="palette"] > .toolbarpaletteitem-box {
509 width: 16px;
510 height: 16px;
511 background: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png") no-repeat;
e8fc8e8e
RK
512}
513
1b3c8528
RK
514/* ::::: star button ::::: */
515
516#star-button {
517 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
518 -moz-image-region: rect(16px 16px 32px 0px);
519}
520
521#star-button:hover {
522 -moz-image-region: rect(16px 32px 32px 16px);
523}
524
525#star-button:hover:active {
526 -moz-image-region: rect(16px 48px 32px 32px);
527}
528
529#star-button[starred="true"] {
530 -moz-image-region: rect(0px 16px 16px 0px);
531}
532
533#star-button[starred="true"]:hover {
534 -moz-image-region: rect(0px 32px 16px 16px);
535}
536
537#star-button[starred="true"]:hover:active {
538 -moz-image-region: rect(0px 48px 16px 32px);
539}
540
a3b6328b
RK
541#editBookmarkPanelStarIcon {
542 list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
543 -moz-image-region: rect(0px 16px 16px 0px);
544}
545
6082be94
RK
546/* ::::: feeds ::::: */
547
cf3319d7
RK
548.feedsMenu {
549 list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png");
6082be94
RK
550 -moz-image-region: rect(0px 16px 16px 0px);
551}
552
cf3319d7 553.feedsMenu[disabled="true"] {
6082be94
RK
554 -moz-image-region: rect(32px 16px 48px 0px);
555}
556
cf3319d7 557.feedsButton {
6082be94
RK
558 list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png");
559 -moz-image-region: rect(0px 32px 16px 16px);
560}
561
cf3319d7 562.feedsButton:hover {
6082be94
RK
563 -moz-image-region: rect(16px 32px 32px 16px);
564}
565
cf3319d7 566.feedsButton:hover:active {
6082be94
RK
567 -moz-image-region: rect(48px 32px 64px 16px);
568}