Make WordPress Core

Changeset 12541


Ignore:
Timestamp:
12/25/2009 03:16:25 AM (15 years ago)
Author:
matt
Message:

Some style tweaks to theme editor, fixes #11563. Hat tip: Simek.

I adjusted the padding to be a little heavier and then have a negative margin, so the text stays aligned and the highlight floats around it. As an added tweak I removed the extraneous "Theme Files" heading which didn't really convey any useful information.

"Perfection is achieved perfection not when there is nothing left to add, but when there is nothing left to take away" -- Antoine de Saint-Exupery (and Merry Christmas everybody. :))

Location:
trunk/wp-admin
Files:
3 edited

Legend:

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

    r11857 r12541  
    1 #template textarea{font-family:Consolas,Monaco,Courier,monospace;font-size:12px;width:97%;}#template p{width:97%;}#templateside{float:right;width:190px;word-wrap:break-word;}#templateside h3,#postcustomstuff p.submit{margin:0;}#templateside h4{margin:1em 0 0;}#templateside ol,#templateside ul{margin:.5em;padding:0;}#templateside li{margin:4px 0;}.nonessential{font-size:small;}.highlight{padding:1px;}div.tablenav{margin-right:210px;}#documentation{margin-top:10px;}#documentation label{line-height:22px;vertical-align:top;font-weight:bold;}.fileedit-sub{padding:10px 0 8px;line-height:180%;}
     1#template textarea{font-family:Consolas,Monaco,Courier,monospace;font-size:12px;width:97%;}#template p{width:97%;}#templateside{float:right;width:190px;word-wrap:break-word;}#templateside h3,#postcustomstuff p.submit{margin:0;}#templateside h4{margin:1em 0 0;}#templateside ol,#templateside ul{margin:.5em;padding:0;}#templateside li{margin:4px 0;}.nonessential{font-size:11px;font-style:italic;padding-left:12px;}.highlight{padding:3px 3px 3px 12px;margin-left:-12px;font-weight:bold;-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;}div.tablenav{margin-right:210px;}#documentation{margin-top:10px;}#documentation label{line-height:22px;vertical-align:top;font-weight:bold;}.fileedit-sub{padding:10px 0 8px;line-height:180%;}
  • trunk/wp-admin/css/theme-editor.dev.css

    r11857 r12541  
    3535
    3636.nonessential {
    37     font-size: small;
     37    font-size: 11px;
     38    font-style: italic;
     39    padding-left: 12px;
    3840}
    3941
    4042.highlight {
    41     padding: 1px;
     43    padding: 3px 3px 3px 12px;
     44    margin-left: -12px;
     45    font-weight: bold;
     46    -moz-border-radius: 8px;
     47    -khtml-border-radius: 8px;
     48    -webkit-border-radius: 8px;
     49    border-radius: 8px;
    4250}
    4351
  • trunk/wp-admin/theme-editor.php

    r12513 r12541  
    143143<br class="clear" />
    144144    <div id="templateside">
    145     <h3><?php _e("Theme Files"); ?></h3>
    146145
    147146<?php
    148147if ($allowed_files) :
    149148?>
    150     <h4><?php _e('Templates'); ?></h4>
     149    <h3><?php _e('Templates'); ?></h3>
    151150    <ul>
    152151<?php
     
    156155        $description = trim( get_file_description($template_file) );
    157156        $template_show = basename($template_file);
    158         $filedesc = ( $description != $template_file ) ? "$description <span class='nonessential'>($template_show)</span>" : $description;
    159         $filedesc = ( $template_file == $file ) ? "<span class='highlight'>$description <span class='nonessential'>($template_show)</span></span>" : $filedesc;
     157        $filedesc = ( $description != $template_file ) ? "$description<br /><span class='nonessential'>($template_show)</span>" : "$description";
     158        $filedesc = ( $template_file == $file ) ? "<div class='highlight'>$description<br /><span class='nonessential'>($template_show)</span></div>" : $filedesc;
    160159
    161160        // If we have two files of the same name prefer the one in the Template Directory
     
    175174<?php endwhile; ?>
    176175    </ul>
    177     <h4><?php /* translators: Theme stylesheets in theme editor */ echo _x('Styles', 'Theme stylesheets in theme editor'); ?></h4>
     176    <h3><?php /* translators: Theme stylesheets in theme editor */ echo _x('Styles', 'Theme stylesheets in theme editor'); ?></h3>
    178177    <ul>
    179178<?php
     
    183182        $description = trim( get_file_description($style_file) );
    184183        $style_show = basename($style_file);
    185         $filedesc = ( $description != $style_file ) ? "$description <span class='nonessential'>($style_show)</span>" : "$description";
    186         $filedesc = ( $style_file == $file ) ? "<span class='highlight'>$description <span class='nonessential'>($style_show)</span></span>" : $filedesc;
     184        $filedesc = ( $description != $style_file ) ? "$description<br /><span class='nonessential'>($style_show)</span>" : "$description";
     185        $filedesc = ( $style_file == $file ) ? "<div class='highlight'>$description<br /><span class='nonessential'>($style_show)</span></div>" : $filedesc;
    187186        $template_mapping[ $description ] = array( _get_template_edit_filename($style_file, $stylesheet_dir), $filedesc );
    188187    }
Note: See TracChangeset for help on using the changeset viewer.