Moved a CSS property out of the building script
This commit is contained in:
parent
c4f67cf6c2
commit
5700f85664
4
build.py
4
build.py
@ -353,7 +353,7 @@ def BuildList(lst, fs, pagePos, cList):
|
|||||||
#
|
#
|
||||||
def BuildOnePageSidebar(fs):
|
def BuildOnePageSidebar(fs):
|
||||||
|
|
||||||
content = '\n\n<ul class="toc" style="white-space:nowrap;">\n'
|
content = '\n\n<ul class="toc">\n'
|
||||||
lvl = 0
|
lvl = 0
|
||||||
levelNums = [0]*3
|
levelNums = [0]*3
|
||||||
|
|
||||||
@ -377,7 +377,7 @@ def BuildOnePageSidebar(fs):
|
|||||||
anchor = fs[i]['filename']
|
anchor = fs[i]['filename']
|
||||||
|
|
||||||
while lvl < level:
|
while lvl < level:
|
||||||
content = content + '<ul style="white-space:nowrap;">\n'
|
content = content + '<ul class="toc">\n'
|
||||||
lvl = lvl + 1
|
lvl = lvl + 1
|
||||||
while lvl > level:
|
while lvl > level:
|
||||||
content = content + '</ul>\n'
|
content = content + '</ul>\n'
|
||||||
|
@ -146,6 +146,7 @@ td, th {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ul.toc {
|
ul.toc {
|
||||||
|
white-space: nowrap;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user