Implement extension registration from an extension.json file
[mediawiki.git] / resources / src / mediawiki / mediawiki.hlist.css
blobadcb81040b1ee4b53f3b9bcb38af0cdf48268d7b
1 /*!
2 * Stylesheet for mediawiki.hlist module
3 * @author [[User:Edokter]]
4 */
5 .hlist dl,
6 .hlist ol,
7 .hlist ul {
8 margin: 0;
9 padding: 0;
11 /* Display list items inline */
12 .hlist dd,
13 .hlist dt,
14 .hlist li {
15 margin: 0;
16 display: inline;
18 /* Display nested lists inline */
19 .hlist dl dl, .hlist dl ol, .hlist dl ul,
20 .hlist ol dl, .hlist ol ol, .hlist ol ul,
21 .hlist ul dl, .hlist ul ol, .hlist ul ul {
22 display: inline;
24 /* Generate interpuncts */
25 .hlist dt:after {
26 content: ":";
28 .hlist dd:after,
29 .hlist li:after {
30 content: " ยท";
31 font-weight: bold;
33 .hlist dd:last-child:after,
34 .hlist dt:last-child:after,
35 .hlist li:last-child:after {
36 content: none;
38 /* For IE8 */
39 .hlist dd.hlist-last-child:after,
40 .hlist dt.hlist-last-child:after,
41 .hlist li.hlist-last-child:after {
42 content: none;
44 /* Add parentheses around nested lists */
45 .hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
46 .hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
47 .hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
48 content: "(";
49 font-weight: normal;
51 .hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
52 .hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
53 .hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
54 content: ")";
55 font-weight: normal;
57 /* For IE8 */
58 .hlist dd dd.hlist-last-child:after, .hlist dd dt.hlist-last-child:after, .hlist dd li.hlist-last-child:after,
59 .hlist dt dd.hlist-last-child:after, .hlist dt dt.hlist-last-child:after, .hlist dt li.hlist-last-child:after,
60 .hlist li dd.hlist-last-child:after, .hlist li dt.hlist-last-child:after, .hlist li li.hlist-last-child:after {
61 content: ")";
62 font-weight: normal;
64 /* Put ordinals in front of ordered list items */
65 .hlist ol {
66 counter-reset: list-item;
68 .hlist ol > li {
69 counter-increment: list-item;
71 .hlist ol > li:before {
72 content: counter(list-item) " ";
74 .hlist dd ol > li:first-child:before,
75 .hlist dt ol > li:first-child:before,
76 .hlist li ol > li:first-child:before {
77 content: "(" counter(list-item) " ";