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:
parent
f629e70da3
commit
80b6f4efca
@ -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;
|
||||
|
@ -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">“{{ data.title }}”</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">“{{{ data.title }}}”</span>
|
||||
<span class="wp-playlist-item-title">{{{ data.title }}}</span>
|
||||
<# if ( data.artists && data.meta.artist ) { #>
|
||||
<span class="wp-playlist-item-artist"> — {{ data.meta.artist }}</span>
|
||||
<# } #>
|
||||
|
Loading…
Reference in New Issue
Block a user