Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling in previews #3

Open
ghost opened this issue Jul 11, 2020 · 2 comments
Open

Styling in previews #3

ghost opened this issue Jul 11, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Jul 11, 2020

Not sure if MediaWiki can actually do this, but seeing CSS styling in previews would be useful. An API query would be used to add styling modules (either the prop=text|headhtml or prop=text|modules|jsconfigvars query strings).

A toggle icon attached to collapsed container elements, to let users remove display: none, would also be useful. This lets users check navboxes and infoboxes fully even if they're collapsed. From a UX perspective, it would be important to make such a toggle appear as part of VSC instead of a native element of the preview content.

@Frederisk Frederisk added the enhancement New feature or request label Aug 8, 2020
@Frederisk Frederisk self-assigned this Aug 8, 2020
@Frederisk
Copy link
Owner

Frederisk commented Aug 8, 2020

The CSS stylization support in the preview will become a toggle switch in the settings.

But I don’t understand what collapsible elements are. Do they are some elements on the page which have mw-collapsible or other collapsible styles such as collapsible tables?

@ghost
Copy link
Author

ghost commented Aug 8, 2020

FWIK there are two cases - MediaWiki collapsibles, & collapsibles defined as JS modules in MediaWiki (e.g. NavFrame headers and PortableInfobox groups).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant