/* For archival, it's been migrated to IndexStyles on the pages were it was formerly in use
/* simplistic TOC styles .. If there is interest I'll implement the other static TOC models...
Supported so far, D.P, CD.P as CDP DP with a commented rule for when leaders get implmented into CSS.
DotP Description.... Page
CDotP Chapter Description.... Page with the chapters right aligned.
You can't set colspanning from CSS though...
*/
.__toc__CDdotP,
.__toc__DdotP,
.__toc__CiDP
{
/* width:99%; / This should probably be set seperately. */
margin:0 auto 0 auto;
}
/*TODO: Change this it doesn't conflict with locally set inline-styles set with {{ts}} on an element directly. */
.__toc__CDdotP tr td:first-of-type,
.__toc__CDiP tr td:first-of-type{
vertical-align:top;
text-align:right;
margin-right:0.5em;
}
/* The first data item for D.P and second for CD.P is the Chapter name. */
.__toc__CDdotP tr td:nth-child(2),
.__toc__DdotP tr td:first-of-type{
vertical-align:top;
text-align:left;
}
.__toc__CDiP tr td:nth-child(2){
vertical-align:top;
text-align:left;
padding-left: 2.0em;
text-indent: -2.0em;
} /* The text for an indented chapter name */
/* Implement something that won't be possible until browsers support it {
.__toc__CDdotP>tr>td:firstoftype::after
.__toc__DdotP>tr>td:firstoftype::after {
content: leader(dotted)}
} */
/* The page numbers are the last item and typically right aligned.*/
.__toc__CDdotP tr td:last-of-type,
.__toc__DdotP tr td:last-of-type,
.__toc_header_r tr,
.__toc_header_r tr td:last-of-type /* Semmingly have to set on the element as well to override the generic alignent for the model. */
{
vertical-align:bottom;
text-align:right;
}
/* Additional rules */
.__toc__inset td:first-of-type {
padding-left: 1em;
}
.__smallcaps{
font-variant:small-caps; /* This should propogate to TD's from TR but doesn't.. Why? */
}
.__normal{
font-weight:normal;
font-variant:normal;
font-style:normal;
}
.__toc__DdotP tr.__level2 td:first-of-type{
padding-left:2em;
}
.__toc__DdotP tr.__level3 td:first-of-type{
padding-left:4em;
}
/* Ribbons,
Deprecated following concerns about support on lower-end platforms.
Use these rows whose display you want to suppres in main or index spaces.
Issue.. Add rules for each namespace in use...
body.ns-0 .__ribbon, Don't display ribbons in main-space
body.ns-114 .__ribbon, Or on TRanslations
body.ns-106 .__ribbon { display:none; } Or on index pages
body.ns-104 .__ribbon { display: table-row; } but do show them in Page namespace */