From 316e8f787ef8a2de3aae99c825a39fd04df709fc Mon Sep 17 00:00:00 2001 From: j Date: Thu, 30 Dec 2010 18:14:57 +0530 Subject: [PATCH] some style --- padmaTexts/static/css/text.css | 21 +++++++++++++++++++++ padmaTexts/templates/text_embed.html | 8 +++----- padmaTexts/templates/text_list.html | 24 ++++++++++++++++-------- padmaTexts/texts/__init__.py | 0 4 files changed, 40 insertions(+), 13 deletions(-) create mode 100644 padmaTexts/texts/__init__.py diff --git a/padmaTexts/static/css/text.css b/padmaTexts/static/css/text.css index 7ac2531..69b456d 100644 --- a/padmaTexts/static/css/text.css +++ b/padmaTexts/static/css/text.css @@ -29,8 +29,29 @@ body { h1 { font-size: 220%; font-family: "Times New Roman", Times, serif; + margin-top: 0; + padding-top: 0; + margin-bottom: 0; + padding-bottom: 0; +} +h4 { + margin-top: 0; + padding-top: 0; + margin-left: 8px; + margin-bottom: 0; +} +h3 { + margin-bottom: 0; + padding-bottom: 0; } +#essay, #essayAbstract, #authorBio { + margin-left: 8px; + padding-bottom: 0px; +} +#authorBio p { + margin: 0; +} #loading { position: fixed; right: 0px; diff --git a/padmaTexts/templates/text_embed.html b/padmaTexts/templates/text_embed.html index 56dc971..00aa3af 100644 --- a/padmaTexts/templates/text_embed.html +++ b/padmaTexts/templates/text_embed.html @@ -93,7 +93,7 @@ {{ text.title }}

- - {{ text.author }} + by {{ text.author }}

@@ -108,11 +108,9 @@ {{ text.html }}

- -

About the Author:

-

+ +

About {{ text.author }}

{{ text.author_bio }} -

diff --git a/padmaTexts/templates/text_list.html b/padmaTexts/templates/text_list.html index 113fc24..e7e0a2a 100644 --- a/padmaTexts/templates/text_list.html +++ b/padmaTexts/templates/text_list.html @@ -1,17 +1,25 @@ - + Padma essays + + - + +

Padma essays

{% for t in texts %} -

+

{{ t.title }}
- by {{ t.author }}
- {% autoescape off %} - {{ t.abstract }} - {% endautoescape %} -

+ by {{ t.author }} + {{ t.abstract|safe }} +
{% endfor %} diff --git a/padmaTexts/texts/__init__.py b/padmaTexts/texts/__init__.py new file mode 100644 index 0000000..e69de29