changeset 327:1b0d5caae8b6

text_x_arnica: aligned images to the bottom applied patch by Johannes Berg.
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 17 Jan 2009 23:57:36 +0100
parents 9239e8f5dc7d
children d130a623d14a
files data/plugin/parser/text_x_arnica.py htdocs/arnica/css/text_x_arnica.css
diffstat 2 files changed, 16 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Thu Jan 01 21:47:09 2009 +0100
+++ b/data/plugin/parser/text_x_arnica.py	Sat Jan 17 23:57:36 2009 +0100
@@ -224,7 +224,8 @@
         html = """
 <div class="thumbnail">
     <form action="%(url)s" method="POST" enctype="multipart/form-data">
-        <div class="image"> %(title)s
+      <div class="imagecont" style="height:%(width)spx;">
+        <div class="image" style="width:%(width)spx;"> %(title)s
              <input type="hidden" name="action" value="arnica_slides">
              <input type="hidden" name="do" value="slide_show">
              <input type="hidden" name="alias" value="%(description)s">
@@ -235,6 +236,7 @@
              <input type="hidden" name="exif_date" value="%(exif_date)s">
              <input type="image" value="submit" title="slide show" src="%(thumbnail)s">
         </div>
+      </div>
     </form>
     <div style="width:%(width)spx">
     %(alias_html)s
--- a/htdocs/arnica/css/text_x_arnica.css	Thu Jan 01 21:47:09 2009 +0100
+++ b/htdocs/arnica/css/text_x_arnica.css	Sat Jan 17 23:57:36 2009 +0100
@@ -1,5 +1,5 @@
-/*
-arnica_slides styles 
+/* 
+arnica thumbnails styles 
 
 copyright (C) 2008 MoinMoin:ReimarBauer
 license: GNU GPL, see COPYING for details
@@ -14,35 +14,37 @@
     margin: 0em;
 }
 
-
 .thumbnail {
     position: relative;
     display: block;
     text-align: center;
-    border-style: outset;
     float: left;
     padding: 0.2em 0.2em 0.0em 0.2em;
-    margin: 0 15px 15px 0;
+    margin: 0 15px 0 0;
 }
 
-
 .arnica .text {
-    position:  relative;
+    position: relative;
     text-align: left;
     margin: 0em;
     padding: 0.2em;
 }
 
+.arnica .imagecont {
+    position: relative;
+}
+
 .arnica .title {
     text-align: center;
     padding: 0.2em;
     line-height: 1.2;
     font-size: 90%;
- }
+}
+
 .arnica .image {
-    text-align: center;
-    vertical-align: middle;
-    margin: 0.2em;
+    position: absolute;
+    bottom: 0;
+    font-size: 0px;
 }
 
 .arnica .description {