WordPress.org

Make WordPress Core

Changeset 9583


Ignore:
Timestamp:
11/09/2008 08:02:59 PM (10 years ago)
Author:
ryan
Message:

Reduce font size for long titles

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r9363 r9583  
    7777if ( '' == $blog_name )
    7878    $blog_name = ' ';
     79$title_class = '';
     80if ( mb_strlen($blog_name, 'UTF-8') > 30 )
     81    $title_class = 'class="long-title"';
    7982?>
    8083
    81 <img id="logo50" src="images/wp-logo.gif" alt="" /> <h1><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit site') ?>"><?php echo $blog_name ?></a></h1>
     84<img id="logo50" src="images/wp-logo.gif" alt="" /> <h1 <?php echo $title_class ?>><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit site') ?>"><?php echo $blog_name ?></a></h1>
    8285
    8386<div id="wphead-info">
  • trunk/wp-admin/wp-admin.css

    r9578 r9583  
    863863}
    864864
     865#wphead h1.long-title {
     866    font: normal 18px Georgia, "Times New Roman", Times, serif;
     867    padding: 12px 10px 5px;
     868}
     869
    865870/* side admin menu */
    866871#adminmenu .wp-submenu {
Note: See TracChangeset for help on using the changeset viewer.