「MediaWiki:Common.css」:修訂間差異
無編輯摘要
無編輯摘要 |
無編輯摘要 |
||
第652行: | 第652行: | ||
margin-top: 0.5em; /* Prevent lists from clinging to navboxes */ | margin-top: 0.5em; /* Prevent lists from clinging to navboxes */ | ||
} | } | ||
/* Style for horizontal lists (separator following item) */ | |||
.hlist dl, | |||
.hlist ol, | |||
.hlist ul { | |||
margin: 0; | |||
} | |||
.hlist dd, | |||
.hlist dt, | |||
.hlist li { | |||
display: inline; | |||
margin: 0; | |||
} | |||
/* Display nested lists inline */ | |||
.hlist.inline, | |||
.hlist.inline dl, | |||
.hlist.inline ol, | |||
.hlist.inline ul, | |||
.hlist dl dl, .hlist dl ol, .hlist dl ul, | |||
.hlist ol dl, .hlist ol ol, .hlist ol ul, | |||
.hlist ul dl, .hlist ul ol, .hlist ul ul { | |||
display: inline; | |||
} | |||
/* Generate interpuncts */ | |||
.hlist dt:after { | |||
content: " :"; | |||
} | |||
.hlist dd:after, | |||
.hlist li:after { | |||
content: " · "; | |||
font-weight: bold; | |||
} | |||
.hlist dd:last-child:after, | |||
.hlist dt:last-child:after, | |||
.hlist li:last-child:after { | |||
content: none; | |||
} | |||
/* Add parens around nested lists */ | |||
.hlist dl dl:before, | |||
.hlist ol ol:before, | |||
.hlist ul ul:before { | |||
content: "("; | |||
} | |||
.hlist dl dl:after, | |||
.hlist ol ol:after, | |||
.hlist ul ul:after { | |||
content: ")"; | |||
} | |||
/* Put numbers in ordered lists */ | |||
.hlist.hnum ol li { | |||
counter-increment: level1; | |||
} | |||
.hlist.hnum ol li:before { | |||
content: counter(level1) " "; | |||
} | |||
.hlist.hnum ol ol li { | |||
counter-increment: level2; | |||
} | |||
.hlist.hnum ol ol li:before { | |||
content: counter(level2) " "; | |||
} | |||
/* Unbulleted lists */ | |||
.plainlist ul { | |||
line-height: inherit; | |||
list-style: none none; | |||
margin: 0; | |||
} | |||
.plainlist ul li { | |||
margin-bottom: 0; | |||
} | |||
.same-bg { background: none } |