mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
Tweak and engolden allminus infobar appearance.
This commit is contained in:
@@ -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():
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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 */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user