-
Is there a way to add custom css to a background image? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Sounds like something that should be defined in the data schema to be fair. Created #188 to track. For now, you can use the rule from your message. It can go either into main site CSS or into MediaWiki:DataMaps.css - doesn't matter really (possibly the latter might take a moment longer to recache?). If needed, the selector can be additionally narrowed down with |
Beta Was this translation helpful? Give feedback.
-
Update to my message above: Since v0.16.7 is now running on wiki.gg servers, you can leverage the new map classes to narrow down the selector: |
Beta Was this translation helpful? Give feedback.
-
Added a - "image": "map.jpg",
+ "background": {
+ "image": "map.jpg",
+ "pixelated": true
+ }, |
Beta Was this translation helpful? Give feedback.
Added a
pixelated
property to backgrounds in 8d9d941 - it requires a new single background format though. I'll be requesting an update on wiki.gg's end by the end of the week (but I'll also apply the change to your map when it's done).