You are here

ip_geoloc_leaflet_markers.css in IP Geolocation Views & Maps 7

Same filename and directory in other branches
  1. 8 css/ip_geoloc_leaflet_markers.css
/* Note that the name of the marker directory, e.g. "/amarkers" is output in
   the HTML as a CSS class, so you can customise a version to go with your
   specific markers by prefixing your CSS rules with .amarkers (or whatever the
   name of your marker directory is)
*/

/* div is the element used for marker tags, i for font icons */
.leaflet-tagged-marker div,
.leaflet-tagged-marker i {
  position: relative;
  top: -37px;
  left: -40px;
  min-width: 80px; /* -2 times left */
  text-align: center;
  height: 0;  /* to avoid marker position shifting */
}
.leaflet-tagged-marker div {
  font-size: 11px;
}
.leaflet-tagged-marker i {
  font-size: 17px;
  font-style: normal;
  display: block; /* block and zero width to avoid marker position shifting */
  width: 0;
}

.leaflet-tagged-marker i.light {
  color: seashell;
}
.leaflet-tagged-marker i.dark {
  color: darkslategrey;
}
.leaflet-tagged-marker i.green {
  color: green;
}
.leaflet-tagged-marker i.red {
  color: red;
}

/* For http://www.flaticon.com, tested for /amarkers (32 x 42px) */
.leaflet-tagged-marker i[class^="flaticon-"]:before,
.leaflet-tagged-marker i[class*=" flaticon-"]:before {
  font-size: 14px;
  position: relative;
  top: -4px;
  left: -10px;
}

/* For http://fontello.com */
.leaflet-tagged-marker i[class^="icon-"]:before,
.leaflet-tagged-marker i[class*=" icon-"]:before {
  position: relative;
  top: -2px;
  left: 1px;
}

/* Adjust for the Google-style markers that live in the /markers directory */
.markers .leaflet-tagged-marker i {
  font-size: 11px;
  top: -30px;
}

.leaflet-tagged-marker div.tag-above-marker {
  top: -56px;
  color: red;
}
.leaflet-tagged-marker div.tag-below-marker {
  top: -1px;
  color: red;
}

.leaflet-marker-icon.tag-rounded-corners {
  font-size: 10px;
  width: 60px;
  padding: 0 3px 1px 2px;
  border-radius: 0 9px 9px 9px;
  border: 1px solid black;
  background-color: white;
}

.leaflet-marker-icon.tag-pointy-circle {
  text-align: center;
  width: 30px;
  height: 25px;
  padding-top: 5px;
  border-radius: 0 20px 20px 20px;
  border: 1px solid black;
  border-top: 1px solid red;
  border-left: 1px solid red;
  background-color: white;
}

File

css/ip_geoloc_leaflet_markers.css
View source
  1. /* Note that the name of the marker directory, e.g. "/amarkers" is output in
  2. the HTML as a CSS class, so you can customise a version to go with your
  3. specific markers by prefixing your CSS rules with .amarkers (or whatever the
  4. name of your marker directory is)
  5. */
  6. /* div is the element used for marker tags, i for font icons */
  7. .leaflet-tagged-marker div,
  8. .leaflet-tagged-marker i {
  9. position: relative;
  10. top: -37px;
  11. left: -40px;
  12. min-width: 80px; /* -2 times left */
  13. text-align: center;
  14. height: 0; /* to avoid marker position shifting */
  15. }
  16. .leaflet-tagged-marker div {
  17. font-size: 11px;
  18. }
  19. .leaflet-tagged-marker i {
  20. font-size: 17px;
  21. font-style: normal;
  22. display: block; /* block and zero width to avoid marker position shifting */
  23. width: 0;
  24. }
  25. .leaflet-tagged-marker i.light {
  26. color: seashell;
  27. }
  28. .leaflet-tagged-marker i.dark {
  29. color: darkslategrey;
  30. }
  31. .leaflet-tagged-marker i.green {
  32. color: green;
  33. }
  34. .leaflet-tagged-marker i.red {
  35. color: red;
  36. }
  37. /* For http://www.flaticon.com, tested for /amarkers (32 x 42px) */
  38. .leaflet-tagged-marker i[class^="flaticon-"]:before,
  39. .leaflet-tagged-marker i[class*=" flaticon-"]:before {
  40. font-size: 14px;
  41. position: relative;
  42. top: -4px;
  43. left: -10px;
  44. }
  45. /* For http://fontello.com */
  46. .leaflet-tagged-marker i[class^="icon-"]:before,
  47. .leaflet-tagged-marker i[class*=" icon-"]:before {
  48. position: relative;
  49. top: -2px;
  50. left: 1px;
  51. }
  52. /* Adjust for the Google-style markers that live in the /markers directory */
  53. .markers .leaflet-tagged-marker i {
  54. font-size: 11px;
  55. top: -30px;
  56. }
  57. .leaflet-tagged-marker div.tag-above-marker {
  58. top: -56px;
  59. color: red;
  60. }
  61. .leaflet-tagged-marker div.tag-below-marker {
  62. top: -1px;
  63. color: red;
  64. }
  65. .leaflet-marker-icon.tag-rounded-corners {
  66. font-size: 10px;
  67. width: 60px;
  68. padding: 0 3px 1px 2px;
  69. border-radius: 0 9px 9px 9px;
  70. border: 1px solid black;
  71. background-color: white;
  72. }
  73. .leaflet-marker-icon.tag-pointy-circle {
  74. text-align: center;
  75. width: 30px;
  76. height: 25px;
  77. padding-top: 5px;
  78. border-radius: 0 20px 20px 20px;
  79. border: 1px solid black;
  80. border-top: 1px solid red;
  81. border-left: 1px solid red;
  82. background-color: white;
  83. }