some sponsored link style changes

This commit is contained in:
spez
2008-12-04 22:07:00 -05:00
parent d4021a6dba
commit 8bcdf103ba
4 changed files with 13 additions and 14 deletions

View File

@@ -246,7 +246,8 @@ class Link(Thing, Printable):
for item in wrapped:
show_media = (c.user.pref_media == 'on' or
(item.promoted and item.has_thumbnail) or
(item.promoted and item.has_thumbnail
and c.user.pref_media != 'off') or
(c.user.pref_media == 'subreddit' and
item.subreddit.show_media))

View File

@@ -5,7 +5,7 @@ var _duration = 750; /* ms */
var _ani_speeds = {slow: 2* _duration,
medium: _duration,
fast: _duration/2,
veryfast: _duration/8};
veryfast: _duration/4};
function __animate() {
var a = aniqueue ? aniqueue[0] : [];

View File

@@ -546,7 +546,7 @@ before enabling */
/* organic listing */
.organic-listing {
border: solid 1px #666666;
border: solid 1px gray;
padding: 0;
overflow: hidden;
position: relative;
@@ -580,7 +580,7 @@ before enabling */
.promoted {
background-color: #EFF7FF;
border: solid 1px;
border: 1px solid gray;
padding: 5px 0 5px 0;
overflow: hidden;
position: relative;
@@ -596,16 +596,16 @@ before enabling */
}
.organic-listing .sponsored-tagline {
right: 6.4em;
}
.sponsored-tagline {
color: #808080;
bottom: 0;
margin: 0 5px 5px 0;
position: absolute;
right: 6.3em;
display: block;
}
.sponsored-tagline {
display: none;
font-weight: bold;
right: 0;
}
.promote-pixel {
@@ -985,9 +985,7 @@ a.star { text-decoration: none; color: #ff8b60 }
.login-form-side {
border: gray solid 1px;
border-bottom: black solid 1px;
border-right: black solid 1px;
border: 1px solid gray;
}
.login-form-side input {

View File

@@ -32,7 +32,7 @@
<%def name="entry()">
${parent.entry()}
<p class="sponsored-tagline">
${_('sponsored link')} |
${_('sponsored link')}
</p>
<img class="promote-pixel"
id="promote_img_${thing._fullname}"