“Widget:Lyrics”的版本间差异

添加1,111字节 、​ 2022年5月17日 (二) 20:01
//使用页面/文本对比查看器快速编辑
标签移动版网页编辑 移动版编辑
(//使用页面/文本对比查看器快速编辑)
 
(未显示2个用户的71个中间版本)
<noinclude>{{doc|content=用于处理歌词相关的一些效果。请使用{{tl|Lyrics}}调用。}}[[category:混合小部件]]
<noinclude>{{doc|content={{tl|Lyrics}}。}}</noinclude><includeonly><!--{if !isset($wgLyrics) || !$wgLyrics}--><!--{assign var="wgLyrics" value=true scope="global"}--><style>
<p>JavaScript脚本:[[User:Bhsd/widget/lyrics.js]]</p></noinclude><includeonly><!--{if !isset($wgLyrics) || !$wgLyrics}--><!--{assign var="wgLyrics" value=true scope="global"}--><script defer src='/zh?title=user:bhsd/widget/lyrics.js&action=raw&ctype=text/javascript'></script><style>
/* </includeonly>CSS样式表:<pre lang="css"> */
.Lyrics_box {
display: flow-root;
max-width: 1080px;
white-space: pre-wrap;
}
/* 仅用于拉丁字母的注音 */
.Lyrics_line {
.Lyrics_monospace {
column-count:2;
font-family: Monaco, Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace;
column-width:360px;
column-gap:10px;
}
.Lyrics_monospace .reference {
.Lyrics_no_translation .Lyrics_line {
font-family: Helvetica, Arial, sans-serif;
column-count:1;
}
.Lyrics_gradient .reference {
-webkit-text-fill-color: currentColor;
text-fill-color: currentColor;
}
.Lyrics_original, .Lyrics_translated {
width:100 calc(50% - 5px);
display: inline-table; /* 顶部对齐 */
vertical-align:top;
}
.Lyrics_original {
.Lyrics_no_translation .Lyrics_translated, .Lyrics_line ruby {
margin-right: 10px;
display:none;
}
/* 结合JS实现窄屏适配 */
.Lyrics_has_ruby {
.Lyrics_no_translation .Lyrics_original,
line-height: 2.1;
.Lyrics_narrow .Lyrics_original,
.Lyrics_narrow .Lyrics_translated {
width: 100%;
margin-right: 0;
}
/* 手机版初始折叠会造成js无法计算实际宽度 */
.Lyrics_has_ruby ruby {
@media screen and (max-width:720px) {
display:initial;
.Lyrics_original, .Lyrics_translated {
}
width: 100%;
@media only screen and (max-width:720px) {
margin-right: 0;
.Lyrics_box {
width: 100% !important;
}
}
.Lyrics_no_translation .Lyrics_translated {
display: none;
}
_:-moz-read-write, :root .Lyrics_has_ruby {
line-height: 2.1;
}
.Lyrics_has_ruby rt { /* 无法正确选中 */
-webkit-user-select: none; /* Safari */
user-select: none;
}
 
-webkit-background-clip: text;
background-clip: text;
-webkit-box-decoration-break: clone; /* Safari;只有Firefox支持slice且为默认 */
-webkit-text-fill-color: transparent;
text-fill-color: transparent;
}
.Lyrics_gradient, .Lyrics_single {
position:relative;
}
.Lyrics_gradient ruby, .Lyrics_gradient rb, .Lyrics_gradient rt {
background: inherit; /* 已知Safari和Edge Android需要rb */
}
.skin-minerva .Lyrics_gradient:hover::before, .Lyrics_single:hover {
filter: drop-shadow(2px 2px #e8e8e8);
.skin-minerva .Lyrics_single:hover::before {
}
content:attr(title);
.Lyrics_tipsy .oo-ui-popupWidget-body-padded {
position:absolute;
font-size: 0.8em;
top:100%;
margin: 5px 8px 4px;
white-space:nowrap;
z-index:10;
background:#fff;
font-size:0.8em;
border:1px solid #a7d7f9;
border-radius: 4px;
padding:0 3px;
box-shadow:1px 1px 1px #ccc;
color:#000;
-webkit-text-fill-color: initial;
text-fill-color: initial;
}
 
.Lyrics_box rtruby {
white-space: normal; /* Safari */
font-size:0.8em;
}
.mw-collapsed + .Lyrics_box rt > span:first-child {,
.photrans-off {
font-size:0;
font-size: 0;
}
.mw-collapsed + .Lyrics_box rb span {
letter-spacing: 0 !important;
margin-left: 0 !important;
}
.photrans-off {
font-size:0;
}
.mw-collapsed + .Lyrics_box .photrans-off {
font-size: 1em;
}
.photrans-s {
visibility: hidden;
font-size: 1.25em;
white-space: pre-wrap;
}
.skin-minerva p + div > .photrans-button {
margin-top: -1em !important;
}
.photrans-button .mw-collapsed {
display: none; /* 移动版提前加载样式 */
}
 
.memberblock, .Lyrics_gradient, .Lyrics_single {
transition: all ease-in-out 0.3s;
}
.memberblock.mw-collapsed {
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.24);
}
.memberblock a {
pointer-events: none;
}
/* </pre><includeonly> */
16,874

个编辑