Merge "mediawiki.ui: Ensure that buttons and inputs are vertically aligned"
[lhc/web/wiklou.git] / resources / mediawiki / mediawiki.hlist.css
1 /**
2 Stylesheet for mediawiki.hlist module
3 @author [[User:Edokter]]
4 */
5 .skin-monobook .hlist dl,
6 .skin-modern .hlist dl,
7 .skin-vector .hlist dl {
8 line-height: 1.5em;
9 }
10 .hlist dl,
11 .hlist ol,
12 .hlist ul {
13 margin: 0;
14 padding: 0;
15 }
16 /* Display list items inline */
17 .hlist dd,
18 .hlist dt,
19 .hlist li {
20 margin: 0;
21 display: inline;
22 }
23 /* Display nested lists inline */
24 .hlist dl dl, .hlist dl ol, .hlist dl ul,
25 .hlist ol dl, .hlist ol ol, .hlist ol ul,
26 .hlist ul dl, .hlist ul ol, .hlist ul ul {
27 display: inline;
28 }
29 /* Generate interpuncts */
30 .hlist dt:after {
31 content: ":";
32 }
33 .hlist dd:after,
34 .hlist li:after {
35 content: " ยท";
36 font-weight: bold;
37 }
38 .hlist dd:last-child:after,
39 .hlist dt:last-child:after,
40 .hlist li:last-child:after {
41 content: none;
42 }
43 /* For IE8 */
44 .hlist dd.hlist-last-child:after,
45 .hlist dt.hlist-last-child:after,
46 .hlist li.hlist-last-child:after {
47 content: none;
48 }
49 /* Add parentheses around nested lists */
50 .hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
51 .hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
52 .hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
53 content: "(";
54 font-weight: normal;
55 }
56 .hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
57 .hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
58 .hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
59 content: ")";
60 font-weight: normal;
61 }
62 /* For IE8 */
63 .hlist dd dd.hlist-last-child:after, .hlist dd dt.hlist-last-child:after, .hlist dd li.hlist-last-child:after,
64 .hlist dt dd.hlist-last-child:after, .hlist dt dt.hlist-last-child:after, .hlist dt li.hlist-last-child:after,
65 .hlist li dd.hlist-last-child:after, .hlist li dt.hlist-last-child:after, .hlist li li.hlist-last-child:after {
66 content: ")";
67 font-weight: normal;
68 }
69 /* Put ordinals in front of ordered list items */
70 .hlist ol {
71 counter-reset: list-item;
72 }
73 .hlist ol > li {
74 counter-increment: list-item;
75 }
76 .hlist ol > li:before {
77 content: counter(list-item) " ";
78 }
79 .hlist dd ol > li:first-child:before,
80 .hlist dt ol > li:first-child:before,
81 .hlist li ol > li:first-child:before {
82 content: "(" counter(list-item) " ";
83 }