summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfarthen <monkey@farthen.de>2013-09-05 00:11:44 +0200
committerfarthen <monkey@farthen.de>2013-09-05 00:11:44 +0200
commit2604d93350867ccf6f434d93d51793c7f7acee69 (patch)
tree1db2653bb422578eeea8cbade73bb0fff96e6eec
parentc963846bc3d0bbc5901ffb2f1110111f9e0d1fc9 (diff)
downloadwww-2604d93350867ccf6f434d93d51793c7f7acee69.tar.gz
www-2604d93350867ccf6f434d93d51793c7f7acee69.tar.bz2
www-2604d93350867ccf6f434d93d51793c7f7acee69.zip
blog.html: Make entry titles wrap correctly at small display sizes
-rw-r--r--blog.html6
-rw-r--r--static/css/main.css23
2 files changed, 24 insertions, 5 deletions
diff --git a/blog.html b/blog.html
index 9b67839..c5e83e9 100644
--- a/blog.html
+++ b/blog.html
@@ -9,11 +9,13 @@
<div class="blog-year">
<h3>{{ year }}</h3>
{% for post in entries %}
- <p>
+ <p class="blog-entry">
<div class="entry-date">
{{ post.date.strftime('%B %d') }}
</div>
- <a href="{{ post.get_url() }}">{{ post.title }}</a>
+ <div class="entry-title">
+ <a href="{{ post.get_url() }}">{{ post.title }}</a>
+ </div>
</p>
{% endfor %}
</div>
diff --git a/static/css/main.css b/static/css/main.css
index b68a0ac..cb2ec41 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -110,17 +110,34 @@ nav a:hover {
}
#blog-index .blog-year {
- margin-bottom: 2%;
+ padding-bottom: 2%;
+ clear: both;
+ overflow: auto;
+}
+
+.blog-entry {
+ width: 100%;
+ clear: both;
}
.entry-date {
- float: left;
width: 40%;
text-align: right;
}
+.entry-title {
+ float: left;
+ text-align: left;
+ width: 50%;
+ margin-left: 2%;
+}
+
+.entry-date, .entry-title {
+ float: left;
+}
+
.blog-year a {
- padding-left: 2%;
+ padding-left: 0%;
}
#blog-show small {