summaryrefslogtreecommitdiffstats
path: root/themes/default
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-01-01 16:17:35 +0100
committerAndreas Unterkircher <unki@netshadow.at>2008-01-01 20:13:15 +0100
commit131666c458388902ed2b28dff2b7101aac661e1e (patch)
tree77d406300e95544c5f9647510d95ff70d6029950 /themes/default
parent588fd031d13053af2008a74a0292a95595c7c02a (diff)
issue59, thumbnail matrix is now also free off HTML tables
Diffstat (limited to 'themes/default')
-rw-r--r--themes/default/stylesheet.css31
-rw-r--r--themes/default/templates/photo_index.tpl9
2 files changed, 21 insertions, 19 deletions
diff --git a/themes/default/stylesheet.css b/themes/default/stylesheet.css
index b07fff1..97e4fa8 100644
--- a/themes/default/stylesheet.css
+++ b/themes/default/stylesheet.css
@@ -101,8 +101,6 @@ img {
border: none;
}
-img.thumb {
-}
a {
font-size: 14px;
@@ -134,18 +132,10 @@ a.smalltag:hover {
color: #00aa44;
}
-a.thumblink {
- font-size: 12px;
-}
-
a.calendar {
font-size: 10px;
}
-a.thumblink:hover {
- color: #4761ab;
-}
-
#single {
padding: 10px;
display: table;
@@ -168,9 +158,8 @@ table.matrix {
margin-right: auto;
}
-td.thumb {
+div.thumb {
text-align: center;
- display: table-cell;
vertical-align: top;
-moz-border-radius: 3px;
border-radius: 3px;
@@ -178,8 +167,26 @@ td.thumb {
margin: 5px;
background-color: #eeeeee;
padding: 10px;
+ float: left;
}
+div.thumb img.thumb {
+ border: 0px;
+ padding: 0px;
+ margin: 0px;
+}
+
+div.thumb a.thumblink {
+ font-size: 12px;
+ border: 0px;
+}
+
+div.thumb a.thumblink:hover {
+ color: #4761ab;
+}
+
+.clearboth { clear: both; }
+
#photo_details {
width: 150px;
font-size: 12px;
diff --git a/themes/default/templates/photo_index.tpl b/themes/default/templates/photo_index.tpl
index 9ceb0dc..1ca25b8 100644
--- a/themes/default/templates/photo_index.tpl
+++ b/themes/default/templates/photo_index.tpl
@@ -46,25 +46,20 @@
<tr>
<td colspan="3" style="width: 100%;">
<div id="adinfo"></div>
- <table class="matrix" id="matrix">
{section name="row" loop=$rows step=1}
- <tr>
{section name="col" loop=$columns step=1}
{if $images[row][col] }
- <td class="thumb" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');">
+ <div class="thumb" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');" style="width: { $thumb_container_width }px; height: { $thumb_container_height }px;">
<a href="javascript:showImage({$images[row][col]});" id="{$images[row][col]}" name="image{$img_id[row][col]}" class="thumblink" onclick="click(this);" title="{$img_title[row][col]}">
<img class="thumb" id="{$images[row][col]}" src="phpfspot_img.php?idx={$images[row][col]}&amp;width={$width}" alt="thumb_{$images[row][col]}" width="{$img_width[row][col]}" height="{$img_height[row][col]}" />
<br />
{$img_name[row][col]}
</a>
</div>
- {else}
- <td>&nbsp;</td>
{/if}
{/section}
- </tr>
{/section}
- </table>
+ <br class="clearboth" />
</td>
</tr>
<tr>