From 2f1a0d9bb8d79cd9093432ea6a8329d8b75fc626 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 7 Dec 2014 00:24:56 -0500 Subject: [PATCH] :Style updates for Org mode output --- style.css | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/style.css b/style.css index d983e92..fbf7d7d 100644 --- a/style.css +++ b/style.css @@ -51,6 +51,7 @@ h1.title, #header h1 { font-size: 2em; margin-bottom: 0.1em; + text-align: left; } h2.desc { @@ -228,6 +229,22 @@ body.content .abstract .start { font-weight: bold; } +dl > dd { + margin-bottom: 0.5em; +} + +dl > dd > dl { + margin-top: 1em; +} + +dl > dd > p:last-child { + margin-bottom: 0px; +} + +#postamble > p { + margin: 0em; +} + /** exclusively asciidoc-generated content styling **/ body.article h2 { @@ -362,6 +379,59 @@ body.article h3 { } +/*** Org mode HTML output ***/ +/* much of the above will overlap, so only some is needed here */ +#postamble { + margin: 2em -5em 0em -5em; + text-align: left; + font-size: 0.9em; + + border-top: 1px solid #babdb6; + padding-top: 0.5em; +} + +.todo, .done { + font-size: 0.1em; + letter-spacing: -0.1em; + color: transparent; +} + +/* note that we must undo our hiding */ +.todo::before, +.done::before { + position: absolute; + visibility: visible; + + letter-spacing: normal; + font-size: 12em; + left: -1.5em; + top: -0.1em; + + font-weight: bold; +} + +.todo::before { + color: black; + content: '☐'; +} + +.done::before { + color: #4e9a06; + content: '☑'; +} + +/* eases positioning in, e.g., margin */ +.outline-1, +.outline-2, +.outline-3 { + position: relative; +} + +#table-of-contents .todo, +#table-of-contents .done { + display: none; +} + /*** https://github.com/jgm/highlighting-kate/blob/master/css/hk-tango.css * ***/ /* Loosely based on pygment's tango colors */ table.sourceCode, tr.sourceCode, td.sourceCode, table.sourceCode pre