- fix tag cloud display with IE6/IE7 (without additionnal css hacks)

- collapsed several identical selectors into one

git-svn-id: http://piwigo.org/svn/trunk@2648 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2008-10-03 23:48:03 +00:00
parent e53eee8f16
commit 5fc08c241d
8 changed files with 37 additions and 51 deletions

View File

@@ -212,8 +212,7 @@ UL.tagSelection LI {
margin: 1em 2em 1em 2em;
}
#fullTagCloud LI {
display: inline;
#fullTagCloud SPAN {
white-space: nowrap;
margin: 0 2px;
}

View File

@@ -1,5 +1,5 @@
/* $Id$ */
/* Issues in IE from 5 to 6 only not to be used with IE7 */
/* Issues in IE from 5 to 6 only not to be used with IE7 */
/* fix IE with another layout for thumbnails */
.content UL.thumbnails SPAN.wrap2 {
@@ -22,12 +22,6 @@
margin-top: -40%;
/**/
}
.content UL.thumbnails INPUT {
position: absolute;
left: 2px;
top: 2px; /* same as other browsers but not so pretty */
}
/* to avoid vanishing objects in IE6 */
H1, #theHeader {

View File

@@ -11,10 +11,8 @@
margin-bottom: 5px;
}
#menubar #menuTagCloud LI
#menubar #menuTagCloud SPAN
{
display: inline-block;/* required for Safari 3.1 - otherwise overflows on the right */
}
/* end Safari/Konqueror */

View File

@@ -82,8 +82,7 @@ FORM#quickconnect FIELDSET DIV {
margin: 5px 0;
}
#menubar #menuTagCloud LI
#menubar #menuTagCloud SPAN
{
display: inline;
white-space: nowrap; /* No line break in the LI but Opera set nowrap to */
white-space: nowrap;
}

View File

@@ -1,18 +1,18 @@
<dt>{'Related tags'|@translate}</dt>
<dd>
<ul id="menuTagCloud">
<div id="menuTagCloud">
{foreach from=$block->data item=tag}
<li>
<span>
{if !empty($tag.U_ADD) }
<a href="{$tag.U_ADD}"
title="{$pwg->l10n_dec('%d element are also linked to current tags', '%d elements are also linked to current tags', $tag.counter)}"
rel="nofollow">
<img src="{$ROOT_URL}{$themeconf.icon_dir}/add_tag.png" alt="+" />
</a>
<a href="{$tag.U_ADD}"
title="{$pwg->l10n_dec('%d element are also linked to current tags', '%d elements are also linked to current tags', $tag.counter)}"
rel="nofollow">
<img src="{$ROOT_URL}{$themeconf.icon_dir}/add_tag.png" alt="+" />
</a>
{/if}
<a href="{$tag.URL}" class="tagLevel{$tag.level}" title="{'See elements linked to this tag only'|@translate}">{$tag.name}</a>
</li>
</span>
{/foreach}
</ul>
</div>
</dd>

View File

@@ -29,11 +29,9 @@
clear: both;
margin-bottom: 4px;
padding: 0;
}
#imageToolBar {
height: 28px;
}
#imageToolBar A, #imageToolBar IMG {
display: block;
border: none;

View File

@@ -1,29 +1,29 @@
{* $Id$ *}
<div id="content" class="content">
<div class="titrePage">
<ul class="categoryActions">
{if $display_mode == 'letters'}
<li><a href="{$U_CLOUD}" title="{'show tag cloud'|@translate}"><img src="{$themeconf.icon_dir}/tag_cloud.png" class="button" alt="{'cloud'|@translate}"/></a></li>
{/if}
<div class="titrePage">
<ul class="categoryActions">
{if $display_mode == 'letters'}
<li><a href="{$U_CLOUD}" title="{'show tag cloud'|@translate}" rel="nofollow"><img src="{$themeconf.icon_dir}/tag_cloud.png" class="button" alt="{'cloud'|@translate}"/></a></li>
{/if}
{if $display_mode == 'cloud'}
<li><a href="{$U_LETTERS}" title="{'group by letters'|@translate}"><img src="{$themeconf.icon_dir}/tag_letters.png" class="button" alt="{'letters'|@translate}"/></a></li>
{/if}
{if $display_mode == 'cloud'}
<li><a href="{$U_LETTERS}" title="{'group by letters'|@translate}" rel="nofollow"><img src="{$themeconf.icon_dir}/tag_letters.png" class="button" alt="{'letters'|@translate}"/></a></li>
{/if}
<li><a href="{$U_HOME}" title="{'return to homepage'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li>
</ul>
<h2>{'Tags'|@translate}</h2>
<li><a href="{$U_HOME}" title="{'return to homepage'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li>
</ul>
<h2>{'Tags'|@translate}</h2>
</div>
{if isset($tags)}
{if $display_mode == 'cloud'}
<ul id="fullTagCloud">
{foreach from=$tags item=tag}
<li><a href="{$tag.URL}" class="tagLevel{$tag.level}" title="{$tag.counter}">{$tag.name}</a></li>
{/foreach}
</ul>
{/if}
{if $display_mode == 'cloud'}
<div id="fullTagCloud">
{foreach from=$tags item=tag}
<span><a href="{$tag.URL}" class="tagLevel{$tag.level}" title="{$tag.counter}">{$tag.name}</a></span>
{/foreach}
</div>
{/if}
{if $display_mode == 'letters'}
<table>

View File

@@ -35,18 +35,16 @@ H2, #menubar DT {
background-image: url(images/tableh2_bg.png);
background-repeat: repeat-x;
background-position: center;
border-top: 1px solid #000;
}
/* borders */
#menubar DL, .content{
border: 1px solid #000000;
border: 1px solid #000;
}
#imageHeaderBar {
border-top: 1px solid #000000;
}
H2, #menubar DT, #imageToolBar {
border-bottom: 1px solid #000000;
border-bottom: 1px solid #000;
}
FIELDSET, INPUT, SELECT, TEXTAREA,
@@ -70,7 +68,7 @@ FIELDSET, INPUT, SELECT, TEXTAREA,
/* links */
A, INPUT.rateButton {
color: #FFFFFF;
color: #fff;
border: none;
}