| Summary: | Mediawiki editing - page-level stylesheet management | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Community | Reporter: | Mike Norman <michael.norman> | ||||
| Component: | Wiki | Assignee: | Eclipse Webmaster <webmaster> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 110813 [details]
parser function to allow in-line CSS modifications
The PageCSS extension has been installed and put live. -M. |
Problem: while porting over EclipseLink pages from our internal Wiki (running Atlassian's Confluence) to Eclipse Foundation's Wiki (running Mediawiki), a number of things render very differently. In a number of cases where we were not satisfied with how things rendered in Confluence, the recommended approach was to use a stylesheet. For example, Confluence has a built-in {panel} macro that creates a boxed-in effect; but the box title is centered and on a 22" monitor, simple boxes looked 'funny'. The macro does not have a setting to change the title centering, but adding a "text-align: left;" to its css-class solved the problem: <style type="text/css"> .panelHeader { border-bottom: 1px solid #3c78b5; padding: 0 12px; line-height: 20pt; text-align: left; background-color: #f0f0f0; }</style> The extensions http://www.mediawiki.org/wiki/Extension:PageCSS or http://www.mediawiki.org/wiki/Extension:CSS allows modifications of stylesheet css'es to be done inline to the page