From 3e0a06445b130a68f9a2401b5d8b52e9283b92ec Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 20 Oct 2014 17:17:21 +0200 Subject: bupa: use fragment instead of html_body to get rid of document divs --- scripts/bupa | 4 +--- src/style.css | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/bupa b/scripts/bupa index d0630f5..7220ceb 100755 --- a/scripts/bupa +++ b/scripts/bupa @@ -6,12 +6,10 @@ Options: """ from jinja2 import Environment, FileSystemLoader import glob, yaml, docopt - from docutils import core -from docutils.writers.html4css1 import Writer def reST_to_html(s): - return core.publish_parts(s, writer_name='html4css1')['html_body'] + return core.publish_parts(s, writer_name='html4css1')['fragment'] def filename_to_id(file_name): return int(file_name.split('/')[-1]. diff --git a/src/style.css b/src/style.css index ff4f1d4..59fa759 100644 --- a/src/style.css +++ b/src/style.css @@ -69,7 +69,7 @@ header h1 { color: #505050; margin-bottom: -0.4rem; } -.entry div > p:first-of-type:first-letter { +.entry > p:first-of-type:first-letter { float: left; color: #903; font-size: 2.8rem; @@ -80,7 +80,7 @@ header h1 { font-family: 'Georgia'; } @media (max-width: 767px) { - .entry div > p:first-of-type:first-letter { + .entry > p:first-of-type:first-letter { padding-top: 0.3rem; padding-right: 0.2rem; font-size: 2.7rem; -- cgit v1.2.3-70-g09d2