Make WordPress Core

Changeset 27865


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.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/mediaelement/wp-mediaelement.css

    r27805 r27865  
     1.mejs-container * {
     2    font-family: Helvetica, Arial;
     3}
     4
    15.mejs-container, .mejs-embed, .mejs-embed body {
    26    background: #000;
     
    6064    padding: 10px;
    6165    margin: 12px 0 18px;
    62     font-size: 85%;
    63     line-height: 160%;
     66    font-size: 14px;
     67    line-height: 1.5;
    6468}
    6569
     
    9397
    9498.wp-playlist-caption {
    95     max-width: 85%;
     99    max-width: 90%;
    96100    overflow: hidden;
    97101    text-overflow: ellipsis;
    98102    white-space: nowrap;
     103    font-size: 14px;
     104    line-height: 1.5;
    99105}
    100106
    101 .wp-caption-meta {
     107.wp-playlist-item-meta {
    102108    display: block;
     109    font-size: 14px;
     110    line-height: 1.5;
    103111}
    104112
    105 .wp-caption-title {
    106     font-size: 100%;
     113.wp-playlist-item-title {
     114    font-size: 14px;
     115    line-height: 1.5;
    107116}
    108117
    109 .wp-caption-album {
     118.wp-playlist-item-album {
    110119    font-style: italic;
    111120    overflow: hidden;
     
    114123}
    115124
    116 .wp-caption-artist {
    117     font-size: 85%;
     125.wp-playlist-item-artist {
     126    font-size: 12px;
    118127    text-transform: uppercase;
    119 }
    120 
    121 .wp-caption-by {
    122     font-size: 65%;
    123     font-weight: bold;
    124128}
    125129
     
    128132    right: 3px;
    129133    top: 0;
     134    font-size: 14px;
     135    line-height: 1.5;
    130136}
    131137
    132138.wp-playlist-tracks {
    133139    margin-top: 10px;
    134     border-top: 1px solid #ccc;
    135140}
    136141
     
    140145    padding: 0 3px;
    141146    border-bottom: 1px solid #ccc;
     147}
     148
     149.wp-playlist-item:last-child {
     150    border-bottom: 0;
    142151}
    143152
     
    176185    height: auto;
    177186    margin-right: 10px;
     187    padding: 0;
     188    border: 0;
    178189}
    179190
    180 .wp-playlist-current-item .wp-caption-title,
    181 .wp-playlist-current-item .wp-caption-artist {
     191.wp-playlist-current-item .wp-playlist-item-title,
     192.wp-playlist-current-item .wp-playlist-item-artist {
    182193    overflow: hidden;
    183194    text-overflow: ellipsis;
  • 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.