Template:ShareCSS/hlists-like TOC.css
外观
/************************************
搭配Template:Horizontal TOC使用:
- 将目录横排显示,每个二级目录为一行
- 隐去数字编号
************************************/
#toc .tocnumber {
display: none;
}
#toc .toclevel-1 {
display: block;
margin-top: 0.5em;
margin-bottom: 0.5em;
line-height: 1.5em;
}
#toc .toclevel-1:after {
content: "";
}
#toc .toclevel-1 ul:after,
#toc .toclevel-1 ul:before {
content: "";
}
#toc .toclevel-1 > a {
font-weight: bold;
margin-left: 2em;
}
#toc .toclevel-1 ul {
margin-left: 0;
}
#toc .toclevel-1 ul:before {
content: "- ";
}