MediaWiki:Common.css:修订间差异

添加151字节 、​ 2025年1月26日 (星期日)
无编辑摘要
无编辑摘要
无编辑摘要
 
第1,255行: 第1,255行:


/* == 浮动目录 == */
/* == 浮动目录 == */
#toc {
#toc{
    position: fixed;
display: block;
    right: 0;
position: fixed;
    top: 7em; /* 5em is height of header, 6em brings just under */
top: 100px;
    /* bottom: 5em; /* 5em puts us above the footer; not bad but too low when TOC is collapsed */
right: 0px;
   
min-width: 100px;
    z-index: 10000; /* Ensure we float above the header, etc. */
max-width: 350px;
   
max-height: 20px;
    /* Add opacity (translucency) */
  overflow-y: scroll;
    background-color: rgb(249, 249, 249);
  border: 1px solid #aaa;
    background-color: rgba(249, 249, 249, 0.9); /* Higher opacity (last arg) means less transparency */
border-radius: 0 0 1px 1px;
-moz-border-radius: 0 0 1px 1px;
background: rgba(249,249,249,0.75);
padding: 12px;
box-shadow: 0 1px 8px #000;
-webkit-box-shadow: 0 1px 8px #000;
-moz-box-shadow: 0 1px 8px #000;
}
}
/* Ensure the TOC height doesn't take over the screen; percentages may be higher than view port, so we use pixels */
 
#toc > ul {
#toc:hover{
    max-height: 350px;
display: block;
    overflow: auto;
position: fixed;
}
top: 100px;
.toctoggle {
right: 0px;
    float: right;
min-width: 100px;
max-width: 350px;
max-height: 500px;
overflow-y: scroll;
border: 1px solid #aaa;
border-radius: 0 0 1px 1px;
-moz-border-radius: 0 0 1px 1px;
background: rgba(249,249,249,0.75);
padding: 12px;
box-shadow: 0 1px 8px #000;
-webkit-box-shadow: 0 1px 8px #000;
-moz-box-shadow: 0 1px 8px #000;
 
}
}
 
body { overflow-x: hidden;}