Template:OSM Location map/cssmapping: Difference between revisions

Content deleted Content added
Revision with better text placement
test 0.9 for line-height
Line 178:
text-align: center;
}} }}
background-color: transparent; line-height: normal0.9; transform: rotate({{{label-angle|0}}}deg)"><span style="color: {{{label-color|black}}};
{{#ifeq:{{Str count|{{{label-size|}}}|outline}}|1|border: 1px solid black; line-height:98%;padding:0px 3px;border-radius:6px;|}}
background-color: {{#ifeq:{{Str count|{{{label-size|}}}|background}}|1|#F9F5E7|transparent}};
Line 190:
width: {{{width|350}}}px; text-align: center;
background-color:transparent;
line-height: normal0.9;"><span style="color: white;
font-size: {{#ifexpr:{{{mark-height|13}}}>13|{{#expr:{{{mark-height|15}}}-4}}|{{{mark-height|15}}} }}px; font-weight:bold;">{{{numbered|15}}}</span></div>}} }} }}{{#ifeq:{{str count|{{{mark-title|}}}|[}}|0||<!-- add an invisible square with a link extracted from mark-title, if one is available -->
<div style="display:inline-block; position: absolute;