Changeset 16799


Ignore:
Timestamp:
07/17/12 11:42:12 (7 years ago)
Author:
flop25
Message:

bug:2688
changing the padding
adding a prefilter to a height for .thumbnailCategory .description .text
adding rounded border

Location:
trunk/themes/Sylvia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/Sylvia/theme.css

    r14610 r16799  
    201201        display: block;  
    202202        margin: 0;  
    203         padding:20px 0 0 8px;  
     203        padding: 15px 4px 0;  
    204204  border:0; 
     205} 
     206.thumbnailCategory .illustration img { 
     207  border-radius: 0 10px 0 10px; 
     208  -moz-border-radius: 0 10px 0 10px; 
     209  -webkit-border-radius: 0 10px 0 10px; 
    205210} 
    206211.thumbnailCategory .description {  
     
    208213        margin: 0;  
    209214        padding:15px 10px 3px 0;  
    210         overflow-x: hidden !important;  
     215        overflow: hidden !important;  
    211216  height:158px; 
    212217} 
  • trunk/themes/Sylvia/themeconf.inc.php

    r10351 r16799  
    1414  'mime_icon_dir' => 'themes/Sylvia/icon/mimetypes/', 
    1515); 
     16/************************************ mainpage_categories.tpl ************************************/ 
     17add_event_handler('loc_end_index_category_thumbnails', 'Sylvia_album'); 
     18function Sylvia_album($tpl_thumbnails_var) 
     19{ 
     20    global $template; 
     21    $template->set_prefilter('index_category_thumbnails', 'Sylvia_album_prefilter'); 
     22    return $tpl_thumbnails_var; 
     23} 
     24function Sylvia_album_prefilter($content, &$smarty) 
     25{ 
     26    $search = '#\{html_style\}#'; 
     27    $replacement = '{html_style} 
     28.thumbnailCategory .description .text{ldelim} 
     29        height: {$derivative_params->max_height()-30}px; 
     30}'; 
     31  return preg_replace($search, $replacement, $content); 
     32} 
    1633?> 
Note: See TracChangeset for help on using the changeset viewer.