2024-02-06 01:26:34 +00:00
|
|
|
/* stylelint-disable selector-max-id */
|
2021-10-04 22:03:29 +00:00
|
|
|
@import '../minerva.less/minerva.variables.less';
|
2020-01-20 21:47:19 +00:00
|
|
|
|
|
|
|
// By default a pseudo element is used for skins like Vector. We don't want this on Minerva.
|
|
|
|
.mw-diff-movedpara-right,
|
|
|
|
.mw-diff-movedpara-left,
|
|
|
|
.rtl .mw-diff-movedpara-left,
|
|
|
|
.rtl .mw-diff-movedpara-right {
|
2023-03-31 19:50:36 +00:00
|
|
|
&::after {
|
2020-01-20 21:47:19 +00:00
|
|
|
content: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-29 21:55:29 +00:00
|
|
|
// Will be enhanced with JS
|
|
|
|
.mw-diff-timestamp {
|
|
|
|
display: block;
|
|
|
|
min-height: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.minoredit {
|
|
|
|
margin-right: 8px;
|
2024-06-10 20:52:01 +00:00
|
|
|
background: @background-color-interactive;
|
2023-09-29 21:55:29 +00:00
|
|
|
border-radius: 2px;
|
|
|
|
font-size: 0.9em;
|
|
|
|
padding: 0 6px 1px;
|
|
|
|
}
|
|
|
|
|
2023-11-07 09:03:29 +00:00
|
|
|
@media all and ( max-width: @max-width-breakpoint-mobile ) {
|
2023-09-29 21:55:29 +00:00
|
|
|
//
|
|
|
|
// Navigation links
|
|
|
|
//Reveal the previous and next navigation links
|
|
|
|
//
|
|
|
|
.mw-diff-revision-history-links {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
font-size: 0.9em;
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-diff-revision-history-link-previous {
|
|
|
|
flex-grow: 1;
|
|
|
|
text-align: start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-diff-revision-history-link-next {
|
|
|
|
flex-grow: 1;
|
|
|
|
text-align: end;
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Diff header
|
|
|
|
//
|
|
|
|
.diff-ntitle {
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
padding-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Special case since #mw-diff-ntitle2 is position fixed.
|
|
|
|
#mw-diff-ntitle3 {
|
|
|
|
padding-top: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.minor-edit {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// date of edit
|
|
|
|
//
|
|
|
|
.mw-diff-timestamp {
|
|
|
|
color: #72777d;
|
|
|
|
height: 1em;
|
|
|
|
line-height: 1em;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.comment {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Diff
|
|
|
|
//
|
2023-11-07 09:03:29 +00:00
|
|
|
.content table.diff {
|
2023-09-29 21:55:29 +00:00
|
|
|
display: block;
|
|
|
|
|
2024-07-27 05:52:33 +00:00
|
|
|
tbody,
|
|
|
|
tr,
|
|
|
|
td {
|
2023-09-29 21:55:29 +00:00
|
|
|
display: block;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.diff-otitle {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Sticky User box at bottom of page
|
|
|
|
//
|
|
|
|
#mw-diff-ntitle2 {
|
|
|
|
text-align: left;
|
|
|
|
position: fixed;
|
|
|
|
height: 8em;
|
|
|
|
padding: 1em;
|
2024-07-20 16:05:49 +00:00
|
|
|
background-color: @background-color-interactive-subtle;
|
|
|
|
border-top: 1px solid @border-color-subtle;
|
2023-09-29 21:55:29 +00:00
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2024-01-31 15:06:56 +00:00
|
|
|
z-index: @z-index-above-content;
|
2023-09-29 21:55:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-diff-tool {
|
|
|
|
bottom: 7em;
|
|
|
|
position: fixed;
|
2024-02-12 17:01:14 +00:00
|
|
|
z-index: @z-index-stacking-2;
|
2023-09-29 21:55:29 +00:00
|
|
|
right: 8px;
|
2024-01-05 21:56:04 +00:00
|
|
|
|
|
|
|
.jquery-confirmable-interface {
|
2024-06-10 20:52:01 +00:00
|
|
|
background-color: @background-color-interactive-subtle;
|
2024-01-05 21:56:04 +00:00
|
|
|
border: @border-subtle;
|
|
|
|
padding: @spacing-50;
|
|
|
|
}
|
|
|
|
|
|
|
|
.jquery-confirmable-element {
|
|
|
|
~ .jquery-confirmable-interface {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.hidden {
|
|
|
|
~ .jquery-confirmable-interface {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-09-29 21:55:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-userlink {
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
margin-right: 8px;
|
2024-06-10 20:52:01 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-user-avatar, @color-subtle);
|
2023-09-29 21:55:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mw-anonuserlink::before {
|
2024-06-10 20:52:01 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-user-anonymous, @color-subtle);
|
2023-09-29 21:55:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-diff-usermetadata {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-diff-userroles {
|
|
|
|
margin-top: 0.7em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-diff-usereditcount {
|
|
|
|
margin-top: 1.2em;
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
span {
|
|
|
|
text-align: center;
|
|
|
|
font-size: 1.85em;
|
2024-07-20 16:05:49 +00:00
|
|
|
color: @color-subtle;
|
2023-09-29 21:55:29 +00:00
|
|
|
display: block;
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Typography
|
|
|
|
//
|
|
|
|
|
|
|
|
.mw-diff-usermetadata,
|
|
|
|
.mw-diff-timestamp {
|
|
|
|
font-size: 0.7em;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// HIDDEN UI ELEMENTS
|
|
|
|
//
|
|
|
|
// hidden for now to match historic Special:MobileDiff
|
|
|
|
// Sam Walton's team should enable this as needed.
|
|
|
|
.mw-usertoollinks,
|
|
|
|
#mw-diff-ntitle4,
|
|
|
|
.mw-diff-inline-legend,
|
|
|
|
.mw-diff-inline-header,
|
|
|
|
.mw-diffPage-inlineToggle-container,
|
|
|
|
#mw-diff-ntitle5,
|
|
|
|
.mw-diff-edit,
|
|
|
|
.mw-diff-undo,
|
|
|
|
.mw-revdelundel-link {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#mw-diff-ntitle1 strong {
|
|
|
|
font-weight: normal;
|
|
|
|
|
|
|
|
> a {
|
|
|
|
padding: 0.5em 0;
|
|
|
|
display: block;
|
|
|
|
line-height: 1.6;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-10-26 16:38:36 +00:00
|
|
|
|
|
|
|
// Wikitext font size is restored to 100%, as in mediawiki.editfont.styles
|
|
|
|
.diff-addedline,
|
|
|
|
.diff-deletedline,
|
|
|
|
.diff-context,
|
|
|
|
.mw-diff-inline-added,
|
|
|
|
.mw-diff-inline-deleted,
|
|
|
|
.mw-diff-inline-moved,
|
|
|
|
.mw-diff-inline-changed,
|
|
|
|
.mw-diff-inline-context {
|
|
|
|
font-size: 100%;
|
|
|
|
}
|
2024-02-06 01:26:34 +00:00
|
|
|
|
|
|
|
.mw-article-diff {
|
|
|
|
#firstHeading {
|
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-12 21:08:30 +00:00
|
|
|
// Bug: T357213 - always show patrol link. Previews are hidden by default
|
|
|
|
// on mobile, but we trust patrollers to only patrol diffs that do not require
|
|
|
|
// viewing the preview.
|
|
|
|
.patrollink.patrollink-diffonly {
|
|
|
|
display: block;
|
|
|
|
}
|
2024-02-06 01:26:34 +00:00
|
|
|
/* stylelint-enable selector-max-id */
|