MediaWiki:Gadget-hlist.css

来自滚动的天空Wiki

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:Ctrl-F5
/* {{维基百科搬运|MediaWiki:Common.css}} */
/* Style for horizontal lists (separator following item) */
.skin-vector .hlist dl {
    line-height: 1.5em;
}
body .hlist :is(dl, ol, ul),
:is(dl, ol, ul).hlist,
.toc-hlist-2 .toclevel1 > ul{
    margin: 0;
}
/*兼容*/
body .hlist :-webkit-any(dl, ol, ul),
:-webkit-any(dl, ol, ul).hlist,
.toc-hlist-2 .toclevel1 > ul{
    margin: 0;
}
body .hlist :is(dd, dt, li),
:is(dd, dt, li).hlist,
.toc-hlist-2 .toclevel-2{
    display: inline;
    margin: 0;
}
/*兼容*/
body .hlist :-webkit-any(dd, dt, li),
:-webkit-any(dd, dt, li).hlist,
.toc-hlist-2 .toclevel-2{
    display: inline;
    margin: 0;
}
/* Display nested lists inline */
body .hlist :is(dl, ol, ul) :is(dl, ol, ul),
:is(dl, ol, ul).hlist :is(dl, ol, ul),
.toc-hlist-2 .toclevel-1 > ul ul{
    display: inline;
}
/*兼容*/
body .hlist :-webkit-any(dl, ol, ul) :-webkit-any(dl, ol, ul),
:-webkit-any(dl, ol, ul).hlist :-webkit-any(dl, ol, ul),
.toc-hlist-2 .toclevel-1 > ul ul{
    display: inline;
}
/* Generate interpuncts */
body .hlist dt:after {
    content: ":";
}
body .hlist dd:after,
body .hlist li:after,
body .toc-hlist-2 .toclevel-2:after{
    content: " • ";
    font-weight: bold;
}
body .hlist :is(dd, dt, li):last-child:after,
body .toc-hlist-2 .toclevel-2:last-child:after{
    content: none;
}
/*兼容*/
body .hlist :-webkit-any(dd, dt, li):last-child:after,
body .toc-hlist-2 .toclevel-2:last-child:after{
    content: none;
}
/* for IE 8 */
body .hlist :is(dd, dt, li).nopunct:after,
body .toc-hlist-2 .toclevel-2.nopunct:after{
    content: none;
}
/*兼容*/
body .hlist :-webkit-any(dd, dt, li).nopunct:after,
body .toc-hlist-2 .toclevel-2.nopunct:after{
    content: none;
}
/* Add parens around nested lists */
body .hlist :is(dl, ol, ul) :is(dl, ol, ul):before,
body :is(dl, ol, ul).hlist :is(dl, ol, ul):before,
body .toc-hlist-2 .toclevel-1 > ul ul:before{
    content: "(";
}
/*兼容*/
body .hlist :-webkit-any(dl, ol, ul) :-webkit-any(dl, ol, ul):before,
body :-webkit-any(dl, ol, ul).hlist :-webkit-any(dl, ol, ul):before,
body .toc-hlist-2 .toclevel-1 > ul ul:before{
    content: "(";
}
body .hlist :is(dl, ol, ul) :is(dl, ol, ul):after,
body :is(dl, ol, ul).hlist :is(dl, ol, ul):after,
body .toc-hlist-2 .toclevel-1 > ul ul:after{
    content: ")";
}
/*兼容*/
body .hlist :-webkit-any(dl, ol, ul) :-webkit-any(dl, ol, ul):after,
body :-webkit-any(dl, ol, ul).hlist :-webkit-any(dl, ol, ul):after,
body .toc-hlist-2 .toclevel-1 > ul ul:after{
    content: ")";
}
/* Put numbers in ordered lists */
body .hlist.hnum ol li,
ol.hlist.hnum li{
    counter-increment: level1;
}
body .hlist.hnum ol li:before,
ol.hlist.hnum li:before{
    content: counter(level1) " ";
}
body .hlist.hnum ol ol li,
ol.hlist.hnum ol li{
    counter-increment: level2;
}
body .hlist.hnum ol ol li:before,
ol.hlist.hnum ol li:before{
    content: counter(level2) " ";
}

.plainlist ul {
    line-height: inherit;
    list-style: none none;
    margin: 0;
}
.plainlist ul li {
    margin-bottom: 0;
}

.same-bg { background: none }