|
|
|
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 PatternSkinTheme):
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.cssInstead 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 barThis is the complete style definition to set the height of the top bar:Note: If using %WEBHEADERART% to customize the top bar, some #patternTopBarContents CSS is expanded inline from templates/css.pattern.tmpl. Override of some attributes, such as background color and repeat are not possible from the CSS files.
No top barSee exampleCentered pageSee exampleCentered page (with a border around the page)See exampleSidebar background colorSee exampleSetting EditTablePlugin stylesSee exampleStyle sheet documentation
r1 - 18 Apr 2011 - 03:54:47 - ProjectContributor
Copyright © by the contributing authors. All material on this site is the property of the contributing authors. Ideas, requests, problems regarding Wiki? Send feedback |