You are here

leaflet.css in Leaflet 8

Same filename and directory in other branches
  1. 2.1.x js/leaflet/dist/leaflet.css
  2. 2.0.x js/leaflet/dist/leaflet.css
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg,
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-tile {
	will-change: opacity;
	}
.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
.leaflet-zoom-anim .leaflet-zoom-animated {
	will-change: transform;
	}
.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline: 0;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-container a.leaflet-active {
	outline: 2px solid orange;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a,
.leaflet-bar a:hover {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path {
	background-image: url(images/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.7);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover {
	text-decoration: underline;
	}
.leaflet-container .leaflet-control-attribution,
.leaflet-container .leaflet-control-scale {
	font-size: 11px;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;

	background: #fff;
	background: rgba(255, 255, 255, 0.5);
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 19px;
	line-height: 1.4;
	}
.leaflet-popup-content p {
	margin: 18px 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	padding: 4px 4px 0 0;
	border: none;
	text-align: center;
	width: 18px;
	height: 14px;
	font: 16px/14px Tahoma, Verdana, sans-serif;
	color: #c3c3c3;
	text-decoration: none;
	font-weight: bold;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover {
	color: #999;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	border-bottom: 1px solid #ddd;
	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 */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-clickable {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

File

js/leaflet/dist/leaflet.css
View source
  1. /* required styles */
  2. .leaflet-pane,
  3. .leaflet-tile,
  4. .leaflet-marker-icon,
  5. .leaflet-marker-shadow,
  6. .leaflet-tile-container,
  7. .leaflet-pane > svg,
  8. .leaflet-pane > canvas,
  9. .leaflet-zoom-box,
  10. .leaflet-image-layer,
  11. .leaflet-layer {
  12. position: absolute;
  13. left: 0;
  14. top: 0;
  15. }
  16. .leaflet-container {
  17. overflow: hidden;
  18. }
  19. .leaflet-tile,
  20. .leaflet-marker-icon,
  21. .leaflet-marker-shadow {
  22. -webkit-user-select: none;
  23. -moz-user-select: none;
  24. user-select: none;
  25. -webkit-user-drag: none;
  26. }
  27. /* Safari renders non-retina tile on retina better with this, but Chrome is worse */
  28. .leaflet-safari .leaflet-tile {
  29. image-rendering: -webkit-optimize-contrast;
  30. }
  31. /* hack that prevents hw layers "stretching" when loading new tiles */
  32. .leaflet-safari .leaflet-tile-container {
  33. width: 1600px;
  34. height: 1600px;
  35. -webkit-transform-origin: 0 0;
  36. }
  37. .leaflet-marker-icon,
  38. .leaflet-marker-shadow {
  39. display: block;
  40. }
  41. /* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
  42. /* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
  43. .leaflet-container .leaflet-overlay-pane svg,
  44. .leaflet-container .leaflet-marker-pane img,
  45. .leaflet-container .leaflet-shadow-pane img,
  46. .leaflet-container .leaflet-tile-pane img,
  47. .leaflet-container img.leaflet-image-layer,
  48. .leaflet-container .leaflet-tile {
  49. max-width: none !important;
  50. max-height: none !important;
  51. }
  52. .leaflet-container.leaflet-touch-zoom {
  53. -ms-touch-action: pan-x pan-y;
  54. touch-action: pan-x pan-y;
  55. }
  56. .leaflet-container.leaflet-touch-drag {
  57. -ms-touch-action: pinch-zoom;
  58. /* Fallback for FF which doesn't support pinch-zoom */
  59. touch-action: none;
  60. touch-action: pinch-zoom;
  61. }
  62. .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
  63. -ms-touch-action: none;
  64. touch-action: none;
  65. }
  66. .leaflet-container {
  67. -webkit-tap-highlight-color: transparent;
  68. }
  69. .leaflet-container a {
  70. -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
  71. }
  72. .leaflet-tile {
  73. filter: inherit;
  74. visibility: hidden;
  75. }
  76. .leaflet-tile-loaded {
  77. visibility: inherit;
  78. }
  79. .leaflet-zoom-box {
  80. width: 0;
  81. height: 0;
  82. -moz-box-sizing: border-box;
  83. box-sizing: border-box;
  84. z-index: 800;
  85. }
  86. /* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
  87. .leaflet-overlay-pane svg {
  88. -moz-user-select: none;
  89. }
  90. .leaflet-pane { z-index: 400; }
  91. .leaflet-tile-pane { z-index: 200; }
  92. .leaflet-overlay-pane { z-index: 400; }
  93. .leaflet-shadow-pane { z-index: 500; }
  94. .leaflet-marker-pane { z-index: 600; }
  95. .leaflet-tooltip-pane { z-index: 650; }
  96. .leaflet-popup-pane { z-index: 700; }
  97. .leaflet-map-pane canvas { z-index: 100; }
  98. .leaflet-map-pane svg { z-index: 200; }
  99. .leaflet-vml-shape {
  100. width: 1px;
  101. height: 1px;
  102. }
  103. .lvml {
  104. behavior: url(#default#VML);
  105. display: inline-block;
  106. position: absolute;
  107. }
  108. /* control positioning */
  109. .leaflet-control {
  110. position: relative;
  111. z-index: 800;
  112. pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
  113. pointer-events: auto;
  114. }
  115. .leaflet-top,
  116. .leaflet-bottom {
  117. position: absolute;
  118. z-index: 1000;
  119. pointer-events: none;
  120. }
  121. .leaflet-top {
  122. top: 0;
  123. }
  124. .leaflet-right {
  125. right: 0;
  126. }
  127. .leaflet-bottom {
  128. bottom: 0;
  129. }
  130. .leaflet-left {
  131. left: 0;
  132. }
  133. .leaflet-control {
  134. float: left;
  135. clear: both;
  136. }
  137. .leaflet-right .leaflet-control {
  138. float: right;
  139. }
  140. .leaflet-top .leaflet-control {
  141. margin-top: 10px;
  142. }
  143. .leaflet-bottom .leaflet-control {
  144. margin-bottom: 10px;
  145. }
  146. .leaflet-left .leaflet-control {
  147. margin-left: 10px;
  148. }
  149. .leaflet-right .leaflet-control {
  150. margin-right: 10px;
  151. }
  152. /* zoom and fade animations */
  153. .leaflet-fade-anim .leaflet-tile {
  154. will-change: opacity;
  155. }
  156. .leaflet-fade-anim .leaflet-popup {
  157. opacity: 0;
  158. -webkit-transition: opacity 0.2s linear;
  159. -moz-transition: opacity 0.2s linear;
  160. transition: opacity 0.2s linear;
  161. }
  162. .leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
  163. opacity: 1;
  164. }
  165. .leaflet-zoom-animated {
  166. -webkit-transform-origin: 0 0;
  167. -ms-transform-origin: 0 0;
  168. transform-origin: 0 0;
  169. }
  170. .leaflet-zoom-anim .leaflet-zoom-animated {
  171. will-change: transform;
  172. }
  173. .leaflet-zoom-anim .leaflet-zoom-animated {
  174. -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
  175. -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
  176. transition: transform 0.25s cubic-bezier(0,0,0.25,1);
  177. }
  178. .leaflet-zoom-anim .leaflet-tile,
  179. .leaflet-pan-anim .leaflet-tile {
  180. -webkit-transition: none;
  181. -moz-transition: none;
  182. transition: none;
  183. }
  184. .leaflet-zoom-anim .leaflet-zoom-hide {
  185. visibility: hidden;
  186. }
  187. /* cursors */
  188. .leaflet-interactive {
  189. cursor: pointer;
  190. }
  191. .leaflet-grab {
  192. cursor: -webkit-grab;
  193. cursor: -moz-grab;
  194. cursor: grab;
  195. }
  196. .leaflet-crosshair,
  197. .leaflet-crosshair .leaflet-interactive {
  198. cursor: crosshair;
  199. }
  200. .leaflet-popup-pane,
  201. .leaflet-control {
  202. cursor: auto;
  203. }
  204. .leaflet-dragging .leaflet-grab,
  205. .leaflet-dragging .leaflet-grab .leaflet-interactive,
  206. .leaflet-dragging .leaflet-marker-draggable {
  207. cursor: move;
  208. cursor: -webkit-grabbing;
  209. cursor: -moz-grabbing;
  210. cursor: grabbing;
  211. }
  212. /* marker & overlays interactivity */
  213. .leaflet-marker-icon,
  214. .leaflet-marker-shadow,
  215. .leaflet-image-layer,
  216. .leaflet-pane > svg path,
  217. .leaflet-tile-container {
  218. pointer-events: none;
  219. }
  220. .leaflet-marker-icon.leaflet-interactive,
  221. .leaflet-image-layer.leaflet-interactive,
  222. .leaflet-pane > svg path.leaflet-interactive {
  223. pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
  224. pointer-events: auto;
  225. }
  226. /* visual tweaks */
  227. .leaflet-container {
  228. background: #ddd;
  229. outline: 0;
  230. }
  231. .leaflet-container a {
  232. color: #0078A8;
  233. }
  234. .leaflet-container a.leaflet-active {
  235. outline: 2px solid orange;
  236. }
  237. .leaflet-zoom-box {
  238. border: 2px dotted #38f;
  239. background: rgba(255,255,255,0.5);
  240. }
  241. /* general typography */
  242. .leaflet-container {
  243. font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
  244. }
  245. /* general toolbar styles */
  246. .leaflet-bar {
  247. box-shadow: 0 1px 5px rgba(0,0,0,0.65);
  248. border-radius: 4px;
  249. }
  250. .leaflet-bar a,
  251. .leaflet-bar a:hover {
  252. background-color: #fff;
  253. border-bottom: 1px solid #ccc;
  254. width: 26px;
  255. height: 26px;
  256. line-height: 26px;
  257. display: block;
  258. text-align: center;
  259. text-decoration: none;
  260. color: black;
  261. }
  262. .leaflet-bar a,
  263. .leaflet-control-layers-toggle {
  264. background-position: 50% 50%;
  265. background-repeat: no-repeat;
  266. display: block;
  267. }
  268. .leaflet-bar a:hover {
  269. background-color: #f4f4f4;
  270. }
  271. .leaflet-bar a:first-child {
  272. border-top-left-radius: 4px;
  273. border-top-right-radius: 4px;
  274. }
  275. .leaflet-bar a:last-child {
  276. border-bottom-left-radius: 4px;
  277. border-bottom-right-radius: 4px;
  278. border-bottom: none;
  279. }
  280. .leaflet-bar a.leaflet-disabled {
  281. cursor: default;
  282. background-color: #f4f4f4;
  283. color: #bbb;
  284. }
  285. .leaflet-touch .leaflet-bar a {
  286. width: 30px;
  287. height: 30px;
  288. line-height: 30px;
  289. }
  290. .leaflet-touch .leaflet-bar a:first-child {
  291. border-top-left-radius: 2px;
  292. border-top-right-radius: 2px;
  293. }
  294. .leaflet-touch .leaflet-bar a:last-child {
  295. border-bottom-left-radius: 2px;
  296. border-bottom-right-radius: 2px;
  297. }
  298. /* zoom control */
  299. .leaflet-control-zoom-in,
  300. .leaflet-control-zoom-out {
  301. font: bold 18px 'Lucida Console', Monaco, monospace;
  302. text-indent: 1px;
  303. }
  304. .leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
  305. font-size: 22px;
  306. }
  307. /* layers control */
  308. .leaflet-control-layers {
  309. box-shadow: 0 1px 5px rgba(0,0,0,0.4);
  310. background: #fff;
  311. border-radius: 5px;
  312. }
  313. .leaflet-control-layers-toggle {
  314. background-image: url(images/layers.png);
  315. width: 36px;
  316. height: 36px;
  317. }
  318. .leaflet-retina .leaflet-control-layers-toggle {
  319. background-image: url(images/layers-2x.png);
  320. background-size: 26px 26px;
  321. }
  322. .leaflet-touch .leaflet-control-layers-toggle {
  323. width: 44px;
  324. height: 44px;
  325. }
  326. .leaflet-control-layers .leaflet-control-layers-list,
  327. .leaflet-control-layers-expanded .leaflet-control-layers-toggle {
  328. display: none;
  329. }
  330. .leaflet-control-layers-expanded .leaflet-control-layers-list {
  331. display: block;
  332. position: relative;
  333. }
  334. .leaflet-control-layers-expanded {
  335. padding: 6px 10px 6px 6px;
  336. color: #333;
  337. background: #fff;
  338. }
  339. .leaflet-control-layers-scrollbar {
  340. overflow-y: scroll;
  341. overflow-x: hidden;
  342. padding-right: 5px;
  343. }
  344. .leaflet-control-layers-selector {
  345. margin-top: 2px;
  346. position: relative;
  347. top: 1px;
  348. }
  349. .leaflet-control-layers label {
  350. display: block;
  351. }
  352. .leaflet-control-layers-separator {
  353. height: 0;
  354. border-top: 1px solid #ddd;
  355. margin: 5px -10px 5px -6px;
  356. }
  357. /* Default icon URLs */
  358. .leaflet-default-icon-path {
  359. background-image: url(images/marker-icon.png);
  360. }
  361. /* attribution and scale controls */
  362. .leaflet-container .leaflet-control-attribution {
  363. background: #fff;
  364. background: rgba(255, 255, 255, 0.7);
  365. margin: 0;
  366. }
  367. .leaflet-control-attribution,
  368. .leaflet-control-scale-line {
  369. padding: 0 5px;
  370. color: #333;
  371. }
  372. .leaflet-control-attribution a {
  373. text-decoration: none;
  374. }
  375. .leaflet-control-attribution a:hover {
  376. text-decoration: underline;
  377. }
  378. .leaflet-container .leaflet-control-attribution,
  379. .leaflet-container .leaflet-control-scale {
  380. font-size: 11px;
  381. }
  382. .leaflet-left .leaflet-control-scale {
  383. margin-left: 5px;
  384. }
  385. .leaflet-bottom .leaflet-control-scale {
  386. margin-bottom: 5px;
  387. }
  388. .leaflet-control-scale-line {
  389. border: 2px solid #777;
  390. border-top: none;
  391. line-height: 1.1;
  392. padding: 2px 5px 1px;
  393. font-size: 11px;
  394. white-space: nowrap;
  395. overflow: hidden;
  396. -moz-box-sizing: border-box;
  397. box-sizing: border-box;
  398. background: #fff;
  399. background: rgba(255, 255, 255, 0.5);
  400. }
  401. .leaflet-control-scale-line:not(:first-child) {
  402. border-top: 2px solid #777;
  403. border-bottom: none;
  404. margin-top: -2px;
  405. }
  406. .leaflet-control-scale-line:not(:first-child):not(:last-child) {
  407. border-bottom: 2px solid #777;
  408. }
  409. .leaflet-touch .leaflet-control-attribution,
  410. .leaflet-touch .leaflet-control-layers,
  411. .leaflet-touch .leaflet-bar {
  412. box-shadow: none;
  413. }
  414. .leaflet-touch .leaflet-control-layers,
  415. .leaflet-touch .leaflet-bar {
  416. border: 2px solid rgba(0,0,0,0.2);
  417. background-clip: padding-box;
  418. }
  419. /* popup */
  420. .leaflet-popup {
  421. position: absolute;
  422. text-align: center;
  423. margin-bottom: 20px;
  424. }
  425. .leaflet-popup-content-wrapper {
  426. padding: 1px;
  427. text-align: left;
  428. border-radius: 12px;
  429. }
  430. .leaflet-popup-content {
  431. margin: 13px 19px;
  432. line-height: 1.4;
  433. }
  434. .leaflet-popup-content p {
  435. margin: 18px 0;
  436. }
  437. .leaflet-popup-tip-container {
  438. width: 40px;
  439. height: 20px;
  440. position: absolute;
  441. left: 50%;
  442. margin-left: -20px;
  443. overflow: hidden;
  444. pointer-events: none;
  445. }
  446. .leaflet-popup-tip {
  447. width: 17px;
  448. height: 17px;
  449. padding: 1px;
  450. margin: -10px auto 0;
  451. -webkit-transform: rotate(45deg);
  452. -moz-transform: rotate(45deg);
  453. -ms-transform: rotate(45deg);
  454. transform: rotate(45deg);
  455. }
  456. .leaflet-popup-content-wrapper,
  457. .leaflet-popup-tip {
  458. background: white;
  459. color: #333;
  460. box-shadow: 0 3px 14px rgba(0,0,0,0.4);
  461. }
  462. .leaflet-container a.leaflet-popup-close-button {
  463. position: absolute;
  464. top: 0;
  465. right: 0;
  466. padding: 4px 4px 0 0;
  467. border: none;
  468. text-align: center;
  469. width: 18px;
  470. height: 14px;
  471. font: 16px/14px Tahoma, Verdana, sans-serif;
  472. color: #c3c3c3;
  473. text-decoration: none;
  474. font-weight: bold;
  475. background: transparent;
  476. }
  477. .leaflet-container a.leaflet-popup-close-button:hover {
  478. color: #999;
  479. }
  480. .leaflet-popup-scrolled {
  481. overflow: auto;
  482. border-bottom: 1px solid #ddd;
  483. border-top: 1px solid #ddd;
  484. }
  485. .leaflet-oldie .leaflet-popup-content-wrapper {
  486. zoom: 1;
  487. }
  488. .leaflet-oldie .leaflet-popup-tip {
  489. width: 24px;
  490. margin: 0 auto;
  491. -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
  492. filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
  493. }
  494. .leaflet-oldie .leaflet-popup-tip-container {
  495. margin-top: -1px;
  496. }
  497. .leaflet-oldie .leaflet-control-zoom,
  498. .leaflet-oldie .leaflet-control-layers,
  499. .leaflet-oldie .leaflet-popup-content-wrapper,
  500. .leaflet-oldie .leaflet-popup-tip {
  501. border: 1px solid #999;
  502. }
  503. /* div icon */
  504. .leaflet-div-icon {
  505. background: #fff;
  506. border: 1px solid #666;
  507. }
  508. /* Tooltip */
  509. /* Base styles for the element that has a tooltip */
  510. .leaflet-tooltip {
  511. position: absolute;
  512. padding: 6px;
  513. background-color: #fff;
  514. border: 1px solid #fff;
  515. border-radius: 3px;
  516. color: #222;
  517. white-space: nowrap;
  518. -webkit-user-select: none;
  519. -moz-user-select: none;
  520. -ms-user-select: none;
  521. user-select: none;
  522. pointer-events: none;
  523. box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  524. }
  525. .leaflet-tooltip.leaflet-clickable {
  526. cursor: pointer;
  527. pointer-events: auto;
  528. }
  529. .leaflet-tooltip-top:before,
  530. .leaflet-tooltip-bottom:before,
  531. .leaflet-tooltip-left:before,
  532. .leaflet-tooltip-right:before {
  533. position: absolute;
  534. pointer-events: none;
  535. border: 6px solid transparent;
  536. background: transparent;
  537. content: "";
  538. }
  539. /* Directions */
  540. .leaflet-tooltip-bottom {
  541. margin-top: 6px;
  542. }
  543. .leaflet-tooltip-top {
  544. margin-top: -6px;
  545. }
  546. .leaflet-tooltip-bottom:before,
  547. .leaflet-tooltip-top:before {
  548. left: 50%;
  549. margin-left: -6px;
  550. }
  551. .leaflet-tooltip-top:before {
  552. bottom: 0;
  553. margin-bottom: -12px;
  554. border-top-color: #fff;
  555. }
  556. .leaflet-tooltip-bottom:before {
  557. top: 0;
  558. margin-top: -12px;
  559. margin-left: -6px;
  560. border-bottom-color: #fff;
  561. }
  562. .leaflet-tooltip-left {
  563. margin-left: -6px;
  564. }
  565. .leaflet-tooltip-right {
  566. margin-left: 6px;
  567. }
  568. .leaflet-tooltip-left:before,
  569. .leaflet-tooltip-right:before {
  570. top: 50%;
  571. margin-top: -6px;
  572. }
  573. .leaflet-tooltip-left:before {
  574. right: 0;
  575. margin-right: -12px;
  576. border-left-color: #fff;
  577. }
  578. .leaflet-tooltip-right:before {
  579. left: 0;
  580. margin-left: -12px;
  581. border-right-color: #fff;
  582. }