Ticket #48598: 48598.2.diff
File 48598.2.diff, 3.1 KB (added by , 5 years ago) |
---|
-
src/wp-admin/css/colors/_admin.scss
75 75 76 76 .wp-core-ui { 77 77 78 .button, 79 .button-secondary { 80 color: $button-color; 81 border-color: $button-color; 78 .button { 79 border-color: #7e8993; 80 color: #32373c; 82 81 } 83 82 84 83 .button.hover, 85 84 .button:hover, 86 .button-secondary:hover,87 85 .button.focus, 88 .button:focus, 89 .button-secondary:focus { 90 border-color: darken( $button-color, 5% ); 91 color: darken( $button-color, 5% ); 86 .button:focus { 87 border-color: darken( #7e8993, 5% ); 88 color: darken( #32373c, 5% ); 92 89 } 93 90 94 91 .button.focus, 95 .button:focus, 96 .button-secondary:focus { 97 border-color: $button-color; 98 color: darken( $button-color, 5% ); 99 box-shadow: 0 0 0 1px $button-color; 92 .button:focus { 93 border-color: #7e8993; 94 color: darken( #32373c, 5% ); 95 box-shadow: 0 0 0 1px #32373c; 100 96 } 101 97 102 98 .button:active { 103 background: darken( $button-color, 5% ); 104 border-color: darken( $button-color, 5% ); 99 border-color: #7e8993; 100 color: darken( #32373c, 5% ); 101 box-shadow: none; 105 102 } 106 103 107 104 .button.active, … … 108 105 .button.active:focus, 109 106 .button.active:hover { 110 107 border-color: darken( $button-color, 5% ); 111 color: darken( $button- color, 5% );108 color: darken( $button-text-color, 5% ); 112 109 box-shadow: inset 0 2px 5px -3px darken( $button-color, 5% ); 113 110 } 114 111 -
src/wp-admin/css/colors/_mixins.scss
2 2 * Button mixin- creates a button effect with correct 3 3 * highlights/shadows, based on a base color. 4 4 */ 5 @mixin button( $button-color, $ text-color: #fff ) {5 @mixin button( $button-color, $button-text-color: #fff ) { 6 6 background: $button-color; 7 7 border-color: $button-color; 8 color: $ text-color;8 color: $button-text-color; 9 9 10 10 &:hover, 11 11 &:focus { 12 12 background: lighten( $button-color, 3% ); 13 13 border-color: darken( $button-color, 3% ); 14 color: $ text-color;14 color: $button-text-color; 15 15 } 16 16 17 17 &:focus { … … 23 23 &:active { 24 24 background: darken( $button-color, 5% ); 25 25 border-color: darken( $button-color, 5% ); 26 color: $ text-color;26 color: $button-text-color; 27 27 } 28 28 29 29 &.active, … … 30 30 &.active:focus, 31 31 &.active:hover { 32 32 background: $button-color; 33 color: $ text-color;33 color: $button-text-color; 34 34 border-color: darken( $button-color, 15% ); 35 35 box-shadow: inset 0 2px 5px -3px darken( $button-color, 50% ); 36 36 } -
src/wp-admin/css/colors/_variables.scss
18 18 $link-focus: lighten( $link, 10% ) !default; 19 19 20 20 $button-color: $highlight-color !default; 21 $ form-checked: $highlight-color !default;21 $button-text-color: $text-color !default; 22 22 23 $form-checked: #7e8993 !default; 23 24 24 25 // admin menu & admin-bar 25 26