LLWiki正在建设中,欢迎加入我们

“Widget:Lyrics”的版本间差异

来自LLWiki
跳转到导航 跳转到搜索
标签移动版网页编辑 移动版编辑
标签移动版网页编辑 移动版编辑
第1行: 第1行:
<noinclude>{{doc|content={{tl|Lyrics}}。}}</noinclude><includeonly><!--{if !isset($wgLyrics) || !$wgLyrics}--><!--{assign var="wgLyrics" value=true scope="global"}--><style>
<noinclude>{{doc|content={{tl|Lyrics}}。}}</noinclude><includeonly><!--{if !isset($wgLyrics) || !$wgLyrics}--><!--{assign var="wgLyrics" value=true scope="global"}--><script>
// </includeonly>Javascript脚本:<pre lang+js>
window.addEventListener('load', function () {
var ele = document.querySelector('.Lyrics_box'),
width = ele.dataset.width,
styles = document.createElement('style');
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"> */
/* </includeonly>CSS样式表:<pre lang="css"> */
.Lyrics_box {
.Lyrics_box {

2020年8月15日 (六) 01:14的版本

Template-info.png 小部件文档
这个文档是内联文档。

{{Lyrics}}。

Javascript脚本:

window.addEventListener('load', function () {
    var ele = document.querySelector('.Lyrics_box'),
        width = ele.dataset.width,
        styles = document.createElement('style');
    styles.innerHTML = '@media only screen and (min-width:720px) { div.Lyrics_box { width:' + width + '; } }';
    document.head.appendChild(styles);
}); 
//

CSS样式表:

 */
.Lyrics_box {
	width: 100%;
	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,
.Lyrics_box.Lyrics_has_ruby .Lyrics_translated {
	line-height: 2.1;
}
.Lyrics.Lyrics_no-ruby .Lyrics_original,
.Lyrics.Lyrics_no-ruby .Lyrics_translated {
	vertical-align: top;
}
.Lyrics_box .Lyrics_original,
.Lyrics_box .Lyrics_translated {
	width: 49.85%;
	min-width: 425px;
	display: inline-block;
	white-space: pre-wrap;
}
.Lyrics_gradient {
	-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;
}
/*