Make WordPress Core

Changeset 26385


Ignore:
Timestamp:
11/26/2013 03:27:09 AM (12 years ago)
Author:
iammattthomas
Message:

Style the color picker button to match the new standard button style. Adjust font size and height of 'Default' button to match color picker button. Fixes #26179.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/color-picker.css

    r22947 r26385  
    88
    99.wp-color-result {
    10     background-color: #f9f9f9;
    11     border: 1px solid #bbb;
    12     border-radius: 2px;
     10    background-color: #f7f7f7;
     11    border: 1px solid #ccc;
     12    border-radius: 3px;
    1313    cursor: pointer;
    1414    display: inline-block;
     
    2424    display: inline-block;
    2525    padding-left: 30px;
     26
     27    -webkit-box-shadow: 0 1px 0 rgba(0,0,0,.08);
     28    box-shadow: 0 1px 0 rgba(0,0,0,.08);
    2629}
    2730
    2831.wp-color-result:after {
    29     background: #f3f3f3;
    30     background-image: -webkit-gradient(linear, left top, left bottom, from(#fefefe), to(#f4f4f4));
    31     background-image: -webkit-linear-gradient(top, #fefefe, #f4f4f4);
    32     background-image:    -moz-linear-gradient(top, #fefefe, #f4f4f4);
    33     background-image:      -o-linear-gradient(top, #fefefe, #f4f4f4);
    34     background-image:   linear-gradient(to bottom, #fefefe, #f4f4f4);
    35     color: #333;
    36     text-shadow: 0 1px 0 #fff;
    37     border-radius: 0 1px 1px 0;
    38     border-left: 1px solid #bbb;
     32    background: #f7f7f7;   
     33    border-radius: 0 2px 2px 0;
     34    border-left: 1px solid #ccc;
     35    color: #555;
    3936    content: attr( title );
    4037    display: block;
     
    4643    text-align: center;
    4744    top: 0;
     45
     46    -webkit-box-shadow: inset 0 1px 0 #fff;
     47    box-shadow: inset 0 1px 0 #fff;
    4848}
    4949
    5050.wp-color-result:hover {
    51     border-color: #aaa;
    52     -webkit-box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.2 );
    53     box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.1 );
     51    background: #fafafa;
     52    border-color: #999;
     53    color: #222;
    5454}
    5555
     
    8888}
    8989
     90/* Match the style of the color picker button */
     91.wp-picker-input-wrap .button.button-small {
     92    line-height: 22px;
     93    height: 24px;
     94    font-size: 11px;
     95}
     96
    9097.wp-picker-container .button {
    9198    margin-left: 6px;
Note: See TracChangeset for help on using the changeset viewer.