[damned-lies] Fix a float issue in vertimus detail template
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Fix a float issue in vertimus detail template
- Date: Thu, 24 Mar 2011 12:34:01 +0000 (UTC)
commit 065258d28cabe4c47bcc79946d7a26fcb4dc22f2
Author: Claude Paroz <claude 2xlibre net>
Date: Thu Mar 24 13:33:39 2011 +0100
Fix a float issue in vertimus detail template
media/css/main.css | 13 +++++++++++++
templates/vertimus/vertimus_detail.html | 2 +-
2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/media/css/main.css b/media/css/main.css
index 2ea6850..ad5bde5 100644
--- a/media/css/main.css
+++ b/media/css/main.css
@@ -259,6 +259,19 @@ p#show, p#hide {
}
/* Used in vertimus_detail */
+div#vertimus_stats {
+ line-height: 1.7em;
+}
+/* Trick to clear floats after div */
+div#vertimus_stats:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
+}
+
+
#vertimus_actions_title a {
font-size: small;
font-weight: normal;
diff --git a/templates/vertimus/vertimus_detail.html b/templates/vertimus/vertimus_detail.html
index a73a5a7..6db56d3 100644
--- a/templates/vertimus/vertimus_detail.html
+++ b/templates/vertimus/vertimus_detail.html
@@ -56,7 +56,7 @@ $(document).ready(function() {
{% endif %}
{% endif %}
-<div style="line-height: 1.7">
+<div id="vertimus_stats">
<div><em><a href="{{ pot_stats.pot_url }}">
<img src="{{ MEDIA_URL }}img/download.png" alt="{% trans "Download POT file" %}" /></a>
{{ pot_stats.pot_text }}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]