Changes

update for toc float right default
Line 9: Line 9:  
code, pre, tt {
 
code, pre, tt {
 
font-size: 115%;
 
font-size: 115%;
line-height: 1.2em;
+
        line-height: 1.2em;
 
         overflow: auto;
 
         overflow: auto;
 
}
 
}
Line 25: Line 25:  
}
 
}
   −
/* When <div class="nonumtoc"> is used on the table of contents,
+
/* When <div class="numtoc"> is used on the table of contents,
   the ToC will display without numbers
+
   the ToC will display with numbers
 
   .
 
   .
 
   copied here 08 Nov 2009 by [[User:FGrose]] from [[wikipedia:MediaWiki:Common.css]]
 
   copied here 08 Nov 2009 by [[User:FGrose]] from [[wikipedia:MediaWiki:Common.css]]
 +
  edited to default to float on the right with nonumbers 26 July 2010
 
  */
 
  */
.nonumtoc .tocnumber { display: none; }
+
table.toc {
.nonumtoc #toc ul,
+
  float: right;
.nonumtoc .toc ul {
+
  clear: right;
 +
  margin-left: 1.4em;
 +
  margin-bottom: .5em;
 +
  background-color: #f9f9f9;
 +
  width: auto;
 +
}
 +
.tocnumber { display: none; }
 +
#toc li, .toc li,
 +
.numtoc #toc li,
 +
.numtoc .toc li {
 +
  padding: 0em 0.3em 0em 0.3em;
 +
}
 +
#toc ul,
 +
.toc ul {
 +
    line-height: 1.5em;
 +
    list-style: none;
 +
    margin: .3em 0 0;
 +
    padding: 0;
 +
}
 +
#toc ul ul,
 +
.toc ul ul {
 +
    margin: 0 0 0 2em;
 +
}
 +
.numtoc .tocnumber { display: inline; }
 +
.numtoc #toc ul,
 +
.numtoc .toc ul {
 
     line-height: 1.5em;
 
     line-height: 1.5em;
 
     list-style: none;
 
     list-style: none;
Line 38: Line 64:  
     padding: 0;
 
     padding: 0;
 
}
 
}
.nonumtoc #toc ul ul,  
+
.numtoc #toc ul ul,  
.nonumtoc .toc ul ul {  
+
.numtoc .toc ul ul {  
 
     margin: 0 0 0 2em;  
 
     margin: 0 0 0 2em;  
 
}
 
}