Make WordPress Core

Changeset 26386


Ignore:
Timestamp:
11/26/2013 03:35:41 AM (11 years ago)
Author:
iammattthomas
Message:

Move responsive button styles from wp-admin.css to buttons.css. Fixes #25968, props melchoyce.

Location:
trunk/src
Files:
2 edited

Legend:

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

    r26384 r26386  
    1099710997    }
    1099810998
    10999     .wp-core-ui .button,
    11000     .wp-core-ui .button:active, /* Override non-responsive active styles in buttons.css */
    11001     input#publish,
    11002     input#save-post,
    11003     a.preview {
    11004         padding: 10px 14px;
    11005         line-height: 1;
    11006         font-size: 14px;
    11007         vertical-align: middle;
    11008         height: auto;
    11009         margin-bottom: 4px;
    11010     }
    11011 
    11012     #media-upload.wp-core-ui .button {
    11013         padding: 0 10px 1px;
    11014         height: 24px;
    11015         line-height: 22px;
    11016         font-size: 13px;
    11017     }
    11018 
    1101910999    .wrap .add-new-h2, .wrap .add-new-h2:active {
    1102011000        padding: 10px 15px;
     
    1122711207    #post-visibility-select {
    1122811208        line-height: 280%;
    11229     }
    11230 
    11231     .wp-core-ui .save-post-status.button {
    11232         position: relative;
    11233         margin: 0 14px 0 10px; /* 14px right margin to match all other buttons */
    1123411209    }
    1123511210
  • trunk/src/wp-includes/css/buttons.css

    r26243 r26386  
    2828 3.0 - Primary Button Style
    2929 4.0 - Button Groups
     30 5.0 - Responsive Button Styles
    3031
    3132---------------------------------------------------------------------------- */
     
    270271    border-radius: 0 3px 3px 0;
    271272}
     273
     274/* ----------------------------------------------------------------------------
     275  5.0 - Responsive Button Styles
     276---------------------------------------------------------------------------- */
     277
     278@media screen and ( max-width: 782px ) {
     279
     280    .wp-core-ui .button,
     281    .wp-core-ui .button:active, /* Override non-responsive active styles in buttons.css */
     282    input#publish,
     283    input#save-post,
     284    a.preview {
     285        padding: 10px 14px;
     286        line-height: 1;
     287        font-size: 14px;
     288        vertical-align: middle;
     289        height: auto;
     290        margin-bottom: 4px;
     291    }
     292
     293    #media-upload.wp-core-ui .button {
     294        padding: 0 10px 1px;
     295        height: 24px;
     296        line-height: 22px;
     297        font-size: 13px;
     298    }
     299   
     300    /* Publish Metabox Options */
     301    .wp-core-ui .save-post-status.button {
     302        position: relative;
     303        margin: 0 14px 0 10px; /* 14px right margin to match all other buttons */
     304    }
     305   
     306
     307}
Note: See TracChangeset for help on using the changeset viewer.