From 872463cab18b9c46e64b3ec7e82dacca802f2194 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 19 Mar 2010 09:52:27 +0000 Subject: [PATCH] feature 1514, feature 1507: improvement, the themeBoxes height adjusts automatically depending on the content. git-svn-id: http://piwigo.org/svn/trunk@5186 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/default-layout.css | 6 +++--- admin/themes/default/template/themes_new.tpl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/themes/default/default-layout.css b/admin/themes/default/default-layout.css index 671355703..44a7b228d 100644 --- a/admin/themes/default/default-layout.css +++ b/admin/themes/default/default-layout.css @@ -730,7 +730,8 @@ BODY#thePopuphelpPage { height: 4em; /* legend height (don't set auto to be Gecko friendly)*/ } -.themeBox {float:left; text-align:center; height:180px; background-color:#eee; margin:5px; -moz-border-radius:5px;} +.themeBox {display:inline-block; text-align:center; height:180px; background-color:#eee; margin:5px; -moz-border-radius:5px;} + .themeBox IMG {border:1px solid white; margin:0 15px;} .themeName {font-size:1.1em; margin:5px 0;} .themeActions {margin:5px 0; font-size:12px;} @@ -738,8 +739,7 @@ BODY#thePopuphelpPage { #themesContent .themeBox IMG {width:150px; height:120px;} #themesContent H3 {font-size:16px; text-align:left; border-bottom:1px solid #444; letter-spacing:1px; margin:5px;} - -.themeBoxes {min-height:300px;} +.themeBoxes {min-height:0;text-align:left;} h2 { letter-spacing:2px; font-weight:bold;} h2:lang(en) { text-transform:capitalize; } diff --git a/admin/themes/default/template/themes_new.tpl b/admin/themes/default/template/themes_new.tpl index 1eb67b74b..4c58fce9e 100644 --- a/admin/themes/default/template/themes_new.tpl +++ b/admin/themes/default/template/themes_new.tpl @@ -3,7 +3,7 @@ {if isset($themes)} -
+
{foreach from=$new_themes item=theme name=themes_loop}
{$theme.name}