Changeset 24114
- Timestamp:
- 04/26/2013 11:47:21 PM (13 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
-
css/wp-admin.css (modified) (2 diffs)
-
js/post-formats.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/wp-admin.css
r24112 r24114 4112 4112 margin: 13px 0 10px; 4113 4113 padding: 5px; 4114 overflow: hidden; 4114 4115 } 4115 4116 4116 4117 .post-format-options a { 4117 display: inline-block;4118 float: left; 4118 4119 min-width: 62px; 4119 padding: 5px;4120 border: 1px solid transparent;4120 padding: 5px; 4121 border: 1px solid transparent; 4121 4122 margin-right: 10px; 4122 4123 position: relative; … … 4209 4210 4210 4211 @media only screen and (max-width: 782px) { 4211 .post-format-options {4212 height: 33px;4213 }4214 4215 4212 .post-format-options a { 4216 4213 margin-right: 19px; -
trunk/wp-admin/js/post-formats.js
r24098 r24114 82 82 formatFrom = -1 < $.inArray( postFormats.currentPostFormat, noUIFormats ); 83 83 if ( formatTo && formatFrom ) { // To/from have no UI. No slide. 84 console.log( 'both no UI' );85 84 switchFormatClass( format ); 86 85 fields.hide(); 87 86 } else if ( formatFrom ) { // Only destination has UI. Slide down. 88 console.log( 'destination only' );89 87 fields.hide(); 90 88 switchFormatClass( format ); 91 89 fields.slideDown( 400 ); 92 90 } else if ( formatTo ) { // Only source has UI. Slide up. 93 console.log( 'source only' );94 91 fields.slideUp( 200, function(){ 95 92 switchFormatClass( format ); 96 93 }); 97 94 } else { // Both have UI. Slide both ways. 98 console.log( 'both' );99 95 fields.slideUp( 200, function(){ 100 96 switchFormatClass( format );
Note: See TracChangeset
for help on using the changeset viewer.