MediaWiki:Common.less/leaflet.less: Difference between revisions
Add Pencil icon, and use map_icon instead of small_icon for entities
(Tabs to spaces) |
(Add Pencil icon, and use map_icon instead of small_icon for entities) |
||
(5 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
Line 31 ⟶ 41:
@leatherworker: #866E62;
@merchant: #78B492;
@builder: #9C8A7C;
@palette: #DEDAD4;
@item: #90908C;
Line 57 ⟶ 68:
leatherworker leatherworker Leatherworker @square,
merchant merchant Merchant @square,
builder builder Builder @square,
bank none Bank @square,
clipboard chef Clipboard @square,
Line 66 ⟶ 78:
obstacle obstacle Obstacle @square,
palette palette Palette @square,
pencil item Pencil @circle,
portal_stone item Portal_Stone @square,
recipe none Recipe @square,
Line 78 ⟶ 91:
.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>
|