Changeset 16800


Ignore:
Timestamp:
Jul 17, 2012, 3:47:31 PM (8 years ago)
Author:
flop25
Message:

bug:2688
changing padding margin...
+10 px for .thumbnailCategory .description using a prefilter

Location:
trunk/themes/Sylvia
Files:
2 edited

Legend:

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

    r16799 r16800  
    195195.thumbnailCategory .illustration {
    196196        background:transparent url(images/cat_top-left.gif) no-repeat scroll left top;
    197         padding: 0 0 0 10px;
    198         margin: 0 !important;
     197        padding: 0 5px 0 10px;
     198        margin: 0 !important;
     199  text-align: center;
    199200}
    200201.thumbnailCategory .illustration a {
    201202        display: block;
    202         margin: 0;
    203         padding: 15px 4px 0;
     203  margin: 0 auto;
     204  padding: 20px 4px 0;
    204205  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;
    210206}
    211207.thumbnailCategory .description {
  • trunk/themes/Sylvia/themeconf.inc.php

    r16799 r16800  
    2424function Sylvia_album_prefilter($content, &$smarty)
    2525{
    26     $search = '#\{html_style\}#';
    27     $replacement = '{html_style}
     26  $search = '#\{html_style\}#';
     27  $replacement = '{html_style}
    2828.thumbnailCategory .description .text{ldelim}
    2929        height: {$derivative_params->max_height()-30}px;
    3030}';
    31   return preg_replace($search, $replacement, $content);
     31  $content = preg_replace($search, $replacement, $content);
     32  $search = '#\.thumbnailCategory[\t ]*.description\{ldelim\}[\s]*height:[\t ]*\{\$derivative_params->max_height\(\)\+5#';
     33  $replacement = '.thumbnailCategory .description{ldelim}
     34        height: {$derivative_params->max_height()+15';
     35  $content = preg_replace($search, $replacement, $content);
     36  return $content;
    3237}
    3338?>
Note: See TracChangeset for help on using the changeset viewer.