Skip to content

Commit

Permalink
Merge pull request #1094 from matheod/showStylePref
Browse files Browse the repository at this point in the history
Reference reddit preference for subreddit style in settings console
  • Loading branch information
honestbleeps committed May 18, 2014
2 parents e112e58 + 43481f9 commit 7aa556f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/modules/styleTweaks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ modules['styleTweaks'] = {
moduleID: 'styleTweaks',
moduleName: 'Style Tweaks',
category: 'UI',
description: 'Provides a number of style tweaks to the Reddit interface',
description: 'Provides a number of style tweaks to the Reddit interface. Also allow you to disable specific subreddit style (the <a href="/prefs/#show_stylesheets">global setting</a> must be on).',
options: {
navTop: {
type: 'boolean',
Expand Down Expand Up @@ -232,6 +232,10 @@ modules['styleTweaks'] = {
}
this.subredditStyles();
this.checkStyleToggleVisibility();

if($('#show_stylesheets').length) {
$('label[for=show_stylesheets]').after(' <span class="little gray">(RES allows you to disable specific subreddit styles! <a href="/r/Enhancement/wiki/srstyle">Click here to learn more</a>)</span>');
}
}
},

Expand Down
3 changes: 3 additions & 0 deletions lib/res.css
Original file line number Diff line number Diff line change
Expand Up @@ -1262,6 +1262,9 @@ a.bylink.parentlink {
.md .usertext-body img {
display: inherit;
}
#show_stylesheets:target + label {
background-color: lightblue;
}
/* Compiled SCSS from MediaCrush - https://github.com/MediaCrush/MediaCrush */
.player {
position: relative; }
Expand Down

0 comments on commit 7aa556f

Please sign in to comment.