![]() See also: PatternSkinCustomization
PatternSkin CSS CookbookThis topic describes how to customize the default look of TWiki for your own needs by changing the default style sheets.IntroductionPatternSkin uses 3 style sheets (attached to PatternSkin):
When you need lots of graphic changes: Rewriting CSS
* Set TWIKILAYOUTURL = %PUBURLPATH%/%TWIKIWEB%/YourNewTopic/layout.css * Set TWIKISTYLEURL = %PUBURLPATH%/%TWIKIWEB%/YourNewTopic/style.css * Set TWIKICOLORURL = %PUBURLPATH%/%TWIKIWEB%/YourNewTopic/colors.css When you need small adjustments: Adding to existing CSSWith CSS you cannot remove already defined classes, you can only add to it, or overwrite existing styles.Overriding default CSS is done with 3 variables: USERLAYOUTURL, USERSTYLEURL, USERCOLORSURL.
* Set USERLAYOUTURL = %PUBURLPATH%/%TWIKIWEB%/YourNewTopic/layout.css * Set USERSTYLEURL = %PUBURLPATH%/%TWIKIWEB%/YourNewTopic/style.css * Set USERCOLORSURL = %PUBURLPATH%/%TWIKIWEB%/YourNewTopic/colors.css
* Set USERSTYLEURL = %PUBURLPATH%/%TWIKIWEB%/YourNewTopic/style.cssInstead of setting these variables in TWiki.TWikiPreferences, you can set these in your home topic, or in any other topic. Setting style URL variables in:
RecipesHide the left barSee example at: PatternSkinCssCookbookNoLeftBarUse different fontsSee example at: PatternSkinCssCookbookFontsNo top barSee example at: PatternSkinCssCookbookNoTopBarCentered page (a border around the page)See example at: PatternSkinCssCookbookCenterPageLarge background image in the top barSee example at: PatternSkinCssCookbookTopBarBackgroundImageSetting EditTablePlugin stylesSee example at: PatternSkinCssCookbookEditTableStyle |