summaryrefslogtreecommitdiff
path: root/resources/jquery.ui/themes/vector/jquery.ui.button.css
blob: 006bbeac4141dca2cbfc968daba13145f0b34d64 (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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
/* Button
----------------------------------*/

.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
.ui-button-icons-only { width: 3.4em; }
button.ui-button-icons-only { width: 3.7em; }

/*button text element */
.ui-button .ui-button-text { display: block; line-height: 1.4;  }
.ui-button-text-only .ui-button-text { padding: 0.3em 1em 0.25em 1em; }
.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: 0.3em; text-indent: -9999999px; }
.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: 0.3em 1em 0.25em 2.1em; }
.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: 0.3em 2.1em 0.25em 1em; }
.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }

/* no icon support for input elements, provide padding by default */
input.ui-button { padding: 0.3em 1em; }

/*button icon element(s) */
.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-text-icon .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -9px; }
.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icon .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: 0.5em; }
.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icon .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: 0.5em; }

/*button sets*/
.ui-buttonset { margin-right: 7px; }
.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }

/* workarounds */
button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */

body .ui-button {
	margin: 0.5em 0 0.5em 0.4em;
	border: 1px solid #a6a6a6 !important;
	/* @embed */
	background: #f2f2f2 url(images/button-off.png) repeat-x scroll 50% 100% !important;
	cursor: pointer;
	font-size: 1em;
	line-height: 1.4em;
	width: auto;
	overflow: visible;
}

/* Corner radius */
/* This is normally handled in jquery.ui.theme.css, but in our case, the corner
   styling of our buttons doesn't match our default widget corner styling */
.ui-button.ui-corner-all, .ui-button.ui-corner-top, .ui-button.ui-corner-left, .ui-button.ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; }
.ui-button.ui-corner-all, .ui-button.ui-corner-top, .ui-button.ui-corner-right, .ui-button.ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }
.ui-button.ui-corner-all, .ui-button.ui-corner-bottom, .ui-button.ui-corner-left, .ui-button.ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
.ui-button.ui-corner-all, .ui-button.ui-corner-bottom, .ui-button.ui-corner-right, .ui-button.ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }

body .ui-button:hover {
	border-color: #6e7273;
	/* @embed */
	background: #e1e1e1 url(images/button-over.png) repeat-x scroll 50% 100% !important;
}
body .ui-button:active,
body .ui-button:focus {
	border-color: #707271;
	/* @embed */
	background: #bfbfbf url(images/button-down.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.disabled {
	color: #7f7f7f;
	border-color: #cccccc;
	/* @embed */
	background: #f2f2f2 url(images/button-disabled.png) repeat-x scroll 50% 100% !important;	
}
/* Disables the annoying dashed border Firefox puts on active buttons */
body button.ui-button::-moz-focus-inner { 
	border: 0; 
}
/* Give large buttons some extra padding */
body .ui-button-large {
	padding: 5px;
}
/* Use white icons for colored buttons */
.ui-button-green .ui-icon, .ui-button-blue .ui-icon, .ui-button-red .ui-icon, .ui-button-orange .ui-icon {
	/* @embed */
	background-image: url(images/ui-icons_ffffff_256x240.png) !important;
}

/* Green buttons */

body .ui-button.ui-button-green {
	color: white !important;
	border-color: #97af7e !important;
	/* @embed */
	background: #3cb677 url(images/button-green.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-green:hover {
	border-color: #778e61 !important;
	/* @embed */
	background: #339b65 url(images/button-green-hover.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-green.ui-button-large {
	/* @embed */
	background: #3cb677 url(images/button-green-large.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-green.ui-button-large:hover {
	/* @embed */
	background: #339b65 url(images/button-green-hover-large.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-green.disabled {
	filter:alpha(opacity=50);
	-moz-opacity:0.50;
	-khtml-opacity: 0.50;
	opacity: 0.50;
}

/* Blue buttons */

body .ui-button.ui-button-blue {
	color: white !important;
	border-color: #628acb !important;
	/* @embed */
	background: #3365ba url(images/button-blue.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-blue:hover {
	border-color: #5375ad !important;
	/* @embed */
	background: #2b569e url(images/button-blue-hover.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-blue.ui-button-large {
	/* @embed */
	background: #3365ba url(images/button-blue-large.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-blue.ui-button-large:hover {
	/* @embed */
	background: #2b569e url(images/button-blue-hover-large.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-blue.disabled {
	filter:alpha(opacity=50);
	-moz-opacity:0.50;
	-khtml-opacity: 0.50;
	opacity: 0.50;
}

/* Red buttons */

body .ui-button.ui-button-red {
	color: white !important;
	border-color: #af977e !important;
	/* @embed */
	background: #cb0000 url(images/button-red.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-red:hover {
	border-color: #8e7761 !important;
	/* @embed */
	background: #ad0000 url(images/button-red-hover.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-red.ui-button-large {
	/* @embed */
	background: #cb0000 url(images/button-red.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-red.ui-button-large:hover {
	/* @embed */
	background: #ad0000 url(images/button-red-hover.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-red.disabled {
	filter:alpha(opacity=50);
	-moz-opacity:0.50;
	-khtml-opacity: 0.50;
	opacity: 0.50;
}

/* Orange buttons */

body .ui-button.ui-button-orange {
	color: white !important;
	border-color: #f3a863 !important;
	/* @embed */
	background: #f07f14 url(images/button-orange.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-orange:hover {
	border-color: #ce9055 !important;
	/* @embed */
	background: #cc6c11 url(images/button-orange-hover.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-orange.ui-button-large {
	/* @embed */
	background: #f07f14 url(images/button-orange-large.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-orange.ui-button-large:hover {
	/* @embed */
	background: #cc6c11 url(images/button-orange-hover-large.png) repeat-x scroll 50% 100% !important;
}
body .ui-button.ui-button-orange.disabled {
	filter:alpha(opacity=50);
	-moz-opacity:0.50;
	-khtml-opacity: 0.50;
	opacity: 0.50;
}