9 $border-color-over: null,
10 $border-color-focus: null,
11 $border-color-pressed: null,
12 $border-color-disabled: null,
17 $background-color: null,
18 $background-color-over: null,
19 $background-color-focus: null,
20 $background-color-pressed: null,
21 $background-color-disabled: null,
23 $background-gradient: null,
24 $background-gradient-over: null,
25 $background-gradient-focus: null,
26 $background-gradient-pressed: null,
27 $background-gradient-disabled: null,
33 $color-disabled: null,
36 $font-size-over: null,
37 $font-size-focus: null,
38 $font-size-pressed: null,
39 $font-size-disabled: null,
42 $font-weight-over: null,
43 $font-weight-focus: null,
44 $font-weight-pressed: null,
45 $font-weight-disabled: null,
48 $font-family-over: null,
49 $font-family-focus: null,
50 $font-family-pressed: null,
51 $font-family-disabled: null,
55 .#{$prefix}btn-#{$ui} {
56 border-color: $border-color;
59 @include x-frame('btn', $ui, $border-radius, $border-width, $padding, $background-color, $background-gradient, true);
61 .#{$prefix}btn-#{$ui} .#{$prefix}btn-inner {
62 font-size: $font-size;
63 font-weight: $font-weight;
64 font-family: $font-family;
66 background-repeat: no-repeat;
67 padding: 0 $text-padding;
70 .#{$prefix}btn-#{$ui}-icon,
71 .#{$prefix}btn-#{$ui}-noicon {
73 .#{$prefix}btn-inner {
75 line-height: $icon-size;
80 .#{$prefix}btn-#{$ui}-icon {
81 .#{$prefix}btn-inner {
83 width: $icon-size !important;
87 .#{$prefix}btn-#{$ui}-icon-text-left {
91 .#{$prefix}btn-inner {
93 line-height: $icon-size;
94 padding-left: $icon-size + 4px;
98 .#{$prefix}btn-#{$ui}-icon-text-right {
102 .#{$prefix}btn-inner {
104 line-height: $icon-size;
105 padding-right: $icon-size + 4px !important;
109 .#{$prefix}btn-#{$ui}-icon-text-top {
110 .#{$prefix}btn-inner {
111 padding-top: $icon-size + 4px;
115 .#{$prefix}btn-#{$ui}-icon-text-bottom {
116 .#{$prefix}btn-inner {
117 padding-bottom: $icon-size + 4px;
121 .#{$prefix}btn-#{$ui}-over {
122 @if $border-color-over != $border-color {
123 border-color: $border-color-over;
125 @if $background-color-over != null {
126 @if $background-gradient-over != $background-gradient {
127 @include background-gradient($background-color-over, $background-gradient-over);
129 @else if $background-color-over != $background-color {
130 background-color: $background-color-over;
134 .#{$prefix}btn-inner {
135 @if $color-over != $color {
138 @if $font-weight-over != $font-weight {
139 font-weight: $font-weight-over;
141 @if $font-size-over != $font-size {
142 font-size: $font-size-over;
144 @if $font-family-over != $font-family {
145 font-family: $font-family-over;
150 .#{$prefix}btn-#{$ui}-focus {
151 @if $border-color-focus != $border-color {
152 border-color: $border-color-focus;
154 @if $background-color-focus != null {
155 @if $background-gradient-focus != $background-gradient {
156 @include background-gradient($background-color-focus, $background-gradient-focus);
158 @else if $background-color-focus != $background-color {
159 background-color: $background-color-focus;
163 .#{$prefix}btn-inner {
164 @if $color-focus != $color {
167 @if $font-weight-focus != $font-weight {
168 font-weight: $font-weight-focus;
170 @if $font-size-focus != $font-size {
171 font-size: $font-size-focus;
173 @if $font-family-focus != $font-family {
174 font-family: $font-family-focus;
179 .#{$prefix}btn-#{$ui}-menu-active,
180 .#{$prefix}btn-#{$ui}-pressed {
181 @if $border-color-pressed != $border-color {
182 border-color: $border-color-pressed;
184 @if $background-color-pressed != null {
185 @if $background-gradient-pressed != $background-gradient {
186 @include background-gradient($background-color-pressed, $background-gradient-pressed);
188 @else if $background-color-pressed != $background-color {
189 background-color: $background-color-pressed;
193 .#{$prefix}btn-inner {
194 @if $color-pressed != $color {
195 color: $color-pressed;
197 @if $font-weight-pressed != $font-weight {
198 font-weight: $font-weight-pressed;
200 @if $font-size-pressed != $font-size {
201 font-size: $font-size-pressed;
203 @if $font-family-pressed != $font-family {
204 font-family: $font-family-pressed;
209 .#{$prefix}btn-#{$ui}-disabled {
210 @if $border-color-disabled != $border-color {
211 border-color: $border-color-disabled;
213 @if $background-color-disabled != null {
214 @if $background-gradient-disabled != $background-gradient {
215 @include background-gradient($background-color-disabled, $background-gradient-disabled);
217 @else if $background-color-disabled != $background-color {
218 background-color: $background-color-disabled;
222 .#{$prefix}btn-inner {
223 @if $color-disabled != $color {
224 color: $color !important;
226 @if $font-weight-disabled != $font-weight {
227 font-weight: $font-weight-disabled;
229 @if $font-size-disabled != $font-size {
230 font-size: $font-size-disabled;
232 @if $font-family-disabled != $font-family {
233 font-family: $font-family-disabled;
238 .#{$prefix}ie .#{$prefix}btn-#{$ui}-disabled {
239 .#{$prefix}btn-inner {
240 color: darken($color-disabled, 20) !important;
244 .#{$prefix}ie6 .#{$prefix}btn-#{$ui}-disabled {
245 .#{$prefix}btn-inner {
246 color: $color-disabled !important;
250 @if not $supports-border-radius or $compile-all {
252 .#{$prefix}btn-#{$ui}-over {
258 .#{$prefix}frame-bc {
259 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-over-corners.gif');
262 .#{$prefix}frame-mr {
263 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-over-sides.gif');
265 .#{$prefix}frame-mc {
266 background-color: $background-color-over;
267 @if $background-gradient-over {
268 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-over-bg.gif');
273 .#{$prefix}btn-#{$ui}-focus {
279 .#{$prefix}frame-bc {
280 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-focus-corners.gif');
283 .#{$prefix}frame-mr {
284 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-focus-sides.gif');
286 .#{$prefix}frame-mc {
287 background-color: $background-color-focus;
288 @if $background-gradient-focus {
289 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-focus-bg.gif');
294 .#{$prefix}btn-#{$ui}-menu-active,
295 .#{$prefix}btn-#{$ui}-pressed {
301 .#{$prefix}frame-bc {
302 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-pressed-corners.gif');
305 .#{$prefix}frame-mr {
306 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-pressed-sides.gif');
308 .#{$prefix}frame-mc {
309 background-color: $background-color-pressed;
310 @if $background-gradient-pressed {
311 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-pressed-bg.gif');
316 .#{$prefix}btn-#{$ui}-disabled {
322 .#{$prefix}frame-bc {
323 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-disabled-corners.gif');
326 .#{$prefix}frame-mr {
327 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-disabled-sides.gif');
329 .#{$prefix}frame-mc {
330 background-color: $background-color-disabled;
331 @if $background-gradient-disabled {
332 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-disabled-bg.gif');
339 @if not $supports-gradients or $compile-all {
340 @if $background-gradient != null {
342 .#{$prefix}btn-#{$ui} {
343 background-repeat: repeat-x;
344 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-bg.gif');
349 @if $background-gradient-over != null {
351 .#{$prefix}btn-#{$ui}-over {
352 background-repeat: repeat-x;
353 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-over-bg.gif');
358 @if $background-gradient-focus != null {
360 .#{$prefix}btn-#{$ui}-focus {
361 background-repeat: repeat-x;
362 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-focus-bg.gif');
367 @if $background-gradient-pressed != null {
369 .#{$prefix}btn-#{$ui}-menu-active,
370 .#{$prefix}btn-#{$ui}-pressed {
371 background-repeat: repeat-x;
372 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-pressed-bg.gif');
377 @if $background-gradient-disabled != null {
379 .#{$prefix}btn-#{$ui}-disabled {
380 background-repeat: repeat-x;
381 background-image: theme-image($theme-name, 'btn/btn-#{$ui}-disabled-bg.gif');