Changeset 34948 for trunk/src/wp-admin/css/colors/_mixins.scss
- Timestamp:
- 10/08/2015 05:30:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/colors/_mixins.scss
r31471 r34948 5 5 @mixin button( $button-color, $text-color: white ) { 6 6 background: $button-color; 7 border-color: darken( $button-color, 10% ) ;7 border-color: darken( $button-color, 10% ) darken( $button-color, 15% ) darken( $button-color, 15% ); 8 8 color: $text-color; 9 box-shadow: inset 0 1px 0 lighten( $button-color, 15% ), 0 1px 0 rgba(0,0,0,.15); 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% ); 10 14 11 15 &:hover, 12 16 &:focus { 13 background: darken( $button-color, 5% );17 background: lighten( $button-color, 3% ); 14 18 border-color: darken( $button-color, 15% ); 15 19 color: $text-color; 16 box-shadow: inset 0 1px 0 lighten( $button-color, 10% );20 box-shadow: 0 1px 0 darken( $button-color, 15% ); 17 21 } 18 22 19 23 &:focus { 20 box-shadow: inset 0 1px 0 lighten( $button-color, 10% ), 21 0 0 0 1px #5b9dd9, 22 0 0 2px 1px rgba( 30, 140, 190, .8 ); 24 box-shadow: inset 0 1px 0 darken( $button-color, 10% ), 25 0 0 2px 1px #33b3db; 23 26 } 24 27 … … 26 29 background: darken( $button-color, 10% ); 27 30 border-color: darken( $button-color, 15% ); 28 color: $text-color; 29 box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ), 30 0 0 0 1px #5b9dd9, 31 0 0 2px 1px rgba( 30, 140, 190, .8 ); 31 box-shadow: inset 0 2px 0 darken( $button-color, 15% ); 32 32 } 33 33 … … 41 41 text-shadow: none !important; 42 42 } 43 44 &.button-hero { 45 box-shadow: 0 2px 0 darken( $button-color, 15% ) !important; 46 &:active { 47 box-shadow: inset 0 3px 0 darken( $button-color, 15% ) !important; 48 } 49 } 50 43 51 }
Note: See TracChangeset
for help on using the changeset viewer.