Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
PatternSkin CSS CookbookQuestions and answers on how to customize the default look of TWiki for your own needs, using style sheets. For configuring page elements, see PatternSkinCustomization.First Read: How to modify PatternSkin stylesPatternSkin uses 3 style sheets (attached to PatternSkin):
Changing the color schemeHave a look at PatternSkinColorSettings.When you need lots of graphic changes: Rewriting CSS
* Set TWIKILAYOUTURL = %PUBURLPATH%/%SYSTEMWEB%/YourNewTopic/layout.css * Set TWIKISTYLEURL = %PUBURLPATH%/%SYSTEMWEB%/YourNewTopic/style.css * Set TWIKICOLORSURL = %PUBURLPATH%/%SYSTEMWEB%/YourNewTopic/colors.css When you need to make 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%/%SYSTEMWEB%/YourNewTopic/layout.css * Set USERSTYLEURL = %PUBURLPATH%/%SYSTEMWEB%/YourNewTopic/style.css * Set USERCOLORSURL = %PUBURLPATH%/%SYSTEMWEB%/YourNewTopic/colors.css
* Set USERSTYLEURL = %PUBURLPATH%/%SYSTEMWEB%/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 pageSee example at: PatternSkinCssCookbookCenterPageCentered page (with a border around the page)See example at: PatternSkinCssCookbookCenterPageBorderSetting EditTablePlugin stylesSee example at: PatternSkinCssCookbookEditTableStyleStyle sheet documentationSee PatternSkinCss for documentation of PatternSkin CSS classes |