“Widget:游戏主界面”的版本间差异

添加210字节 、​ 2022年5月17日 (二) 19:58
//使用页面/文本对比查看器快速编辑
(//使用页面/文本对比查看器快速编辑)
 
(未显示同一用户的43个中间版本)
<noinclude>{{doc|content=用于[[:category:导航模板|导航模板]],尤其是{{tl|SIF nav}}。}}[[category:混合小部件]]
<noincludep>{{doc|content=请使用{{tl|SIF JavaScript脚本:[[User:Bhsd/widget/nav}}调用。}}.js]]</p></noinclude><includeonly><!--{if !isset($wgWidgetStartScreen) || !$wgWidgetStartScreen}--><!--{assign var="wgWidgetStartScreen" value=true scope="global"}--><script defer src='/zh?title=user:bhsd/widget/nav.js&action=raw&ctype=text/javascript'></script><style>
//</includeonly>JavaScript脚本:<pre lang="js">
window.addEventListener('load', function () {
var eleStatic = document.querySelector('.start-screen');
eleStatic.querySelectorAll('a').forEach(function(ele) {
ele.href = 'javascript:void(0)';
});
var eleFixed = eleStatic.cloneNode(true);
eleFixed.classList.add('sticky-bottom');
eleStatic.parentNode.insertBefore(eleFixed, eleStatic);
eleStatic.style.visibility = 'hidden';
window.addEventListener('scroll', function() {
if(eleStatic.offsetTop > eleFixed.offsetTop) {
eleFixed.style.display = 'none';
eleStatic.style.visibility = '';
}
else {
eleFixed.style.display = '';
eleStatic.style.visibility = 'hidden';
}
});
});
//</pre>
<includeonly>
</script><style>
/* </includeonly>CSS样式表:<pre lang="css"> */
.start-screen {
text-align: center;
position: fixedsticky;
bottom: 3px;
white-space: nowrap;
overflow-x: auto;
-webkit-overflow-scrolling: touch; /* mobile Safari */
scroll-snap-type: x mandatory; /* Safari无效 */
z-index: 60;
}
.start-screen a {
scroll-snap-align: start;
display: inline-block; /* Chrome和Edge */
}
.start-screen table {
display: inline-table;
margin: 0;
width: auto !important;
}
 
.sticky-bottom {
.ll-nav, .ll-nav span {
position: fixed;
display: inline-block;
bottom: 3px;
}
.ll-nav {
background-color: #f6f6f6;
margin: 4px 1px;
padding: 4px;
border: solid #cdcdcd;
border-width: 1px 3px 3px 1px;
border-radius: 19px 9px;
}
.ll-nav > span {
background-color: #fff;
padding: 0px 10px;
line-height: 24px;
border: 1px solid #ababab;
border-radius: 15px 5px;
text-align: center;
}
.ll-nav > span > span {
height: 24px;
width: 24px;
margin-right: 5px;
color: #fff;
}
/* 提前加载FontAwesome部分CSS */
.fa, .fab, .fad, .fal, .far, .fas {
display: inline-block;
}
/* </pre><includeonly> */
16,874

个编辑