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)
|
||||
null
|
||||
(let* ([toc-content (toc-content)]
|
||||
[content (render-content
|
||||
(or (part-title-content top) '("???"))
|
||||
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-content
|
||||
(if (null? toc-content)
|
||||
'()
|
||||
(toc-wrap
|
||||
`(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
|
||||
d ri top (if (part-style? d 'no-toc) "tocview" "tocsub"))
|
||||
,@(parameterize ([extra-breaking? #t])
|
||||
|
|
|
@ -175,6 +175,7 @@ table td {
|
|||
}
|
||||
|
||||
.tocviewselflink {
|
||||
text-decoration: underline;
|
||||
color: blue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user