From 421ba7c874addd6e354e099a9bfe22e6e7f990ac Mon Sep 17 00:00:00 2001 From: Lakshmi Vyasarajan Date: Thu, 10 Nov 2011 03:33:07 +0530 Subject: [PATCH] Issue #69: Added styles for codebox --- CHANGELOG.rst | 3 ++- hyde/layouts/basic/content/media/css/site.css | 27 +++++++++++++++++++ hyde/tests/test_jinja2template.py | 3 +-- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 45b6459..55f04e5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,7 +1,8 @@ Version 0.8.4c22 ============================================================ -* Configuration now gets reloaded when server regenerates (Issue #70) +* Bug Fix: Configuration now gets reloaded when server regenerates (Issue #70) +* Bug Fix: Added styles for codebox (Issue #69) Version 0.8.4c21 ============================================================ diff --git a/hyde/layouts/basic/content/media/css/site.css b/hyde/layouts/basic/content/media/css/site.css index d86bdaf..e24db41 100644 --- a/hyde/layouts/basic/content/media/css/site.css +++ b/hyde/layouts/basic/content/media/css/site.css @@ -442,3 +442,30 @@ a.backlink:hover, a.prev:hover, a.next:hover{ float: right; margin-bottom:0; } + + +.codebox { + margin-top: 8px; + margin-bottom: 12px; +} +.code { + position: relative; + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); + -o-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); + background-color: #F0F3F3; +} +.code figcaption { + font-size: 10px; + position: absolute; + bottom: 3px; + right: 12px; + color: rgba(0, 0, 0, 0.5); +} +.highlight pre { + font-size: 12px; + padding: 16px 12px 12px; + line-height: 24px; + margin-bottom: 8px; +} diff --git a/hyde/tests/test_jinja2template.py b/hyde/tests/test_jinja2template.py index 7a4a49e..6c370a0 100644 --- a/hyde/tests/test_jinja2template.py +++ b/hyde/tests/test_jinja2template.py @@ -781,5 +781,4 @@ item_list: t = Jinja2Template(JINJA2.path) t.configure(None) html = t.render(text, {}).strip() - assert html.strip() == expected.strip() - + assert html.strip() == expected.strip() \ No newline at end of file