Changeset 16693


Ignore:
Timestamp:
Jul 13, 2012, 3:39:43 PM (12 years ago)
Author:
patdenice
Message:

Fix css for thumbnails blocks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/trunk/theme/template/stuffs_thumbnails.tpl

    r16690 r16693  
    11{assign var='thumbnails' value=$block.thumbnails}
    22{assign var='derivative_params' value=$block.derivative_params}
    3 <ul class="thumbnails" id="thumbnails">
     3
     4{html_style}
     5{*Set some sizes according to maximum thumbnail width and height*}
     6.stuffs_block_{$block.ID} SPAN,
     7.stuffs_block_{$block.ID} .wrap2 A,
     8.stuffs_block_{$block.ID} LABEL{ldelim}
     9        width: {$derivative_params->max_width()+2}px !important;
     10}
     11
     12.stuffs_block_{$block.ID} .wrap2{ldelim}
     13        height: {$derivative_params->max_height()+3}px !important;
     14}
     15{if $derivative_params->max_width() > 600}
     16.stuffs_block_{$block.ID} .thumbLegend {ldelim}font-size: 130% !important}
     17{else}
     18{if $derivative_params->max_width() > 400}
     19.stuffs_block_{$block.ID} .thumbLegend {ldelim}font-size: 110% !important}
     20{else}
     21.stuffs_block_{$block.ID} .thumbLegend {ldelim}font-size: 90% !important}
     22{/if}
     23{/if}
     24{/html_style}
     25
     26<ul class="thumbnails stuffs_block_{$block.ID}" id="thumbnails">
    427{include file='thumbnails.tpl'|@get_extent:'index_thumbnails'}
    528</ul>
Note: See TracChangeset for help on using the changeset viewer.