Moved a CSS property out of the building script

This commit is contained in:
Ed Ward 2019-08-29 14:02:14 +02:00
parent c4f67cf6c2
commit 5700f85664
2 changed files with 3 additions and 2 deletions

View File

@ -353,7 +353,7 @@ def BuildList(lst, fs, pagePos, cList):
#
def BuildOnePageSidebar(fs):
content = '\n\n<ul class="toc" style="white-space:nowrap;">\n'
content = '\n\n<ul class="toc">\n'
lvl = 0
levelNums = [0]*3
@ -377,7 +377,7 @@ def BuildOnePageSidebar(fs):
anchor = fs[i]['filename']
while lvl < level:
content = content + '<ul style="white-space:nowrap;">\n'
content = content + '<ul class="toc">\n'
lvl = lvl + 1
while lvl > level:
content = content + '</ul>\n'

View File

@ -146,6 +146,7 @@ td, th {
}
ul.toc {
white-space: nowrap;
list-style: none;
margin: 0;
padding: 0;