some style

This commit is contained in:
j 2010-12-30 18:14:57 +05:30
parent 99c07d0c09
commit 316e8f787e
4 changed files with 40 additions and 13 deletions

View File

@ -29,8 +29,29 @@ body {
h1 { h1 {
font-size: 220%; font-size: 220%;
font-family: "Times New Roman", Times, serif; 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 { #loading {
position: fixed; position: fixed;
right: 0px; right: 0px;

View File

@ -93,7 +93,7 @@
{{ text.title }} {{ text.title }}
</h1> </h1>
<h4> <h4>
- <a href="#authorbio">{{ text.author }}</a> by <a href="#bio">{{ text.author }}</a>
</h4> </h4>
<div id="essayAbstract"> <div id="essayAbstract">
<p> <p>
@ -108,11 +108,9 @@
{{ text.html }} {{ text.html }}
</div> </div>
<div id="authorBio"> <div id="authorBio">
<a name="authorbio"></a> <a name="bio"></a>
<h3>About the Author:</h3> <h3>About {{ text.author }}</h3>
<p>
{{ text.author_bio }} {{ text.author_bio }}
</p>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,17 +1,25 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Padma essays</title>
<link rel="stylesheet" type="text/css" href="/static/css/text.css" />
<style>
p {
margin-top: 8px;
}
h1 {
margin-bottom: 8px;
}
</style>
</head> </head>
<body> <body>
<h1>Padma essays</h1>
{% for t in texts %} {% for t in texts %}
<p> <div>
<a href="{{t.get_absolute_url}}" title="{{t.title}}">{{ t.title }}</a><br /> <a href="{{t.get_absolute_url}}" title="{{t.title}}">{{ t.title }}</a><br />
by {{ t.author }}<br /> by {{ t.author }}
{% autoescape off %} {{ t.abstract|safe }}
{{ t.abstract }} </div>
{% endautoescape %}
</p>
{% endfor %} {% endfor %}
</body> </body>
</html> </html>

View File