Difference between revisions of "Skin Adjustments"
(→Increase Vector Sidebar from 10em to 248px) |
(→Increase Monobook Sidebar from 12.2em to 248px) |
||
Line 30: | Line 30: | ||
== Increase Monobook Sidebar from 12.2em to 248px == | == 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. | + | 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. | ||
{{code|<css> | {{code|<css> | ||
div#content { margin-left: 248px } | div#content { margin-left: 248px } | ||
Line 48: | Line 50: | ||
} | } | ||
</css>}} | </css>}} | ||
− | |||
== Notes == | == Notes == | ||
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:27, 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.
These examples uses 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.
This can all be done with CSS in both Vector and Monobook.
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 placed in the sidebar using absolute positioning e.g.:
Notes
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.