MediaWiki:Common.css:修订间差异

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


/* == 浮动目录 == */
/* == 浮动目录 == */
#toc.mbox-image { display: none; }
#toc {
table.toc {
    position: fixed;
position: fixed;
    right: 0;
top: 100px;
    top: 7em; /* 5em is height of header, 6em brings just under */
right: 0px;
    /* bottom: 5em; /* 5em puts us above the footer; not bad but too low when TOC is collapsed */
border: 0px;
width: 300px;
    z-index: 10000; /* Ensure we float above the header, etc. */
border-bottom: 1px SOLID #CCC;
border-left: 1px SOLID #CCC;
    /* Add opacity (translucency) */
    background-color: rgb(249, 249, 249);
    background-color: rgba(249, 249, 249, 0.9); /* Higher opacity (last arg) means less transparency */
}
}
table.toc tbody tr td ul {
/* Ensure the TOC height doesn't take over the screen; percentages may be higher than view port, so we use pixels */
overflow: auto;
#toc > ul {
max-height: 400px;
    max-height: 350px;
    overflow: auto;
}
}
.toctoggle {
table.toc tbody tr td ul ul {
    float: right;
overflow: auto;
max-height: 10000px;
}
}
body { overflow-x: hidden;}