summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-04-26 02:53:25 +0800
committerGravatar Federico Brigante <github@bfred.it> 2019-04-26 13:52:32 +0800
commite15e79ef4b91f9e44ae7f8775e94e5907073afef (patch)
tree667b87a7120584fc1d54d3aa957e6d4a01acb828
parent98b54e7eaba63efe185941d2e8c9e1395dd95987 (diff)
downloadrefined-github-e15e79ef4b91f9e44ae7f8775e94e5907073afef.tar.gz
refined-github-e15e79ef4b91f9e44ae7f8775e94e5907073afef.tar.zst
refined-github-e15e79ef4b91f9e44ae7f8775e94e5907073afef.zip
Extract `extend-diff-expander`'s CSS (#1986)
-rw-r--r--source/content.css10
-rw-r--r--source/features/extend-diff-expander.css8
-rw-r--r--source/features/extend-diff-expander.tsx1
3 files changed, 9 insertions, 10 deletions
diff --git a/source/content.css b/source/content.css
index bbd1eb48..66816ed7 100644
--- a/source/content.css
+++ b/source/content.css
@@ -503,16 +503,6 @@ body > .footer li a {
display: none !important;
}
-/* For 'extend-diff-expander' feature */
-/* Hovering the line will highlight the first direction button, unless you hover the buttons directly */
-.js-expandable-line:hover .blob-num:not(:hover) .directional-expander:first-child,
-.js-expandable-line:hover .blob-num:not(:hover) + .blob-code {
- border-color: #0366d6;
- color: #fff;
- background: #0366d6;
- cursor: pointer;
-}
-
/* Lighten deletions in Markdown */
.markdown-body del {
color: #6a737d;
diff --git a/source/features/extend-diff-expander.css b/source/features/extend-diff-expander.css
new file mode 100644
index 00000000..d7017907
--- /dev/null
+++ b/source/features/extend-diff-expander.css
@@ -0,0 +1,8 @@
+/* Hovering the line will highlight the first direction button, unless you hover the buttons directly */
+.js-expandable-line:hover .blob-num:not(:hover) .directional-expander:first-child,
+.js-expandable-line:hover .blob-num:not(:hover)+.blob-code {
+ border-color: #0366d6;
+ color: #fff;
+ background: #0366d6;
+ cursor: pointer;
+}
diff --git a/source/features/extend-diff-expander.tsx b/source/features/extend-diff-expander.tsx
index 493a7335..f5b3034b 100644
--- a/source/features/extend-diff-expander.tsx
+++ b/source/features/extend-diff-expander.tsx
@@ -1,3 +1,4 @@
+import './extend-diff-expander.css';
import select from 'select-dom';
import delegate, {DelegateEvent} from 'delegate-it';
import features from '../libs/features';