Do not hardcode square brackets in "rollback link"
[lhc/web/wiklou.git] / resources / src / mediawiki.interface.helpers.styles.less
1 /**
2 * Helper classes used across special pages
3 */
4
5 /* Content dividers */
6 /* @todo FIXME: Hard coded ". .". Is there a message for this? Should there be? */
7 .mw-changeslist-separator:empty:before {
8 content: '. .';
9 }
10
11 .mw-rollback-link {
12 &:before {
13 content: '@{msg-brackets-start}';
14 }
15
16 &:after {
17 content: '@{msg-brackets-end}';
18 }
19 }
20
21 /* stylelint-disable-next-line selector-class-pattern */
22 .comment--without-parentheses,
23 .mw-changeslist-links,
24 .mw-diff-bytes,
25 /* Needed by pages calling ChangeTags::formatSummaryRow (T212613) */
26 .mw-tag-markers,
27 .mw-uctop {
28 &:before {
29 content: '@{msg-parentheses-start}';
30 }
31
32 &:after {
33 content: '@{msg-parentheses-end}';
34 }
35 }
36
37 .mw-changeslist-links {
38 display: inline-block;
39
40 > span:not( :first-child ):before {
41 content: '@{msg-pipe-separator}';
42 }
43
44 // In pages like history, do not add additional brackets where not needed
45 .mw-rollback-link:before,
46 .mw-rollback-link:after {
47 content: '';
48 }
49 }