summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-04-26 02:13:06 +0800
committerGravatar Federico Brigante <github@bfred.it> 2019-04-26 13:52:32 +0800
commita6eda3cfdd09de917cf914f0d869f5fcbdcb6e93 (patch)
tree5136198840702da3320c2828e6ed75b310118eab
parente4ce046f6f22506bd4df120be7e41cf8f4eb3037 (diff)
downloadrefined-github-a6eda3cfdd09de917cf914f0d869f5fcbdcb6e93.tar.gz
refined-github-a6eda3cfdd09de917cf914f0d869f5fcbdcb6e93.tar.zst
refined-github-a6eda3cfdd09de917cf914f0d869f5fcbdcb6e93.zip
Extract `hide-useless-comments`'s CSS (#1986)
-rw-r--r--source/content.css10
-rw-r--r--source/features/hide-useless-comments.css9
-rw-r--r--source/features/hide-useless-comments.tsx1
3 files changed, 10 insertions, 10 deletions
diff --git a/source/content.css b/source/content.css
index e7d10a25..5b45900a 100644
--- a/source/content.css
+++ b/source/content.css
@@ -995,16 +995,6 @@ body > .footer li a {
visibility: hidden;
}
-/* For 'hide-useless-comments' feature */
-.rgh-useless-comments-note {
- margin: 15px 0 10px 60px;
- font-size: 12px;
- color: #586069;
-}
-.rgh-hidden-comment .timeline-comment {
- border-color: var(--github-red);
-}
-
/* For 'improve-shortcut-help' feature */
:root .facebox .shortcuts {
width: 908px;
diff --git a/source/features/hide-useless-comments.css b/source/features/hide-useless-comments.css
new file mode 100644
index 00000000..4d220cd5
--- /dev/null
+++ b/source/features/hide-useless-comments.css
@@ -0,0 +1,9 @@
+.rgh-useless-comments-note {
+ margin: 15px 0 10px 60px;
+ font-size: 12px;
+ color: #586069;
+}
+
+.rgh-hidden-comment .timeline-comment {
+ border-color: var(--github-red);
+}
diff --git a/source/features/hide-useless-comments.tsx b/source/features/hide-useless-comments.tsx
index 8bfc0b4f..4e3f57c2 100644
--- a/source/features/hide-useless-comments.tsx
+++ b/source/features/hide-useless-comments.tsx
@@ -1,3 +1,4 @@
+import './hide-useless-comments.css';
import React from 'dom-chef';
import select from 'select-dom';
import features from '../libs/features';