Tweak and engolden allminus infobar appearance.

This commit is contained in:
Max Goodman
2012-11-29 14:54:12 -08:00
committed by bsimpson63
parent 1aab8d4b3d
commit 1697b3e47b
3 changed files with 17 additions and 3 deletions

View File

@@ -189,7 +189,7 @@ class Reddit(Templated):
if isinstance(c.site, AllMinus) and not c.user.gold:
if not self.infobar:
self.infobar = InfoBar(message=strings.all_minus_gold_only)
self.infobar = InfoBar(message=strings.all_minus_gold_only, extra_class="gold")
self.srtopbar = None
if srbar and not c.cname and not is_api():

View File

@@ -183,7 +183,7 @@ Note: there are a couple of places outside of your subreddit where someone can c
rate_limit = _("please wait a few seconds and try again."),
subscribed_multi = _("multireddit of your subscriptions"),
mod_multi = _("multireddit of subreddits you moderate"),
all_minus_gold_only = _('/r/all filtering is a [gold only feature](/help/gold)'),
all_minus_gold_only = _('Filtering /r/all is a feature only available to [reddit gold](/gold/about) subscribers. Displaying unfiltered results from /r/all.'),
)
class StringHandler(object):

View File

@@ -1148,6 +1148,17 @@ a.author { margin-right: 0.5em; }
border: 1px solid #bfe0ff;
}
.infobar.gold {
background-color: #fffdcc;
border: 1px solid #e1b000;
color: #9a7d2e;
}
.content .infobar.gold:before {
margin-top: 5px;
margin-right: 7px;
}
/* markdown */
.md { max-width: 60em; overflow: auto; font-size: small; }
.md p, .md h1 { margin: 5px 0}
@@ -4732,6 +4743,7 @@ dd { margin-left: 20px; }
.icon-menu .reddit-contributors:before,
.icon-menu .reddit-modqueue:before,
.giftgold a:before,
.infobar.gold:before,
.gold-form h1.goldgift:before,
.users-online:before,
.notice-taken:before,
@@ -5162,7 +5174,9 @@ tr.gold-accent + tr > td {
font-weight: bold;
}
.giftgold a:before,
.gold-form h1.goldgift:before {
.gold-form h1.goldgift:before,
.infobar.gold:before
{
background-image: url(../giftgold.png); /* SPRITE */
}