[ Index ] |
WordPress Cross Reference |
[Summary view] [Print] [Text view]
1 /* 2 * Button mixin- creates 3d-ish button effect with correct 3 * highlights/shadows, based on a base color. 4 */ 5 @mixin button( $button-color, $text-color: white ) { 6 background: $button-color; 7 border-color: darken( $button-color, 10% ); 8 color: $text-color; 9 -webkit-box-shadow: inset 0 1px 0 lighten( $button-color, 15% ), 0 1px 0 rgba(0,0,0,.15); 10 box-shadow: inset 0 1px 0 lighten( $button-color, 15% ), 0 1px 0 rgba(0,0,0,.15); 11 12 &:hover, 13 &:focus { 14 background: darken( $button-color, 8% ); 15 border-color: darken( $button-color, 15% ); 16 color: $text-color; 17 -webkit-box-shadow: inset 0 1px 0 lighten( $button-color, 10% ), 0 1px 0 rgba(0,0,0,.15); 18 box-shadow: inset 0 1px 0 lighten( $button-color, 10% ), 0 1px 0 rgba(0,0,0,.15); 19 } 20 21 &:active { 22 background: darken( $button-color, 8% ); 23 border-color: darken( $button-color, 15% ); 24 color: $text-color; 25 -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); 26 box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); 27 } 28 29 &[disabled], 30 &:disabled, 31 &.button-primary-disabled { 32 color: hsl( hue( $button-color ), 10%, 80% ) !important; 33 background: darken( $button-color, 8% ) !important; 34 border-color: darken( $button-color, 15% ) !important; 35 text-shadow: none !important; 36 } 37 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 25 01:41:18 2014 | WordPress honlapkészítés: online1.hu |