| 1 |
/** |
| 2 |
* The "changeslist" module appears on Special pages such |
| 3 |
* as recent changes, watchlist, and parts of the action history page. |
| 4 |
*/ |
| 5 |
|
| 6 |
@import '../minerva.less/minerva.mixins.less'; |
| 7 |
@import '../minerva.less/minerva.variables.less'; |
| 8 |
@import 'mediawiki.mixins.less'; |
| 9 |
|
| 10 |
// Decrease the font-size of the advanced filters module (see T229360). |
| 11 |
.mw-rcfilters-container, |
| 12 |
.mw-rcfilters-ui-overlay, |
| 13 |
.watchlistDetails { |
| 14 |
font-size: @font-size-tag-line; |
| 15 |
} |
| 16 |
|
| 17 |
ul.mw-contributions-list, |
| 18 |
ul.special { |
| 19 |
padding-left: 0 !important; // overriding `.content ul` |
| 20 |
margin-left: 0 !important; // overriding `.client-js .mw-changeslist ul` |
| 21 |
|
| 22 |
li { |
| 23 |
list-style-type: none; |
| 24 |
.changeslist-row(); |
| 25 |
} |
| 26 |
|
| 27 |
// the following selector are nested due to their |
| 28 |
// generic names. |
| 29 |
.mw-contributions-title, |
| 30 |
.mw-title { |
| 31 |
font-weight: bold; |
| 32 |
// Word-break overlong user names, see T237230. |
| 33 |
.hyphens( auto ); |
| 34 |
} |
| 35 |
|
| 36 |
.comment { |
| 37 |
float: left; |
| 38 |
clear: both; |
| 39 |
font-style: italic; |
| 40 |
line-height: 1.4em; |
| 41 |
padding: 0.5em 0; |
| 42 |
// avoid overflows on very long words in edit summaries (T297045) |
| 43 |
max-width: 100%; |
| 44 |
} |
| 45 |
} |
| 46 |
|
| 47 |
a.mw-contributions-title, |
| 48 |
.mw-title a { |
| 49 |
word-break: break-word; |
| 50 |
} |
| 51 |
|
| 52 |
// T232955: Properly align deletion comments |
| 53 |
span.mw-changeslist-log-entry { |
| 54 |
.comment { |
| 55 |
float: none; |
| 56 |
padding: 0; |
| 57 |
} |
| 58 |
} |
| 59 |
|
| 60 |
.mw-changeslist-line { |
| 61 |
.changeslist-row(); |
| 62 |
} |
| 63 |
|
| 64 |
.mw-changeslist-line-inner { |
| 65 |
display: block; |
| 66 |
} |
| 67 |
|
| 68 |
.mw-changeslist-line-inner > *, |
| 69 |
ul.mw-contributions-list li > * { |
| 70 |
float: left; |
| 71 |
margin-right: 0.5em; |
| 72 |
} |
| 73 |
|
| 74 |
.mw-changeslist-line-inner::before, |
| 75 |
.mw-changeslist-line-inner::after { |
| 76 |
.clearfix(); |
| 77 |
} |
| 78 |
|
| 79 |
.mw-changeslist-date, |
| 80 |
.mw-tag-markers { |
| 81 |
clear: left; |
| 82 |
} |
| 83 |
|
| 84 |
/** |
| 85 |
* Colored watchlist and recent changes numbers. |
| 86 |
*/ |
| 87 |
.mw-plusminus-pos { |
| 88 |
color: @color-content-added; |
| 89 |
} |
| 90 |
|
| 91 |
.mw-plusminus-neg { |
| 92 |
color: @color-content-removed; |
| 93 |
} |
| 94 |
|
| 95 |
.mw-plusminus-null { |
| 96 |
color: @color-disabled; |
| 97 |
} |
| 98 |
|
| 99 |
/* |
| 100 |
* Bidi-isolate these numbers. |
| 101 |
* See https://phabricator.wikimedia.org/T93484 |
| 102 |
*/ |
| 103 |
.mw-plusminus-pos, |
| 104 |
.mw-plusminus-neg, |
| 105 |
.mw-plusminus-null { |
| 106 |
unicode-bidi: -moz-isolate; |
| 107 |
unicode-bidi: isolate; |
| 108 |
} |
| 109 |
|
| 110 |
ul.mw-contributions-list li .mw-rollback-link { |
| 111 |
float: right; |
| 112 |
font-size: initial; |
| 113 |
} |
| 114 |
|
| 115 |
// rollback edit link |
| 116 |
.mw-rollback-link a { |
| 117 |
// separating rollback link from undo link. |
| 118 |
margin-left: 1em; |
| 119 |
} |
| 120 |
|
| 121 |
.mw-revdelundel-link, |
| 122 |
.mw-tag-markers { |
| 123 |
display: block; |
| 124 |
} |
| 125 |
|
| 126 |
.mw-special-Watchlist .mw-userlink { |
| 127 |
padding-top: 0.5em; |
| 128 |
} |
| 129 |
|
| 130 |
// On Watchlist and RecentChanges the user is on a separate line per T236328. |
| 131 |
// This does not apply to the history page. |
| 132 |
// It is unnecessary on Special:Contributions since all contributions are by the same user. |
| 133 |
.mw-special-Watchlist, |
| 134 |
.mw-special-Recentchanges { |
| 135 |
.mw-userlink, |
| 136 |
.mw-usertoollinks { |
| 137 |
float: none; |
| 138 |
clear: both; |
| 139 |
} |
| 140 |
|
| 141 |
.mw-userlink::before, |
| 142 |
.mw-usertoollinks::after { |
| 143 |
content: ''; |
| 144 |
display: table; |
| 145 |
width: 100%; |
| 146 |
} |
| 147 |
|
| 148 |
.mw-tempuserlink { |
| 149 |
background-color: transparent; |
| 150 |
padding: 0; |
| 151 |
|
| 152 |
// Since the user link is split over two lines, |
| 153 |
// add the background color on the bdi instead |
| 154 |
bdi { |
| 155 |
// @background-color-interactive |
| 156 |
background-color: @background-color-interactive; |
| 157 |
padding: 2px 8px 2px 8px; |
| 158 |
border-radius: @border-radius-base; |
| 159 |
} |
| 160 |
} |
| 161 |
} |
| 162 |
|
| 163 |
// `.content` must be specified to override padding of |
| 164 |
// `.content h2` and `.content h4` rule provided by ResourceLoaderSkinModule. |
| 165 |
// Must apply to Watchlist h4s which currently do not use mw-index-pager-list-header. |
| 166 |
.content .mw-index-pager-list-header, |
| 167 |
.mw-special-Watchlist .content h4 { |
| 168 |
.changeslist-header(); |
| 169 |
box-sizing: border-box; |
| 170 |
} |
| 171 |
|
| 172 |
.mw-mf-amc-disabled { |
| 173 |
/* Watchlist modifications */ |
| 174 |
&.mw-special-Watchlist { |
| 175 |
/* Traditionally not in default experience for mobile. |
| 176 |
Can be restored once have design and PM approves. */ |
| 177 |
.mw-pager-tool, |
| 178 |
.mw-changeslist-history, |
| 179 |
.mw-tag-markers, |
| 180 |
.mw-pager-tools, |
| 181 |
.mw-usertoollinks, |
| 182 |
/* visually not needed */ |
| 183 |
.mw-changeslist-separator--semicolon, |
| 184 |
.mw-changeslist-separator { |
| 185 |
display: none; |
| 186 |
} |
| 187 |
|
| 188 |
.mw-title { |
| 189 |
display: block; |
| 190 |
float: none; |
| 191 |
|
| 192 |
a { |
| 193 |
color: @color-subtle; |
| 194 |
} |
| 195 |
} |
| 196 |
|
| 197 |
.mw-userlink { |
| 198 |
color: @color-subtle; |
| 199 |
display: block; |
| 200 |
|
| 201 |
bdi { |
| 202 |
word-break: break-word; |
| 203 |
} |
| 204 |
} |
| 205 |
|
| 206 |
.mw-changeslist-links > span { |
| 207 |
display: none; |
| 208 |
} |
| 209 |
|
| 210 |
/* disable pseudo UI */ |
| 211 |
.mw-changeslist-links > span::after, |
| 212 |
.mw-changeslist-links > span::before { |
| 213 |
content: none; |
| 214 |
} |
| 215 |
|
| 216 |
.mw-history-histlinks-previous, |
| 217 |
.mw-changeslist-diff { |
| 218 |
.changeslist-make-row-linkable(); |
| 219 |
} |
| 220 |
|
| 221 |
/** Reduce clutter on mobile devices. Users can use "Use desktop site" to reveal these. */ |
| 222 |
@media all and ( max-width: @max-width-breakpoint-mobile ) { |
| 223 |
/* Reduce space at top of page */ |
| 224 |
.mw-rcfilters-ui-filterWrapperWidget-bottom-mobile, |
| 225 |
.mw-rcfilters-ui-watchlistTopSectionWidget, |
| 226 |
.mw-rcfilters-ui-watchlistTopSectionWidget-watchlistDetails, |
| 227 |
.mw-rcfilters-ui-watchlistTopSectionWidget-savedLinksTable { |
| 228 |
display: none; |
| 229 |
} |
| 230 |
/* Since we hid the above elements no need to compensate with a minimum height */ |
| 231 |
.mw-rcfilters-head { |
| 232 |
min-height: auto !important; |
| 233 |
} |
| 234 |
/* Space reserved while filters load. */ |
| 235 |
.watchlistDetails { |
| 236 |
visibility: hidden; |
| 237 |
} |
| 238 |
/* Make "Active filters" fill up entire page when collapsed. */ |
| 239 |
.mw-rcfilters-ui-filterTagMultiselectWidget { |
| 240 |
/* Important so it also applies to collapsed view. */ |
| 241 |
width: 100% !important; |
| 242 |
} |
| 243 |
} |
| 244 |
} |
| 245 |
|
| 246 |
/** These apply to history and watchlist page */ |
| 247 |
&.mw-special-Watchlist, |
| 248 |
&.action-history { |
| 249 |
.mw-diff-bytes, |
| 250 |
.mw-changeslist-time { |
| 251 |
position: absolute; |
| 252 |
top: 12px; |
| 253 |
left: 16px; |
| 254 |
font-size: 0.875rem; |
| 255 |
} |
| 256 |
|
| 257 |
.mw-diff-bytes { |
| 258 |
top: 36px; |
| 259 |
} |
| 260 |
|
| 261 |
.mw-changeslist li, |
| 262 |
.mw-contributions-list li { |
| 263 |
padding: 12px 16px 12px 85px; |
| 264 |
font-size: 1rem; |
| 265 |
min-height: 90px; |
| 266 |
box-sizing: border-box; |
| 267 |
|
| 268 |
.comment { |
| 269 |
-webkit-line-clamp: 2; |
| 270 |
max-height: 2.6em; |
| 271 |
color: @color-subtle; |
| 272 |
line-height: 1.4; |
| 273 |
white-space: normal; |
| 274 |
display: -webkit-box; |
| 275 |
-webkit-box-orient: vertical; |
| 276 |
font-size: 0.875rem; |
| 277 |
font-style: normal; |
| 278 |
overflow: hidden; |
| 279 |
text-overflow: ellipsis; |
| 280 |
} |
| 281 |
|
| 282 |
.mw-userlink::before { |
| 283 |
content: ''; |
| 284 |
.cdx-mixin-css-icon( @cdx-icon-user-avatar, @color-subtle ); |
| 285 |
margin-right: 8px; |
| 286 |
} |
| 287 |
|
| 288 |
.mw-anonuserlink::before { |
| 289 |
.cdx-mixin-css-icon( @cdx-icon-user-anonymous, @color-subtle ); |
| 290 |
} |
| 291 |
|
| 292 |
.mw-tempuserlink::before { |
| 293 |
.cdx-mixin-css-icon( @cdx-icon-user-temporary, @color-subtle ); |
| 294 |
} |
| 295 |
} |
| 296 |
} |
| 297 |
} |