“Widget:Lyrics”的版本间差异

删除99字节 、​ 2020年8月15日 (六) 00:06
无编辑摘要
标签移动版网页编辑 移动版编辑
标签移动版网页编辑 移动版编辑
<noinclude>{{doc|content={{tl|Lyrics}}。}}</noinclude><includeonly><!--{if !isset($wgLyrics) || !$wgLyrics}--><!--{assign var="wgLyrics" value=true scope="global"}--><scriptstyle>
//</includeonly>Javascript脚本:<pre lang="js">
window.addEventListener('load', function () {
var ele = document.querySelector('.Lyrics_box'),
width = ele.dataset.width,
styles = document.createElement('style');
if(width.match(/^-.*/)) { width = 'calc(100% ' + width + ')'; }
styles.innerHTML = '@media only screen and (min-width:720px) { div.Lyrics_box { width:' + width + '; } }';
document.head.appendChild(styles);
});
//</pre>
<includeonly>
</script>
<style>
/* </includeonly>CSS样式表:<pre lang="css"> */
.Lyrics_box {
max-width: 1080px;
display: inline-block;
}
@media only screen and (min-width:720px) {
.Lyrics_box {
width: attr(data-width);
}
}
.Lyrics_box.Lyrics_has_ruby .Lyrics_original,
display: inline-block;
white-space: pre-wrap;
}
.Lyrics_gradient, .Lyrics_gradient rb, .Lyrics_gradient rt {
-webkit-background-clip: text;
background-clip: text;
-webkit-box-decoration: clone;
-webkit-text-fill-color: transparent;
text-fill-color: transparent;
}
.Lyrics_gradient ruby, .Lyrics_gradient rb, .Lyrics_gradient rt {
background: inherit;
}
/* </pre><includeonly> */
16,874

个编辑