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