MediaWiki:Gadget-FloatToc.css:修订间差异
跳到导航
跳到搜索
imported>=海豚= 小 (=海豚=移动页面MediaWiki:Gadget-HideToc.css至MediaWiki:Gadget-FloatToc.css,不留重定向) |
imported>=海豚= ([InPageEdit] 没有编辑摘要 (编辑自Special:Diff/41382)) |
||
| 第1行: | 第1行: | ||
.toc . | /* 由用户:850710247liu设计的浮动目录效果*/ | ||
.toc-custom { | |||
position: fixed; | |||
right: -195px; | |||
top: 180px; | |||
z-index: 10; | |||
width: 181px; | |||
filter: alpha(opacity=50); | |||
-webkit-transition: -webkit-transform .2s ease-in; | |||
transition: transform .2s ease-in; | |||
padding: 0.8em; | |||
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.12); | |||
border-radius: 10px; | |||
overflow: hidden; | |||
border: 1px solid #ddd; | |||
} | |||
.toc-custom:hover { | |||
opacity: 1; | |||
filter: alpha(opacity=100); | |||
-webkit-transform: translate(-85%, 0); | |||
-ms-transform: translate(-85%, 0); | |||
transform: translate(-85%, 0); | |||
padding: 0.8em; | |||
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.12); | |||
border-radius: 10px; | |||
overflow: hidden; | |||
border: 1px solid #ddd; | |||
} | |||
.toc-custom>ul { | |||
height: 55vh; | |||
overflow-y: scroll; | |||
} | |||
#toc:not(.toc-custom) { | |||
display: none; | display: none; | ||
} | |||
#btn-showtoc { | |||
cursor: pointer; | |||
} | } | ||
2020年4月24日 (五) 15:19的版本
/* 由用户:850710247liu设计的浮动目录效果*/
.toc-custom {
position: fixed;
right: -195px;
top: 180px;
z-index: 10;
width: 181px;
filter: alpha(opacity=50);
-webkit-transition: -webkit-transform .2s ease-in;
transition: transform .2s ease-in;
padding: 0.8em;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.12);
border-radius: 10px;
overflow: hidden;
border: 1px solid #ddd;
}
.toc-custom:hover {
opacity: 1;
filter: alpha(opacity=100);
-webkit-transform: translate(-85%, 0);
-ms-transform: translate(-85%, 0);
transform: translate(-85%, 0);
padding: 0.8em;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.12);
border-radius: 10px;
overflow: hidden;
border: 1px solid #ddd;
}
.toc-custom>ul {
height: 55vh;
overflow-y: scroll;
}
#toc:not(.toc-custom) {
display: none;
}
#btn-showtoc {
cursor: pointer;
}