Difference between revisions of "Skin Adjustments"
(→Increase Monobook Sidebar from 12.2em to 248px) |
m (→Notes) |
||
Line 50: | Line 50: | ||
You will need to re-style the internal elements to compensate for the increased width. | You will need to re-style the internal elements to compensate for the increased width. | ||
− | == | + | == Logo == |
You can choose not to widen the logo width, but if you do and want to keep your original logo picture, you can center it using the background selector. | You can choose not to widen the logo width, but if you do and want to keep your original logo picture, you can center it using the background selector. |
Revision as of 00:46, 7 March 2012
Sometimes you want to widen the left column of a MediaWiki to use it for a tree or similar. This article shows you how to do this in Vector and Monobook, using 248px as a width, though you will use your own custom width. This can all be done with CSS in both Vector and Monobook.
These examples use pixel (px) widths which have the effect of locking down font sizes. You may wish to use to an em size instead, e.g. to something like 15em, if so just use proportions of this new em width.
Increase Vector Sidebar from 10em to 248px
Either add this to the bottom of main-ltr.css (or screen.css on 1.18+) or make a new skin with these values.
This is intended to replace the left sidebar content, so left portlets are disabled.
In Vector you can resize the left panel portlets, just substitute the last rule above with:
Increase Monobook Sidebar from 12.2em to 248px
Either add this to the bottom of main.css or make a new skin with these values.
This is intended to replace the left sidebar content, so left portlets are disabled.
Note, the search portlet (for instance) may be replaced in the sidebar using absolute positioning e.g.:
You will need to re-style the internal elements to compensate for the increased width.
Logo
You can choose not to widen the logo width, but if you do and want to keep your original logo picture, you can center it using the background selector.