[Pkg-javascript-commits] [leaflet] 208/301: move old IE styles to leaflet.css, ditch leaflet.ie.css, close #2159

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit 45181ce40b4c3991b5d58ce75e54a76b97ab3945
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Fri Nov 8 16:42:52 2013 +0200

    move old IE styles to leaflet.css, ditch leaflet.ie.css, close #2159
---
 dist/leaflet.css    | 31 +++++++++++++++++++++++++++++++
 dist/leaflet.ie.css | 29 -----------------------------
 src/map/Map.js      |  1 +
 3 files changed, 32 insertions(+), 29 deletions(-)

diff --git a/dist/leaflet.css b/dist/leaflet.css
index 99aef03..a0364a8 100644
--- a/dist/leaflet.css
+++ b/dist/leaflet.css
@@ -69,6 +69,16 @@
 .leaflet-marker-pane  { z-index: 6; }
 .leaflet-popup-pane   { z-index: 7; }
 
+.leaflet-vml-shape {
+	width: 1px;
+	height: 1px;
+	}
+.lvml {
+	behavior: url(#default#VML);
+	display: inline-block;
+	position: absolute;
+	}
+
 
 /* control positioning */
 
@@ -464,6 +474,27 @@
 	border-top: 1px solid #ddd;
 	}
 
+.leaflet-oldie .leaflet-popup-content-wrapper {
+	zoom: 1;
+	}
+.leaflet-oldie .leaflet-popup-tip {
+	width: 24px;
+	margin: 0 auto;
+
+	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
+	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
+	}
+.leaflet-oldie .leaflet-popup-tip-container {
+	margin-top: -1px;
+	}
+
+.leaflet-oldie .leaflet-control-zoom,
+.leaflet-oldie .leaflet-control-layers,
+.leaflet-oldie .leaflet-popup-content-wrapper,
+.leaflet-oldie .leaflet-popup-tip {
+	border: 1px solid #999;
+	}
+
 
 /* div icon */
 
diff --git a/dist/leaflet.ie.css b/dist/leaflet.ie.css
deleted file mode 100644
index e308653..0000000
--- a/dist/leaflet.ie.css
+++ /dev/null
@@ -1,29 +0,0 @@
-.leaflet-vml-shape {
-	width: 1px;
-	height: 1px;
-	}
-.lvml {
-	behavior: url(#default#VML);
-	display: inline-block;
-	position: absolute;
-	}
-
-.leaflet-popup-tip {
-	width: 24px;
-	margin: 0 auto;
-
-	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
-	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
-	}
-.leaflet-popup-content-wrapper {
-	zoom: 1;
-	}
-.leaflet-popup-tip-container {
-	margin-top: -1px;
-	}
-.leaflet-popup-content-wrapper,
-.leaflet-popup-tip,
-.leaflet-control-zoom,
-.leaflet-control-layers {
-	border: 1px solid #999;
-	}
diff --git a/src/map/Map.js b/src/map/Map.js
index 35b7739..6abfa16 100644
--- a/src/map/Map.js
+++ b/src/map/Map.js
@@ -519,6 +519,7 @@ L.Map = L.Class.extend({
 		L.DomUtil.addClass(container, 'leaflet-container' +
 			(L.Browser.touch ? ' leaflet-touch' : '') +
 			(L.Browser.retina ? ' leaflet-retina' : '') +
+			(L.Browser.ielt9 ? ' leaflet-oldie' : '') +
 			(this.options.fadeAnimation ? ' leaflet-fade-anim' : ''));
 
 		var position = L.DomUtil.getStyle(container, 'position');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list