Making WordPress.org

Changeset 1455


Ignore:
Timestamp:
03/26/2015 06:27:55 PM (11 years ago)
Author:
obenland
Message:

WP.org Themes: More appropriate styles for custom columns.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php

    r1442 r1455  
    329329
    330330/**
     331 * Better styles for our custom columns.
     332 */
     333function wporg_themes_custom_columns_style() {
     334    if ( 'repopackage' !== $GLOBALS['post_type'] ) {
     335        return;
     336    }
     337
     338    wp_add_inline_style( 'wp-admin', '
     339        .fixed .column-version,
     340        .fixed .column-ticket {
     341            width: 10%;
     342        }
     343
     344        @media screen and ( max-width: 782px ) {
     345            .fixed .column-version,
     346            .fixed .column-theme-url,
     347            .fixed .column-author-url,
     348            .fixed .column-ticket {
     349                display: none;
     350            }
     351        }
     352    ' );
     353}
     354add_action( 'admin_print_styles-edit.php', 'wporg_themes_custom_columns_style' );
     355
     356/**
    331357 * Meta box to choose which version is live.
    332358 */
Note: See TracChangeset for help on using the changeset viewer.