MediaWiki:Common.less/toc.less

From Old School RuneScape Wiki
Jump to: navigation, search
// <pre>
/* ========================
       [[Template:ToC]]
   ======================== */
   
#toc,
.toc {
	font-size: .9em;
	background: @BODY_LIGHT;
    margin-top: .75em;
    padding: 0;
    border: none;
    box-shadow: @box-shadow;

    .toctitle {
        color: #442b18;
        background: @BODY_MID;
        padding: .25em 1em;

        h2,
        a {
            font-family: 'Lato', sans-serif;
            color: #442b18;
        }
        
    }
    
    .toctoggle {
    	padding-left: .2em;
    }
    
    // are these actually useful?
    .tocnumber {
        display: none;
    }

	// entire group of headings
    > ul {
    	border: 1px solid #c7b67b;
    	border-top: none;
        line-height: 1.8em;
        padding: .75em 1.75em;
        margin: 0;
    }

	// subheadings only
    ul ul {
        border-left: 1px dotted #c7b67b;
        padding-left: .5em;
    }
    
}

.toclimit-2 #toc .toclevel-2,
.toclimit-3 #toc .toclevel-3,
.toclimit-4 #toc .toclevel-4,
.toclimit-5 #toc .toclevel-5,
.toclimit-6 #toc .toclevel-6,
.toclimit-7 #toc .toclevel-7 {
    display: none;
}