|
Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://wiki.cs.msu.ru/System/PatternSkinCssCookbook?skin=pattern
Дата изменения: Unknown Дата индексирования: Mon Apr 11 05:52:39 2016 Кодировка: koi8-r |
When customizing your Foswiki installation, you can either choose to completely rewrite all css styles, or to selectively override some styles. The latter option is by far less time consuming, but all depends on your graphical wishes.
* 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
USERLAYOUTURL, USERSTYLEURL, USERCOLORSURL. USERXXXURL preferences):
* 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:
User styles are always loaded after Foswiki styles.
The rest of this topic shows examples of small CSS changes.
This is the complete style definition to set the height of the top bar:Note: If using %WEBHEADERART% to customize the top bar, some#patternTopBar, #patternClearHeaderCenter, #patternClearHeaderLeft, #patternClearHeaderRight, #patternTopBarContents { height:75px; /* top bar height; make room for header columns */ overflow:hidden; }Change the number from 75px to your value.
- Create a new stylesheet (preferably a 'theme variant' file (see for instance http://wiki.cs.msu.ru/pub/System/PatternSkinTheme/variant_foswiki_noframe.css with above definition in it)
- Attach the file to a topic
- Set the value of macro
PATTERNSKIN_THEME_VARIANTto that topic attachment url using%PUBURL%/YourWebName/YourTopicName/your_theme_variant_file.css
#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.
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.