“Widget:Songposition”的版本间差异

删除39字节 、​ 2022年12月3日 (六) 18:42
//使用页面/文本对比查看器快速编辑
标签移动版网页编辑 移动版编辑
(//使用页面/文本对比查看器快速编辑)
 
(未显示同一用户的22个中间版本)
<noinclude>{{doc|content=用于生成角色小图标的tooltip。请使用{{tl|songposition}}调用。}}[[category:混合小部件]]
<noincludep>{{doc|content=用于{{tl|JavaScript脚本:[[User:Bhsd/widget/songposition}}的样式表。}}.js]]</p></noinclude><includeonly><!--{if !isset($wgWidgetSongposition) || !$wgWidgetSongposition}--><!--{assign var="wgWidgetSongposition" value=true scope="global"}--><script defer src='/zh?title=user:bhsd/widget/songposition.js&action=raw&ctype=text/javascript'></script><style>
// </includeonly>JavaScript脚本:<pre lang="js">
window.addEventListener('load', function () {
document.querySelectorAll( '.member-symbol' ).forEach(function(ele) {
ele.dataset.title = ele.title;
ele.removeAttribute('title');
});
});
// </pre>
<includeonly>
</script><style>
/* </includeonly>CSS样式表:<pre lang="css"> */
.member-symbol {
display: inline-block;
position: relative;
.member-symbol:hover::after {
content: attr(data-title);
position: absolute;
white-space: nowrap;
top: 100%;
left: 50%;
transform: translateX(-50%);
border: 1px solid #a7d7f9;
z-index: 10;
background-color: #fff;
padding: 0 3px;
border-radius: 4px;
box-shadow: 1px 1px 1px #ccc;
.member-symbol img {
width: 20px !important;
height: auto !important;
min-width: 0;
.member-graph img {
width: 60px !important;
@media screen and (min-width:720px) {
.member-symbol:hover::after-10 img {
width: 18px !important;
}
}
.member-symbol-image {
display: inline-blocknone;
}
#member-symbol-popup img {
width: 50px;
height: 50px;
}
#member-graph-popup img {
width: 300px;
height: auto;
}
#member-symbol-popup span, #member-graph-popup span {
white-space: nowrappre;
}
/* </pre><includeonly> */
16,874

个编辑