|
|
|
|
|
|
PatternSkin CSS CookbookQuestions and answers on how to customize the default look of Foswiki 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 FOSWIKI_LAYOUT_URL = %PUBURLPATH%/%SYSTEMWEB%/YourNewTopic/layout.css
* Set FOSWIKI_STYLE_URL = %PUBURLPATH%/%SYSTEMWEB%/YourNewTopic/style.css
* Set FOSWIKI_COLORS_URL = %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 override existing styles.Overriding default CSS is done with 3 preference settings: 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.css
Instead of setting these preferences in System.DefaultPreferences or Main.SitePreferences, you can set these in your home topic, or in any other topic. Setting style URL preferences in:
RecipesHide the left barSee example at: PatternSkinCssCookbookNoLeftBarUse different fontsSee example at: PatternSkinCssCookbookFontsI want to change the height of the top barThe height of the top bar is defined intheme CSS files. The default height in theme_foswiki.css is 90px, in theme_twiki.css it is 64px.
This is the complete style definition to set the height of the top bar: No 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 classesDBCachePlugin: PatternSkinCssCookbook not found
![]() |
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.