MediaWiki:Common.less/leaflet.less: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Revert 70% to contain)
(Add Pencil icon, and use map_icon instead of small_icon for entities)
 
Line 78: Line 78:
obstacle obstacle Obstacle @square,
obstacle obstacle Obstacle @square,
palette palette Palette @square,
palette palette Palette @square,
pencil item Pencil @circle,
portal_stone item Portal_Stone @square,
portal_stone item Portal_Stone @square,
recipe none Recipe @square,
recipe none Recipe @square,
Line 90: Line 91:
.generate-map-icon-rules(@classname, @color, @image, @shape) {
.generate-map-icon-rules(@classname, @color, @image, @shape) {
.leaflet-marker-icon-icon-@{classname} {
.leaflet-marker-icon-icon-@{classname} {
background: @@color url('/images/@{image}_small_icon.png') no-repeat center / contain;
background: @@color url('/images/@{image}_map_icon.png') no-repeat center / contain;
border-radius: @shape;
border-radius: @shape;
}
}