WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/08/2015 05:30:57 PM (4 years ago)
Author:
helen
Message:

Buttons: Update styles and colors.

props hugobaeta, afercia, melchoyce, michael-arestad.
fixes #31459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/colors/_mixins.scss

    r31471 r34948  
    55@mixin button( $button-color, $text-color: white ) {
    66    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% );
    88    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% );
    1014
    1115    &:hover,
    1216    &:focus {
    13         background: darken( $button-color, 5% );
     17        background: lighten( $button-color, 3% );
    1418        border-color: darken( $button-color, 15% );
    1519        color: $text-color;
    16         box-shadow: inset 0 1px 0 lighten( $button-color, 10% );
     20        box-shadow: 0 1px 0 darken( $button-color, 15% );
    1721    }
    1822
    1923    &: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;
    2326    }
    2427
     
    2629        background: darken( $button-color, 10% );
    2730        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% );
    3232    }
    3333
     
    4141        text-shadow: none !important;
    4242    }
     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
    4351}
Note: See TracChangeset for help on using the changeset viewer.