| 1 |
/* stylelint-disable selector-class-pattern */ |
| 2 |
|
| 3 |
@import 'mediawiki.skin.variables.less'; |
| 4 |
@import 'mediawiki.mixins.less'; |
| 5 |
|
| 6 |
/** |
| 7 |
* Helper classes to provide styles for classes provided by functions of Linker class or Changes class. |
| 8 |
* Also used for CommentFormatter class, which was previous in Linker. |
| 9 |
*/ |
| 10 |
|
| 11 |
/** Class is added by ChangesList::flag */ |
| 12 |
.unpatrolled { |
| 13 |
font-weight: bold; |
| 14 |
color: @color-destructive; |
| 15 |
} |
| 16 |
|
| 17 |
/** Class is added by ChangesList::flag */ |
| 18 |
.newpage, |
| 19 |
.minoredit, |
| 20 |
.botedit { |
| 21 |
font-weight: bold; |
| 22 |
} |
| 23 |
|
| 24 |
/** Class is added by Linker::userLink */ |
| 25 |
.mw-userlink { |
| 26 |
// Word-break overlong user names, see T237230. |
| 27 |
// FIXME: This property is introduced now, but will be separated in a follow-up |
| 28 |
// caring about 'i18n-directionality', see T247033. |
| 29 |
.hyphens( auto ); |
| 30 |
unicode-bidi: embed; |
| 31 |
} |
| 32 |
|
| 33 |
/** Class is added by Linker::userLink */ |
| 34 |
.mw-tempuserlink { |
| 35 |
background-color: @background-color-interactive; |
| 36 |
padding: 2px 8px; |
| 37 |
border-radius: @border-radius-base; |
| 38 |
} |
| 39 |
|
| 40 |
/* Comment portions of RC entries, also used by MediaWiki\CommentFormatter\CommentFormatter::formatBlock */ |
| 41 |
span.comment { |
| 42 |
font-style: italic; |
| 43 |
unicode-bidi: -moz-isolate; |
| 44 |
unicode-bidi: isolate; |
| 45 |
// Covering several contexts for breaking up long comments, see T158725. |
| 46 |
word-wrap: break-word; |
| 47 |
overflow-wrap: break-word; |
| 48 |
word-break: break-word; |
| 49 |
} |
| 50 |
|
| 51 |
/* The auto-generated edit comments */ |
| 52 |
.autocomment, |
| 53 |
.autocomment a, |
| 54 |
.autocomment a:visited { |
| 55 |
color: @color-subtle; |
| 56 |
} |
| 57 |
|
| 58 |
/** rev_deleted stuff */ |
| 59 |
li span.deleted, |
| 60 |
span.history-deleted { |
| 61 |
text-decoration: line-through; |
| 62 |
color: @color-subtle; |
| 63 |
font-style: italic; |
| 64 |
} |
| 65 |
|
| 66 |
span.mw-history-suppressed { |
| 67 |
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */ |
| 68 |
text-decoration-style: double; |
| 69 |
color: @color-base; |
| 70 |
} |
| 71 |
|
| 72 |
/* (show/hide) revision deletion links */ |
| 73 |
span.mw-revdelundel-link, |
| 74 |
strong.mw-revdelundel-link { |
| 75 |
font-size: 90%; |
| 76 |
} |
| 77 |
|
| 78 |
// Historically this has been styled red, but should be distinguished from |
| 79 |
// normal red links as the contributions page does exist. To be revisited later. |
| 80 |
// More context: T303571#7781282 |
| 81 |
.mw-usertoollinks-contribs-no-edits { |
| 82 |
color: @color-link-new; |
| 83 |
|
| 84 |
&:visited { |
| 85 |
color: @color-link-new--visited; |
| 86 |
} |
| 87 |
} |