MediaWiki:Common.less/leaflet.less: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
@circle: 50%; |
@circle: 50%; |
||
@ |
@none: ~''; |
||
@chef: #9C8474; |
@chef: #9C8474; |
||
@fisher: #98D3CC; |
@fisher: #98D3CC; |
||
Line 31: | Line 31: | ||
// classname color icon shape |
// classname color icon shape |
||
@icons: guard |
@icons: guard none Guard @circle, |
||
chef chef Chef @square, |
chef chef Chef @square, |
||
fisher fisher Fisher @circle, |
fisher fisher Fisher @circle, |
||
forager forager Forager @square, |
forager forager Forager @square, |
||
alchemist alchemist Alchemist @square, |
alchemist alchemist Alchemist @square, |
||
scout |
scout none Scout @circle, |
||
gatherer gatherer Gatherer @square, |
gatherer gatherer Gatherer @square, |
||
woodcutter woodcutter Woodcutter @square, |
woodcutter woodcutter Woodcutter @square, |
||
carpenter carpenter Carpenter @square, |
carpenter carpenter Carpenter @square, |
||
minefighter |
minefighter none Minefighter @circle, |
||
bonewright bonewright Bonewright @square, |
bonewright bonewright Bonewright @square, |
||
miner miner Miner @square, |
miner miner Miner @square, |
||
blacksmith blacksmith Blacksmith @square, |
blacksmith blacksmith Blacksmith @square, |
||
stonemason stonemason Stonemason @square, |
stonemason stonemason Stonemason @square, |
||
watchperson |
watchperson none Watchperson @circle, |
||
detective detective Detective @square, |
detective detective Detective @square, |
||
leatherworker leatherworker Leatherworker @square, |
leatherworker leatherworker Leatherworker @square, |
||
merchant merchant Merchant @square, |
merchant merchant Merchant @square, |
||
bank |
bank none Bank @square, |
||
clipboard chef Chef @square, |
clipboard chef Chef @square, |
||
enchant item Enchant @circle, |
enchant item Enchant @circle, |
||
Line 60: | Line 60: | ||
portal_stone item Portal_Stone @square, |
portal_stone item Portal_Stone @square, |
||
search item Search @square, |
search item Search @square, |
||
shop |
shop none Shop @circle, |
||
strange_stone item Strange_Stone @square; |
strange_stone item Strange_Stone @square; |
||
Revision as of 05:03, 27 November 2024
.leaflet-wiki-coordinates.leaflet-control {
margin: 0;
color: white;
padding: 5px 10px;
filter: drop-shadow(0 0 2px black);
}
@square: 3px;
@circle: 50%;
@none: ~'';
@chef: #9C8474;
@fisher: #98D3CC;
@forager: #DDDB93;
@alchemist: #83C8A1;
@gatherer: #C8C87C;
@woodcutter: #78C86C;
@carpenter: #9C8A7C;
@bonewright: #B0B897;
@miner: #749696;
@blacksmith: #B4A432;
@stonemason: #808789;
@detective: #5AB2BE;
@leatherworker: #866E62;
@merchant: #78B492;
@palette: #DEDAD4;
@item: #90908C;
@interactable: #927DCE;
@neutral: #C0925A;
@aggressive: #D75650;
// classname color icon shape
@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,
bank none Bank @square,
clipboard chef Chef @square,
enchant item Enchant @circle,
hairdresser interactable Hairdresser @circle,
interactable interactable Interactable @square,
item item Item @square,
talk item Talk @circle,
obelisk item Obelisk @square,
palette palette Palette @square,
portal_stone item Portal_Stone @square,
search item Search @square,
shop none Shop @circle,
strange_stone item Strange_Stone @square;
@themes: aggressive aggressive,
interactable interactable,
neutral neutral;
.generate-map-icon-rules(@classname, @color, @image, @shape) {
.leaflet-marker-icon-icon-@{classname} {
background: @@color url('/images/@{image}_small_icon.png') no-repeat center / contain;
border-radius: @shape;
}
}
.generate-map-theme-rules(@classname, @color) when (@classname = @color) {
.leaflet-marker-icon-theme-@{classname} {
background-color: @@color;
}
}
.leaflet-marker-icon-entity {
background-color: red;
}
each(@icons, {
@classname: extract(@value, 1);
@color: extract(@value, 2);
@image: extract(@value, 3);
@shape: extract(@value, 4);
.generate-map-icon-rules(@classname, @color, @image, @shape);
});
each(@themes, {
@classname: extract(@value, 1);
@color: extract(@value, 2);
.generate-map-theme-rules(@classname, @color)
});
.leaflet-marker-icon-shape-circle {
border-radius: @circle;
}
.leaflet-marker-icon-shape-square {
border-radius: @square;
}