More climbing styling

This commit is contained in:
Pieter Vander Vennet 2022-04-26 10:30:19 +02:00
parent 9086713657
commit a22ff2f36b
5 changed files with 91 additions and 89 deletions

View file

@ -217,9 +217,18 @@
],
"label": {
"mappings": [
{
"if": {
"and": [
"climbing:grade:french~*",
"name~*"
]
},
"then": "<div class='w-max p-1 rounded-xl' style='background: white;'>{name} <span class='climbing-{__difficulty:char}'>{climbing:grade:french}</span></div>"
},
{
"if": "name~*",
"then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>"
"then": "<div class='w-max p-1 rounded-xl' style='background: white;'>{name}</div>"
}
]
}