Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to dynamically change font size using loop or replace macro?

edited December 2016 in Help! with 2.0
For example:
@font-size: $value em; Font gets bigger@@font-size: $value %; Font gets bigger@@
<</replace>>
<</repeat>>


Also how come I can't get my setterlinks to go to the variable passage name, for example:
<<set $variablepassagename = "cave">>
$variablepassagename
When clicked, link takes you to to passage named $variablepassagename and not passage named cave.

A workaround I found was <<goto $variablepassagename>> which takes you to a passage named "cave".

Comments

  • When clicked, link takes you to to passage named $variablepassagename and not passage named cave.
    See this comment in the Setter links in SugarCube thread, the answer is also true for markup-based links that use a variable parameter to set the link-text/target-passage.
Sign In or Register to comment.