Page MenuHomePhabricator

Add wiki-specific CSS styles for Parsoid Cite output so that it renders exactly like core Cite output
Open, Stalled, NormalPublic

Description

Parsoid is trying to encourage wikis to rely on CSS for customizing Cite output instead of site messages. Parsoid's Cite output currently doesn't look at wiki's site messages. Since Parsoid output is used in VisualEditor, one way for wikis to identifying CSS styles that needed to be added is for them to look at Cite output in VE and add CSS styles that makes the output look similar to how their read html (non-Parsoid) currently looks.

These CSS styles would be added to the wiki's common.css (or wherever these wiki-specific styles reside).

However, this should be done after T156350: Add language-specific CSS modules for Parsoid's Cite output is done.

Event Timeline

ssastry created this task.Jan 26 2017, 9:29 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 26 2017, 9:29 AM
Izno moved this task from Enhancement backlog to External on the Cite board.Jan 26 2017, 12:10 PM
Elitre added a subscriber: Elitre.Feb 7 2017, 6:23 PM
ssastry added a comment.EditedMar 25 2017, 3:04 AM

The CSS in https://github.com/wikimedia/integration-visualdiff/blob/master/lib/parsoid.custom_styles.yaml is a good start. It now has entries for over 20 wikis. Most are ready to go, and some might need some tweaking. In couple of cases, we need to figure out how to replicate existing styling.

Izno added a comment.EditedAug 17 2017, 3:42 PM

The CSS in https://github.com/wikimedia/integration-visualdiff/blob/master/lib/parsoid.custom_styles.yaml is a good start. It now has entries for over 20 wikis. Most are ready to go, and some might need some tweaking. In couple of cases, we need to figure out how to replicate existing styling.

Note: PDFLink no longer exists on en.WP.

I'm also not entirely sure why many of these rules would be loaded with Cite, anyway. Some/many of them appear outside of citations for dedicated templates or non-citation content.

ssastry moved this task from Backlog to Read Views on the Parsoid board.Jan 11 2018, 9:20 PM
Reedy edited projects, added Parsoid-Read-Views; removed Parsoid.Sep 17 2018, 7:25 PM
ssastry changed the task status from Open to Stalled.Sep 6 2019, 5:11 PM
Elitre removed a subscriber: Elitre.Sep 9 2019, 8:59 AM