Bug 359084

rustico: some ugly excess platform text when viewing an add-on that's not available for your platform
r=shaver
This commit is contained in:
mozilla%justcameron.com 2006-11-02 19:56:01 +00:00
parent abafb3f44d
commit 40bcdb24e1
4 changed files with 17 additions and 16 deletions

View File

@ -298,19 +298,23 @@ p.install-button {
margin: 0;
}
.install-button a:link span,
.install-button a:visited span,
.install-button a:hover span,
.install-button a:active span {
span.install-button-text {
padding-right: 30px;
}
.install-button a:link span.install-green-button,
.install-button a:visited span.install-green-button,
.install-button a:hover span.install-green-button,
.install-button a:active span.install-green-button {
background: url(../../images/rustico/install-button.png) no-repeat bottom left;
display: block;
min-height: 20px;
padding: 10px;
}
* html .install-button a:link span,
* html .install-button a:visited span,
* html .install-button a:hover span,
* html .install-button a:active span { height: 20px; }
* html .install-button a:link span.install-green-button,
* html .install-button a:visited span.install-green-button,
* html .install-button a:hover span.install-green-button,
* html .install-button a:active span.install-green-button { height: 20px; }
.install-button a:link,
.install-button a:visited,
@ -322,8 +326,8 @@ p.install-button {
text-decoration: none;
}
.install-button a:hover span,
.install-button a:active span {
.install-button a:hover span.install-green-button,
.install-button a:active span.install-green-button {
background: url(../../images/rustico/install-button.png) no-repeat bottom right;
}

View File

@ -36,10 +36,7 @@ Works with:
<div class="key-point install-box">
<div class="install" id="install-{$addon->ID}">
{foreach key=key item=item from=$addon->OsVersions}
<p class="install-button platform-{$item.OSName|escape}"><a href="{$item.URI|escape}" onclick="return {$addon->installFunc}(event,'{$addon->Name|escape} {$item.Version|escape}', '{$config.webpath}/images/default.png', '{$item.hash|escape}');" title="Install {$item.Name} {$item.Version} (Right-Click to Download)"><span>Install now ({$item.Size} KB)</span></a></p>
{if $multiDownloadLinks}
for {$item.OSName|escape}
{/if}
<p class="install-button platform-{$item.OSName|escape}"><a href="{$item.URI|escape}" onclick="return {$addon->installFunc}(event,'{$addon->Name|escape} {$item.Version|escape}', '{$config.webpath}/images/default.png', '{$item.hash|escape}');" title="Install {$item.Name} {$item.Version} {if $multiDownloadLinks} for {$item.OSName|escape}{/if} (Right-Click to Download)"><span class="install-green-button"><span class="install-button-text">Install now {if $multiDownloadLinks} for {$item.OSName|escape}{/if} ({$item.Size}&nbsp;KB)</span></span></a></p>
{/foreach}
</div>
</div>

View File

@ -13,7 +13,7 @@
<img src="{$config.webpath}{$feature.previewuri}" alt="" class="addon-feature-image" />
<div class="addon-feature-text">
<p>{$feature.body} <a href="{$config.webpath}/{$app}/{$feature.id}/">Learn more&hellip;</a></p>
<p class="install-button"><a href="{$feature.uri}" onclick="return install(event,'{$feature.name} {$feature.version}', '{$config.webpath}/images/default.png', '{$feature.hash}');" title="Install {$feature.name} {$feature.version} (Right-click to download)"><span>Install now ({$feature.size} KB)</span></a></p>
<p class="install-button"><a href="{$feature.uri}" onclick="return install(event,'{$feature.name} {$feature.version}', '{$config.webpath}/images/default.png', '{$feature.hash}');" title="Install {$feature.name} {$feature.version} (Right-click to download)"><span class="install-green-button"><span class="install-button-text">Install now ({$feature.size}&nbsp;KB)</span></span></a></p>
{if $feature.id eq SUPER_MAGIC_YAHOO_ID}
<p class="eula">By clicking Install, you agree to the <a href="http://del.icio.us/help/firefox/bookmarks/license">Software License</a> for this add-on.</p>
{/if}

View File

@ -9,7 +9,7 @@
<div class="addon-feature-text corner-box">
<h2><a href="{$config.webpath}/{$app}/{$recommended[re].id}/">{$recommended[re].name}</a> <span>by {$recommended[re].username}</span></h2>
<p>{$recommended[re].body}</p>
<p class="install-button"><a href="{$recommended[re].uri}" onclick="return install(event,'{$recommended[re].name} {$recommended[re].version}', '{$config.webpath}/images/default.png', '{$recommended[re].hash}');" title="Install {$recommended[re].name} {$recommended[re].version} (Right-Click to Download)"><span>Install now ({$recommended[re].size} KB)</span></a></p>
<p class="install-button"><a href="{$recommended[re].uri}" onclick="return install(event,'{$recommended[re].name} {$recommended[re].version}', '{$config.webpath}/images/default.png', '{$recommended[re].hash}');" title="Install {$recommended[re].name} {$recommended[re].version} (Right-Click to Download)"><span class="install-green-button"><span class="install-button-text">Install now ({$recommended[re].size}&nbsp;KB)</span></span></a></p>
{if $recommended[re].id eq SUPER_MAGIC_YAHOO_ID}
<p class="eula">By clicking Install, you agree to the <a href="http://del.icio.us/help/firefox/bookmarks/license">Software License</a> for this add-on.</p>
{/if}