User:Irukaza/common.css
跳到导航
跳到搜索
注意:这类代码页面在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- 按住
CTRL+SHIFT+DEL 或 ⌘-Shift-R
来清除缓存! - 或尝试在地址栏的地址最后添加代码
?_=1
来访问最新页面。 - 你还可以在设置中勾选小工具在页面右上角添加清除缓存按钮!
/* 浮动目录效果
.toc-custom类添加逻辑在Mediawiki:Common.js
*/
.toc-custom {
position: fixed;
top: 200px;
background: rgba(255, 255, 255, 0.8);
z-index: 10;
max-width: 347px;
opacity: 0.5;
filter: alpha(opacity=50);
-webkit-transition: -webkit-transform .2s ease-in;
transition: transform .2s ease-in;
-webkit-transform: translate(210%, 0);
-ms-transform: translate(210%, 0);
transform: translate(210%, 0);
}
.toc-custom:hover {
opacity: 1;
filter: alpha(opacity=100);
box-shadow: 0 0 4px black;
-webkit-transform: translate(-80%, 0);
-ms-transform: translate(-80%, 0);
transform: translate(-80%, 0);
}
.toc-custom>ul {
max-height: 55vh;
overflow-y: scroll;
}
.toc-custom>ul {
max-height: 55vh;
overflow-y: scroll;
}