Skip to content

Commit afced2b

Browse files
committed
Add nav.toc class to style navigation
Per dita-ot/dita-ot#3801 Signed-off-by: Roger Sheen <roger@infotexture.net>
1 parent 0f83922 commit afced2b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

css/custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Highlight current topic in bold */
2-
nav[role='navigation'] li.active > a {
2+
nav.toc li.active > a {
33
font-weight: bold;
44
}
55

xsl/html5-bootstrap.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@
8888
<!-- Override `nav.xsl` to add Bootstrap classes -->
8989
<xsl:template match="*" mode="gen-user-sidetoc">
9090
<xsl:if test="$nav-toc = ('partial', 'full')">
91-
<!-- ↓ Add grid class to <nav>, wrap <ul> in small well <div> & add .bs-docs-sidenav class -->
92-
<nav class="col-md-3" role="navigation">
91+
<!-- ↓ Add grid & toc classes to <nav>, wrap <ul> in small well <div> & add .bs-docs-sidenav class -->
92+
<nav class="col-md-3 toc" role="navigation">
9393
<div class="well well-sm">
9494
<ul class="bs-docs-sidenav">
9595
<!-- ↑ End customization -->

xsl/map2html5-cover.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<xsl:if test="descendant::*[contains(@class, ' map/topicref ')]
1717
[not(@toc = 'no')]
1818
[not(@processing-role = 'resource-only')]">
19-
<nav class="col-md-3" role="navigation">
19+
<nav class="col-md-3 toc" role="navigation">
2020
<div class="well well-sm">
2121
<ul>
2222
<xsl:call-template name="commonattributes">

0 commit comments

Comments
 (0)