MediaWiki:Common.css: Difference between revisions

From Arcis Wiki
Created page with "→‎CSS placed here will be applied to all skins: →‎Add collapsible table of contents: .toc { border: 1px solid #ccc; padding: 5px; width: 100%; } .toc h2 { cursor: pointer; } .toc-content { display: none; padding: 5px; } .toc-expanded .toc-content { display: block; }"
 
mNo edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


/* Add collapsible table of contents */
/* Add collapsible table of contents to any page using the following code:
<div class="toc">
    <h2>Table of Contents</h2>
    <div class="toc-content">
        __TOC__
    </div>
</div>
*/
.toc {
.toc {
     border: 1px solid #ccc;
     border: 1px solid #ccc;

Revision as of 22:40, 23 October 2024

/* CSS placed here will be applied to all skins */

/* Add collapsible table of contents to any page using the following code:
<div class="toc">
    <h2>Table of Contents</h2>
    <div class="toc-content">
        __TOC__
    </div>
</div>
*/
.toc {
    border: 1px solid #ccc;
    padding: 5px;
    width: 100%;
}

.toc h2 {
    cursor: pointer;
}

.toc-content {
    display: none;
    padding: 5px;
}

.toc-expanded .toc-content {
    display: block;
}