Debian Codegraph @

resources/src/mediawiki.hlist/default.less

raw
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 {
10 dt::after {
11 content: '@{msg-colon-separator}';
12 }
13
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 }
22
23 dd,
24 dt,
25 li {
26 &:last-child::after {
27 content: none;
28 }
29
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 }
38
39 &:last-child::after {
40 content: '@{msg-parentheses-end}';
41 font-weight: normal;
42 }
43 }
44
45 ol > li:first-child::before {
46 content: '@{msg-parentheses-start}' counter( list-item ) ' ';
47 }
48 }
49
50 // Put ordinals in front of ordered list items
51 ol {
52 counter-reset: list-item;
53
54 & > li {
55 counter-increment: list-item;
56
57 &::before {
58 content: counter( list-item ) ' ';
59 }
60 }
61 }
62 }