Skip to content

Commit

Permalink
[issue-288] Inject CSS tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Powelski committed Mar 5, 2014
1 parent 422bf86 commit 80e038d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions includes/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,20 @@ public static function load() {
// Ajax author's name by ID
add_action( 'wp_ajax_wp_stream_get_author_name_by_id', array( __CLASS__, 'get_author_name_by_id' ) );

// Fix CSS glitch on tabs
add_action( 'admin_head', array( __CLASS__, 'fix_tabs_glitch' ) );

}

public static function fix_tabs_glitch() {
$screen = get_current_screen();
if ( sprintf( 'stream_page_%s', self::SETTINGS_PAGE_SLUG ) === $screen->id ) : ?>
<style>
.nav-tab-wrapper a:not(.nav-tab-active) {
border-bottom: 1px solid transparent;
}
</style>
<?php endif;
}

/**
Expand Down

0 comments on commit 80e038d

Please sign in to comment.