diff options
author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2018-06-05 13:37:44 +0000 |
---|---|---|
committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2018-06-05 13:37:44 +0000 |
commit | 8af019817ef5195d926ea073cf6891968714ae72 (patch) | |
tree | 7e2a931f7aa2590a74573d19f60f95fd2e01c80a /docutils | |
parent | 26b5ad75870d00454091229ad14758b6f62db111 (diff) | |
download | docutils-8af019817ef5195d926ea073cf6891968714ae72.tar.gz |
Tweak CSS styles for HTML5 writer.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8216 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
-rw-r--r-- | docutils/docutils/writers/html5_polyglot/minimal.css | 10 | ||||
-rw-r--r-- | docutils/docutils/writers/html5_polyglot/plain.css | 11 |
2 files changed, 7 insertions, 14 deletions
diff --git a/docutils/docutils/writers/html5_polyglot/minimal.css b/docutils/docutils/writers/html5_polyglot/minimal.css index b84fb84c4..7939c9fbf 100644 --- a/docutils/docutils/writers/html5_polyglot/minimal.css +++ b/docutils/docutils/writers/html5_polyglot/minimal.css @@ -94,9 +94,10 @@ dl.simple > dd, dl.compact > dd { /* Table of Contents */ div.topic.contents { margin: 0; } -ul.auto-toc { +div.topic.contents ul { list-style-type: none; - padding-left: 1.5em; } + padding-left: 1.5em; +} /* Enumerated Lists */ ol.arabic { list-style: decimal } @@ -227,13 +228,14 @@ div.sidebar { } /* Text Blocks */ +blockquote, div.topic, pre.literal-block, pre.doctest-block, pre.math, pre.code { - margin-right: 40px; - margin-left: 40px; + margin-left: 1.5em; + margin-right: 1.5em } pre.code .ln { color: gray; } /* line numbers */ diff --git a/docutils/docutils/writers/html5_polyglot/plain.css b/docutils/docutils/writers/html5_polyglot/plain.css index 805a0381c..be4e028e8 100644 --- a/docutils/docutils/writers/html5_polyglot/plain.css +++ b/docutils/docutils/writers/html5_polyglot/plain.css @@ -124,19 +124,9 @@ span.fn-backref { /* ============ */ /* Literal Blocks */ -pre.literal-block, pre.doctest-block, -pre.math, pre.code { - margin-left: 1.5em; - margin-right: 1.5em -} /* Block Quotes */ -blockquote, -div.topic { - margin-left: 1.5em; - margin-right: 1.5em -} blockquote > table, div.topic > table { margin-top: 0; @@ -231,6 +221,7 @@ div.sidebar { /* Code */ +pre.code { padding: 0.7ex } pre.code, code { background-color: #eeeeee } pre.code .ln { color: gray; } /* line numbers */ /* basic highlighting: for a complete scheme, see */ |