Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 245141

Summary: Mediawiki editing - page-level stylesheet management
Product: Community Reporter: Mike Norman <michael.norman>
Component: WikiAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
parser function to allow in-line CSS modifications none

Description Mike Norman CLA 2008-08-25 12:04:59 EDT
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
Comment 1 Mike Norman CLA 2008-08-25 12:35:18 EDT
Created attachment 110813 [details]
parser function to allow in-line CSS modifications
Comment 2 Eclipse Webmaster CLA 2008-10-22 16:30:00 EDT
The PageCSS extension has been installed and put live.

-M.