You are here

L.Control.Pan.css in Get Locations 7

Same filename and directory in other branches
  1. 7.2 modules/getlocations_leaflet/plugins/pancontrol/L.Control.Pan.css
/* Make the default zoom control align with the pan control.
   
   This is ugly. 
   The parent box (class="leaflet-top leaflet-left") 
   should make all the child boxes be center-aligned instead. 
   Not sure if that is possible though.
*/
.has-leaflet-pan-control .leaflet-control-zoom {
	position: relative;
	left:24px;
}
/* 
   Make the zoomSlider control 
   (https://github.com/mattiasbengtsson/Leaflet.zoomslider) 
   align with the pan control. 
*/
.has-leaflet-pan-control .leaflet-control-zoomslider {
	position: relative;
	left:22px;
}

.leaflet-control-pan  {
	   /* 
	     .leaflet-control-pan-right-wrap: right 
	   + .leaflet-control-pan a: width
	   = 52 + 24 = 76
	   */
	width: 76px; 
	   /* 
	     .leaflet-control-pan-down-wrap: top
	   + .leaflet-control-pan a: height
	   = 52 + 24 = 76
	   */
	height: 76px;
}

.leaflet-control-pan > div {
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}
.leaflet-control-pan > div {
  box-shadow: 0 1px 7px rgba(0,0,0,0.65);
}
.leaflet-control-pan a {
    background-color: #fff;
}
.leaflet-control-pan a{
    background-position: 50% 50%;
    background-repeat: no-repeat;
    display: block;
}
.leaflet-control-pan a {
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    width: 23px;
    height: 23px;
}
.leaflet-control-pan a:hover {
    background-color: #f4f4f4;
}

.leaflet-control-pan-up-wrap {
	position:absolute;
	left:26px;
}
.leaflet-control-pan-left-wrap {
	position:absolute;
	top:26px;
}
.leaflet-control-pan-right-wrap {
	position:absolute;
	left:52px;	
	top:26px;
}
.leaflet-control-pan-down-wrap {
	position:absolute;
	left:26px;
	top:52px;
}

.leaflet-control-pan-up {
	background-image: url(images/pan-up.png);
}
.leaflet-control-pan-left {
	background-image: url(images/pan-left.png);
}
.leaflet-control-pan-right {
	background-image: url(images/pan-right.png);
}
.leaflet-control-pan-down {
	background-image: url(images/pan-down.png);
}

/****** Touch Alterations ******/
.leaflet-touch .leaflet-control-pan div {
  border: 4px solid rgba(0, 0, 0, 0.3);
  box-shadow: none;

  border-radius: 10px;
}

.leaflet-touch .leaflet-control-pan {
  width: 89px;
  height: 119px;
}

.leaflet-touch .leaflet-control-pan a {
  width: 30px;
  height: 30px;

  border-radius: 7px;
}

.leaflet-touch .leaflet-control-pan-up-wrap {
  left:26px;
}

.leaflet-touch .leaflet-control-pan-left-wrap {
  top:40px;
}

.leaflet-touch .leaflet-control-pan-right-wrap {
  left:52px;
  top:40px;
}

.leaflet-touch .leaflet-control-pan-down-wrap {
  left:26px;
  top:80px;
}

File

modules/getlocations_leaflet/plugins/pancontrol/L.Control.Pan.css
View source
  1. /* Make the default zoom control align with the pan control.
  2. This is ugly.
  3. The parent box (class="leaflet-top leaflet-left")
  4. should make all the child boxes be center-aligned instead.
  5. Not sure if that is possible though.
  6. */
  7. .has-leaflet-pan-control .leaflet-control-zoom {
  8. position: relative;
  9. left:24px;
  10. }
  11. /*
  12. Make the zoomSlider control
  13. (https://github.com/mattiasbengtsson/Leaflet.zoomslider)
  14. align with the pan control.
  15. */
  16. .has-leaflet-pan-control .leaflet-control-zoomslider {
  17. position: relative;
  18. left:22px;
  19. }
  20. .leaflet-control-pan {
  21. /*
  22. .leaflet-control-pan-right-wrap: right
  23. + .leaflet-control-pan a: width
  24. = 52 + 24 = 76
  25. */
  26. width: 76px;
  27. /*
  28. .leaflet-control-pan-down-wrap: top
  29. + .leaflet-control-pan a: height
  30. = 52 + 24 = 76
  31. */
  32. height: 76px;
  33. }
  34. .leaflet-control-pan > div {
  35. -moz-border-radius: 4px;
  36. -webkit-border-radius: 4px;
  37. border-radius: 4px;
  38. }
  39. .leaflet-control-pan > div {
  40. box-shadow: 0 1px 7px rgba(0,0,0,0.65);
  41. }
  42. .leaflet-control-pan a {
  43. background-color: #fff;
  44. }
  45. .leaflet-control-pan a{
  46. background-position: 50% 50%;
  47. background-repeat: no-repeat;
  48. display: block;
  49. }
  50. .leaflet-control-pan a {
  51. -moz-border-radius: 4px;
  52. -webkit-border-radius: 4px;
  53. border-radius: 4px;
  54. width: 23px;
  55. height: 23px;
  56. }
  57. .leaflet-control-pan a:hover {
  58. background-color: #f4f4f4;
  59. }
  60. .leaflet-control-pan-up-wrap {
  61. position:absolute;
  62. left:26px;
  63. }
  64. .leaflet-control-pan-left-wrap {
  65. position:absolute;
  66. top:26px;
  67. }
  68. .leaflet-control-pan-right-wrap {
  69. position:absolute;
  70. left:52px;
  71. top:26px;
  72. }
  73. .leaflet-control-pan-down-wrap {
  74. position:absolute;
  75. left:26px;
  76. top:52px;
  77. }
  78. .leaflet-control-pan-up {
  79. background-image: url(images/pan-up.png);
  80. }
  81. .leaflet-control-pan-left {
  82. background-image: url(images/pan-left.png);
  83. }
  84. .leaflet-control-pan-right {
  85. background-image: url(images/pan-right.png);
  86. }
  87. .leaflet-control-pan-down {
  88. background-image: url(images/pan-down.png);
  89. }
  90. /****** Touch Alterations ******/
  91. .leaflet-touch .leaflet-control-pan div {
  92. border: 4px solid rgba(0, 0, 0, 0.3);
  93. box-shadow: none;
  94. border-radius: 10px;
  95. }
  96. .leaflet-touch .leaflet-control-pan {
  97. width: 89px;
  98. height: 119px;
  99. }
  100. .leaflet-touch .leaflet-control-pan a {
  101. width: 30px;
  102. height: 30px;
  103. border-radius: 7px;
  104. }
  105. .leaflet-touch .leaflet-control-pan-up-wrap {
  106. left:26px;
  107. }
  108. .leaflet-touch .leaflet-control-pan-left-wrap {
  109. top:40px;
  110. }
  111. .leaflet-touch .leaflet-control-pan-right-wrap {
  112. left:52px;
  113. top:40px;
  114. }
  115. .leaflet-touch .leaflet-control-pan-down-wrap {
  116. left:26px;
  117. top:80px;
  118. }