MediaWiki talk:Common.css
Add topicAppearance
Latest comment: 6 years ago by Dave Braunschweig in topic Edit request
The Code:
/* VALIDATOR NOTICE: the following is correct, but the W3C validator doesn't accept it */ /* -moz-* is a vendor-specific extension (CSS 2.1 4.1.2.1) */ /* column-count is from the CSS3 module "CSS Multi-column Layout" */ /* Please ignore any validator errors caused by these two lines */ .references-2column { font-size: 90%; -moz-column-count:2; column-count:2; }
does not work, but it does throw errors in FireFox, invalidating the rest of the CSS file, apparently. --Connel MacKenzie 16:41, 22 August 2006 (UTC)
- I took it out. It's not used anyway. -- sebmol ? 16:53, 22 August 2006 (UTC)
Edit request
[edit source]Hi, Would it be possible to add the following line to allow the option to omit section numbers as per this manual page
.noautonum .tocnumber { display: none; }
It should allow for the TOC to be wrapped in a <div class="noautonum">__TOC__</div> div. T.Shafee(Evo﹠Evo)talk 10:29, 28 November 2017 (UTC)
- @Evolution and evolvability: Done. -- Dave Braunschweig (discuss • contribs) 13:46, 28 November 2017 (UTC)
- @Dave Braunschweig: Fantastic, thank you! I don't support there's away to also hide the border around the TOC is there? Just for aesthetic reasons when used in the WikiJournal articles, nothing vital. T.Shafee(Evo﹠Evo)talk 00:27, 29 November 2017 (UTC)
- @Evolution and evolvability: Not based on my current CSS knowledge. I tried matching their example, but it doesn't force no border on the TOC itself. I'll keep it in mind and if I come up with a solution, I'll let you know. -- Dave Braunschweig (discuss • contribs) 03:27, 29 November 2017 (UTC)
Aha, I've got some advice from Mediawiki support desk that the following should work:
.tocplain #toc { border: none; background: none; }
Would you mind inserting it to test? Thanks! T.Shafee(Evo﹠Evo)talk 23:18, 29 November 2017 (UTC)
- @Evolution and evolvability: Done. See {{TOCplain}}. -- Dave Braunschweig (discuss • contribs) 16:53, 30 November 2017 (UTC)
- @Dave Braunschweig: Champion! It's looking great! T.Shafee(Evo﹠Evo)talk 23:06, 30 November 2017 (UTC)
- @Dave Braunschweig: One more minor addition to the "tocplain" class to align the title to the left when the border is omitted:
.tocplain #toc { border: none; background: none; text-align: left; }
- @Evolution and evolvability: Sorry, that's not it. It's going to have to be something that includes toctitle. Check with the Mediawiki folks again. -- Dave Braunschweig (discuss • contribs) 22:44, 1 December 2017 (UTC)