mw.htmlform: Fix hiding of the textbox for 'selectorother' fields on page load
[lhc/web/wiklou.git] / resources / src / mediawiki / mediawiki.hlist.css
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;
10 }
11 /* Display list items inline */
12 .hlist dd,
13 .hlist dt,
14 .hlist li {
15 margin: 0;
16 display: inline;
17 }
18 /* Display nested lists inline */
19 .hlist dl dl,
20 .hlist dl ol,
21 .hlist dl ul,
22 .hlist ol dl,
23 .hlist ol ol,
24 .hlist ol ul,
25 .hlist ul dl,
26 .hlist ul ol,
27 .hlist ul ul {
28 display: inline;
29 }
30 /* Generate interpuncts */
31 .hlist dt:after {
32 content: ':';
33 }
34 .hlist dd:after,
35 .hlist li:after {
36 content: ' ยท';
37 font-weight: bold;
38 }
39 .hlist dd:last-child:after,
40 .hlist dt:last-child:after,
41 .hlist li:last-child:after {
42 content: none;
43 }
44 /* For IE8 */
45 .hlist dd.hlist-last-child:after,
46 .hlist dt.hlist-last-child:after,
47 .hlist li.hlist-last-child:after {
48 content: none;
49 }
50 /* Add parentheses around nested lists */
51 .hlist dd dd:first-child:before,
52 .hlist dd dt:first-child:before,
53 .hlist dd li:first-child:before,
54 .hlist dt dd:first-child:before,
55 .hlist dt dt:first-child:before,
56 .hlist dt li:first-child:before,
57 .hlist li dd:first-child:before,
58 .hlist li dt:first-child:before,
59 .hlist li li:first-child:before {
60 content: '(';
61 font-weight: normal;
62 }
63 .hlist dd dd:last-child:after,
64 .hlist dd dt:last-child:after,
65 .hlist dd li:last-child:after,
66 .hlist dt dd:last-child:after,
67 .hlist dt dt:last-child:after,
68 .hlist dt li:last-child:after,
69 .hlist li dd:last-child:after,
70 .hlist li dt:last-child:after,
71 .hlist li li:last-child:after {
72 content: ')';
73 font-weight: normal;
74 }
75 /* For IE8 */
76 .hlist dd dd.hlist-last-child:after,
77 .hlist dd dt.hlist-last-child:after,
78 .hlist dd li.hlist-last-child:after,
79 .hlist dt dd.hlist-last-child:after,
80 .hlist dt dt.hlist-last-child:after,
81 .hlist dt li.hlist-last-child:after,
82 .hlist li dd.hlist-last-child:after,
83 .hlist li dt.hlist-last-child:after,
84 .hlist li li.hlist-last-child:after {
85 content: ')';
86 font-weight: normal;
87 }
88 /* Put ordinals in front of ordered list items */
89 .hlist ol {
90 counter-reset: list-item;
91 }
92 .hlist ol > li {
93 counter-increment: list-item;
94 }
95 .hlist ol > li:before {
96 content: counter( list-item ) ' ';
97 }
98 .hlist dd ol > li:first-child:before,
99 .hlist dt ol > li:first-child:before,
100 .hlist li ol > li:first-child:before {
101 content: '(' counter( list-item ) ' ';
102 }
103
104 /* Support hlist styles inside *boxes */
105 .errorbox .hlist,
106 .successbox .hlist,
107 .warningbox .hlist {
108 margin-left: 0;
109 }
110
111 .errorbox .hlist li:after,
112 .successbox .hlist li:after,
113 .warningbox .hlist li:after {
114 margin-right: 3px;
115 }