WordPress 4.4
[autoinstalls/wordpress.git] / wp-admin / css / colors / _mixins.scss
index 9c196e0f3bc9654ebc3fd65dea72482b16b86bfb..c8213c18c6b37cfe973ddc73a386408d0bbe360c 100644 (file)
@@ -4,31 +4,31 @@
  */
 @mixin button( $button-color, $text-color: white ) {
        background: $button-color;
-       border-color: darken( $button-color, 10% );
+       border-color: darken( $button-color, 10% ) darken( $button-color, 15% ) darken( $button-color, 15% );
        color: $text-color;
-       box-shadow: inset 0 1px 0 lighten( $button-color, 15% ), 0 1px 0 rgba(0,0,0,.15);
+       box-shadow: 0 1px 0 darken( $button-color, 15% );
+       text-shadow: 0 -1px 1px darken( $button-color, 15% ),
+               1px 0 1px darken( $button-color, 15% ),
+               0 1px 1px darken( $button-color, 15% ),
+               -1px 0 1px darken( $button-color, 15% );
 
        &:hover,
        &:focus {
-               background: darken( $button-color, 5% );
+               background: lighten( $button-color, 3% );
                border-color: darken( $button-color, 15% );
                color: $text-color;
-               box-shadow: inset 0 1px 0 lighten( $button-color, 10% );
+               box-shadow: 0 1px 0 darken( $button-color, 15% );
        }
 
        &:focus {
-               box-shadow: inset 0 1px 0 lighten( $button-color, 10% ),
-                           0 0 0 1px #5b9dd9,
-                           0 0 2px 1px rgba( 30, 140, 190, .8 );
+               box-shadow: inset 0 1px 0 darken( $button-color, 10% ),
+                                       0 0 2px 1px #33b3db;
        }
 
        &: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 ),
-                           0 0 0 1px #5b9dd9,
-                           0 0 2px 1px rgba( 30, 140, 190, .8 );
+               box-shadow: inset 0 2px 0 darken( $button-color, 15% );
        }
 
        &[disabled],
                border-color: darken( $button-color, 15% ) !important;
                text-shadow: none !important;
        }
+
+       &.button-hero {
+               box-shadow: 0 2px 0 darken( $button-color, 15% ) !important;
+               &:active {
+                       box-shadow: inset 0 3px 0 darken( $button-color, 15% ) !important;
+               }
+       }
+
 }