Make WordPress Core

Changeset 31807


Ignore:
Timestamp:
03/18/2015 02:09:00 AM (12 years ago)
Author:
azaozz
Message:

Press This: fix the header styling and add a logo.
Props Michael-Arestad. Fixes #31472.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/press-this.css

    r31805 r31807  
    11571157}
    11581158
    1159 .current-site span:nth-child(2) {
     1159.current-site-link {
     1160        text-decoration: none;
     1161}
     1162
     1163.current-site-link:focus {
     1164        outline: 0;
     1165}
     1166
     1167.current-site-link:focus .current-site-name{
     1168        text-decoration: underline;
     1169}
     1170
     1171.current-site-name {
    11601172        color: #ededed;
    11611173}
    11621174
    11631175@media (max-width: 320px) {
    1164         .current-site span:nth-child(2) {
     1176        .current-site-name {
    11651177                font-weight: 600;
    11661178        }
  • trunk/src/wp-admin/includes/class-wp-press-this.php

    r31800 r31807  
    11511151        <div id="adminbar" class="adminbar">
    11521152                <h1 id="current-site" class="current-site">
    1153                         <span class="dashicons dashicons-wordpress"></span>
    1154                         <span><?php bloginfo( 'name' ); ?></span>
     1153                        <a class="current-site-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" target="_blank" rel="home">
     1154                                <span class="dashicons dashicons-wordpress"></span>
     1155                                <span class="current-site-name"><?php bloginfo( 'name' ); ?></span>
     1156                        </a>
    11551157                </h1>
    11561158                <button type="button" class="options-open button-subtle">
  • trunk/src/wp-admin/js/press-this.js

    r31797 r31807  
    582582                        });
    583583
    584                         $( '#current-site a').click( function( e ) {
    585                                 e.preventDefault();
    586                         } );
    587 
    588584                        // Publish, Draft and Preview buttons
    589585
Note: See TracChangeset for help on using the changeset viewer.