Press This: fix the header styling and add a logo.

Props Michael-Arestad. Fixes #31472.

git-svn-id: https://develop.svn.wordpress.org/trunk@31807 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2015-03-18 02:09:00 +00:00
parent df2c74e878
commit 34ff5cd2d2
3 changed files with 18 additions and 8 deletions

View File

@ -1156,12 +1156,24 @@ html {
}
}
.current-site span:nth-child(2) {
.current-site-link {
text-decoration: none;
}
.current-site-link:focus {
outline: 0;
}
.current-site-link:focus .current-site-name{
text-decoration: underline;
}
.current-site-name {
color: #ededed;
}
@media (max-width: 320px) {
.current-site span:nth-child(2) {
.current-site-name {
font-weight: 600;
}
}

View File

@ -1150,8 +1150,10 @@ class WP_Press_This {
<body class="wp-admin wp-core-ui <?php echo $admin_body_classes . ' ' . $admin_body_class; ?>">
<div id="adminbar" class="adminbar">
<h1 id="current-site" class="current-site">
<span class="dashicons dashicons-wordpress"></span>
<span><?php bloginfo( 'name' ); ?></span>
<a class="current-site-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" target="_blank" rel="home">
<span class="dashicons dashicons-wordpress"></span>
<span class="current-site-name"><?php bloginfo( 'name' ); ?></span>
</a>
</h1>
<button type="button" class="options-open button-subtle">
<span class="dashicons dashicons-tag"></span><span class="screen-reader-text"><?php _e( 'Show post options' ); ?></span>

View File

@ -581,10 +581,6 @@
} );
});
$( '#current-site a').click( function( e ) {
e.preventDefault();
} );
// Publish, Draft and Preview buttons
$( '.post-actions' ).on( 'click.press-this', function( event ) {