Make WordPress Core

Ticket #24046: 24046.6.diff

File 24046.6.diff, 3.3 KB (added by aaroncampbell, 12 years ago)

Smaller icons after choosing

  • wp-admin/includes/post-formats.php

     
    44$format_meta = get_post_format_meta( $post_ID );
    55
    66?>
    7 <div class="post-format-change"><span class="icon <?php echo esc_attr( $post_format ); ?>"></span> <span class="post-format-description"><?php echo $all_post_formats[$post_format]['description']; ?></span> <a href="#"><?php _e('Change format'); ?></a></div>
     7<div class="post-format-change"><span class="icon <?php echo esc_attr( $post_format ); ?>"></span> <span class="post-format-description"><?php echo $all_post_formats[$post_format]['description']; ?></span></div>
    88<div class="post-formats-fields">
    99
    1010        <input type="hidden" name="post_format" id="post_format" value="<?php echo esc_attr( $post_format ); ?>" />
  • wp-admin/js/post-formats.js

     
    2323                if ( typeof container === 'undefined' )
    2424                        container = $('#post-body-content');
    2525
    26                 parent.slideUp().find('a.active').removeClass('active');
     26                parent.addClass('small').find('a.active').removeClass('active');
    2727                $this.addClass('active');
    2828                $('#post_format').val(format);
    2929                $('.post-format-change').show().find('span.icon').removeClass(postFormats.currentPostFormat).addClass(format);
  • wp-admin/css/wp-admin.css

     
    41474147        width: 16px;
    41484148}
    41494149
     4150.post-format-options.small a div {
     4151        height:16px;
     4152        width:16px;
     4153}
     4154
     4155.post-format-options.small a {
     4156        margin-right: 16px;
     4157}
     4158
     4159.post-format-options.small {
     4160        height: 32px;
     4161}
     4162
     4163.post-format-options.small .standard,
    41504164.post-format-change span.icon.standard {
    41514165        background: url(../images/post-formats.png) no-repeat -8px -8px;
    41524166}
    41534167
     4168.post-format-options.small .image,
    41544169.post-format-change span.icon.image {
    41554170        background: url(../images/post-formats.png) no-repeat -40px -8px;
    41564171}
    41574172
     4173.post-format-options.small .gallery,
    41584174.post-format-change span.icon.gallery {
    41594175        background: url(../images/post-formats.png) no-repeat -72px -8px;
    41604176}
    41614177
     4178.post-format-options.small .audio,
    41624179.post-format-change span.icon.audio {
    41634180        background: url(../images/post-formats.png) no-repeat -104px -8px;
    41644181}
    41654182
     4183.post-format-options.small .video,
    41664184.post-format-change span.icon.video {
    41674185        background: url(../images/post-formats.png) no-repeat -136px -8px;
    41684186}
    41694187
     4188.post-format-options.small .chat,
    41704189.post-format-change span.icon.chat {
    41714190        background: url(../images/post-formats.png) no-repeat -168px -8px;
    41724191}
    41734192
     4193.post-format-options.small .status,
    41744194.post-format-change span.icon.status {
    41754195        background: url(../images/post-formats.png) no-repeat -200px -8px;
    41764196}
    41774197
     4198.post-format-options.small .aside,
    41784199.post-format-change span.icon.aside {
    41794200        background: url(../images/post-formats.png) no-repeat -232px -8px;
    41804201}
    41814202
     4203.post-format-options.small .quote,
    41824204.post-format-change span.icon.quote {
    41834205        background: url(../images/post-formats.png) no-repeat -264px -8px;
    41844206}
    41854207
     4208.post-format-options.small .link,
    41864209.post-format-change span.icon.link {
    41874210        background: url(../images/post-formats.png) no-repeat -296px -8px;
    41884211}