improve title link in tocset (use tocviewselflink for the title too)
svn: r10593 original commit: a32e251f97d1381c56ba7f7349851ba8e87cff81
This commit is contained in:
parent
c0575d104b
commit
5c0c67f59d
|
@ -386,21 +386,25 @@
|
||||||
,@(if (part-style? d 'no-toc)
|
,@(if (part-style? d 'no-toc)
|
||||||
null
|
null
|
||||||
(let* ([toc-content (toc-content)]
|
(let* ([toc-content (toc-content)]
|
||||||
[content (render-content
|
[toc-content
|
||||||
(or (part-title-content top) '("???"))
|
(if (null? toc-content)
|
||||||
d ri)]
|
|
||||||
[content (if (null? toc-content)
|
|
||||||
content
|
|
||||||
`((a ([href "index.html"] [class "tocviewlink"])
|
|
||||||
,@content)))])
|
|
||||||
`((div ([class "tocview"])
|
|
||||||
(div ([class "tocviewtitle"]) ,@content)
|
|
||||||
(div nbsp)
|
|
||||||
,@(if (null? toc-content)
|
|
||||||
'()
|
'()
|
||||||
(toc-wrap
|
(toc-wrap
|
||||||
`(table ([class "tocviewlist"] [cellspacing "0"])
|
`(table ([class "tocviewlist"] [cellspacing "0"])
|
||||||
,@toc-content)))))))
|
,@toc-content)))]
|
||||||
|
[title-content
|
||||||
|
`(div ([class "tocviewtitle"])
|
||||||
|
(a ([href "index.html"]
|
||||||
|
[class ,(if (eq? mine top)
|
||||||
|
"tocviewselflink"
|
||||||
|
"tocviewlink")])
|
||||||
|
,@(render-content (or (part-title-content top)
|
||||||
|
'("???"))
|
||||||
|
d ri)))])
|
||||||
|
`((div ([class "tocview"])
|
||||||
|
,title-content
|
||||||
|
(div nbsp)
|
||||||
|
,@toc-content))))
|
||||||
,@(render-onthispage-contents
|
,@(render-onthispage-contents
|
||||||
d ri top (if (part-style? d 'no-toc) "tocview" "tocsub"))
|
d ri top (if (part-style? d 'no-toc) "tocview" "tocsub"))
|
||||||
,@(parameterize ([extra-breaking? #t])
|
,@(parameterize ([extra-breaking? #t])
|
||||||
|
|
|
@ -175,6 +175,7 @@ table td {
|
||||||
}
|
}
|
||||||
|
|
||||||
.tocviewselflink {
|
.tocviewselflink {
|
||||||
|
text-decoration: underline;
|
||||||
color: blue;
|
color: blue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user