mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-18 10:31:19 +02:00
93b69e27d4
This change removes the disabled state from the admin scheme specific styles. Fixes #48709. Props drw158, SergeyBiryukov, afercia, kennethroberson5556, melchoyce, joedolson, valentinbora, audrasjb, larrach, nrqsnchz, youknowriad. Built from https://develop.svn.wordpress.org/trunk@48360 git-svn-id: http://core.svn.wordpress.org/trunk@48129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
38 lines
825 B
SCSS
38 lines
825 B
SCSS
/*
|
|
* Button mixin- creates a button effect with correct
|
|
* highlights/shadows, based on a base color.
|
|
*/
|
|
@mixin button( $button-color, $button-text-color: #fff ) {
|
|
background: $button-color;
|
|
border-color: $button-color;
|
|
color: $button-text-color;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background: lighten( $button-color, 3% );
|
|
border-color: darken( $button-color, 3% );
|
|
color: $button-text-color;
|
|
}
|
|
|
|
&:focus {
|
|
box-shadow:
|
|
0 0 0 1px #fff,
|
|
0 0 0 3px $button-color;
|
|
}
|
|
|
|
&:active {
|
|
background: darken( $button-color, 5% );
|
|
border-color: darken( $button-color, 5% );
|
|
color: $button-text-color;
|
|
}
|
|
|
|
&.active,
|
|
&.active:focus,
|
|
&.active:hover {
|
|
background: $button-color;
|
|
color: $button-text-color;
|
|
border-color: darken( $button-color, 15% );
|
|
box-shadow: inset 0 2px 5px -3px darken( $button-color, 50% );
|
|
}
|
|
}
|