MediaWiki:Common.css: Difference between revisions

From Octave
Jump to navigation Jump to search
m (trying to fix CSS for tocinline)
m (css fixes for tocinline)
Line 13: Line 13:
   Then use it like "<div class="tocinline">__TOC__</div>"
   Then use it like "<div class="tocinline">__TOC__</div>"
*/
*/
#tocinline, .tocinline { float: none };
.tocinline, .toc { display:inline-block };

Revision as of 12:06, 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>"
*/
.tocinline, .toc { display:inline-block };