Template:OSM Location map/cssmapping: Difference between revisions

Content deleted Content added
adjust image size if photo-panel height is set
adjust top of photo-panel image
Line 21:
height: {{if empty|{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=5}}|48}}px; border-radius: 2px;
background-color: #E8E8D6;
outline: 2px solid {{{label-color|blue}}};"></div>{{#ifeq:{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=2}}|0||<div style="display:inline-block; position: absolute; <!-- place image inside the photo-panel -->
top: {{#expr:{{{y1|40}}}+{{{ldy|20}}}-24({{if empty|{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=5}}|48}}/2)}}px;
{{#ifeq:{{{label-pos|left}}}|left
|left: {{#expr:{{{x1|40}}}+{{{ldx|20}}}-{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}/2}}px;