Playlists, for .wp-playlist-item-title elements: move the curly quotes to CSS pseudo-element content, making them easier to override or remove.

Fixes #33391.


git-svn-id: https://develop.svn.wordpress.org/trunk@33643 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-08-19 05:50:23 +00:00
parent f629e70da3
commit 80b6f4efca
2 changed files with 10 additions and 2 deletions

View File

@ -216,6 +216,14 @@ video.wp-video-shortcode,
line-height: 1.5;
}
.wp-playlist-item-title:before {
content: '“';
}
.wp-playlist-item-title:after {
content: '”';
}
.wp-playlist-item-album {
font-style: italic;
overflow: hidden;

View File

@ -1166,7 +1166,7 @@ function wp_underscore_playlist_templates() {
<img src="{{ data.thumb.src }}"/>
<# } #>
<div class="wp-playlist-caption">
<span class="wp-playlist-item-meta wp-playlist-item-title">&#8220;{{ data.title }}&#8221;</span>
<span class="wp-playlist-item-meta wp-playlist-item-title">{{ data.title }}</span>
<# if ( data.meta.album ) { #><span class="wp-playlist-item-meta wp-playlist-item-album">{{ data.meta.album }}</span><# } #>
<# if ( data.meta.artist ) { #><span class="wp-playlist-item-meta wp-playlist-item-artist">{{ data.meta.artist }}</span><# } #>
</div>
@ -1178,7 +1178,7 @@ function wp_underscore_playlist_templates() {
<# if ( data.caption ) { #>
{{ data.caption }}
<# } else { #>
<span class="wp-playlist-item-title">&#8220;{{{ data.title }}}&#8221;</span>
<span class="wp-playlist-item-title">{{{ data.title }}}</span>
<# if ( data.artists && data.meta.artist ) { #>
<span class="wp-playlist-item-artist"> &mdash; {{ data.meta.artist }}</span>
<# } #>