-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add option to inject custom CSS #1193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
49a3aa2
bcbaa25
021629d
14ab72a
0ba851d
52d3054
07ab057
74efd0f
85fcf6c
781a907
d681461
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,12 +2,28 @@ body { | |
| min-width: 400px; /* Required to size the Browser Action popup */ | ||
| } | ||
| textarea { | ||
| display: block; | ||
| width: 100%; | ||
| font-family: monospace !important; | ||
| font-size: 12px; | ||
| line-height: 1.5; | ||
| resize: vertical; | ||
| } | ||
| label { | ||
| display: flex; | ||
| align-items: center; | ||
| } | ||
|
||
| label span { | ||
| margin-left: 0.5em; | ||
| } | ||
| .small { | ||
| font-size: 0.9em; | ||
| } | ||
|
|
||
| p { | ||
| margin: 0 0 1em; | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As you know vertical margins do collapse, and
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then we only need |
||
|
|
||
| /* Increase spacing between sections */ | ||
| h2 ~ h2 { | ||
| margin-top: 2em; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,17 +9,25 @@ <h2>Disable features</h2> | |
| <p> | ||
| List the features to disable, by <a href="https://github.com/sindresorhus/refined-github/tree/master/source/features" target="_blank">filename</a>. Enable logging to show in the console what features are enabled on each page. | ||
| </p> | ||
| <p class="small"> | ||
| <textarea name="disabledFeatures" rows="3" placeholder="For example: mark-unread hide-own-stars"></textarea> <br> | ||
| <strong>Notice:</strong> Mostly untested; only JavaScript-based features can be disabled. | ||
| <p> | ||
| <textarea name="disabledFeatures" rows="3" placeholder="For example: mark-unread hide-own-stars"></textarea> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
| <div class="small"> | ||
| <strong>Notice:</strong> Mostly untested; only JavaScript-based features can be disabled. | ||
| </div> | ||
|
||
| </p> | ||
| <p> | ||
| <label> | ||
| <input type="checkbox" name="logging"> | ||
| Enable logging | ||
| <span>Enable logging</span> | ||
|
||
| </label> | ||
| </p> | ||
|
|
||
| <h2>Custom CSS</h2> | ||
| <p>Write your custom CSS to override Refined GitHub's default styles.</p> | ||
| <p> | ||
| <textarea name="customCSS" rows="5"></textarea> | ||
| </p> | ||
|
|
||
| <h2>More features</h2> | ||
| <p> | ||
| Want more? Check out our <a href="https://github.com/sindresorhus/refined-github#related" target="_blank">related GitHub extensions</a> | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if customCSS === '', return