Changeset 12920 for trunk/themes
- Timestamp:
- Jan 17, 2012, 10:58:18 PM (13 years ago)
- Location:
- trunk/themes/default
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/default/template/mainpage_categories.tpl
r12123 r12920 1 {strip}{html_style} 2 .thumbnailCategory DIV.illustration{ldelim} 3 width: {$derivative_params->max_width()+5}px; 4 } 1 5 6 .content .thumbnailCategory .description{ldelim} 7 height: {$derivative_params->max_height()+5}px; 8 } 9 {/html_style}{/strip} 2 10 <ul class="thumbnailCategories"> 3 11 {foreach from=$category_thumbnails item=cat} … … 6 14 <div class="illustration"> 7 15 <a href="{$cat.URL}"> 8 <img src="{$ cat.TN_SRC}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}">16 <img src="{$pwg->derivative_url($derivative_params, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}"> 9 17 </a> 10 18 </div> -
trunk/themes/default/template/thumbnails.tpl
r12908 r12920 1 1 {if !empty($thumbnails)}{strip} 2 {html_head} 3 <style type="text/css"> 2 {html_style} 4 3 {*Set some sizes according to maximum thumbnail width and height*} 5 4 .thumbnails SPAN, … … 12 11 height: {$derivative_params->max_height()+2}px; 13 12 } 14 15 </style> 16 {/html_head} 13 {if $derivative_params->max_width() > 600} 14 .thumbLegend {ldelim}font-size: 130%} 15 {else} 16 {if $derivative_params->max_width() > 400} 17 .thumbLegend {ldelim}font-size: 110%} 18 {else} 19 .thumbLegend {ldelim}font-size: 90%} 20 {/if} 21 {/if} 22 {/html_style} 17 23 {foreach from=$thumbnails item=thumbnail} 18 24 <li> -
trunk/themes/default/theme.css
r12908 r12920 264 264 /* Thumbnails */ 265 265 .thumbnails SPAN.thumbLegend { 266 font-size: 90%;267 266 overflow: hidden;/* oversized legend is clipped */ 268 267 }
Note: See TracChangeset
for help on using the changeset viewer.