Tags:
create new tag
view all tags

Question

Having upgraded to 4.2 and tweaked default PatternSkin fonts and sizes a bit most users are very happy with the new look. Some users, however are adamant they want smaller fonts.

Is there a sensible way to set a variable (DEFAULT_OVERALL_FONT_SIZE for example) that users could then vary in their preferences and have it picked up in the patternPage section of pub/TWiki/PatternSkin/style.css?

(My naive attempts of creating the variable and giving it a value (in TWiki/TWikiPreferences) and substituting %DEFAULT_OVERALL_FONT_SIZE% for 105 do not appear to work.

Any suggestions?

Environment

-- IanCollier - 07 May 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

After digging even further realised we could use USERSTYLEURL

-- IanCollier - 07 May 2008

A TWiki variable inside an attached file won't work. But you can create a simple css file where you set the size, and let the variable USERSTYLEURL link to that file. See PatternSkinCssCookbook for info.

-- ArthurClemens - 07 May 2008

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-05-07 - ArthurClemens
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.