MediaWiki talk:Common.css

From the CreationKit Wiki
Jump to navigation Jump to search

TOC issue[edit source]

Right now the Table of Contents (TOC) on pages isn't displaying correctly (stretched horizontally to the width of the page) as shown above. This is because we're missing

 #toc {
   display: table;
 }

From the wiki's CSS. Currently the wiki is using a CSS file hosted at Bethsoft. I'm not sure if adding the CSS here on MediaWiki:Common.css will resolve the issue, but it's worth trying.

Normally the wiki's TOC template would be editable at Template:TOC, but that doesn't appear to be the case here (not sure how this mediawiki was set up). I suppose we could make that template page using the following code:

 <div style="clear: {{{clear|both}}}; 
   display: table; 
   margin-bottom: .5em; 
   float: {{{align|none}}}; 
   {{#ifeq: {{lc:{{{align|}}}}} | right | margin-left:2.5em; | {{#ifeq: {{lc:{{{align|}}}}} | left | margin-right:2.5em; | <!-- align=none --> }} }} 
   width: {{{width|auto}}};" 
   {{#if:{{{limit|}}}|class="toclimit-{{{limit|}}}"}}>__TOC__</div>

As sourced from MediaWiki's Template:TOC. It's just kind of lame to wrap a div around the TOC simply because the contained div's CSS is difficult to get to.

Mator (talk) 2015-06-22T17:49:49 (EDT)