2019-07-29 09:50:05 +00:00
|
|
|
/**
|
|
|
|
* The "changeslist" module appears on Special pages such
|
|
|
|
* as recent changes, watchlist, and parts of the action history page.
|
|
|
|
*/
|
|
|
|
|
2019-08-08 20:01:03 +00:00
|
|
|
@import '../minerva.less/minerva.mixins.less';
|
|
|
|
@import '../minerva.less/minerva.variables.less';
|
2022-05-16 16:55:54 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
2019-07-29 09:50:05 +00:00
|
|
|
|
2019-09-26 19:34:04 +00:00
|
|
|
// Decrease the font-size of the advanced filters module (see T229360).
|
|
|
|
.mw-rcfilters-container,
|
|
|
|
.mw-rcfilters-ui-overlay,
|
|
|
|
.watchlistDetails {
|
2024-01-31 15:06:56 +00:00
|
|
|
font-size: @font-size-tag-line;
|
2019-09-26 19:34:04 +00:00
|
|
|
}
|
|
|
|
|
2019-08-02 21:27:41 +00:00
|
|
|
ul.mw-contributions-list,
|
2019-07-29 09:50:05 +00:00
|
|
|
ul.special {
|
|
|
|
padding-left: 0 !important; // overriding `.content ul`
|
2019-08-06 12:09:26 +00:00
|
|
|
margin-left: 0 !important; // overriding `.client-js .mw-changeslist ul`
|
2019-07-29 09:50:05 +00:00
|
|
|
|
2019-08-02 21:27:41 +00:00
|
|
|
li {
|
|
|
|
list-style-type: none;
|
|
|
|
.changeslist-row();
|
|
|
|
}
|
|
|
|
|
2019-07-29 09:50:05 +00:00
|
|
|
// the following selector are nested due to their
|
|
|
|
// generic names.
|
2020-03-26 22:46:02 +00:00
|
|
|
.mw-contributions-title,
|
2019-07-29 09:50:05 +00:00
|
|
|
.mw-title {
|
|
|
|
font-weight: bold;
|
2020-03-18 18:25:54 +00:00
|
|
|
// Word-break overlong user names, see T237230.
|
|
|
|
.hyphens( auto );
|
2019-07-29 09:50:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.comment {
|
2019-08-02 21:27:41 +00:00
|
|
|
float: left;
|
2019-07-29 09:50:05 +00:00
|
|
|
clear: both;
|
|
|
|
font-style: italic;
|
|
|
|
line-height: 1.4em;
|
|
|
|
padding: 0.5em 0;
|
2021-12-04 12:29:25 +00:00
|
|
|
// avoid overflows on very long words in edit summaries (T297045)
|
|
|
|
max-width: 100%;
|
2019-07-29 09:50:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-27 01:49:49 +00:00
|
|
|
a.mw-contributions-title,
|
2020-03-26 22:46:02 +00:00
|
|
|
.mw-title a {
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
|
2019-09-27 16:38:53 +00:00
|
|
|
// T232955: Properly align deletion comments
|
|
|
|
span.mw-changeslist-log-entry {
|
|
|
|
.comment {
|
|
|
|
float: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-29 09:50:05 +00:00
|
|
|
.mw-changeslist-line {
|
|
|
|
.changeslist-row();
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-changeslist-line-inner {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2019-08-02 21:27:41 +00:00
|
|
|
.mw-changeslist-line-inner > *,
|
|
|
|
ul.mw-contributions-list li > * {
|
2019-07-29 09:50:05 +00:00
|
|
|
float: left;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
|
|
|
|
2023-03-31 19:50:36 +00:00
|
|
|
.mw-changeslist-line-inner::before,
|
|
|
|
.mw-changeslist-line-inner::after {
|
2019-07-29 09:50:05 +00:00
|
|
|
.clearfix();
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-changeslist-date,
|
|
|
|
.mw-tag-markers {
|
|
|
|
clear: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Colored watchlist and recent changes numbers.
|
|
|
|
*/
|
|
|
|
.mw-plusminus-pos {
|
2024-06-12 01:19:50 +00:00
|
|
|
color: @color-content-added;
|
2019-07-29 09:50:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-plusminus-neg {
|
2024-06-12 01:19:50 +00:00
|
|
|
color: @color-content-removed;
|
2019-07-29 09:50:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-plusminus-null {
|
2024-06-12 01:19:50 +00:00
|
|
|
color: @color-disabled;
|
2019-07-29 09:50:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Bidi-isolate these numbers.
|
|
|
|
* See https://phabricator.wikimedia.org/T93484
|
|
|
|
*/
|
|
|
|
.mw-plusminus-pos,
|
|
|
|
.mw-plusminus-neg,
|
|
|
|
.mw-plusminus-null {
|
|
|
|
unicode-bidi: -moz-isolate;
|
|
|
|
unicode-bidi: isolate;
|
|
|
|
}
|
|
|
|
|
2019-10-07 18:15:17 +00:00
|
|
|
ul.mw-contributions-list li .mw-rollback-link {
|
2019-09-27 18:01:45 +00:00
|
|
|
float: right;
|
2019-10-07 18:15:17 +00:00
|
|
|
font-size: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
// rollback edit link
|
|
|
|
.mw-rollback-link a {
|
|
|
|
// separating rollback link from undo link.
|
|
|
|
margin-left: 1em;
|
2019-09-27 18:01:45 +00:00
|
|
|
}
|
|
|
|
|
2019-08-02 21:27:41 +00:00
|
|
|
.mw-revdelundel-link,
|
|
|
|
.mw-tag-markers {
|
|
|
|
display: block;
|
|
|
|
}
|
2019-11-04 21:34:02 +00:00
|
|
|
|
2024-10-17 19:38:16 +00:00
|
|
|
.mw-special-Watchlist .mw-userlink {
|
|
|
|
padding-top: 0.5em;
|
|
|
|
}
|
|
|
|
|
2019-11-04 21:34:02 +00:00
|
|
|
// On Watchlist and RecentChanges the user is on a separate line per T236328.
|
|
|
|
// This does not apply to the history page.
|
|
|
|
// It is unnecessary on Special:Contributions since all contributions are by the same user.
|
|
|
|
.mw-special-Watchlist,
|
|
|
|
.mw-special-Recentchanges {
|
2020-01-06 13:56:09 +00:00
|
|
|
.mw-userlink,
|
|
|
|
.mw-usertoollinks {
|
|
|
|
float: none;
|
2024-10-17 19:38:16 +00:00
|
|
|
clear: both;
|
2020-01-06 13:56:09 +00:00
|
|
|
}
|
|
|
|
|
2023-03-31 19:50:36 +00:00
|
|
|
.mw-userlink::before,
|
|
|
|
.mw-usertoollinks::after {
|
2020-01-06 13:56:09 +00:00
|
|
|
content: '';
|
|
|
|
display: table;
|
|
|
|
width: 100%;
|
2019-11-04 21:34:02 +00:00
|
|
|
}
|
2023-04-27 16:26:44 +00:00
|
|
|
|
|
|
|
.mw-tempuserlink {
|
|
|
|
background-color: transparent;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
// Since the user link is split over two lines,
|
|
|
|
// add the background color on the bdi instead
|
|
|
|
bdi {
|
2024-06-10 20:52:01 +00:00
|
|
|
// @background-color-interactive
|
|
|
|
background-color: @background-color-interactive;
|
2023-04-27 16:26:44 +00:00
|
|
|
padding: 2px 8px 2px 8px;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
}
|
|
|
|
}
|
2019-11-04 21:34:02 +00:00
|
|
|
}
|
2022-03-22 16:14:52 +00:00
|
|
|
|
|
|
|
// `.content` must be specified to override padding of
|
2024-03-22 20:05:57 +00:00
|
|
|
// `.content h2` and `.content h4` rule provided by ResourceLoaderSkinModule.
|
|
|
|
// Must apply to Watchlist h4s which currently do not use mw-index-pager-list-header.
|
|
|
|
.content .mw-index-pager-list-header,
|
|
|
|
.mw-special-Watchlist .content h4 {
|
2022-03-22 16:14:52 +00:00
|
|
|
.changeslist-header();
|
2022-03-31 17:28:57 +00:00
|
|
|
box-sizing: border-box;
|
2022-03-22 16:14:52 +00:00
|
|
|
}
|
2024-03-22 20:05:57 +00:00
|
|
|
|
|
|
|
.mw-mf-amc-disabled {
|
|
|
|
/* Watchlist modifications */
|
|
|
|
&.mw-special-Watchlist {
|
|
|
|
/* Traditionally not in default experience for mobile.
|
|
|
|
Can be restored once have design and PM approves. */
|
|
|
|
.mw-pager-tool,
|
|
|
|
.mw-changeslist-history,
|
|
|
|
.mw-tag-markers,
|
|
|
|
.mw-pager-tools,
|
|
|
|
.mw-usertoollinks,
|
|
|
|
/* visually not needed */
|
|
|
|
.mw-changeslist-separator--semicolon,
|
|
|
|
.mw-changeslist-separator {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-title {
|
|
|
|
display: block;
|
|
|
|
float: none;
|
|
|
|
|
|
|
|
a {
|
2024-06-10 20:52:01 +00:00
|
|
|
color: @color-subtle;
|
2024-03-22 20:05:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-userlink {
|
2024-06-10 20:52:01 +00:00
|
|
|
color: @color-subtle;
|
2024-03-22 20:05:57 +00:00
|
|
|
display: block;
|
|
|
|
|
|
|
|
bdi {
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-10-25 21:02:16 +00:00
|
|
|
/** hide if the span does not have any links inside it */
|
|
|
|
.mw-changeslist-links > span:not( :has( a ) ) {
|
2024-10-17 19:38:16 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2024-03-22 20:05:57 +00:00
|
|
|
/* disable pseudo UI */
|
|
|
|
.mw-changeslist-links > span::after,
|
|
|
|
.mw-changeslist-links > span::before {
|
|
|
|
content: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-history-histlinks-previous,
|
|
|
|
.mw-changeslist-diff {
|
2024-04-16 15:43:39 +00:00
|
|
|
.changeslist-make-row-linkable();
|
2024-03-22 20:05:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/** Reduce clutter on mobile devices. Users can use "Use desktop site" to reveal these. */
|
2023-11-07 09:03:29 +00:00
|
|
|
@media all and ( max-width: @max-width-breakpoint-mobile ) {
|
2024-03-22 20:05:57 +00:00
|
|
|
/* Reduce space at top of page */
|
|
|
|
.mw-rcfilters-ui-filterWrapperWidget-bottom-mobile,
|
|
|
|
.mw-rcfilters-ui-watchlistTopSectionWidget,
|
|
|
|
.mw-rcfilters-ui-watchlistTopSectionWidget-watchlistDetails,
|
|
|
|
.mw-rcfilters-ui-watchlistTopSectionWidget-savedLinksTable {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
/* Since we hid the above elements no need to compensate with a minimum height */
|
|
|
|
.mw-rcfilters-head {
|
|
|
|
min-height: auto !important;
|
|
|
|
}
|
|
|
|
/* Space reserved while filters load. */
|
|
|
|
.watchlistDetails {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
/* Make "Active filters" fill up entire page when collapsed. */
|
|
|
|
.mw-rcfilters-ui-filterTagMultiselectWidget {
|
|
|
|
/* Important so it also applies to collapsed view. */
|
|
|
|
width: 100% !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/** These apply to history and watchlist page */
|
|
|
|
&.mw-special-Watchlist,
|
|
|
|
&.action-history {
|
|
|
|
.mw-diff-bytes,
|
|
|
|
.mw-changeslist-time {
|
|
|
|
position: absolute;
|
|
|
|
top: 12px;
|
|
|
|
left: 16px;
|
|
|
|
font-size: 0.875rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-diff-bytes {
|
|
|
|
top: 36px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-changeslist li,
|
|
|
|
.mw-contributions-list li {
|
|
|
|
padding: 12px 16px 12px 85px;
|
|
|
|
font-size: 1rem;
|
|
|
|
min-height: 90px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
.comment {
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
max-height: 2.6em;
|
2024-06-10 20:52:01 +00:00
|
|
|
color: @color-subtle;
|
2024-03-22 20:05:57 +00:00
|
|
|
line-height: 1.4;
|
|
|
|
white-space: normal;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
font-size: 0.875rem;
|
|
|
|
font-style: normal;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-userlink::before {
|
|
|
|
content: '';
|
2024-06-10 20:52:01 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-user-avatar, @color-subtle );
|
2024-03-22 20:05:57 +00:00
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-anonuserlink::before {
|
2024-06-10 20:52:01 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-user-anonymous, @color-subtle );
|
2024-03-22 20:05:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-tempuserlink::before {
|
2024-06-10 20:52:01 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-user-temporary, @color-subtle );
|
2024-03-22 20:05:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|