WMDE-leszek has uploaded a new change for review.
https://gerrit.wikimedia.org/r/307711
Change subject: Remove obsolete style-only mediawiki.action.history.diff module
......................................................................
Remove obsolete style-only mediawiki.action.history.diff module
mediawiki.action.history.diff.styles should be used instead
Depends-On: I638b23cd8bc67075e82517a0e1e435670db98a39
Change-Id: Iafb0d2f97321efb7ae65e79825e9739790cb84e2
---
M resources/Resources.php
D resources/src/mediawiki.action/mediawiki.action.history.diff.css
D resources/src/mediawiki.action/mediawiki.action.history.diff.print.css
3 files changed, 0 insertions(+), 147 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/11/307711/1
diff --git a/resources/Resources.php b/resources/Resources.php
index 36ca7e0..8e102ee 100644
--- a/resources/Resources.php
+++ b/resources/Resources.php
@@ -1510,17 +1510,6 @@
'position' => 'top',
'styles' =>
'resources/src/mediawiki.action/mediawiki.action.history.styles.css',
],
- // this module is only kept for b/c, for diff styles use
mediawiki.action.history.diff.styles
- 'mediawiki.action.history.diff' => [
- 'position' => 'top',
- 'styles' => [
-
'resources/src/mediawiki.action/mediawiki.action.history.diff.css',
-
'resources/src/mediawiki.action/mediawiki.action.history.diff.print.css' => [
- 'media' => 'print'
- ],
- ],
- 'targets' => [ 'desktop', 'mobile' ],
- ],
'mediawiki.action.history.diff.styles' => [
'position' => 'top',
'styles' => [
diff --git a/resources/src/mediawiki.action/mediawiki.action.history.diff.css
b/resources/src/mediawiki.action/mediawiki.action.history.diff.css
deleted file mode 100644
index 327c9c8..0000000
--- a/resources/src/mediawiki.action/mediawiki.action.history.diff.css
+++ /dev/null
@@ -1,120 +0,0 @@
-/*!
- * Diff rendering
- */
-table.diff {
- border: none;
- border-spacing: 4px;
- margin: 0;
- width: 100%;
- /* Ensure that colums are of equal width */
- table-layout: fixed;
-}
-
-table.diff td {
- padding: 0.33em 0.5em;
-}
-
-table.diff td.diff-marker {
- /* Compensate padding for increased font-size */
- padding: 0.25em;
-}
-
-table.diff col.diff-marker {
- width: 2%;
-}
-
-table.diff col.diff-content {
- width: 48%;
-}
-
-table.diff td div {
- /* Force-wrap very long lines such as URLs or page-widening char
strings */
- word-wrap: break-word;
-}
-
-td.diff-otitle,
-td.diff-ntitle {
- text-align: center;
-}
-
-td.diff-lineno {
- font-weight: bold;
-}
-
-td.diff-marker {
- text-align: right;
- font-weight: bold;
- font-size: 1.25em;
- line-height: 1.2;
-}
-
-td.diff-addedline,
-td.diff-deletedline,
-td.diff-context {
- font-size: 88%;
- line-height: 1.6;
- vertical-align: top;
- white-space: -moz-pre-wrap;
- white-space: pre-wrap;
- border-style: solid;
- border-width: 1px 1px 1px 4px;
- border-radius: 0.33em;
-}
-
-td.diff-addedline {
- border-color: #a3d3ff;
-}
-
-td.diff-deletedline {
- border-color: #ffe49c;
-}
-
-td.diff-context {
- background: #f9f9f9;
- border-color: #e6e6e6;
- color: #333;
-}
-
-.diffchange {
- font-weight: bold;
- text-decoration: none;
-}
-
-td.diff-addedline .diffchange,
-td.diff-deletedline .diffchange {
- border-radius: 0.33em;
- padding: 0.25em 0;
-}
-
-td.diff-addedline .diffchange {
- background: #d8ecff;
-}
-
-td.diff-deletedline .diffchange {
- background: #feeec8;
-}
-
-/* Correct user & content directionality when viewing a diff */
-.diff-currentversion-title,
-.diff {
- direction: ltr;
- unicode-bidi: embed;
-}
-
-/* @noflip */ .diff-contentalign-right td {
- direction: rtl;
- unicode-bidi: embed;
-}
-
-/* @noflip */ .diff-contentalign-left td {
- direction: ltr;
- unicode-bidi: embed;
-}
-
-.diff-multi,
-.diff-otitle,
-.diff-ntitle,
-.diff-lineno {
- direction: ltr !important;
- unicode-bidi: embed;
-}
diff --git
a/resources/src/mediawiki.action/mediawiki.action.history.diff.print.css
b/resources/src/mediawiki.action/mediawiki.action.history.diff.print.css
deleted file mode 100644
index 76b5c9b..0000000
--- a/resources/src/mediawiki.action/mediawiki.action.history.diff.print.css
+++ /dev/null
@@ -1,16 +0,0 @@
-/*!
- * Diff rendering
- */
-td.diff-context,
-td.diff-addedline .diffchange,
-td.diff-deletedline .diffchange {
- background-color: transparent;
-}
-
-td.diff-addedline .diffchange {
- text-decoration: underline;
-}
-
-td.diff-deletedline .diffchange {
- text-decoration: line-through;
-}
--
To view, visit https://gerrit.wikimedia.org/r/307711
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iafb0d2f97321efb7ae65e79825e9739790cb84e2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: WMDE-leszek <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits