CoreFiles by mySites.guru
_mixins.scss34 lines, 1,012 bytes, from wordpress-3.9-beta2.zip
Raw History Compare with 3.9-beta1
md5
9dcc4391673f46ed55dbdcf25482573b
sha1
0d61d63d797d892c2bfe9757e4cdc826267a7703
sha256
d13ca4deaf4d00e0343c7d461d1b26035163d50d4fb11ef1fed23c8515df3b39
/*
 * Button mixin- creates 3d-ish button effect with correct
 * highlights/shadows, based on a base color.
 */
@mixin button( $button-color, $text-color: white ) {
	background: $button-color;
	border-color: darken( $button-color, 10% );
	color: $text-color;
	box-shadow: inset 0 1px 0 lighten( $button-color, 15% ), 0 1px 0 rgba(0,0,0,.15);

	&:hover,
	&:focus {
		background: darken( $button-color, 5% );
		border-color: darken( $button-color, 15% );
		color: $text-color;
		box-shadow: inset 0 1px 0 lighten( $button-color, 10% ), 0 1px 0 rgba(0,0,0,.15);
	}

	&:active {
		background: darken( $button-color, 10% );
		border-color: darken( $button-color, 15% );
		color: $text-color;
	 	box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
	}

	&[disabled],
	&:disabled,
	&.button-primary-disabled {
		color: hsl( hue( $button-color ), 10%, 80% ) !important;
		background: darken( $button-color, 8% ) !important;
		border-color: darken( $button-color, 15% ) !important;
		text-shadow: none !important;
	}
}

The same content is in 4 releases, WordPress 3.9-beta1 to 3.9-RC1. See them all, or every version of this file.