Module CSS

Tags: _admin _misc _module _page


Description

Le module CSS permet d'appliquer des instructions de style à la page courante

Documentation officielle

http://www.wikidot.com/doc:css-module

The CSS module lets you insert CSS code into a wiki page. This is particularly useful for cross-site include (CSI) packages that need to use custom styling for their code. When you use the CSS module in a CSI, that CSS code will be included in all pages that use the CSI.

The syntax for the CSS module is:

[[module CSS arguments...]]
CSS code
[[/module]]

Example

This example hides the side-bar menu on a single page (on themes with an elastic main-content):

[[module CSS]]
#side-bar {
    visibility: hidden;
    width: 0
}
[[/module]]

Arguments

You can render the CSS block in a [[code type="css"]] block by adding:

  • show="true"

You can disable the CSS block by adding:

  • disable="true"

Multiple CSS modules

A single page can contain any number of CSS modules. Their code will be output, in order, in the page's HTML header.


Bookmark and Share

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License