MediaWiki:Common.less/leaflet.less: Difference between revisions
MediaWiki:Common.less/leaflet.less (view source)
Revision as of 04:46, 27 November 2024
, 27 Novemberno 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,
alchemist alchemist Alchemist @square,
scout inherit Scout @circle,
carpenter carpenter Carpenter @square,
minefighter inherit Minefighter @circle,
stonemason stonemason Stonemason @square,
watchperson inherit Watchperson @circle,
merchant merchant
clipboard chef Chef @square,
interactable interactable Interactable @square,
item item @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) {▼
▲.generate-map-icon-rules(@classname, @color, @shape) {
.leaflet-marker-icon-icon-@{classname} {
background: @color url(@image) no-repeat center / contain;
Line 91 ⟶ 85:
@classname: extract(@value, 1);
@color: extract(@value, 2);
@
@shape: extract(@value, 4);
.generate-map-icon-rules(@classname, @color, @image, @shape);
});
each(@themes, {
|