MediaWiki:Common.css

From Octave
Revision as of 11:59, 1 September 2016 by Carandraug (talk | contribs) (use #tocinline instead of .tocinline (CSS magic?))
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* 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 { float: none };