MediaWiki:Common.less/leaflet.less: Difference between revisions
Add Pencil icon, and use map_icon instead of small_icon for entities
(Changes suggested by User:Microbrews) |
(Add Pencil icon, and use map_icon instead of small_icon for entities) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1:
//<pre>
.map {
float: right;
clear: right;
}▼
background: #444444;
}
.leaflet-wiki-coordinates.leaflet-control {
margin: 0;
Line 5 ⟶ 12:
padding: 5px 10px;
filter: drop-shadow(0 0 2px black);
}
.leaflet-tile-loaded {
image-rendering: pixelated;▼
}
// Prevents stuttery zoom when prefers-reduced-motion
@media (prefers-reduced-motion: reduce) {
.leaflet-zoom-anim .leaflet-zoom-animated {
}
}
Line 31 ⟶ 41:
@leatherworker: #866E62;
@merchant: #78B492;
@builder: #9C8A7C;
@palette: #DEDAD4;
@item: #90908C;
Line 41 ⟶ 52:
@icons: guard none Guard @circle,
chef chef Chef @square,
scout none Scout @circle,
minefighter none Minefighter @circle,
watchperson none Watchperson @circle,
builder builder Builder @square,
bank none Bank @square,
obstacle obstacle Obstacle @square,
search item Search @square,
shop none Shop @circle,
@themes: aggressive aggressive,
.generate-map-icon-rules(@classname, @color, @image, @shape) {
.leaflet-marker-icon-icon-@{classname} {
background: @@color url('/images/@{image}
border-radius: @shape;
}
Line 115 ⟶ 128:
.leaflet-marker-icon-shape-square {
border-radius: @square;
▲}
▲.leaflet-tile-loaded {
▲ image-rendering: pixelated;
}
//</pre>
|