User:Irukaza/common.css

H萌娘,万物皆可H的百科全书!
< User:Irukaza
imported>=海豚=2020年4月19日 (日) 19:49的版本
跳到导航 跳到搜索

注意:这类代码页面在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • 按住CTRL+SHIFT+DEL 或 ⌘-Shift-R来清除缓存!
  • 或尝试在地址栏的地址最后添加代码?_=1来访问最新页面。
    添加代码后的本页地址如下:-{R|https://hmoegirl.com/User:Irukaza/common.css?_=1}-
  • 你还可以在设置中勾选小工具在页面右上角添加清除缓存按钮!
/* 浮动目录效果
    .toc-custom类添加逻辑在Mediawiki:Common.js
*/
.toc-custom {
  position: fixed;
  right: 0;
  top: 240px;
  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;
}

.toc-custom:hover {
  opacity: 1;
  filter: alpha(opacity=100);
  box-shadow: 0 0 4px black;
  -webkit-transform: translate(-100%, 0);
  -ms-transform: translate(-100%, 0);
  transform: translate(-100%, 0);
}

.toc-custom:hover:before {
  opacity: 0;
  filter: alpha(opacity=0);
}

.toc-custom:before {
  content: '目录';
  text-align: center;
  font-size: 12px;
  width: 20px;
  padding: 15px 3px;
  height: 45px;
  background: #000;
  color: #fff;
  position: absolute;
  left: -26px;
  top: 50%;
  margin-top: -30px;
  opacity: 1;
  filter: alpha(opacity=100);
  -webkit-transition: all .2s ease-in;
  transition: all .2s ease-in;
}

.toc-custom>ul {
  max-height: 45vh;
  overflow-y: scroll;
}

.toc-custom>ul {
  max-height: 45vh;
  overflow-y: scroll;
}
/* 图片注释 */
.custom-img-comment {
  opacity: 0;
  transition: opacity 0.5s;
  -moz-transition: opacity 0.5s;
  -webkit-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
}

.custom-img-comment:hover {
  opacity: 1;
}
/* 悬浮 */
.iteminfo {
  display: none;
}

.itemhover:hover .iteminfo {
  display: block;
}