JGirault has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/319247

Change subject: Show MapPin icon next to all <maplinks> links
......................................................................

Show MapPin icon next to all <maplinks> links

* VW maplinks with counter are not impacted by this change.
* Provides an optional CSS class .no-icon to hide the icon easily.

Bug: T145176
Change-Id: I29c3fcac94afcf862fb8da46f371a19abe1057a1
---
A styles/images/mapPin-progressive.png
A styles/images/mapPin-progressive.svg
M styles/kartographer.less
3 files changed, 29 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Kartographer 
refs/changes/47/319247/1

diff --git a/styles/images/mapPin-progressive.png 
b/styles/images/mapPin-progressive.png
new file mode 100644
index 0000000..c1676e6
--- /dev/null
+++ b/styles/images/mapPin-progressive.png
Binary files differ
diff --git a/styles/images/mapPin-progressive.svg 
b/styles/images/mapPin-progressive.svg
new file mode 100644
index 0000000..a9631cc
--- /dev/null
+++ b/styles/images/mapPin-progressive.svg
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg"; width="24" height="24" viewBox="0 0 24 
24"><style>* { fill: #36c }</style>
+    <path d="M19 12c0-3.9-3.1-7-7-7s-7 3.1-7 7c0 1.4.4 2.6 1.1 3.7L12 
23l5.9-7.3c.7-1.1 1.1-2.3 1.1-3.7zm-7 4c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 
4-1.8 4-4 4z"/>
+</svg>
diff --git a/styles/kartographer.less b/styles/kartographer.less
index a36866c..c20bc41 100644
--- a/styles/kartographer.less
+++ b/styles/kartographer.less
@@ -1,4 +1,5 @@
 @import 'mediawiki.ui/variables';
+@import 'mediawiki.mixins';
 
 .mw-kartographer-mapDialog-map {
        position: absolute;
@@ -14,9 +15,31 @@
        background: #ffc0cb;
 }
 
-a.mw-kartographer-link {
+a.mw-kartographer-link,
+a.mw-kartographer-maplink {
        display: inline;
        cursor: pointer;
+
+       background-position: left -3px;
+       background-repeat: no-repeat;
+       .background-image-svg('images/mapPin-progressive.svg', 
'images/mapPin-progressive.png');
+       padding-left: 19px;
+       margin-left: 2px;
+       background-size: 18px 18px;
+
+       &.no-icon:not(.mw-kartographer-autostyled) {
+               background: none;
+               padding-left: 0;
+               margin-left: 0;
+       }
+}
+
+.skin-minerva {
+       a.mw-kartographer-link,
+       a.mw-kartographer-maplink {
+               padding-left: 20px;
+               background-size: 20px 20px;
+       }
 }
 
 a.mw-kartographer-autostyled {
@@ -34,6 +57,7 @@
        line-height: 1;
        text-align: center;
 }
+
 a.mw-kartographer-autostyled:visited {
        color: #fff;
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I29c3fcac94afcf862fb8da46f371a19abe1057a1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Kartographer
Gerrit-Branch: master
Gerrit-Owner: JGirault <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to