Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/buttons.css

    r27494 r35697  
    6868.wp-core-ui input[type="button"]::-moz-focus-inner,
    6969.wp-core-ui input[type="submit"]::-moz-focus-inner {
    70         border-width: 1px 0;
    71         border-style: solid none;
    72         border-color: transparent;
     70        border-width: 0;
     71        border-style: none;
    7372        padding: 0;
    7473}
     
    9796}
    9897
    99 .wp-core-ui .button:active {
     98.wp-core-ui .button:active,
     99.wp-core-ui .button:focus {
    100100        outline: none;
    101101}
     
    128128        border-color: #cccccc;
    129129        background: #f7f7f7;
    130         -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0,0,0,.08);
    131         box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0,0,0,.08);
     130        -webkit-box-shadow: 0 1px 0 #cccccc;
     131        box-shadow: 0 1px 0 #cccccc;
    132132        vertical-align: top;
    133133}
     
    145145        background: #fafafa;
    146146        border-color: #999;
    147         color: #222;
     147        color: #23282d;
    148148}
    149149
    150150.wp-core-ui .button.focus,
    151151.wp-core-ui .button:focus,
    152 .wp-core-ui .button-secondary:focus {
    153         -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,.2);
    154         box-shadow: 1px 1px 1px rgba(0,0,0,.2);
     152.wp-core-ui .button-secondary:focus,
     153.wp-core-ui .button-link:focus {
     154        border-color: #5b9dd9;
     155        -webkit-box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
     156        box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
    155157}
    156158
    157159.wp-core-ui .button.active,
    158160.wp-core-ui .button.active:hover,
    159 .wp-core-ui .button.active:focus,
    160161.wp-core-ui .button:active,
    161162.wp-core-ui .button-secondary:active {
    162163        background: #eee;
    163164        border-color: #999;
    164         color: #333;
    165165        -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
    166166        box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
     167        -webkit-transform: translateY(1px);
     168        -ms-transform: translateY(1px);
     169        transform: translateY(1px);
     170}
     171
     172.wp-core-ui .button.active:focus {
     173        border-color: #5b9dd9;
     174        -webkit-box-shadow:
     175                inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ),
     176                0 0 3px rgba( 0, 115, 170, .8 );
     177        box-shadow:
     178                inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ),
     179                0 0 3px rgba( 0, 115, 170, .8 );
    167180}
    168181
     
    174187.wp-core-ui .button-secondary.disabled,
    175188.wp-core-ui .button-disabled {
    176         color: #aaa !important;
     189        color: #a0a5aa !important;
    177190        border-color: #ddd !important;
    178191        background: #f7f7f7 !important;
     
    181194        text-shadow: 0 1px 0 #fff !important;
    182195        cursor: default;
     196        -webkit-transform: none !important;
     197        -ms-transform: none !important;
     198        transform: none !important;
     199}
     200
     201/* Buttons that look like links, for a cross of good semantics with the visual */
     202.wp-core-ui .button-link {
     203        margin: 0;
     204        padding: 0;
     205        -webkit-box-shadow: none;
     206        box-shadow: none;
     207        border: 0;
     208        -webkit-border-radius: 0;
     209        border-radius: 0;
     210        background: none;
     211        outline: none;
     212        cursor: pointer;
     213}
     214
     215.wp-core-ui .button-link:focus {
     216        outline: #5b9dd9 solid 1px;
    183217}
    184218
     
    188222
    189223.wp-core-ui .button-primary {
    190         background: #2ea2cc;
    191         border-color: #0074a2;
    192         -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.5), 0 1px 0 rgba(0,0,0,.15);
    193         box-shadow: inset 0 1px 0 rgba(120,200,230,0.5), 0 1px 0 rgba(0,0,0,.15);
     224        background: #0085ba;
     225        border-color: #0073aa #006799 #006799;
     226        -webkit-box-shadow: 0 1px 0 #006799;
     227        box-shadow: 0 1px 0 #006799;
    194228        color: #fff;
    195229        text-decoration: none;
     230        text-shadow: 0 -1px 1px #006799,
     231                1px 0 1px #006799,
     232                0 1px 1px #006799,
     233                -1px 0 1px #006799;
    196234}
    197235
     
    200238.wp-core-ui .button-primary.focus,
    201239.wp-core-ui .button-primary:focus {
    202         background: #1e8cbe;
    203         border-color: #0074a2;
    204         -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.6);
    205         box-shadow: inset 0 1px 0 rgba(120,200,230,0.6);
     240        background: #008ec2;
     241        border-color: #006799;
    206242        color: #fff;
    207243}
     
    209245.wp-core-ui .button-primary.focus,
    210246.wp-core-ui .button-primary:focus {
    211         border-color: #0e3950;
    212         -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.6), 1px 1px 2px rgba(0,0,0,0.4);
    213         box-shadow: inset 0 1px 0 rgba(120,200,230,0.6), 1px 1px 2px rgba(0,0,0,0.4);
     247        -webkit-box-shadow: 0 1px 0 #0073aa,
     248                0 0 2px 1px #33b3db;
     249        box-shadow: 0 1px 0 #0073aa,
     250                0 0 2px 1px #33b3db;
    214251}
    215252
     
    218255.wp-core-ui .button-primary.active:focus,
    219256.wp-core-ui .button-primary:active {
    220         background: #1b7aa6;
    221         border-color: #005684;
    222         color: rgba(255,255,255,0.95);
    223         -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
    224         box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
     257        background: #0073aa;
     258        border-color: #006799;
     259        -webkit-box-shadow: inset 0 2px 0 #006799;
     260        box-shadow: inset 0 2px 0 #006799;
    225261        vertical-align: top;
    226262}
     
    230266.wp-core-ui .button-primary-disabled,
    231267.wp-core-ui .button-primary.disabled {
    232         color: #94cde7 !important;
    233         background: #298cba !important;
    234         border-color: #1b607f !important;
     268        color: #66c6e4 !important;
     269        background: #008ec2 !important;
     270        border-color: #007cb2 !important;
    235271        -webkit-box-shadow: none !important;
    236272        box-shadow: none !important;
    237         text-shadow: 0 -1px 0 rgba(0,0,0,0.1) !important;
     273        text-shadow: 0 -1px 0 rgba( 0, 0, 0, 0.1 ) !important;
    238274        cursor: default;
     275}
     276
     277.wp-core-ui .button.button-primary.button-hero {
     278        -webkit-box-shadow: 0 2px 0 #006799;
     279        box-shadow: 0 2px 0 #006799;
     280}
     281
     282.wp-core-ui .button.button-primary.button-hero.active,
     283.wp-core-ui .button.button-primary.button-hero.active:hover,
     284.wp-core-ui .button.button-primary.button-hero.active:focus,
     285.wp-core-ui .button.button-primary.button-hero:active {
     286        -webkit-box-shadow: inset 0 3px 0 #006799;
     287        box-shadow: inset 0 3px 0 #006799;
    239288}
    240289
     
    277326}
    278327
     328.wp-core-ui .button-group > .button:focus {
     329        position: relative;
     330        z-index: 1;
     331}
     332
    279333/* ----------------------------------------------------------------------------
    280334  5.0 - Responsive Button Styles
     
    289343        input#save-post,
    290344        a.preview {
    291                 padding: 10px 14px;
    292                 line-height: 1;
     345                padding: 6px 14px;
     346                line-height: normal;
    293347                font-size: 14px;
    294348                vertical-align: middle;
     
    304358        }
    305359
     360        .media-frame.mode-grid .bulk-select .button {
     361                margin-bottom: 0;
     362        }
     363
    306364        /* Publish Metabox Options */
    307365        .wp-core-ui .save-post-status.button {
     
    312370        /* Reset responsive styles in Press This, Customizer */
    313371
    314         .wp-core-ui.wp-customizer .button,
    315         .press-this.wp-core-ui .button,
    316         .press-this input#publish,
    317         .press-this input#save-post,
    318         .press-this a.preview {
     372        .wp-core-ui.wp-customizer .button {
    319373                padding: 0 10px 1px;
    320374                font-size: 13px;
Note: See TracChangeset for help on using the changeset viewer.