LLWiki正在建设中,欢迎加入我们!
“Widget:Songposition”的版本间差异
跳转到导航
跳转到搜索
小 标签:移动版网页编辑 移动版编辑 |
(//使用页面/文本对比查看器快速编辑) |
||
(未显示同一用户的22个中间版本) | |||
第1行: | 第1行: | ||
<noinclude>{{doc|content=用于生成角色小图标的tooltip。请使用{{tl|songposition}}调用。}}[[category:混合小部件]] |
|||
< |
<p>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"> */ |
/* </includeonly>CSS样式表:<pre lang="css"> */ |
||
⚫ | |||
⚫ | |||
position: relative; |
|||
⚫ | |||
⚫ | |||
content: attr(data-title); |
|||
position: absolute; |
|||
⚫ | |||
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 { |
.member-symbol img { |
||
width: 20px !important; |
width: 20px !important; |
||
height: auto !important; |
height: auto !important; |
||
min-width: 0; |
|||
⚫ | |||
.member-graph img { |
|||
width: 60px !important; |
|||
⚫ | |||
@media screen and (min-width:720px) { |
|||
⚫ | |||
width: 18px !important; |
|||
} |
|||
} |
|||
⚫ | |||
⚫ | |||
} |
|||
#member-symbol-popup img { |
|||
width: 50px; |
|||
height: 50px; |
|||
} |
|||
#member-graph-popup img { |
|||
width: 300px; |
|||
height: auto; |
|||
} |
|||
#member-symbol-popup span, #member-graph-popup span { |
|||
⚫ | |||
} |
} |
||
/* </pre><includeonly> */ |
/* </pre><includeonly> */ |
2022年12月3日 (六) 18:42的最新版本
JavaScript脚本:User:Bhsd/widget/songposition.js
CSS样式表:
*/
.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-10 img {
width: 18px !important;
}
}
.member-symbol-image {
display: none;
}
#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: pre;
}
/*