mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
bug:2688
changing the padding adding a prefilter to a height for .thumbnailCategory .description .text adding rounded border git-svn-id: http://piwigo.org/svn/trunk@16799 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -200,14 +200,19 @@
|
||||
.thumbnailCategory .illustration a {
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding:20px 0 0 8px;
|
||||
padding: 15px 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;
|
||||
padding:15px 10px 3px 0;
|
||||
overflow-x: hidden !important;
|
||||
overflow: hidden !important;
|
||||
height:158px;
|
||||
}
|
||||
.thumbnailCategory .description .text {
|
||||
|
||||
@@ -13,4 +13,21 @@ $themeconf = array(
|
||||
'icon_dir' => 'themes/Sylvia/icon',
|
||||
'mime_icon_dir' => 'themes/Sylvia/icon/mimetypes/',
|
||||
);
|
||||
/************************************ mainpage_categories.tpl ************************************/
|
||||
add_event_handler('loc_end_index_category_thumbnails', 'Sylvia_album');
|
||||
function Sylvia_album($tpl_thumbnails_var)
|
||||
{
|
||||
global $template;
|
||||
$template->set_prefilter('index_category_thumbnails', 'Sylvia_album_prefilter');
|
||||
return $tpl_thumbnails_var;
|
||||
}
|
||||
function Sylvia_album_prefilter($content, &$smarty)
|
||||
{
|
||||
$search = '#\{html_style\}#';
|
||||
$replacement = '{html_style}
|
||||
.thumbnailCategory .description .text{ldelim}
|
||||
height: {$derivative_params->max_height()-30}px;
|
||||
}';
|
||||
return preg_replace($search, $replacement, $content);
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user