Book Image

MediaWiki Skins Design

Book Image

MediaWiki Skins Design

Overview of this book

Table of Contents (16 chapters)
MediaWiki Skins Design
Credits
About the Author
About the Reviewer
Preface

The Interface Area: .portlet


The area around the main content area is classified by the .portlet class. Beware of excessively styling this, because by default, the class includes the page's userbar, its navigation, and the search facility. We can either change the classes applied to these files in our MediaWiki skin's PHP template file, or work with the classes and ids used in other MediaWiki themes such as MonoBook.

We have already declared our chosen fonts for the content area, but we can redefine the fonts for the areas surrounding the content. Refer to the following code:

.portlet {
font-family: georgia, "times new roman", times, serif;
}