jenkins-bot has submitted this change and it was merged.

Change subject: Fixes CSS RTL issue
......................................................................


Fixes CSS RTL issue

Adds a file that reverts the CSS back to the original unmangled
state. This is not ideal because now we have to maintain this
list. Ideally, we should be able to say not to mangle a css file.

Bug: T127137
Change-Id: Iea720d28d2392b85c3d6d8fd469c5355a6eab9a5
---
M extension.json
A lib/mapbox-style-fixes.css
2 files changed, 23 insertions(+), 1 deletion(-)

Approvals:
  MaxSem: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/extension.json b/extension.json
index 17ed8e4..4b351cf 100644
--- a/extension.json
+++ b/extension.json
@@ -35,7 +35,8 @@
                                "lib/mapbox/mapbox.i18n.js"
                        ],
                        "styles": [
-                               "lib/mapbox/style.css"
+                               "lib/mapbox/style.css",
+                               "lib/mapbox-style-fixes.css"
                        ],
                        "messages": [
                                "mapbox-control-zoomin-title",
diff --git a/lib/mapbox-style-fixes.css b/lib/mapbox-style-fixes.css
new file mode 100644
index 0000000..d2e9f3e
--- /dev/null
+++ b/lib/mapbox-style-fixes.css
@@ -0,0 +1,21 @@
+/* Per https://phabricator.wikimedia.org/T127137
+   fixes the overly zealous LTR->RTL css mangler
+------------------------------------------------------- */
+
+/* @noflip */
+body.rtl .leaflet-map-pane,
+body.rtl .leaflet-tile,
+body.rtl .leaflet-marker-icon,
+body.rtl .leaflet-marker-shadow,
+body.rtl .leaflet-tile-pane,
+body.rtl .leaflet-tile-container,
+body.rtl .leaflet-overlay-pane,
+body.rtl .leaflet-shadow-pane,
+body.rtl .leaflet-marker-pane,
+body.rtl .leaflet-popup-pane,
+body.rtl .leaflet-overlay-pane svg,
+body.rtl .leaflet-zoom-box,
+body.rtl .leaflet-image-layer,
+body.rtl .leaflet-layer {
+  left: 0; right: auto;
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/272931
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iea720d28d2392b85c3d6d8fd469c5355a6eab9a5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Kartographer
Gerrit-Branch: master
Gerrit-Owner: Yurik <yu...@wikimedia.org>
Gerrit-Reviewer: MaxSem <maxsem.w...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to