summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/backends/_stylesheets.rb14
-rw-r--r--lib/asciidoctor/backends/html5.rb4
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/asciidoctor/backends/_stylesheets.rb b/lib/asciidoctor/backends/_stylesheets.rb
index 8008865d..92e0229b 100644
--- a/lib/asciidoctor/backends/_stylesheets.rb
+++ b/lib/asciidoctor/backends/_stylesheets.rb
@@ -163,17 +163,17 @@ p a > tt:hover { color: #561309; }
#header br + span.author { padding-left: 0; }
#header br + span.author:before { content: ", "; }
#toc { border-bottom: 3px double #ebebeb; padding-bottom: 1.25em; }
-#toc > ol { margin-left: 0.25em; }
-#toc ol.sectlevel0 > li > a { font-style: italic; }
-#toc ol.sectlevel0 ol.sectlevel1 { margin-left: 0; margin-top: 0.5em; margin-bottom: 0.5em; }
-#toc ol { list-style-type: none; }
+#toc > ul, #toc > ol { margin-left: 0.25em; }
+#toc ul.sectlevel0 > li > a, #toc ol.sectlevel0 > li > a { font-style: italic; }
+#toc ul.sectlevel0 ul.sectlevel1, #toc ol.sectlevel0 ol.sectlevel1 { margin-left: 0; margin-top: 0.5em; margin-bottom: 0.5em; }
+#toc ul, #toc ol { list-style-type: none; }
#toctitle { color: #7a2518; }
@media only screen and (min-width: 80em) { body.toc2 { padding-left: 20em; }
#toc.toc2 { position: fixed; width: 20em; left: 0; top: 0; border-right: 1px solid #ebebeb; border-bottom: 0; z-index: 1000; padding: 1em; height: 100%; overflow: auto; }
#toc.toc2 #toctitle { margin-top: 0; }
- #toc.toc2 > ol { font-size: .95em; }
- #toc.toc2 ol ol { margin-left: 0; padding-left: 1em; }
- #toc.toc2 ol.sectlevel0 ol.sectlevel1 { padding-left: 0; margin-top: 0.5em; margin-bottom: 0.5em; } }
+ #toc.toc2 > ul, #toc.toc2 > ol { font-size: .95em; }
+ #toc.toc2 ul ul, #toc.toc2 ol ol { margin-left: 0; padding-left: 1em; }
+ #toc.toc2 ul.sectlevel0 ul.sectlevel1, #toc.toc2 ol.sectlevel0 ol.sectlevel1 { padding-left: 0; margin-top: 0.5em; margin-bottom: 0.5em; } }
#footer { max-width: 100%; background-color: #222222; padding: 1.25em; }
#footer-text { color: #dddddd; line-height: 1.44; }
.sect1 { border-bottom: 3px double #ebebeb; padding-bottom: 1.25em; }
diff --git a/lib/asciidoctor/backends/html5.rb b/lib/asciidoctor/backends/html5.rb
index 3bc42fde..99099c48 100644
--- a/lib/asciidoctor/backends/html5.rb
+++ b/lib/asciidoctor/backends/html5.rb
@@ -35,7 +35,7 @@ class DocumentTemplate < BaseTemplate
if sec_level == 0 && sections.first.special
sec_level = 1
end
- toc_level = %(<ol type="none" class="sectlevel#{sec_level}">\n)
+ toc_level = %(<ul class="sectlevel#{sec_level}">\n)
sections.each do |section|
section_num = section.numbered ? %(#{section.sectnum} ) : nil
toc_level = %(#{toc_level}<li><a href=\"##{section.id}\">#{section_num}#{section.caption}#{section.title}</a></li>\n)
@@ -43,7 +43,7 @@ class DocumentTemplate < BaseTemplate
toc_level = %(#{toc_level}<li>\n#{child_toc_level}\n</li>\n)
end
end
- toc_level = %(#{toc_level}</ol>)
+ toc_level = %(#{toc_level}</ul>)
end
toc_level
end