Content-Length: 20631 | pFad | http://itch.io/post/11611747

Post by TaciturnFriend in 100% Good Twine Sugarcube Templates comments - itch.io
Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Great stuff as always, thank you. Is there any way to make the font size change in the Simple Book Template apply to the dialog pop ups as well as the passages? I get how css works (mostly) but that js stuff not so much.

There are two ways: linking that font setting to a css class (i.e. like the font type but in the css you change font-size instead of font-family) or add something like:

var sizepopup = document.getElementById("ui-dialog");
sizepopup.style.fontSize = settings.fontSize;

Just below size.style.fontSize = settings.fontSize;

Fair warning: it changes right away and the popup may/will probably look weird until closed/reopned.

Thank you - that's great (script version works fine for this one as I've made the Settings popup super simple and ofc that's the only one that can be open while you change it).

Awesome! Happy to be of help :)









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://itch.io/post/11611747

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy