Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/third_party/closure/goog/css/toolbar.css
4507 views
1
/*
2
* Copyright 2009 The Closure Library Authors. All Rights Reserved.
3
*
4
* Use of this source code is governed by the Apache License, Version 2.0.
5
* See the COPYING file for details.
6
*/
7
8
/*
9
* Standard styling for toolbars and toolbar items.
10
*/
11
12
@provide 'goog.css.toolbar';
13
14
@require './common';
15
16
/*
17
* Styles used by goog.ui.ToolbarRenderer.
18
*/
19
20
.goog-toolbar {
21
/* Client apps may override the URL at which they serve the image. */
22
background: #fafafa url(//ssl.gstatic.com/editor/toolbar-bg.png) repeat-x bottom left;
23
border-bottom: 1px solid #d5d5d5;
24
cursor: default;
25
font: normal 12px Arial, sans-serif;
26
margin: 0;
27
outline: none;
28
padding: 2px;
29
position: relative;
30
zoom: 1; /* The toolbar element must have layout on IE. */
31
}
32
33
/*
34
* Styles used by goog.ui.ToolbarButtonRenderer.
35
*/
36
37
.goog-toolbar-button {
38
margin: 0 2px;
39
border: 0;
40
padding: 0;
41
font-family: Arial, sans-serif;
42
color: #333;
43
text-decoration: none;
44
list-style: none;
45
vertical-align: middle;
46
cursor: default;
47
outline: none;
48
}
49
50
/* Pseudo-rounded corners. */
51
.goog-toolbar-button-outer-box,
52
.goog-toolbar-button-inner-box {
53
border: 0;
54
vertical-align: top;
55
}
56
57
.goog-toolbar-button-outer-box {
58
margin: 0;
59
padding: 1px 0;
60
}
61
62
.goog-toolbar-button-inner-box {
63
margin: 0 -1px;
64
padding: 3px 4px;
65
}
66
67
/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */
68
* html .goog-toolbar-button-inner-box {
69
/* IE6 needs to have the box shifted to make the borders line up. */
70
left: -1px;
71
}
72
73
/* Pre-IE7 BiDi fixes. */
74
/* rtl:begin:ignore */
75
* html .goog-toolbar-button-rtl .goog-toolbar-button-outer-box {
76
/* @noflip */ left: -1px;
77
}
78
* html .goog-toolbar-button-rtl .goog-toolbar-button-inner-box {
79
/* @noflip */ right: auto;
80
}
81
/* rtl:end:ignore */
82
83
84
/* IE7-only hack; ignored by all other browsers. */
85
*:first-child+html .goog-toolbar-button-inner-box {
86
/* IE7 needs to have the box shifted to make the borders line up. */
87
left: -1px;
88
}
89
90
/* IE7 BiDi fix. */
91
/* rtl:begin:ignore */
92
*:first-child+html .goog-toolbar-button-rtl .goog-toolbar-button-inner-box {
93
/* @noflip */ left: 1px;
94
/* @noflip */ right: auto;
95
}
96
/* rtl:end:ignore */
97
98
/* Safari-only hacks. */
99
::root .goog-toolbar-button,
100
::root .goog-toolbar-button-outer-box {
101
/* Required to make pseudo-rounded corners work on Safari. */
102
line-height: 0;
103
}
104
105
::root .goog-toolbar-button-inner-box {
106
/* Required to make pseudo-rounded corners work on Safari. */
107
line-height: normal;
108
}
109
110
/* Disabled styles. */
111
.goog-toolbar-button-disabled {
112
opacity: 0.3;
113
-moz-opacity: 0.3;
114
filter: alpha(opacity=30);
115
}
116
117
.goog-toolbar-button-disabled .goog-toolbar-button-outer-box,
118
.goog-toolbar-button-disabled .goog-toolbar-button-inner-box {
119
/* Disabled text/border color trumps everything else. */
120
color: #333 !important;
121
border-color: #999 !important;
122
}
123
124
/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */
125
* html .goog-toolbar-button-disabled {
126
/* IE can't apply alpha to an element with a transparent background... */
127
background-color: #f0f0f0;
128
margin: 0 1px;
129
padding: 0 1px;
130
}
131
132
/* IE7-only hack; ignored by all other browsers. */
133
*:first-child+html .goog-toolbar-button-disabled {
134
/* IE can't apply alpha to an element with a transparent background... */
135
background-color: #f0f0f0;
136
margin: 0 1px;
137
padding: 0 1px;
138
}
139
140
/* Only draw borders when in a non-default state. */
141
.goog-toolbar-button-hover .goog-toolbar-button-outer-box,
142
.goog-toolbar-button-active .goog-toolbar-button-outer-box,
143
.goog-toolbar-button-checked .goog-toolbar-button-outer-box,
144
.goog-toolbar-button-selected .goog-toolbar-button-outer-box {
145
border-width: 1px 0;
146
border-style: solid;
147
padding: 0;
148
}
149
150
.goog-toolbar-button-hover .goog-toolbar-button-inner-box,
151
.goog-toolbar-button-active .goog-toolbar-button-inner-box,
152
.goog-toolbar-button-checked .goog-toolbar-button-inner-box,
153
.goog-toolbar-button-selected .goog-toolbar-button-inner-box {
154
border-width: 0 1px;
155
border-style: solid;
156
padding: 3px;
157
}
158
159
/* Hover styles. */
160
.goog-toolbar-button-hover .goog-toolbar-button-outer-box,
161
.goog-toolbar-button-hover .goog-toolbar-button-inner-box {
162
/* Hover border style wins over active/checked/selected. */
163
border-color: #a1badf !important;
164
}
165
166
/* Active/checked/selected styles. */
167
.goog-toolbar-button-active,
168
.goog-toolbar-button-checked,
169
.goog-toolbar-button-selected {
170
/* Active/checked/selected background color always wins. */
171
background-color: #dde1eb !important;
172
}
173
174
.goog-toolbar-button-active .goog-toolbar-button-outer-box,
175
.goog-toolbar-button-active .goog-toolbar-button-inner-box,
176
.goog-toolbar-button-checked .goog-toolbar-button-outer-box,
177
.goog-toolbar-button-checked .goog-toolbar-button-inner-box,
178
.goog-toolbar-button-selected .goog-toolbar-button-outer-box,
179
.goog-toolbar-button-selected .goog-toolbar-button-inner-box {
180
border-color: #729bd1;
181
}
182
183
/* Pill (collapsed border) styles. */
184
.goog-toolbar-button-collapse-right,
185
.goog-toolbar-button-collapse-right .goog-toolbar-button-outer-box,
186
.goog-toolbar-button-collapse-right .goog-toolbar-button-inner-box {
187
margin-right: 0;
188
}
189
190
.goog-toolbar-button-collapse-left,
191
.goog-toolbar-button-collapse-left .goog-toolbar-button-outer-box,
192
.goog-toolbar-button-collapse-left .goog-toolbar-button-inner-box {
193
margin-left: 0;
194
}
195
196
/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */
197
* html .goog-toolbar-button-collapse-left .goog-toolbar-button-inner-box {
198
left: 0;
199
}
200
201
/* IE7-only hack; ignored by all other browsers. */
202
*:first-child+html .goog-toolbar-button-collapse-left
203
.goog-toolbar-button-inner-box {
204
left: 0;
205
}
206
207
208
/*
209
* Styles used by goog.ui.ToolbarMenuButtonRenderer.
210
*/
211
212
.goog-toolbar-menu-button {
213
margin: 0 2px;
214
border: 0;
215
padding: 0;
216
font-family: Arial, sans-serif;
217
color: #333;
218
text-decoration: none;
219
list-style: none;
220
vertical-align: middle;
221
cursor: default;
222
outline: none;
223
}
224
225
/* Pseudo-rounded corners. */
226
.goog-toolbar-menu-button-outer-box,
227
.goog-toolbar-menu-button-inner-box {
228
border: 0;
229
vertical-align: top;
230
}
231
232
.goog-toolbar-menu-button-outer-box {
233
margin: 0;
234
padding: 1px 0;
235
}
236
237
.goog-toolbar-menu-button-inner-box {
238
margin: 0 -1px;
239
padding: 3px 4px;
240
}
241
242
/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */
243
* html .goog-toolbar-menu-button-inner-box {
244
/* IE6 needs to have the box shifted to make the borders line up. */
245
left: -1px;
246
}
247
248
/* Pre-IE7 BiDi fixes. */
249
/* rtl:begin:ignore */
250
* html .goog-toolbar-menu-button-rtl .goog-toolbar-menu-button-outer-box {
251
/* @noflip */ left: -1px;
252
}
253
* html .goog-toolbar-menu-button-rtl .goog-toolbar-menu-button-inner-box {
254
/* @noflip */ right: auto;
255
}
256
/* rtl:end:ignore */
257
258
/* IE7-only hack; ignored by all other browsers. */
259
*:first-child+html .goog-toolbar-menu-button-inner-box {
260
/* IE7 needs to have the box shifted to make the borders line up. */
261
left: -1px;
262
}
263
264
/* IE7 BiDi fix. */
265
/* rtl:begin:ignore */
266
*:first-child+html .goog-toolbar-menu-button-rtl
267
.goog-toolbar-menu-button-inner-box {
268
/* @noflip */ left: 1px;
269
/* @noflip */ right: auto;
270
}
271
/* rtl:end:ignore */
272
273
/* Safari-only hacks. */
274
::root .goog-toolbar-menu-button,
275
::root .goog-toolbar-menu-button-outer-box,
276
::root .goog-toolbar-menu-button-inner-box {
277
/* Required to make pseudo-rounded corners work on Safari. */
278
line-height: 0;
279
}
280
281
::root .goog-toolbar-menu-button-caption,
282
::root .goog-toolbar-menu-button-dropdown {
283
/* Required to make pseudo-rounded corners work on Safari. */
284
line-height: normal;
285
}
286
287
/* Disabled styles. */
288
.goog-toolbar-menu-button-disabled {
289
opacity: 0.3;
290
-moz-opacity: 0.3;
291
filter: alpha(opacity=30);
292
}
293
294
.goog-toolbar-menu-button-disabled .goog-toolbar-menu-button-outer-box,
295
.goog-toolbar-menu-button-disabled .goog-toolbar-menu-button-inner-box {
296
/* Disabled text/border color trumps everything else. */
297
color: #333 !important;
298
border-color: #999 !important;
299
}
300
301
/* Pre-IE7 IE hack; ignored by IE7 and all non-IE browsers. */
302
* html .goog-toolbar-menu-button-disabled {
303
/* IE can't apply alpha to an element with a transparent background... */
304
background-color: #f0f0f0;
305
margin: 0 1px;
306
padding: 0 1px;
307
}
308
309
/* IE7-only hack; ignored by all other browsers. */
310
*:first-child+html .goog-toolbar-menu-button-disabled {
311
/* IE can't apply alpha to an element with a transparent background... */
312
background-color: #f0f0f0;
313
margin: 0 1px;
314
padding: 0 1px;
315
}
316
317
/* Only draw borders when in a non-default state. */
318
.goog-toolbar-menu-button-hover .goog-toolbar-menu-button-outer-box,
319
.goog-toolbar-menu-button-active .goog-toolbar-menu-button-outer-box,
320
.goog-toolbar-menu-button-open .goog-toolbar-menu-button-outer-box {
321
border-width: 1px 0;
322
border-style: solid;
323
padding: 0;
324
}
325
326
.goog-toolbar-menu-button-hover .goog-toolbar-menu-button-inner-box,
327
.goog-toolbar-menu-button-active .goog-toolbar-menu-button-inner-box,
328
.goog-toolbar-menu-button-open .goog-toolbar-menu-button-inner-box {
329
border-width: 0 1px;
330
border-style: solid;
331
padding: 3px;
332
}
333
334
/* Hover styles. */
335
.goog-toolbar-menu-button-hover .goog-toolbar-menu-button-outer-box,
336
.goog-toolbar-menu-button-hover .goog-toolbar-menu-button-inner-box {
337
/* Hover border color trumps active/open style. */
338
border-color: #a1badf !important;
339
}
340
341
/* Active/open styles. */
342
.goog-toolbar-menu-button-active,
343
.goog-toolbar-menu-button-open {
344
/* Active/open background color wins. */
345
background-color: #dde1eb !important;
346
}
347
348
.goog-toolbar-menu-button-active .goog-toolbar-menu-button-outer-box,
349
.goog-toolbar-menu-button-active .goog-toolbar-menu-button-inner-box,
350
.goog-toolbar-menu-button-open .goog-toolbar-menu-button-outer-box,
351
.goog-toolbar-menu-button-open .goog-toolbar-menu-button-inner-box {
352
border-color: #729bd1;
353
}
354
355
/* Menu button caption style. */
356
.goog-toolbar-menu-button-caption {
357
padding: 0 4px 0 0;
358
vertical-align: middle;
359
}
360
361
/* Dropdown style. */
362
.goog-toolbar-menu-button-dropdown {
363
width: 7px;
364
/* Client apps may override the URL at which they serve the sprite. */
365
background: url(//ssl.gstatic.com/editor/editortoolbar.png) no-repeat -388px 0;
366
vertical-align: middle;
367
}
368
369
370
/*
371
* Styles used by goog.ui.ToolbarSeparatorRenderer.
372
*/
373
374
.goog-toolbar-separator {
375
margin: 0 2px;
376
border-left: 1px solid #d6d6d6;
377
border-right: 1px solid #f7f7f7;
378
padding: 0;
379
width: 0;
380
text-decoration: none;
381
list-style: none;
382
outline: none;
383
vertical-align: middle;
384
line-height: normal;
385
font-size: 120%;
386
overflow: hidden;
387
}
388
389
390
/*
391
* Additional styling for toolbar select controls, which always have borders.
392
*/
393
394
.goog-toolbar-select .goog-toolbar-menu-button-outer-box {
395
border-width: 1px 0;
396
border-style: solid;
397
padding: 0;
398
}
399
400
.goog-toolbar-select .goog-toolbar-menu-button-inner-box {
401
border-width: 0 1px;
402
border-style: solid;
403
padding: 3px;
404
}
405
406
.goog-toolbar-select .goog-toolbar-menu-button-outer-box,
407
.goog-toolbar-select .goog-toolbar-menu-button-inner-box {
408
border-color: #bfcbdf;
409
}
410
411