1 /* stylelint-disable selector-class-pattern */
2 @import 'mediawiki.skin.variables.less';
3 @import 'mediawiki.mixins.less';
6 * Helper classes used across special pages and actions
8 * This is the default for skin styles. It is possible that skin override this file.
9 * This file is only used to provide styling for content elements to support translatable messages.
12 /* Content dividers */
13 /* @todo FIXME: Hard coded ". .". Is there a message for this? Should there be? */
14 .mw-changeslist-separator:empty::before {
19 * Rather than use an existing element, we have a specific element for designating
20 * the separation of certain elements by a semicolon.
21 * This is a variant of the rule mw-changeslist-separator rule above but uses a semicolon
22 * rather than a the two dots. It's not clear why we use different things for separation, and
23 * when adding this I was unable to see any information that led to its change. A designer in the
24 * future of a developer who has the energy to invest may explore this more and see if these two
25 * classes can be combined.
27 * There is lots of context on this rule in https://phabricator.wikimedia.org/T233649
31 * The history page should never have a semicolon as there is never a mw-title element.
32 * Previous attempts to add the semicolon used the timestamp and a before pseudo element
33 * but this led to problems as the history page also uses this element and there is no
34 * easy way to distinguish it from other elements and never any need to have a semicolon
35 * on the history page.
37 * # Special:RecentChanges
39 * has always had a semicolon and motivation for moving this change here.
43 * Note that before this change was introduced, the Special:Watchlist page
44 * didn't have a semicolon after the title. This caused some confusion to
45 * editors (https://phabricator.wikimedia.org/T237685) but this rule makes it
46 * consistent with Special:RecentChanges. To disable the semicolon on the watchlist
47 * would be additional CSS to reset the content of this pseudo element for that specific
48 * page, but we should not accrue that technical debt without some strong arguments for
49 * doing so - and they should be documented!
50 * # Special:Contributions
51 * Never use semicolon on this page. Always use “. .” as separators.
53 .mw-changeslist-separator--semicolon::before {
54 content: '@{msg-semicolon-separator}';
59 content: '@{msg-brackets-start}';
63 content: '@{msg-brackets-end}';
70 .comment--without-parentheses,
71 .mw-changeslist-links,
73 /* Needed by pages calling ChangeTags::formatSummaryRow (T212613) */
77 content: '@{msg-parentheses-start}';
81 content: '@{msg-parentheses-end}';
86 .mixin-screen-reader-text();
89 .mw-changeslist-links {
90 display: inline-block;
92 > span:not( :first-child )::before {
93 content: '@{msg-pipe-separator}';
96 // In pages like history, do not add additional brackets where not needed
97 .mw-rollback-link::before,
98 .mw-rollback-link::after {
105 content: '@{msg-comma-separator}';
108 &:last-child::after {