CSS module for per-page styling
Steven Heynderickx wrote on 10 Nov 2009 15:28
Originally suggested by pieterh as the "CSS module for per-page styling" on 7 September 2009.
It can be very useful to add CSS to a particular page, but this is currently not possible without some admin-level work and affecting all pages in a category. The main use case for per-page CSS is to allow people to customize 'their' pages on shared sites such as HaveMyCV.com, profiles.wikidot.com or any other social site that offers page-based user spaces.
This is a sketch for a new CSS module that lets the page author inject custom CSS into the page:
Some CSS code
The module can be used anywhere in the page but will put all CSS into the <head> of the page.
- show="true", to render the CSS in a [[code type="css"]] block
- disable="true", renders the CSS inactive but remains on the page
If multiple CSS modules are used on the same page, they will all (except disabled modules) be injected into the <head> of the page, in the order that the CSS modules appear on the page.
This section removed for now.
Start a new sub-thread
We discourage direct comments on this thread: to discuss it, please start a sub-thread.
page revision: 6, last edited: 21 Dec 2009 08:46