WordPress.org

Make WordPress Core

Ticket #11563: ThemeEditor.visual.patch

File ThemeEditor.visual.patch, 2.6 KB (added by Simek, 8 years ago)
  • wp-admin/css/theme-editor.dev.css

     
    3434}
    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;
     44        font-weight: bold;
     45        -moz-border-radius: 8px;
     46        -khtml-border-radius: 8px;
     47        -webkit-border-radius: 8px;
     48        border-radius: 8px;
    4249}
    4350
    4451div.tablenav {
  • wp-admin/theme-editor.php

     
    155155        foreach ( $themes[$theme]['Template Files'] as $template_file ) {
    156156                $description = trim( get_file_description($template_file) );
    157157                $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;
     158                $filedesc = ( $description != $template_file ) ? "$description<br /><span class='nonessential'>($template_show)</span>" : "$description";
     159                $filedesc = ( $template_file == $file ) ? "<div class='highlight'>$description<br /><span class='nonessential'>($template_show)</span></div>" : $filedesc;
    160160
    161161                // If we have two files of the same name prefer the one in the Template Directory
    162162                // This means that we display the correct files for child themes which overload Templates as well as Styles
     
    182182        foreach ( $themes[$theme]['Stylesheet Files'] as $style_file ) {
    183183                $description = trim( get_file_description($style_file) );
    184184                $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;
     185                $filedesc = ( $description != $style_file ) ? "$description<br /><span class='nonessential'>($style_show)</span>" : "$description";
     186                $filedesc = ( $style_file == $file ) ? "<div class='highlight'>$description<br /><span class='nonessential'>($style_show)</span></div>" : $filedesc;
    187187                $template_mapping[ $description ] = array( _get_template_edit_filename($style_file, $stylesheet_dir), $filedesc );
    188188        }
    189189        ksort( $template_mapping );