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

Add Pencil icon, and use map_icon instead of small_icon for entities
No edit summary
(Add Pencil icon, and use map_icon instead of small_icon for entities)
 
(17 intermediate revisions by the same user not shown)
Line 1:
//<pre>
.map {
float: right;
clear: right;
}
.leaflet-container {
background: #444444;
}
.leaflet-wiki-coordinates.leaflet-control {
margin: 0;
Line 4 ⟶ 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 {
transition-duration: 0.25s !important;
}
}
 
@square: 3px5px;
@circle: 50%;
 
Line 20 ⟶ 37:
@miner: #749696;
@blacksmith: #B4A432;
@stonemason: #8087899C8A7C;
@detective: #5AB2BE;
@leatherworker: #866E62;
@merchant: #78B492;
@builder: #9C8A7C;
@palette: #DEDAD4;
@item: #90908C;
Line 31 ⟶ 49:
 
// classname color icon shape
// All these icons should also be found here: https://brightershoreswiki.org/w/Brighter_Shores:Orphanage
@icons: guard none Guard @circle,
chef chef Chef @square,
fisher fisher Fisher @circle,
forager forager Forager @square,
alchemist alchemist Alchemist @square,
scout none Scout @circle,
gatherer gatherer Gatherer @square,
woodcutter woodcutter Woodcutter @square,
carpenter carpenter Carpenter @square,
minefighter none Minefighter @circle,
bonewright bonewright Bonewright @square,
miner miner Miner @square,
blacksmith blacksmith Blacksmith @square,
stonemason stonemason Stonemason @square,
watchperson none Watchperson @circle,
detective detective Detective @square,
leatherworker leatherworker Leatherworker @square,
merchant merchant Merchant @square,
builder builder Builder @square,
bank none Bank @square,
clipboard chef ChefClipboard @square,
enchant enchantress item EnchantEnchantress @circle,
hairdresser obstacle Hairdresser @circle,
item item Item @square,
talk item Talk @circle,
obelisk item Obelisk @square,
obstacle obstacle Obstacle @square,
palette palette Palette @square,
portal_stone pencil item Portal_StonePencil @squarecircle,
search portal_stone item SearchPortal_Stone @square,
recipe none Recipe @square,
search item Search @square,
shop none Shop @circle,
strange_stone storage item Strange_StoneStorage @square;,
venture none Venture @square;
 
@themes: aggressive aggressive,
neutral neutral;
 
.generate-map-icon-rules(@classname, @color, @image, @shape) {
.leaflet-marker-icon-icon-@{classname} {
background: @@color url('/images/@{image}_small_icon_map_icon.png') no-repeat center / contain;
border-radius: @shape;
}
Line 81 ⟶ 104:
.leaflet-marker-icon-entity {
background-color: red;
box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 2px 2px;
}
each(@icons, {
Line 105 ⟶ 129:
border-radius: @square;
}
//</pre>