Localisation updates from https://translatewiki.net.
[mediawiki.git] / resources / src / mediawiki.hlist / default.less
blob1cf392c2dd9051d6303129f6f59ed68e451e421e
1 /*!
2  * Stylesheet for mediawiki.hlist module
3  * @author [[User:Edokter]]
4  */
6 /* stylelint-disable selector-class-pattern */
8 /* Generate interpuncts */
9 .hlist {
10         dt::after {
11                 content: '@{msg-colon-separator}';
12         }
14         dd,
15         li {
16                 &::after {
17                         /* @todo FIXME: Hard coded " .". Is there a message for this? Should there be? */
18                         content: ' ยท';
19                         font-weight: bold;
20                 }
21         }
23         dd,
24         dt,
25         li {
26                 &:last-child::after {
27                         content: none;
28                 }
30                 // Add parentheses around nested lists
31                 dd,
32                 dt,
33                 li {
34                         &:first-child::before {
35                                 content: '@{msg-parentheses-start}';
36                                 font-weight: normal;
37                         }
39                         &:last-child::after {
40                                 content: '@{msg-parentheses-end}';
41                                 font-weight: normal;
42                         }
43                 }
45                 ol > li:first-child::before {
46                         content: '@{msg-parentheses-start}' counter( list-item ) ' ';
47                 }
48         }
50         // Put ordinals in front of ordered list items
51         ol {
52                 counter-reset: list-item;
54                 & > li {
55                         counter-increment: list-item;
57                         &::before {
58                                 content: counter( list-item ) ' ';
59                         }
60                 }
61         }