3 * Used to create the base structure of an Ext.Button
17 vertical-align: middle;
24 background-repeat: no-repeat;
27 background-repeat: no-repeat;
29 // Styles for an anchor button.
31 text-decoration: none;
32 display: inline-block;
45 vertical-align: bottom;
46 -webkit-appearance: none;
54 .#{$prefix}btn-inner {
58 background-color: transparent;
59 background-repeat: no-repeat;
60 background-position: left center;
64 .#{$prefix}btn-disabled {
68 .#{$prefix}btn-disabled span {
77 //remove the opacity rule of IE8
78 .#{$prefix}ie7 .#{$prefix}btn-disabled,
79 .#{$prefix}ie8 .#{$prefix}btn-disabled {
83 .#{$prefix}ie6 .#{$prefix}btn-disabled,
84 .#{$prefix}ie7 .#{$prefix}btn-disabled,
85 .#{$prefix}ie8 .#{$prefix}btn-disabled {
92 * html .#{$prefix}ie {
93 .#{$prefix}btn button {
98 .#{$prefix}ie .#{$prefix}btn button {
99 overflow-x: visible; /*prevents extra horiz space in IE*/
100 vertical-align: baseline; /*IE doesn't like bottom*/
103 .#{$prefix}strict .#{$prefix}ie6,
104 .#{$prefix}strict .#{$prefix}ie7 {
105 .#{$prefix}btn .#{$prefix}frame-mc {
111 @if not $supports-border-radius or $compile-all {
114 .#{$prefix}frame-mc {
115 vertical-align: middle;
124 .#{$prefix}btn-icon-text-left .#{$prefix}btn-icon {
125 background-position: left center;
128 .#{$prefix}btn-icon-text-right .#{$prefix}btn-icon {
129 background-position: right center;
132 .#{$prefix}btn-icon-text-top .#{$prefix}btn-icon {
133 background-position: center top;
136 .#{$prefix}btn-icon-text-bottom .#{$prefix}btn-icon {
137 background-position: center bottom;
144 .#{$prefix}btn-icon {
146 background-repeat: no-repeat;
151 .#{$prefix}btn-arrow-right {
152 background: transparent no-repeat right center;
153 padding-right: $button-arrow-size;
155 .#{$prefix}btn-inner {
156 padding-right: 0 !important;
160 .#{$prefix}toolbar .#{$prefix}btn-arrow-right {
161 padding-right: $button-toolbar-arrow-size;
164 .#{$prefix}btn-arrow-bottom {
165 background: transparent no-repeat center bottom;
166 padding-bottom: $button-arrow-size;
169 .#{$prefix}btn-arrow {
170 @include theme-background-image($theme-name, 'button/arrow.gif');
176 .#{$prefix}btn-split-right,
177 .#{$prefix}btn-over .#{$prefix}btn-split-right {
178 background: transparent no-repeat right center;
179 @include theme-background-image($theme-name, 'button/s-arrow.gif');
180 padding-right: $button-split-size !important;
183 .#{$prefix}btn-split-bottom,
184 .#{$prefix}btn-over .#{$prefix}btn-split-bottom {
185 background: transparent no-repeat center bottom;
186 @include theme-background-image($theme-name, 'button/s-arrow-b.gif');
187 padding-bottom: $button-split-size;
190 .#{$prefix}toolbar .#{$prefix}btn-split-right {
191 @include theme-background-image($theme-name, 'button/s-arrow-noline.gif');
192 padding-right: $button-toolbar-split-size !important;
195 .#{$prefix}toolbar .#{$prefix}btn-split-bottom {
196 @include theme-background-image($theme-name, 'button/s-arrow-b-noline.gif');
199 .#{$prefix}btn-split {
203 .#{$prefix}item-disabled,
204 .#{$prefix}item-disabled * {
208 .#{$prefix}cycle-fixed-width .#{$prefix}btn-inner {
212 .#{$prefix}btn-over .#{$prefix}btn-split-right { @include theme-background-image($theme-name, 'button/s-arrow-o.gif'); }
213 .#{$prefix}btn-over .#{$prefix}btn-split-bottom { @include theme-background-image($theme-name, 'button/s-arrow-bo.gif'); }
215 @include extjs-button-ui(
219 $button-small-border-radius,
220 $button-small-border-width,
222 $button-default-border-color,
223 $button-default-border-color-over,
224 $button-default-border-color-focus,
225 $button-default-border-color-pressed,
226 $button-default-border-color-disabled,
228 $button-small-padding,
229 $button-small-text-padding,
231 $button-default-background-color,
232 $button-default-background-color-over,
233 $button-default-background-color-focus,
234 $button-default-background-color-pressed,
235 $button-default-background-color-disabled,
237 $button-default-background-gradient,
238 $button-default-background-gradient-over,
239 $button-default-background-gradient-focus,
240 $button-default-background-gradient-pressed,
241 $button-default-background-gradient-disabled,
243 $button-default-color,
244 $button-default-color-over,
245 $button-default-color-focus,
246 $button-default-color-pressed,
247 $button-default-color-disabled,
249 $button-small-font-size,
250 $button-small-font-size-over,
251 $button-small-font-size-focus,
252 $button-small-font-size-pressed,
253 $button-small-font-size-disabled,
255 $button-small-font-weight,
256 $button-small-font-weight-over,
257 $button-small-font-weight-focus,
258 $button-small-font-weight-pressed,
259 $button-small-font-weight-disabled,
261 $button-small-font-family,
262 $button-small-font-family-over,
263 $button-small-font-family-focus,
264 $button-small-font-family-pressed,
265 $button-small-font-family-disabled,
267 $button-small-icon-size
270 @include extjs-button-ui(
273 $button-medium-border-radius,
274 $button-medium-border-width,
276 $button-default-border-color,
277 $button-default-border-color-over,
278 $button-default-border-color-focus,
279 $button-default-border-color-pressed,
280 $button-default-border-color-disabled,
282 $button-medium-padding,
283 $button-medium-text-padding,
285 $button-default-background-color,
286 $button-default-background-color-over,
287 $button-default-background-color-focus,
288 $button-default-background-color-pressed,
289 $button-default-background-color-disabled,
291 $button-default-background-gradient,
292 $button-default-background-gradient-over,
293 $button-default-background-gradient-focus,
294 $button-default-background-gradient-pressed,
295 $button-default-background-gradient-disabled,
297 $button-default-color,
298 $button-default-color-over,
299 $button-default-color-focus,
300 $button-default-color-pressed,
301 $button-default-color-disabled,
303 $button-medium-font-size,
304 $button-medium-font-size-over,
305 $button-medium-font-size-focus,
306 $button-medium-font-size-pressed,
307 $button-medium-font-size-disabled,
309 $button-medium-font-weight,
310 $button-medium-font-weight-over,
311 $button-medium-font-weight-focus,
312 $button-medium-font-weight-pressed,
313 $button-medium-font-weight-disabled,
315 $button-medium-font-family,
316 $button-medium-font-family-over,
317 $button-medium-font-family-focus,
318 $button-medium-font-family-pressed,
319 $button-medium-font-family-disabled,
321 $button-medium-icon-size
324 @include extjs-button-ui(
327 $button-large-border-radius,
328 $button-large-border-width,
330 $button-default-border-color,
331 $button-default-border-color-over,
332 $button-default-border-color-focus,
333 $button-default-border-color-pressed,
334 $button-default-border-color-disabled,
336 $button-large-padding,
337 $button-large-text-padding,
339 $button-default-background-color,
340 $button-default-background-color-over,
341 $button-default-background-color-focus,
342 $button-default-background-color-pressed,
343 $button-default-background-color-disabled,
345 $button-default-background-gradient,
346 $button-default-background-gradient-over,
347 $button-default-background-gradient-focus,
348 $button-default-background-gradient-pressed,
349 $button-default-background-gradient-disabled,
351 $button-default-color,
352 $button-default-color-over,
353 $button-default-color-focus,
354 $button-default-color-pressed,
355 $button-default-color-disabled,
357 $button-large-font-size,
358 $button-large-font-size-over,
359 $button-large-font-size-focus,
360 $button-large-font-size-pressed,
361 $button-large-font-size-disabled,
363 $button-large-font-weight,
364 $button-large-font-weight-over,
365 $button-large-font-weight-focus,
366 $button-large-font-weight-pressed,
367 $button-large-font-weight-disabled,
369 $button-large-font-family,
370 $button-large-font-family-over,
371 $button-large-font-family-focus,
372 $button-large-font-family-pressed,
373 $button-large-font-family-disabled,
375 $button-large-icon-size
378 @include extjs-button-ui(
379 'default-toolbar-small',
381 $button-small-border-radius,
382 $button-small-border-width,
384 $button-toolbar-border-color,
385 $button-toolbar-border-color-over,
386 $button-toolbar-border-color-focus,
387 $button-toolbar-border-color-pressed,
388 $button-toolbar-border-color-disabled,
390 $button-small-padding,
391 $button-small-text-padding,
393 $button-toolbar-background-color,
394 $button-toolbar-background-color-over,
395 $button-toolbar-background-color-focus,
396 $button-toolbar-background-color-pressed,
397 $button-toolbar-background-color-disabled,
399 $button-toolbar-background-gradient,
400 $button-toolbar-background-gradient-over,
401 $button-toolbar-background-gradient-focus,
402 $button-toolbar-background-gradient-pressed,
403 $button-toolbar-background-gradient-disabled,
405 $button-toolbar-color,
406 $button-toolbar-color-over,
407 $button-toolbar-color-focus,
408 $button-toolbar-color-pressed,
409 $button-toolbar-color-disabled,
411 $button-small-font-size,
412 $button-small-font-size-over,
413 $button-small-font-size-focus,
414 $button-small-font-size-pressed,
415 $button-small-font-size-disabled,
417 $button-small-font-weight,
418 $button-small-font-weight-over,
419 $button-small-font-weight-focus,
420 $button-small-font-weight-pressed,
421 $button-small-font-weight-disabled,
423 $button-small-font-family,
424 $button-small-font-family-over,
425 $button-small-font-family-focus,
426 $button-small-font-family-pressed,
427 $button-small-font-family-disabled,
429 $button-small-icon-size
432 @include extjs-button-ui(
433 'default-toolbar-medium',
435 $button-medium-border-radius,
436 $button-medium-border-width,
438 $button-toolbar-border-color,
439 $button-toolbar-border-color-over,
440 $button-toolbar-border-color-focus,
441 $button-toolbar-border-color-pressed,
442 $button-toolbar-border-color-disabled,
444 $button-medium-padding,
445 $button-medium-text-padding,
447 $button-toolbar-background-color,
448 $button-toolbar-background-color-over,
449 $button-toolbar-background-color-focus,
450 $button-toolbar-background-color-pressed,
451 $button-toolbar-background-color-disabled,
453 $button-toolbar-background-gradient,
454 $button-toolbar-background-gradient-over,
455 $button-toolbar-background-gradient-focus,
456 $button-toolbar-background-gradient-pressed,
457 $button-toolbar-background-gradient-disabled,
459 $button-toolbar-color,
460 $button-toolbar-color-over,
461 $button-toolbar-color-focus,
462 $button-toolbar-color-pressed,
463 $button-toolbar-color-disabled,
465 $button-medium-font-size,
466 $button-medium-font-size-over,
467 $button-medium-font-size-focus,
468 $button-medium-font-size-pressed,
469 $button-medium-font-size-disabled,
471 $button-medium-font-weight,
472 $button-medium-font-weight-over,
473 $button-medium-font-weight-focus,
474 $button-medium-font-weight-pressed,
475 $button-medium-font-weight-disabled,
477 $button-medium-font-family,
478 $button-medium-font-family-over,
479 $button-medium-font-family-focus,
480 $button-medium-font-family-pressed,
481 $button-medium-font-family-disabled,
483 $button-medium-icon-size
486 @include extjs-button-ui(
487 'default-toolbar-large',
489 $button-large-border-radius,
490 $button-large-border-width,
492 $button-toolbar-border-color,
493 $button-toolbar-border-color-over,
494 $button-toolbar-border-color-focus,
495 $button-toolbar-border-color-pressed,
496 $button-toolbar-border-color-disabled,
498 $button-large-padding,
499 $button-large-text-padding,
501 $button-toolbar-background-color,
502 $button-toolbar-background-color-over,
503 $button-toolbar-background-color-focus,
504 $button-toolbar-background-color-pressed,
505 $button-toolbar-background-color-disabled,
507 $button-toolbar-background-gradient,
508 $button-toolbar-background-gradient-over,
509 $button-toolbar-background-gradient-focus,
510 $button-toolbar-background-gradient-pressed,
511 $button-toolbar-background-gradient-disabled,
513 $button-toolbar-color,
514 $button-toolbar-color-over,
515 $button-toolbar-color-focus,
516 $button-toolbar-color-pressed,
517 $button-toolbar-color-disabled,
519 $button-large-font-size,
520 $button-large-font-size-over,
521 $button-large-font-size-focus,
522 $button-large-font-size-pressed,
523 $button-large-font-size-disabled,
525 $button-large-font-weight,
526 $button-large-font-weight-over,
527 $button-large-font-weight-focus,
528 $button-large-font-weight-pressed,
529 $button-large-font-weight-disabled,
531 $button-large-font-family,
532 $button-large-font-family-over,
533 $button-large-font-family-focus,
534 $button-large-font-family-pressed,
535 $button-large-font-family-disabled,
537 $button-large-icon-size
540 .#{$prefix}btn-default-toolbar-small-disabled,
541 .#{$prefix}btn-default-toolbar-medium-disabled,
542 .#{$prefix}btn-default-toolbar-large-disabled {
543 border-color: transparent;
545 background-image: none;
546 background: transparent;
550 @mixin extjs-button-ui(
558 $border-color-over: null,
559 $border-color-focus: null,
560 $border-color-pressed: null,
561 $border-color-disabled: null,
566 $background-color: null,
567 $background-color-over: null,
568 $background-color-focus: null,
569 $background-color-pressed: null,
570 $background-color-disabled: null,
572 $background-gradient: null,
573 $background-gradient-over: null,
574 $background-gradient-focus: null,
575 $background-gradient-pressed: null,
576 $background-gradient-disabled: null,
581 $color-pressed: null,
582 $color-disabled: null,
585 $font-size-over: null,
586 $font-size-focus: null,
587 $font-size-pressed: null,
588 $font-size-disabled: null,
591 $font-weight-over: null,
592 $font-weight-focus: null,
593 $font-weight-pressed: null,
594 $font-weight-disabled: null,
597 $font-family-over: null,
598 $font-family-focus: null,
599 $font-family-pressed: null,
600 $font-family-disabled: null,
604 .#{$prefix}btn-#{$ui} {
605 border-color: $border-color;
608 @include x-frame('btn', $ui, $border-radius, $border-width, $padding, $background-color, $background-gradient, true);
610 .#{$prefix}btn-#{$ui} .#{$prefix}btn-inner {
611 font-size: $font-size;
612 font-weight: $font-weight;
613 font-family: $font-family;
615 background-repeat: no-repeat;
616 padding: 0 $text-padding;
619 .#{$prefix}btn-#{$ui}-icon,
620 .#{$prefix}btn-#{$ui}-noicon {
622 .#{$prefix}btn-inner {
624 line-height: $icon-size;
629 .#{$prefix}btn-#{$ui}-icon {
632 width: $icon-size !important;
636 .#{$prefix}btn-icon {
646 .#{$prefix}btn-#{$ui}-icon-text-left {
650 .#{$prefix}btn-inner {
652 line-height: $icon-size;
653 padding-left: $icon-size + 4px;
656 .#{$prefix}btn-icon {
665 .#{$prefix}quirks & {
671 .#{$prefix}btn-#{$ui}-icon-text-right {
675 .#{$prefix}btn-inner {
677 line-height: $icon-size;
678 padding-right: $icon-size + 4px !important;
681 .#{$prefix}btn-icon {
690 .#{$prefix}quirks & {
696 .#{$prefix}btn-#{$ui}-icon-text-top {
697 .#{$prefix}btn-inner {
698 padding-top: $icon-size + 4px;
701 .#{$prefix}btn-icon {
710 .#{$prefix}quirks & {
716 .#{$prefix}btn-#{$ui}-icon-text-bottom {
717 .#{$prefix}btn-inner {
718 padding-bottom: $icon-size + 4px;
721 .#{$prefix}btn-icon {
730 .#{$prefix}quirks & {
736 .#{$prefix}btn-#{$ui}-over {
737 @if $border-color-over != $border-color {
738 border-color: $border-color-over;
740 @if $background-color-over != null {
741 @include background-gradient($background-color-over, $background-gradient-over);
744 .#{$prefix}btn-inner {
745 @if $color-over != $color {
748 @if $font-weight-over != $font-weight {
749 font-weight: $font-weight-over;
751 @if $font-size-over != $font-size {
752 font-size: $font-size-over;
754 @if $font-family-over != $font-family {
755 font-family: $font-family-over;
760 .#{$prefix}btn-#{$ui}-focus {
761 @if $border-color-focus != $border-color {
762 border-color: $border-color-focus;
764 @if $background-color-focus != null {
765 @include background-gradient($background-color-focus, $background-gradient-focus);
768 .#{$prefix}btn-inner {
769 @if $color-focus != $color {
772 @if $font-weight-focus != $font-weight {
773 font-weight: $font-weight-focus;
775 @if $font-size-focus != $font-size {
776 font-size: $font-size-focus;
778 @if $font-family-focus != $font-family {
779 font-family: $font-family-focus;
784 .#{$prefix}btn-#{$ui}-menu-active,
785 .#{$prefix}btn-#{$ui}-pressed {
786 @if $border-color-pressed != $border-color {
787 border-color: $border-color-pressed;
789 @if $background-color-pressed != null {
790 @include background-gradient($background-color-pressed, $background-gradient-pressed);
793 .#{$prefix}btn-inner {
794 @if $color-pressed != $color {
795 color: $color-pressed;
797 @if $font-weight-pressed != $font-weight {
798 font-weight: $font-weight-pressed;
800 @if $font-size-pressed != $font-size {
801 font-size: $font-size-pressed;
803 @if $font-family-pressed != $font-family {
804 font-family: $font-family-pressed;
809 .#{$prefix}btn-#{$ui}-disabled {
810 @if $border-color-disabled != $border-color {
811 border-color: $border-color-disabled;
813 @if $background-color-disabled != null {
814 @include background-gradient($background-color-disabled, $background-gradient-disabled);
817 .#{$prefix}btn-inner {
818 @if $color-disabled != $color {
819 color: $color !important;
821 @if $font-weight-disabled != $font-weight {
822 font-weight: $font-weight-disabled;
824 @if $font-size-disabled != $font-size {
825 font-size: $font-size-disabled;
827 @if $font-family-disabled != $font-family {
828 font-family: $font-family-disabled;
833 .#{$prefix}ie .#{$prefix}btn-#{$ui}-disabled {
834 .#{$prefix}btn-inner {
835 @if $color-disabled != $color {
836 color: darken($color-disabled, 20) !important;
841 .#{$prefix}ie6 .#{$prefix}btn-#{$ui}-disabled {
842 .#{$prefix}btn-inner {
843 @if $color-disabled != $color {
844 color: $color-disabled !important;
849 @if not $supports-border-radius or $compile-all {
851 .#{$prefix}btn-#{$ui}-over {
857 .#{$prefix}frame-bc {
858 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-over-corners.gif');
861 .#{$prefix}frame-mr {
862 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-over-sides.gif');
864 .#{$prefix}frame-mc {
865 background-color: $background-color-over;
866 @if $background-gradient-over != null {
867 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-over-bg.gif');
872 .#{$prefix}btn-#{$ui}-focus {
878 .#{$prefix}frame-bc {
879 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-focus-corners.gif');
882 .#{$prefix}frame-mr {
883 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-focus-sides.gif');
885 .#{$prefix}frame-mc {
886 background-color: $background-color-focus;
887 @if $background-gradient-focus != null {
888 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-focus-bg.gif');
893 .#{$prefix}btn-#{$ui}-menu-active,
894 .#{$prefix}btn-#{$ui}-pressed {
900 .#{$prefix}frame-bc {
901 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-pressed-corners.gif');
904 .#{$prefix}frame-mr {
905 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-pressed-sides.gif');
907 .#{$prefix}frame-mc {
908 background-color: $background-color-pressed;
909 @if $background-gradient-pressed != null {
910 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-pressed-bg.gif');
915 .#{$prefix}btn-#{$ui}-disabled {
921 .#{$prefix}frame-bc {
922 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-disabled-corners.gif');
925 .#{$prefix}frame-mr {
926 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-disabled-sides.gif');
928 .#{$prefix}frame-mc {
929 background-color: $background-color-disabled;
930 @if $background-gradient-disabled != null {
931 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-disabled-bg.gif');
938 @if not $supports-gradients or $compile-all {
939 @if $background-gradient != null {
941 .#{$prefix}btn-#{$ui} {
942 background-repeat: repeat-x;
943 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-bg.gif');
948 @if $background-gradient-over != null {
950 .#{$prefix}btn-#{$ui}-over {
951 background-repeat: repeat-x;
952 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-over-bg.gif');
957 @if $background-gradient-focus != null {
959 .#{$prefix}btn-#{$ui}-focus {
960 background-repeat: repeat-x;
961 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-focus-bg.gif');
966 @if $background-gradient-pressed != null {
968 .#{$prefix}btn-#{$ui}-menu-active,
969 .#{$prefix}btn-#{$ui}-pressed {
970 background-repeat: repeat-x;
971 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-pressed-bg.gif');
976 @if $background-gradient-disabled != null {
978 .#{$prefix}btn-#{$ui}-disabled {
979 background-repeat: repeat-x;
980 @include theme-background-image($theme-name, 'btn/btn-#{$ui}-disabled-bg.gif');