Merge "Category: Remove "todo" comment about moving code from CategoryPage"
[lhc/web/wiklou.git] / resources / src / mediawiki.hlist / default.css
1 /*!
2 * Stylesheet for mediawiki.hlist module
3 * @author [[User:Edokter]]
4 */
5 /* Generate interpuncts */
6 .hlist dt:after {
7 content: ':';
8 }
9
10 .hlist dd:after,
11 .hlist li:after {
12 content: ' ยท';
13 font-weight: bold;
14 }
15
16 .hlist dd:last-child:after,
17 .hlist dt:last-child:after,
18 .hlist li:last-child:after {
19 content: none;
20 }
21
22 /* For IE8 */
23 .hlist dd.hlist-last-child:after,
24 .hlist dt.hlist-last-child:after,
25 .hlist li.hlist-last-child:after {
26 content: none;
27 }
28
29 /* Add parentheses around nested lists */
30 .hlist dd dd:first-child:before,
31 .hlist dd dt:first-child:before,
32 .hlist dd li:first-child:before,
33 .hlist dt dd:first-child:before,
34 .hlist dt dt:first-child:before,
35 .hlist dt li:first-child:before,
36 .hlist li dd:first-child:before,
37 .hlist li dt:first-child:before,
38 .hlist li li:first-child:before {
39 content: '(';
40 font-weight: normal;
41 }
42
43 .hlist dd dd:last-child:after,
44 .hlist dd dt:last-child:after,
45 .hlist dd li:last-child:after,
46 .hlist dt dd:last-child:after,
47 .hlist dt dt:last-child:after,
48 .hlist dt li:last-child:after,
49 .hlist li dd:last-child:after,
50 .hlist li dt:last-child:after,
51 .hlist li li:last-child:after {
52 content: ')';
53 font-weight: normal;
54 }
55
56 /* For IE8 */
57 .hlist dd dd.hlist-last-child:after,
58 .hlist dd dt.hlist-last-child:after,
59 .hlist dd li.hlist-last-child:after,
60 .hlist dt dd.hlist-last-child:after,
61 .hlist dt dt.hlist-last-child:after,
62 .hlist dt li.hlist-last-child:after,
63 .hlist li dd.hlist-last-child:after,
64 .hlist li dt.hlist-last-child:after,
65 .hlist li li.hlist-last-child:after {
66 content: ')';
67 font-weight: normal;
68 }
69
70 /* Put ordinals in front of ordered list items */
71 .hlist ol {
72 counter-reset: list-item;
73 }
74
75 .hlist ol > li {
76 counter-increment: list-item;
77 }
78
79 .hlist ol > li:before {
80 content: counter( list-item ) ' ';
81 }
82
83 .hlist dd ol > li:first-child:before,
84 .hlist dt ol > li:first-child:before,
85 .hlist li ol > li:first-child:before {
86 content: '(' counter( list-item ) ' ';
87 }
88
89 /* Support hlist styles inside *boxes */
90 .errorbox .hlist,
91 .successbox .hlist,
92 .warningbox .hlist {
93 margin-left: 0;
94 }
95
96 .errorbox .hlist li:after,
97 .successbox .hlist li:after,
98 .warningbox .hlist li:after {
99 margin-right: 3px;
100 }