# HG changeset patch # User Daniele Nicolodi # Date 1320599227 -3600 # Node ID e90a806a3116fcd8a66fab0282594370bb5b9b72 # Parent a30a7e9186a99f94c379763dc8ad0c1922b2da9c Replace ugly markup with definition lists. diff -r a30a7e9186a9 -r e90a806a3116 src/ltpdarepo/static/style.css --- a/src/ltpdarepo/static/style.css Sun Nov 06 18:05:43 2011 +0100 +++ b/src/ltpdarepo/static/style.css Sun Nov 06 18:07:07 2011 +0100 @@ -150,6 +150,39 @@ border-bottom: 1px solid black; } +/** definition lists **/ + +.data { + line-height: 1.4em; + margin: 0.5em 0; + width: 100%; +} + +.data:after { + clear: both; + content: " "; + display: block; + height: 0; + overflow: hidden; + visibility: hidden; +} + +.data dt { + clear: both; + color: #888; + float: left; + padding: 0 0.5em 0 0; +} + +.data dt:after { + content: ":"; +} + +.data dd { + float: left; + margin: 0; +} + /** messages **/ .flash { diff -r a30a7e9186a9 -r e90a806a3116 src/ltpdarepo/templates/databases/view.html --- a/src/ltpdarepo/templates/databases/view.html Sun Nov 06 18:05:43 2011 +0100 +++ b/src/ltpdarepo/templates/databases/view.html Sun Nov 06 18:07:07 2011 +0100 @@ -2,8 +2,10 @@ {% block title %}{{ database.id }}{% endblock %} {% block body %}

Database «{{ database.id }}»

-

Name: {{database.name }}

-

Description: {{ database.description }}

+
+
Name
{{database.name }}
+
Description
{{ database.description }}
+