/
buttons.scss
576 lines (496 loc) · 13.9 KB
/
buttons.scss
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
/*************************GO-LICENSE-START*********************************
* Copyright 2014 ThoughtWorks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*************************GO-LICENSE-END***********************************/
/**
* Buttons.css
*/
/**
* TABLE OF CONTENTS
*
* TODO: NEEDS MIGRATING
*/
/**
* TODO: NEEDS MIGRATING
*/
/* Buttons grouping */
.form_buttons {
padding: 8px;
margin-bottom: 10px;
background-color: #999;
background-repeat: repeat-x;
background-position: center center;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
border: 0;
-moz-box-shadow: inset 0 0 4px #666;
}
.form_buttons button,
.form_buttons a.link_as_button{
height: 27px;
}
.form_buttons button.submit:hover,
.form_buttons button.submit_hover,
.form_buttons a.link_as_button_hover{
height: 27px;
}
.admin_wrapper .form_buttons {
margin: 10px 0 0 0;
}
button,
a.link_as_button {
position: relative;
border: 0;
padding: 0;
cursor: pointer;
overflow: visible; /* removes extra side padding in IE */
font-weight: normal;
line-height: 13px; /* button defaults to 13, need to set both so they look the same/fixes height issue */;
}
button::-moz-focus-inner,
a.link_as_button::-moz-focus-inner {
border: none; /* overrides extra padding in Firefox */
}
button span,
a.link_as_button span {
position: relative;
display: block;
white-space: nowrap;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
/* Safari and Google Chrome only - fix margins */
button span,
a.link_as_button span {
margin-top: -1px;
}
}
/*shared all buttons*/
input[type='submit'],
input[type='submit']:hover,
button.submit,
button.submit:hover,
button.submit_hover,
button.submit.header_submit,
button.submit.header_submit:hover,
button.submit_hover.header_submit,
button.ui-state-default,
button.ui-state-default:hover,
a.link_as_button,
a.link_as_button:hover,
a.link_as_button_hover,
a.link_as_header_button,
a.link_as_header_button:hover,
a.link_as_header_button_hover,
button.submit.disabled,
button.submit.disabled:hover,
button.submit.disabled_hover,
button.submit.header_submit.disabled,
button.submit.header_submit.disabled:hover,
button.submit.header_submit.disabled_hover,
input.submit,
input.submit:hover,
input.submit_hover,
input.submit.disabled,
input.submit.disabled:hover,
input.submit.disabled_hover,
a.link_as_button.disabled,
a.link_as_button.disabled:hover,
a.link_as_button_hover.disabled
a.link_as_header_button.disabled,
a.link_as_header_button.disabled:hover,
a.link_as_header_button_hover.disabled {
padding: 6px 8px;
margin-left:5px;
text-align: center;
background: #444 image_url('g9/backgrounds/overlay_gradient_button.png') repeat-x bottom left;
color: #FFF;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
-moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
font-size: 11px;
text-transform: uppercase;
}
a.link_as_header_button,
a.link_as_header_button:hover,
a.link_as_header_button_hover,
a.link_as_header_button.disabled,
a.link_as_header_button.disabled:hover,
a.link_as_header_button_hover.disabled{
float: left;
}
button.submit.header_submit,
button.submit.header_submit:hover,
button.submit.header_submit_hover,
a.link_as_header_button,
a.link_as_header_button:hover,
a.link_as_header_button_hover,
a.link_as_header_button.disabled,
a.link_as_header_button.disabled:hover,
a.link_as_header_button_hover.disabled {
background-color: #DDD;
color: #000;
}
#job_actions button.submit { /* styling for the jobs listing tab rerun button */
margin-bottom: 10px;
}
#config_save_actions button.primary {
padding: 2px 5px;
margin-right:5px;
text-align: center;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
-moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
font-size: 11px;
color: white;
text-transform: uppercase;
}
#config_save_actions button.primary {
padding: 2px 5px;
margin-right:5px;
text-align: center;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
-moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
font-size: 11px;
color: white;
text-transform: uppercase;
}
#config_save_actions button.primary {
padding: 5px 10px;
margin-right:5px;
text-align: center;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
-moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
font-size: 11px;
color: white;
text-transform: uppercase;
}
.form_buttons button.submit {
min-width: 120px;
}
button.submit_small,
button.submit_small:hover
{
padding: 4px 6px;
}
a.link_as_button {
float: left;
}
.pipeline_bundle div.pipeline button.submit,
.pipeline_bundle div.pipeline a.link_as_button {
}
button.submit,
a.link_as_button {
color:#fff;
}
button.submit.header_submit {
color:#000;
}
button.submit span,
a.link_as_button span{
padding: 0;
color: #fff;
font-size: 11px;
height: auto;
background: none;
}
button.submit.header_submit span{
padding: 0;
color: #000;
font-size: 11px;
height: auto;
padding-right: 15px;
background-image: image_url('g9/button_select_icon_dark.png');
background-position: right center;
background-repeat: no-repeat;
display: block;
}
button.submit:hover,
button.submit_hover,
a.link_as_button:hover,
a.link_as_button_hover,
a.link_as_header_button:hover,
a.link_as_header_button_hover { /* the redundant class is used to apply the hover state with a script */
background-color: #666;
color:#fff;
height: auto;
}
button.submit.header_submit:hover,
button.submit.header_submit_hover { /* the redundant class is used to apply the hover state with a script */
background-color: #666;
color:#fff;
height: auto;
}
button.submit:hover span,
button.submit_hover span,
a.link_as_button:hover span,
a.link_as_button_hover span {
padding: 0;
color:#fff;
height: auto;
}
button.submit.header_submit:hover span {
background-image: image_url('g9/button_select_icon.png');
color: #FFF;
padding: 0 15px 0 0;
}
button.primary,
a.primary_link_as_button {
background-color: #3399CC !important;
}
button.primary:hover,
a.primary_link_as_button:hover {
background-color: #52b3e3 !important;
}
button.primary span{
color: #FFF !important;
}
a.reset_button{
float: left;
}
/* for the pause button */
.unpause_wrapper button.primary {
background-color: #3399cc !important;
height:22px;
}
.unpause_wrapper button.primary:hover {
background-color: #52b3e3 !important;
}
//*html button.submit{
// m: expression(this.onmouseover=new Function("this.className = 'submit_hover';"));
//}
//*html button.submit_hover{
// m: expression(this.onmouseout=new Function("this.className = 'submit';"));
//}
//
//*html a.link_as_button{
// width: 0;
//}
//*html a.link_as_button_hover{
// width: 0;
//}
//*html a.link_as_button_hover span{
// white-space: nowrap;
// display:inline-block;
// position: relative;
//}
button.submit.disabled,
button.submit.disabled:hover {
cursor: default;
background-color: #CCC;
}
button.submit.disabled:hover span {
padding: 0;
height:auto;
}
button.submit.disabled span,
a.link_as_button.disabled span,
a.link_as_button.disabled span:hover,
a.link_as_button_hover.disabled span
{
color: #FFF;
text-shadow: -1px -1px 1px #AAA;
}
/* Select Button (drop down) styles */
button.submit span img,
button.submit:hover span img,
button.submit_hover span img {
position: relative;
top: -1px;
margin-left: 7px;
margin-right: -2px;
}
/* pipeline module buttons */
.changes_button_wrapper button.submit,
.operate button.submit,
.deploy button.submit {
background-color: #f6f6f6;
}
.changes_button_wrapper button.submit span,
.operate button.submit span,
.deploy button.submit span {
color: #333;
}
.changes_button_wrapper button.submit:hover,
.operate button.submit:hover,
.deploy button.submit:hover {
background-color: #666;
}
.changes_button_wrapper button.submit:hover span,
.operate button.submit:hover span,
.deploy button.submit:hover span {
color: #fff;
}
.trigger_with_options_wrapper button.disabled:hover{
background-color: #f6f6f6;
}
.trigger_wrapper button.disabled:hover {
background-color: #f6f6f6;
}
/*Image Buttons*/
.trigger_with_options_wrapper button.image,
.trigger_with_options_wrapper button.image:hover,
.trigger_wrapper button.image,
.trigger_wrapper button.image:hover,
.pause_wrapper button.image,
.pause_wrapper button.image:hover,
.unpause_wrapper button.image,
.unpause_wrapper button.image:hover
{
padding: 0;
}
.trigger_with_options_wrapper button.image span,
.trigger_with_options_wrapper button.image:hover span,
.trigger_wrapper button.image span,
.trigger_wrapper button.image:hover span,
.pause_wrapper button.image span,
.pause_wrapper button.image:hover span,
.unpause_wrapper button.image span,
.unpause_wrapper button.image:hover span{
width: 37px;
height: 22px;
}
.trigger_with_options_wrapper button.image span{
background: image_url('g9/icons/bg_sprite_pipeline_actions.png') -74px -30px no-repeat transparent;
}
.trigger_with_options_wrapper button.image:hover span{
background: image_url('g9/icons/bg_sprite_pipeline_actions.png') -74px 0 no-repeat transparent;
}
.trigger_wrapper button.image span{
background: image_url('g9/icons/bg_sprite_pipeline_actions.png') -37px -30px no-repeat transparent;
}
.trigger_wrapper button.image:hover span{
background: image_url('g9/icons/bg_sprite_pipeline_actions.png') -37px 0 no-repeat transparent;
}
.pause_wrapper button.image span{
background: image_url('g9/icons/bg_sprite_pipeline_actions.png') 0 -30px no-repeat transparent;
}
.pause_wrapper button.image:hover span{
background: image_url('g9/icons/bg_sprite_pipeline_actions.png') 0 0 no-repeat transparent;
}
.unpause_wrapper button.image span{
background: image_url('g9/icons/bg_sprite_pipeline_actions.png') 0 0 no-repeat transparent;
}
.unpause_wrapper button.image:hover span{
background: image_url('g9/icons/bg_sprite_pipeline_actions.png') 0 0 no-repeat transparent;
}
.trigger_with_options_wrapper button.disabled span,
.trigger_with_options_wrapper button.disabled:hover span{
background: image_url('g9/icons/bg_sprite_pipeline_actions.png') -74px -60px no-repeat transparent;
}
.trigger_wrapper button.disabled span,
.trigger_wrapper button.disabled:hover span{
background: image_url('g9/icons/bg_sprite_pipeline_actions.png') -37px -60px no-repeat transparent;
}
.pause_wrapper button.disabled span,
.pause_wrapper button.disabled:hover span{
background: image_url('g9/icons/bg_sprite_pipeline_actions.png') 0 -60px no-repeat transparent;
}
.unpause_wrapper button.disabled span,
.unpause_wrapper button.disabled:hover span{
background: image_url('g9/icons/bg_sprite_pipeline_actions.png') 0 -60px no-repeat transparent;
}
/* add special stuffs when they are in the edit panel */
.edit_panel button.submit,
.edit_panel a.link_as_button{
background: image_url('g9/backgrounds/overlay_gradient_button.png') repeat-x left bottom #F6F6F6;
-moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2) inset;
-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2) inset;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.2) inset;
}
.edit_panel button.submit:hover,
.edit_panel a.link_as_button:hover {
background-color: #F6F6F6;
-moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.6) inset;
-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.6) inset;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.6) inset;
}
.edit_panel button span,
.edit_panel a.link_as_button span,
.edit_panel button:hover span,
.edit_panel a.link_as_button:hover span,
.edit_panel a.link_as_button_hover span {
color: #333;
}
#agents_form .edit_panel .download_agent {
float:right;
margin-right: 0;
}
*+html #agents_form .edit_panel .download_agent {
padding-top: 8px;
padding-bottom: 10px;
}
#agents_form .edit_panel .download_agent span {
text-transform: uppercase;
}
#agents_form .edit_panel a:hover {
text-decoration: none;
}
input[type='submit']{
min-width: 100px;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
line-height: 11px;
padding: 6px 8px;
margin: 0;
border: 0px none;
text-align: center;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
font-size: 11px;
color: white;
text-transform: uppercase;
height: 25px;
cursor: pointer;
}
input[type='submit']:hover {
padding: 6px 8px;
margin-left: 0;
background-color: #666666;
}
input[type='submit'].primary, .buttons-group .primary{
background-color: #3399CC;
}
input[type='submit'].primary:hover, .buttons-group .primary:hover{
background-color: #52b3e3;
}
input[type='submit'][disabled='disabled']{
-moz-opacity: 0.50;
opacity:.50;
filter: alpha(opacity=50);
cursor: default;
}
input[type='submit'][disabled='disabled'].primary:hover{
background-color: #3399CC !important;
}
button.edit-environment {
float: right;
margin-right: 5px;
}