Template:OSM Location map/cssmapping: Difference between revisions

Content deleted Content added
fix text color in dark mode; this generally works but may cause problems, in which case revert or try specifying a color
tweak line-height settings to avoid downward drift
Line 209:
|'''{{{numbered|}}}'''<!-- just the number or make it a wikilink if there is one in mark-title -->
|'''[[{{delink|[[{{String split |{{String split |{{{mark-title|}}}|"]"]|1}}|"["[|2}}]]|wikilinks=target}}{{!}}{{{numbered|}}}]]'''}}{{#if:{{{label|}}}|&colon;&nbsp;}} }}{{{label|}}}</span></div>{{#ifexpr:{{{mark-width|0}}}>1|{{#ifeq:{{{numbered|0}}}|0||{{#ifeq:{{{label-line|0}}}|4||<div style="display:inline-block; position: absolute;
top: {{#expr:{{{y1|40}}}-( {{{mark-height|15}}}*0.5)-1 }}px;
left: {{{x1|240}}}px;
width: fit-content;
Line 215:
transform: translateX(-50%);
background-color:transparent; color:inherit;
line-height: 1.30;"><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;