+ .#{$prefix}btn-inner {
+ @if $color-over != $color {
+ color: $color-over;
+ }
+ @if $font-weight-over != $font-weight {
+ font-weight: $font-weight-over;
+ }
+ @if $font-size-over != $font-size {
+ font-size: $font-size-over;
+ }
+ @if $font-family-over != $font-family {
+ font-family: $font-family-over;
+ }
+ }
+ }
+
+ .#{$prefix}btn-#{$ui}-focus {
+ @if $border-color-focus != $border-color {
+ border-color: $border-color-focus;
+ }
+ @if $background-color-focus != null {
+ @include background-gradient($background-color-focus, $background-gradient-focus);
+ }
+
+ .#{$prefix}btn-inner {
+ @if $color-focus != $color {
+ color: $color-focus;
+ }
+ @if $font-weight-focus != $font-weight {
+ font-weight: $font-weight-focus;
+ }
+ @if $font-size-focus != $font-size {
+ font-size: $font-size-focus;
+ }
+ @if $font-family-focus != $font-family {
+ font-family: $font-family-focus;
+ }
+ }
+ }
+
+ .#{$prefix}btn-#{$ui}-menu-active,
+ .#{$prefix}btn-#{$ui}-pressed {
+ @if $border-color-pressed != $border-color {
+ border-color: $border-color-pressed;
+ }
+ @if $background-color-pressed != null {
+ @include background-gradient($background-color-pressed, $background-gradient-pressed);
+ }
+
+ .#{$prefix}btn-inner {
+ @if $color-pressed != $color {
+ color: $color-pressed;
+ }
+ @if $font-weight-pressed != $font-weight {
+ font-weight: $font-weight-pressed;
+ }
+ @if $font-size-pressed != $font-size {
+ font-size: $font-size-pressed;
+ }
+ @if $font-family-pressed != $font-family {
+ font-family: $font-family-pressed;
+ }
+ }
+ }
+
+ .#{$prefix}btn-#{$ui}-disabled {
+ @if $border-color-disabled != $border-color {
+ border-color: $border-color-disabled;
+ }
+ @if $background-color-disabled != null {
+ @include background-gradient($background-color-disabled, $background-gradient-disabled);
+ }
+
+ .#{$prefix}btn-inner {
+ @if $color-disabled != $color {
+ color: $color !important;
+ }
+ @if $font-weight-disabled != $font-weight {
+ font-weight: $font-weight-disabled;
+ }
+ @if $font-size-disabled != $font-size {
+ font-size: $font-size-disabled;
+ }
+ @if $font-family-disabled != $font-family {
+ font-family: $font-family-disabled;
+ }
+ }
+ }
+
+ .#{$prefix}ie .#{$prefix}btn-#{$ui}-disabled {
+ .#{$prefix}btn-inner {
+ @if $color-disabled != $color {
+ color: darken($color-disabled, 20) !important;
+ }
+ }
+ }
+
+ .#{$prefix}ie6 .#{$prefix}btn-#{$ui}-disabled {
+ .#{$prefix}btn-inner {
+ @if $color-disabled != $color {
+ color: $color-disabled !important;
+ }
+ }
+ }
+
+ @if not $supports-border-radius or $compile-all {
+ .#{$prefix}nbr {
+ .#{$prefix}btn-#{$ui}-over {
+ .#{$prefix}frame-tl,
+ .#{$prefix}frame-bl,
+ .#{$prefix}frame-tr,
+ .#{$prefix}frame-br,
+ .#{$prefix}frame-tc,
+ .#{$prefix}frame-bc {
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-over-corners.gif');
+ }
+ .#{$prefix}frame-ml,
+ .#{$prefix}frame-mr {
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-over-sides.gif');
+ }
+ .#{$prefix}frame-mc {
+ background-color: $background-color-over;
+ @if $background-gradient-over != null {
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-over-bg.gif');
+ }
+ }
+ }
+
+ .#{$prefix}btn-#{$ui}-focus {
+ .#{$prefix}frame-tl,
+ .#{$prefix}frame-bl,
+ .#{$prefix}frame-tr,
+ .#{$prefix}frame-br,
+ .#{$prefix}frame-tc,
+ .#{$prefix}frame-bc {
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-focus-corners.gif');
+ }
+ .#{$prefix}frame-ml,
+ .#{$prefix}frame-mr {
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-focus-sides.gif');
+ }
+ .#{$prefix}frame-mc {
+ background-color: $background-color-focus;
+ @if $background-gradient-focus != null {
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-focus-bg.gif');
+ }
+ }
+ }
+
+ .#{$prefix}btn-#{$ui}-menu-active,
+ .#{$prefix}btn-#{$ui}-pressed {
+ .#{$prefix}frame-tl,
+ .#{$prefix}frame-bl,
+ .#{$prefix}frame-tr,
+ .#{$prefix}frame-br,
+ .#{$prefix}frame-tc,
+ .#{$prefix}frame-bc {
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-pressed-corners.gif');
+ }
+ .#{$prefix}frame-ml,
+ .#{$prefix}frame-mr {
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-pressed-sides.gif');
+ }
+ .#{$prefix}frame-mc {
+ background-color: $background-color-pressed;
+ @if $background-gradient-pressed != null {
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-pressed-bg.gif');
+ }
+ }
+ }
+
+ .#{$prefix}btn-#{$ui}-disabled {
+ .#{$prefix}frame-tl,
+ .#{$prefix}frame-bl,
+ .#{$prefix}frame-tr,
+ .#{$prefix}frame-br,
+ .#{$prefix}frame-tc,
+ .#{$prefix}frame-bc {
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-disabled-corners.gif');
+ }
+ .#{$prefix}frame-ml,
+ .#{$prefix}frame-mr {
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-disabled-sides.gif');
+ }
+ .#{$prefix}frame-mc {
+ background-color: $background-color-disabled;
+ @if $background-gradient-disabled != null {
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-disabled-bg.gif');
+ }
+ }
+ }
+ }
+ }
+
+ @if not $supports-gradients or $compile-all {
+ @if $background-gradient != null {
+ .#{$prefix}nlg {
+ .#{$prefix}btn-#{$ui} {
+ background-repeat: repeat-x;
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-bg.gif');
+ }
+ }
+ }
+
+ @if $background-gradient-over != null {
+ .#{$prefix}nlg {
+ .#{$prefix}btn-#{$ui}-over {
+ background-repeat: repeat-x;
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-over-bg.gif');
+ }
+ }
+ }
+
+ @if $background-gradient-focus != null {
+ .#{$prefix}nlg {
+ .#{$prefix}btn-#{$ui}-focus {
+ background-repeat: repeat-x;
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-focus-bg.gif');
+ }
+ }
+ }
+
+ @if $background-gradient-pressed != null {
+ .#{$prefix}nlg {
+ .#{$prefix}btn-#{$ui}-menu-active,
+ .#{$prefix}btn-#{$ui}-pressed {
+ background-repeat: repeat-x;
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-pressed-bg.gif');
+ }
+ }
+ }
+
+ @if $background-gradient-disabled != null {
+ .#{$prefix}nlg {
+ .#{$prefix}btn-#{$ui}-disabled {
+ background-repeat: repeat-x;
+ background-image: theme-background-image($theme-name, 'btn/btn-#{$ui}-disabled-bg.gif');
+ }
+ }
+ }
+ }
+};
\ No newline at end of file