MediaWiki:Gadget-FloatToc.css:修订间差异
跳到导航
跳到搜索
imported>=海豚= (创建页面,内容为“→浮动目录效果: .toc-custom { position: fixed; right: -170px; top: 200px; background: rgba(255, 255, 255, 0.7); z-index: 10; width: 160px; opac…”) |
imported>=海豚= ([InPageEdit] 没有编辑摘要) |
||
| 第2行: | 第2行: | ||
.toc-custom { | .toc-custom { | ||
position: fixed; | position: fixed; | ||
right: - | right: -180px; | ||
top: 200px; | top: 200px; | ||
background: rgba(255, 255, 255, 0.7); | background: rgba(255, 255, 255, 0.7); | ||
2020年4月19日 (日) 23:17的版本
/* 浮动目录效果*/
.toc-custom {
position: fixed;
right: -180px;
top: 200px;
background: rgba(255, 255, 255, 0.7);
z-index: 10;
width: 160px;
opacity: 0.5;
filter: alpha(opacity=50);
-webkit-transition: -webkit-transform .2s ease-in;
transition: transform .2s ease-in;
}
.toc-custom:hover {
opacity: 1;
filter: alpha(opacity=100);
box-shadow: 0 0 4px black;
-webkit-transform: translate(-85%, 0);
-ms-transform: translate(-85%, 0);
transform: translate(-85%, 0);
}
.toc-custom>ul {
height: 50vh;
overflow-y: scroll;
}
#toc:not(.toc-custom) {
display: none;
}
#btn-showtoc {
cursor: pointer;
}
.toc .toctoggle {
display: none;
}