summaryrefslogtreecommitdiff
path: root/xptoolkit/content/communicator.css
blob: a934b056112d8351c2f9e918aa05792ff3e31d59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 

%ifdef BINOC_NAVIGATOR
/* ::::: print preview toolbar ::::: */

toolbar[printpreview="true"] {
  -moz-binding: url("chrome://global/content/printPreviewBindings.xml#printpreviewtoolbar");
}

/* ::::: notification box ::::: */

.browser-notificationbox {
  -moz-binding: url("chrome://communicator/content/bindings/notification.xml#browser-notificationbox");
}

.browser-notificationbox[popupnotification="true"] {
  -moz-binding: url("chrome://communicator/content/bindings/notification.xml#popup-notification");
}

notification[value="addon-install-started"] {
  -moz-binding: url("chrome://communicator/content/bindings/notification.xml#addon-progress-notification");
}

/* ::::: toolbaritem ::::: */
toolbaritem {
  -moz-binding: url("chrome://global/content/bindings/general.xml#basecontrol");
}
%endif

/* With the move to the new toolkit, SeaMonkey needs to overwrite certain bindings
 * if it wants to keep its distinctive likeness. The now hidden new toolkit bindings
 * will stay accessible via a set xpfe="false" attribute, though, where necessary.
 */

/******* toolkit access layer *******/
/* These rules reintroduce the toolkit bindings overwritten later below */
%ifdef BINOC_NAVIGATOR
toolbox[xpfe="false"] { 
  -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbox");
}

toolbox[xpfe="false"] > toolbar,
toolbar[xpfe="false"][type="menubar"],
toolbar[xpfe="false"] {
  -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
}

menubar[xpfe="false"],
toolbar > toolbaritem > menubar,
toolbar > menubar {
  -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar");
}

toolbar > toolbarpaletteitem > toolbaritem > menubar {
  -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar") !important;
}

.menubar-items {
  -moz-box-orient: vertical; /* for flex hack */
}

.menubar-items > menubar {
  -moz-box-flex: 1; /* make menu items expand to fill toolbar height */
}
%endif

prefwindow[xpfe="false"] {
  -moz-binding: url("chrome://global/content/bindings/preferences.xml#prefwindow");
}

prefpane[xpfe="false"] {
  -moz-binding: url("chrome://global/content/bindings/preferences.xml#prefpane");
}

%ifdef BINOC_NAVIGATOR
findbar[xpfe="false"] {
  -moz-binding: url("chrome://global/content/bindings/findbar.xml#findbar");
}
%endif

prefwindow[xpfe="false"] > .paneDeckContainer,
prefpane[xpfe="false"] > .content-box {
  overflow: hidden;
}

/******* SeaMonkey XPFE *******/
/* These bindings reflect SeaMonkey XPFE, modulo new toolkit features. */
%ifdef BINOC_NAVIGATOR
toolbox { 
  -moz-binding: url("chrome://communicator/content/bindings/toolbar.xml#grippytoolbox");
}
  
toolbar {
  -moz-binding: url("chrome://communicator/content/bindings/toolbar.xml#grippytoolbar");
}

toolbar[type="menubar"] {
  -moz-binding: url("chrome://communicator/content/bindings/toolbar.xml#grippytoolbar-menubar");
}

toolbargrippy {
  -moz-binding: url("chrome://communicator/content/bindings/toolbar.xml#toolbargrippy");
}

menubar {
  -moz-binding: url("chrome://communicator/content/bindings/toolbar.xml#grippymenubar");
}
%endif

prefwindow {
  -moz-binding: url("chrome://communicator/content/bindings/prefwindow.xml#prefwindow");
}

prefpane {
  -moz-binding: url("chrome://communicator/content/bindings/prefwindow.xml#prefpane");
}

%ifdef BINOC_NAVIGATOR
findbar {
  -moz-binding: url("chrome://communicator/content/bindings/findbar.xml#findbar");
}
%endif

prefwindow > .paneDeckContainer,
prefpane > .content-box {
  overflow: visible;
}

prefwindow[overflow="auto"] > .paneDeckContainer,
prefwindow[overflow="auto"] prefpane > .content-box {
  overflow: auto;
}

%ifdef BINOC_NAVIGATOR
.statusbarpanel-backgroundbox {
  -moz-binding: url("chrome://communicator/content/bindings/general.xml#statusbarpanel-backgroundbox");
}

textbox[enablehistory="true"] > .autocomplete-history-dropmarker {
  display: -moz-box;
}

/******* sync *******/
#sync-notifications {
  -moz-binding: url("chrome://communicator/content/sync/syncNotification.xml#notificationbox");
  overflow-y: visible !important;
}

#sync-notifications > notification {
  -moz-binding: url("chrome://communicator/content/sync/syncNotification.xml#notification");
}

/******* autohide toolbars *******/

toolbar[type="menubar"][autohide="true"]
{
  -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-menubar-autohide");
  overflow: hidden;
}

toolbar[type="menubar"][autohide="true"][inactive="true"]
{
  min-height: 0px !important;
  height: 0px !important;
  -moz-appearance: none !important;
  border-style: none !important;
}
%endif