Make WordPress Core


Ignore:
Timestamp:
03/30/2014 10:11:46 PM (12 years ago)
Author:
wonderboymusic
Message:

Using percentages for playlist font-sizing was ambitious, but fell prey to editor-style.css in the admin. We have switched to using pixels. The editor styles were also forcing MediaElement players to inherit font-family, which was undesirable. And while we're at it, remove the top and bottom border from the playlist's list of tracks, which adds a dash of lovely to the playlist's default styles.

Props nacin for the addition of — in the playlist track list.
Fixes #27600.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r27864 r27865  
    10201020    <# } #>
    10211021    <div class="wp-playlist-caption">
    1022         <span class="wp-caption-meta wp-caption-title">&#8220;{{{ data.title }}}&#8221;</span>
    1023         <# if ( data.meta.album ) { #><span class="wp-caption-meta wp-caption-album">{{ data.meta.album }}</span><# } #>
    1024         <# if ( data.meta.artist ) { #><span class="wp-caption-meta wp-caption-artist">{{ data.meta.artist }}</span><# } #>
     1022        <span class="wp-playlist-item-meta wp-playlist-item-title">&#8220;{{{ data.title }}}&#8221;</span>
     1023        <# if ( data.meta.album ) { #><span class="wp-playlist-item-meta wp-playlist-item-album">{{ data.meta.album }}</span><# } #>
     1024        <# if ( data.meta.artist ) { #><span class="wp-playlist-item-meta wp-playlist-item-artist">{{ data.meta.artist }}</span><# } #>
    10251025    </div>
    10261026</script>
     
    10321032                {{{ data.caption }}}
    10331033            <# } else { #>
    1034                 <span class="wp-caption-title">&#8220;{{{ data.title }}}&#8221;</span>
     1034                <span class="wp-playlist-item-title">&#8220;{{{ data.title }}}&#8221;</span>
    10351035                <# if ( data.artists && data.meta.artist ) { #>
    1036                 <span class="wp-caption-by"><?php _e( 'by' ) ?></span>
    1037                 <span class="wp-caption-artist">{{ data.meta.artist }}</span>
     1036                <span class="wp-playlist-item-artist"> &mdash; {{ data.meta.artist }}</span>
    10381037                <# } #>
    10391038            <# } #>
Note: See TracChangeset for help on using the changeset viewer.