Template:Marker: Difference between revisions

From The Fifth City Wiki
m Hopefully this'll not stretch out the markers infinitely large this time
m New approach!
Line 72: Line 72:
          
          
         Tooltip
         Tooltip
     -->{{#if|{{{notooltip|}}}||<div class = "tooltip" style = "
     --><div class = "tooltip" style = "
             width: 150%; /* Width of tooltip in relation to marker */
            {{#if:{{{notooltip|}}}|display: none;}}
            min-width: 150%;
             width: 25vw; /* Width of tooltip */
            max-width: 150%;
             transform:
             transform:
                 translateX(-25%) /* Should be width/2 - 100%, centers tooltip */
                 translateX(-10vw)
                 scale({{#expr:1/{{{scale|0.75}}}}}) /* Undo scaling applied by marker to tooltip */
                 scale({{#expr:1/{{{scale|0.75}}}}}) /* Undo scaling applied by marker to tooltip */
             ;
             ;
Line 83: Line 82:
             text-align: left;
             text-align: left;
             padding: 10px;
             padding: 10px;
         ">}}
         ">

Revision as of 09:01, 25 June 2025

Unnamed Marker