Changeset 46241 for trunk/src/wp-admin/css/colors/_mixins.scss
- Timestamp:
- 09/23/2019 02:42:36 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/colors/_mixins.scss
r41984 r46241 1 1 /* 2 * Button mixin- creates 3d-ishbutton effect with correct2 * Button mixin- creates a button effect with correct 3 3 * highlights/shadows, based on a base color. 4 4 */ 5 5 @mixin button( $button-color, $text-color: #fff ) { 6 6 background: $button-color; 7 border-color: darken( $button-color, 10% ) darken( $button-color, 15% ) darken( $button-color, 15% );7 border-color: $button-color; 8 8 color: $text-color; 9 box-shadow: 0 1px 0 darken( $button-color, 15% );10 text-shadow: 0 -1px 1px darken( $button-color, 15% ),11 1px 0 1px darken( $button-color, 15% ),12 0 1px 1px darken( $button-color, 15% ),13 -1px 0 1px darken( $button-color, 15% );14 9 15 10 &:hover, 16 11 &:focus { 17 12 background: lighten( $button-color, 3% ); 18 border-color: darken( $button-color, 15% );13 border-color: darken( $button-color, 3% ); 19 14 color: $text-color; 20 box-shadow: 0 1px 0 darken( $button-color, 15% );21 15 } 22 16 23 17 &:focus { 24 box-shadow: inset 0 1px 0 darken( $button-color, 10% ), 25 0 0 2px 1px #33b3db; 18 box-shadow: 19 0 0 0 1px #fff, 20 0 0 0 3px $button-color; 26 21 } 27 22 … … 30 25 &.active:focus, 31 26 &.active:hover { 32 background: darken( $button-color, 10% ); 33 border-color: darken( $button-color, 15% ); 34 box-shadow: inset 0 2px 0 darken( $button-color, 15% ); 27 background: darken( $button-color, 5% ); 28 border-color: darken( $button-color, 5% ); 35 29 } 36 30 … … 40 34 &.disabled { 41 35 color: hsl( hue( $button-color ), 10%, 80% ) !important; 42 background: darken( $button-color, 8% ) !important;43 border-color: darken( $button-color, 15% ) !important;36 background: lighten( $button-color, 15% ) !important; 37 border-color: lighten( $button-color, 15% ) !important; 44 38 text-shadow: none !important; 45 39 } 46 47 &.button-hero {48 box-shadow: 0 2px 0 darken( $button-color, 15% ) !important;49 &:active {50 box-shadow: inset 0 3px 0 darken( $button-color, 15% ) !important;51 }52 }53 54 40 }
Note: See TracChangeset
for help on using the changeset viewer.