aboutsummaryrefslogtreecommitdiffstats
path: root/themes/Sylvia
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2012-07-17 13:47:31 +0000
committerflop25 <flop25@piwigo.org>2012-07-17 13:47:31 +0000
commitc6128fb4852405671b49a1737a97557f6aea53ae (patch)
treeadc2938548846882cc56361221806b6f825790f5 /themes/Sylvia
parent6518f7b5ac1c57f24026dad24aeaf78125ad0663 (diff)
bug:2688
changing padding margin... +10 px for .thumbnailCategory .description using a prefilter git-svn-id: http://piwigo.org/svn/trunk@16800 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/Sylvia')
-rw-r--r--themes/Sylvia/theme.css14
-rw-r--r--themes/Sylvia/themeconf.inc.php11
2 files changed, 13 insertions, 12 deletions
diff --git a/themes/Sylvia/theme.css b/themes/Sylvia/theme.css
index 3c4322980..3111bc643 100644
--- a/themes/Sylvia/theme.css
+++ b/themes/Sylvia/theme.css
@@ -194,20 +194,16 @@
}
.thumbnailCategory .illustration {
background:transparent url(images/cat_top-left.gif) no-repeat scroll left top;
- padding: 0 0 0 10px;
- margin: 0 !important;
+ padding: 0 5px 0 10px;
+ margin: 0 !important;
+ text-align: center;
}
.thumbnailCategory .illustration a {
display: block;
- margin: 0;
- padding: 15px 4px 0;
+ margin: 0 auto;
+ padding: 20px 4px 0;
border:0;
}
-.thumbnailCategory .illustration img {
- border-radius: 0 10px 0 10px;
- -moz-border-radius: 0 10px 0 10px;
- -webkit-border-radius: 0 10px 0 10px;
-}
.thumbnailCategory .description {
background:transparent url(images/cat_top-right.gif) no-repeat scroll right top;
margin: 0;
diff --git a/themes/Sylvia/themeconf.inc.php b/themes/Sylvia/themeconf.inc.php
index e06d2b465..b1523d611 100644
--- a/themes/Sylvia/themeconf.inc.php
+++ b/themes/Sylvia/themeconf.inc.php
@@ -23,11 +23,16 @@ function Sylvia_album($tpl_thumbnails_var)
}
function Sylvia_album_prefilter($content, &$smarty)
{
- $search = '#\{html_style\}#';
- $replacement = '{html_style}
+ $search = '#\{html_style\}#';
+ $replacement = '{html_style}
.thumbnailCategory .description .text{ldelim}
height: {$derivative_params->max_height()-30}px;
}';
- return preg_replace($search, $replacement, $content);
+ $content = preg_replace($search, $replacement, $content);
+ $search = '#\.thumbnailCategory[\t ]*.description\{ldelim\}[\s]*height:[\t ]*\{\$derivative_params->max_height\(\)\+5#';
+ $replacement = '.thumbnailCategory .description{ldelim}
+ height: {$derivative_params->max_height()+15';
+ $content = preg_replace($search, $replacement, $content);
+ return $content;
}
?>