Corrected the TOC ids to classes, updated the CSS accordingly
This commit is contained in:
parent
146de9657e
commit
b818a4a213
8
build.py
8
build.py
@ -444,13 +444,13 @@ for header in fileStruct:
|
|||||||
if level == 0:
|
if level == 0:
|
||||||
toc = toc + '<h2>Part ' + num2roman(levelNums[level]) + ': ' + header['title'] + '</h2>\n';
|
toc = toc + '<h2>Part ' + num2roman(levelNums[level]) + ': ' + header['title'] + '</h2>\n';
|
||||||
elif level == 1:
|
elif level == 1:
|
||||||
toc = toc + ' <p id=chapter>Ch. ' + str(levelNums[level]) + ': <a href="/' + header['filename'] + '/">' + header['title'] + '</a></p>\n'
|
toc = toc + ' <p class="chapter">Ch. ' + str(levelNums[level]) + ': <a href="/' + header['filename'] + '/">' + header['title'] + '</a></p>\n'
|
||||||
elif level == 2:
|
elif level == 2:
|
||||||
toc = toc + ' <a id=subchapter href="/' + header['filename'] + '/">' + header['title'] + '</a><br>\n'
|
toc = toc + ' <p class="subchapter"><a href="/' + header['filename'] + '/">' + header['title'] + '</a></p>\n'
|
||||||
elif level == 3:
|
elif level == 3:
|
||||||
toc = toc + ' <a id=section href="/' + header['filename'] + '/">' + header['title'] + '</a><br>\n'
|
toc = toc + ' <p class="section"><a href="/' + header['filename'] + '/">' + header['title'] + '</a></p>\n'
|
||||||
elif level == 4:
|
elif level == 4:
|
||||||
toc = toc + ' <a id=subsection href="/' + header['filename'] + '/">' + header['title'] + '</a><br>\n'
|
toc = toc + ' <p class="subsection"><a href="/' + header['filename'] + '/">' + header['title'] + '</a></p>\n'
|
||||||
|
|
||||||
# Make the 'this thing contains...' stuff
|
# Make the 'this thing contains...' stuff
|
||||||
if HaveChildren(fileStruct, pageNumber):
|
if HaveChildren(fileStruct, pageNumber):
|
||||||
|
@ -579,16 +579,16 @@ samp:after {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* for the TOC */
|
/* for the TOC */
|
||||||
#chapter,
|
#content p.chapter,
|
||||||
#subchapter,
|
#content p.subchapter,
|
||||||
#section,
|
#content p.section,
|
||||||
#subsection {
|
#content p.subsection {
|
||||||
line-height:1.5em;
|
line-height:1em;
|
||||||
}
|
}
|
||||||
#chapter { padding-top: 1em; padding-left: 1em; }
|
#content p.chapter { padding-top: 1em; padding-left: 1em; padding-bottom:1em; }
|
||||||
#subchapter { padding-left: 4em; }
|
#content p.subchapter { padding-left: 4em; }
|
||||||
#section { padding-left: 6em; }
|
#content p.section { padding-left: 6em; }
|
||||||
#subsection { padding-left: 8em; }
|
#content p.subsection { padding-left: 8em; }
|
||||||
|
|
||||||
/* for images sliced in divs, as in http://manual.ardour.org/ardours-interface/about/ */
|
/* for images sliced in divs, as in http://manual.ardour.org/ardours-interface/about/ */
|
||||||
.container { position: relative; border: none; }
|
.container { position: relative; border: none; }
|
||||||
|
Loading…
Reference in New Issue
Block a user