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

no edit summary
No edit summary
No edit summary
Line 30:
@aggressive: #D75650;
 
// classname color icon shape
@icons: guard inherit Guard @circle,
chef chef Chef @square,
fisher fisher Fisher @circle,
forager forager @square,
alchemistforager alchemistforager Forager @square,
alchemist alchemist Alchemist @square,
scout inherit Scout @circle,
gatherer gatherer @square,
woodcuttergatherer woodcuttergatherer Gatherer @square,
carpenterwoodcutter carpenterwoodcutter Woodcutter @square,
carpenter carpenter Carpenter @square,
minefighter inherit Minefighter @circle,
bonewright bonewright @square,
minerbonewright minerbonewright Bonewright @square,
blacksmithminer blacksmithminer Miner @square,
stonemasonblacksmith stonemasonblacksmith Blacksmith @square,
stonemason stonemason Stonemason @square,
watchperson inherit Watchperson @circle,
detective detective @square,
leatherworkerdetective leatherworkerdetective Detective @square,
merchantleatherworker merchantleatherworker Leatherworker @square,
merchant merchant bank inheritMerchant @square,
clipboard chef bank inherit Bank @square,
clipboard chef Chef @square,
enchant item @circle,
hairdresserenchant interactableitem Enchant @circle,
hairdresser interactable interactableHairdresser @squarecircle,
interactable interactable Interactable @square,
item item @square,
talkitem item Item @circlesquare,
obelisktalk item Talk @squarecircle,
paletteobelisk paletteitem Obelisk @square,
portal_stonepalette itempalette Palette @square,
searchportal_stone item Portal_Stone @square,
itemsearch item Search @square,
shop inherit Shop @circle,
strange_stone item Strange_Stone @square;
 
@themes: aggressive aggressive,
Line 66 ⟶ 67:
neutral neutral;
 
.generate-map-icon-rules(@classname, @color, @image, @shape) {
.image(@str) {
@first: to-upper-case(extract(@str, 1));
@rest: to-lower-case(extract(@str, 2));
@image: ~'/images/@{first}@{rest}_small_icon.png';
}
 
.generate-map-icon-rules(@classname, @color, @shape) {
.image(@classname);
.leaflet-marker-icon-icon-@{classname} {
background: @color url(@image) no-repeat center / contain;
Line 91 ⟶ 85:
@classname: extract(@value, 1);
@color: extract(@value, 2);
@shapeimage: extract(@value, 3);
@shape: extract(@value, 4);
.generate-map-icon-rules(@classname, @color, @image, @shape);
});
each(@themes, {