Make WordPress Core

Changeset 24114


Ignore:
Timestamp:
04/26/2013 11:47:21 PM (11 years ago)
Author:
helen
Message:

Better responsive CSS for post format switcher. Remove some JS debug cruft. props wonderboymusic. see #24046.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r24112 r24114  
    41124112    margin: 13px 0 10px;
    41134113    padding: 5px;
     4114    overflow: hidden;
    41144115}
    41154116
    41164117.post-format-options a {
    4117     display: inline-block;
     4118    float: left;
    41184119    min-width: 62px;
    4119     padding:5px;
    4120     border:1px solid transparent;
     4120    padding: 5px;
     4121    border: 1px solid transparent;
    41214122    margin-right: 10px;
    41224123    position: relative;
     
    42094210
    42104211@media only screen and (max-width: 782px) {
    4211     .post-format-options {
    4212         height: 33px;
    4213     }
    4214 
    42154212    .post-format-options a {
    42164213        margin-right: 19px;
  • trunk/wp-admin/js/post-formats.js

    r24098 r24114  
    8282        formatFrom = -1 < $.inArray( postFormats.currentPostFormat, noUIFormats );
    8383        if ( formatTo && formatFrom ) { // To/from have no UI. No slide.
    84             console.log( 'both no UI' );
    8584            switchFormatClass( format );
    8685            fields.hide();
    8786        } else if ( formatFrom ) { // Only destination has UI. Slide down.
    88             console.log( 'destination only' );
    8987            fields.hide();
    9088            switchFormatClass( format );
    9189            fields.slideDown( 400 );
    9290        } else if ( formatTo ) { // Only source has UI. Slide up.
    93             console.log( 'source only' );
    9491            fields.slideUp( 200, function(){
    9592                switchFormatClass( format );
    9693            });
    9794        } else { // Both have UI. Slide both ways.
    98             console.log( 'both' );
    9995            fields.slideUp( 200, function(){
    10096                switchFormatClass( format );
Note: See TracChangeset for help on using the changeset viewer.