Changeset 21311 for extensions/GThumb


Ignore:
Timestamp:
Mar 7, 2013, 12:08:32 PM (11 years ago)
Author:
mistic100
Message:

display the legend at the bottom and not in the middle

Location:
extensions/GThumb/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/GThumb/template/gthumb.css

    r18124 r21311  
    2424}
    2525
    26 #thumbnails .thumbLegend {
    27   display:none;
     26#thumbnails .gthumb .thumbLegend {
    2827  position:absolute;
    2928  z-index:100;
    30   top:50%;
    31   margin-top:-20px;
     29  bottom:-40px;
     30  top:auto;
    3231  height:30px;
    3332  padding:5px 0;
     
    3534  background:rgba(0,0,0,0.7);
    3635  text-align:center;
    37   vertical-align:middle;
    3836  overflow:hidden;
    39   box-shadow:0 0 3px rgb(0,0,0);
    40   color:aaa;
     37  color:#aaa;
     38  -webkit-transition:all 200ms ease-out;
     39  -moz-transition:all 200ms ease-out;
     40  -ms-transition:all 200ms ease-out;
     41  -o-transition:all 200ms ease-out;
     42  transition:all 200ms ease-out;
    4143}
    4244  #thumbnails .gthumb:hover .thumbLegend {
    43     display:block;
     45    bottom:0px;
    4446  }
    4547#thumbnails .thumbLegend .thumbName {
    4648  display:block;
    47   vertical-align:middle;
    4849  font-weight:bold;
    4950  color:#eee;
  • extensions/GThumb/template/gthumb.tpl

    r20096 r21311  
    33{assign var=derivative value=$pwg->derivative($GThumb_derivative_params, $thumbnail.src_image)}
    44<li class="gthumb">
    5   <a href="{$thumbnail.URL}">
    65  {if $SHOW_THUMBNAIL_CAPTION }
    76    <span class="thumbLegend">
     
    1716      </span>
    1817      {/if}
     18      {if isset($thumbnail.NB_COMMENTS) && isset($thumbnail.NB_HITS)} - {/if}
    1919      {if isset($thumbnail.NB_HITS)}
    2020      <span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits">
     
    2424    </span>
    2525  {/if}
     26  <a href="{$thumbnail.URL}">
    2627    <img class="thumbnail" {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" {$derivative->get_size_htm()}>
    2728  </a>
Note: See TracChangeset for help on using the changeset viewer.