From 2c7679fb2f53d549c4fbad94fb7d5ca59af7ade7 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 17 May 2017 19:58:29 +0100 Subject: [PATCH] Style ToC --- md_pdf/assets/static/style.scss | 32 ++++++++++++++++++++++++ md_pdf/assets/templates/toc-template.xsl | 26 +++---------------- test-files/2-pandoc.md | 3 +++ 3 files changed, 39 insertions(+), 22 deletions(-) diff --git a/md_pdf/assets/static/style.scss b/md_pdf/assets/static/style.scss index bf57eaa..c9c2723 100644 --- a/md_pdf/assets/static/style.scss +++ b/md_pdf/assets/static/style.scss @@ -58,3 +58,35 @@ body.footer, body.header { } } } + + +body.tocs { + h1 { + text-align: center; + margin-bottom: 45px; + } + + .row { + border-bottom: 1px dashed black; + margin-bottom: $font-size-base; + font-size: $font-size-base * 1.5; + } + + .page-number { + float: right; + padding-right: $font-size-base * 0.5; + } + + + ul { + padding-left: 0; + + li { + list-style: none; + } + + ul { + padding-left: $font-size-base; + } + } +} diff --git a/md_pdf/assets/templates/toc-template.xsl b/md_pdf/assets/templates/toc-template.xsl index 1d2d051..38985e6 100644 --- a/md_pdf/assets/templates/toc-template.xsl +++ b/md_pdf/assets/templates/toc-template.xsl @@ -11,27 +11,9 @@ - - +

Table of Contents