MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Carandraug (talk | contribs) (table of contents as float and aligned to the right) |
Carandraug (talk | contribs) m (seems like the problem has been extra semi-colon all this time) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
flow of text and leads to people ignoring the first section. | flow of text and leads to people ignoring the first section. | ||
*/ | */ | ||
.toc { float: right } | |||
/* | |||
In some cases, like the FAQ, we do want the TOC to be inline | |||
and not a float, so make a style that "undoes" the change above. | |||
Then use it like "<div class="tocinline">__TOC__</div>" | |||
This "magic" CSS means toc id inside tocinline will not float. | |||
*/ | |||
.tocinline .toc { float: none } |
Latest revision as of 12:49, 1 September 2016
/* CSS placed here will be applied to all skins */
/*
Make table of contents a float and aligned to the right.
This is similar to wikipedia. The alternative breaks up the
flow of text and leads to people ignoring the first section.
*/
.toc { float: right }
/*
In some cases, like the FAQ, we do want the TOC to be inline
and not a float, so make a style that "undoes" the change above.
Then use it like "<div class="tocinline">__TOC__</div>"
This "magic" CSS means toc id inside tocinline will not float.
*/
.tocinline .toc { float: none }