You are here

ip_geoloc_leaflet_markers.css in IP Geolocation Views & Maps 8

Same filename and directory in other branches
  1. 7 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)
*/

.leaflet-tagged-marker div, /* element used for marker tags */
.leaflet-tagged-marker i {
  /* element used for the special font-icon chars */
  position: relative;
  top: -35px;
  left: -41px;
  min-width: 80px; /* -2x 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;
}
/* 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. .leaflet-tagged-marker div, /* element used for marker tags */
  7. .leaflet-tagged-marker i {
  8. /* element used for the special font-icon chars */
  9. position: relative;
  10. top: -35px;
  11. left: -41px;
  12. min-width: 80px; /* -2x 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. /* adjust for the Google-style markers that live in the /markers directory */
  26. .markers .leaflet-tagged-marker i {
  27. font-size: 11px;
  28. top: -30px;
  29. }
  30. .leaflet-tagged-marker div.tag-above-marker {
  31. top: -56px;
  32. color: red;
  33. }
  34. .leaflet-tagged-marker div.tag-below-marker {
  35. top: -1px;
  36. color: red;
  37. }
  38. .leaflet-marker-icon.tag-rounded-corners {
  39. font-size: 10px;
  40. width: 60px;
  41. padding: 0 3px 1px 2px;
  42. border-radius: 0 9px 9px 9px;
  43. border: 1px solid black;
  44. background-color: white;
  45. }
  46. .leaflet-marker-icon.tag-pointy-circle {
  47. text-align: center;
  48. width: 30px;
  49. height: 25px;
  50. padding-top: 5px;
  51. border-radius: 0 20px 20px 20px;
  52. border: 1px solid black;
  53. border-top: 1px solid red;
  54. border-left: 1px solid red;
  55. background-color: white;
  56. }