第4行: |
第4行: |
| >来自中文维基百科的样式,通过 CC-BY-SA 3.0 授权引入 | | >来自中文维基百科的样式,通过 CC-BY-SA 3.0 授权引入 |
| */ | | */ |
| + | |
| + | /* Make the list of references smaller */ |
| + | ol.references, |
| + | div.reflist { |
| + | font-size: 90%; /* Default font-size */ |
| + | margin-bottom: 0.5em; |
| + | } |
| + | div.reflist ol.references{ |
| + | font-size: 100%; /* Reset font-size when nested in div.reflist */ |
| + | } |
| + | div.reflist ol.references, div.notelist ol.references { |
| + | list-style-type: inherit; /* Enable custom list style types */ |
| + | } |
| + | |
| + | /* .references-2column b/c */ |
| + | div.references-2column { |
| + | -moz-column-count: 2; |
| + | column-count: 2; |
| + | font-size: 90%; |
| + | } |
| + | div.references-2column ol.references, |
| + | div.references-2column div.reflist{ |
| + | font-size: 100%; |
| + | } |
| + | |
| + | /* Reset top margin for lists embedded in columns */ |
| + | div.columns { |
| + | margin-top: 0.3em; |
| + | } |
| + | div.columns dl, |
| + | div.columns ol, |
| + | div.columns ul { |
| + | margin-top: 0; |
| + | } |
| + | |
| + | /* Avoid list items from breaking between columns */ |
| + | div.columns li, |
| + | div.columns dd dd { |
| + | -webkit-column-break-inside: avoid; |
| + | page-break-inside: avoid; |
| + | break-inside: avoid-column; |
| + | } |
| + | |
| + | /* Highlight clicked reference in blue to help navigation */ |
| + | ol.references li:target, |
| + | sup.reference:target, |
| + | span.citation:target { |
| + | background-color: #DEF; |
| + | } |
| + | |
| + | /* Prevent line breaks in silly places: |
| + | 1) Where desired |
| + | 2) Links when we don't want them to |
| + | 3) Bold "links" to the page itself |
| + | 4) HTML formulae |
| + | 5) Ref tags with group names <ref group="Note"> --> "[Note 1]" |
| + | */ |
| + | .nowrap, |
| + | .nowraplinks a, |
| + | .nowraplinks .selflink, |
| + | span.texhtml, |
| + | sup.reference a { |
| + | white-space: nowrap; |
| + | } |
| + | |
| + | /* In the case where non-CJK links are joined with CJK punctuations |
| + | (thus no space after punctuations), browsers tend to disallow link wrap |
| + | around those punctuations (see diff=37708459). Insert an empty pseudo- |
| + | element with standard wrapping to work around this. */ |
| + | .nowraplinks a:before, |
| + | .nowraplinks .selflink:before { |
| + | content: " "; |
| + | font-size: 0; |
| + | white-space: normal; |
| + | } |
| + | |
| + | /* However if there is a manual nowrap, do not ignore it. */ |
| + | .nowraplinks .nowrap a:before, |
| + | .nowraplinks .nowrap .selflink:before { |
| + | white-space: nowrap; |
| + | } |
| + | |
| + | /* Style for horizontal lists (separator following item) */ |
| + | .skin-monobook .hlist dl, |
| + | .skin-modern .hlist dl, |
| + | .skin-vector .hlist dl { |
| + | line-height: 1.5em; |
| + | } |
| + | .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; |
| + | } |
| + | /* for IE 8 */ |
| + | .hlist dd.nopunct:after, |
| + | .hlist dt.nopunct:after, |
| + | .hlist li.nopunct: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 } |
| | | |
| /* Infobox template style */ | | /* Infobox template style */ |