-
Notifications
You must be signed in to change notification settings - Fork 7
/
github-dark-img-bg-clr.user.css
43 lines (41 loc) · 2.3 KB
/
github-dark-img-bg-clr.user.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* ==UserStyle==
@name GitHub Dark IMG Background Color
@namespace StylishThemes
@version 2.0.12
@description A GitHub Dark image background color user customizable style.
@author StylishThemes and contributors
@homepageURL https://github.com/StylishThemes/Feature-Override-Styles/
@supportURL https://github.com/StylishThemes/Feature-Override-Styles/issues
@updateURL https://raw.githubusercontent.com/StylishThemes/Feature-Override-Styles/master/github-dark-img-bg-clr.user.css
@license MIT
@var color backgroundclr "Background color" rgba(255, 255, 255, .9)
@var checkbox bgclrhack "Background color hover hack" 0
@preprocessor stylus
==/UserStyle== */
@-moz-document regexp("^https?://((education|gist|guides|help|lab|launch-editor|raw|resources|status|developer|support)\\.)?github\\.com/((?!generated_pages/preview).)*$"), domain("githubusercontent.com"), domain("graphql-explorer.githubapp.com"), domain("www.githubstatus.com") {
/* stylelint-disable */
i = !important
/* stylelint-enable */
if not bgclrhack {
.comment-body.markdown-body img[data-canonical-src*="svg"],
.comment-body.markdown-body img.emoji,
.comment-body.markdown-body img[src*="raw.githubusercontent"],
.comment-body.markdown-body img[src*="png"] {
background-color: inherit i;
}
.comment-body.markdown-body img:not([src*="raw.githubusercontent"]):not(.emoji):not([data-canonical-src*="dependabot"]):not([data-canonical-src*="githubapp.com"]):not([data-canonical-src*="cla-assistant.io"]):not([data-canonical-src*="cla.dotnetfoundation.org"]):not([data-canonical-src*="cla.opensource.microsoft.com"]) {
background: backgroundclr i;
}
}
else {
.comment-body.markdown-body img[data-canonical-src*="svg"],
.comment-body.markdown-body img.emoji,
.comment-body.markdown-body img[src*="raw.githubusercontent"],
.comment-body.markdown-body img[src*="png"] {
background-color: inherit i;
}
.comment-body.markdown-body img:not([src*="raw.githubusercontent"]):not(.emoji):not([data-canonical-src*="dependabot"]):not([data-canonical-src*="githubapp.com"]):not([data-canonical-src*="cla-assistant.io"]):not([data-canonical-src*="cla.dotnetfoundation.org"]):not([data-canonical-src*="cla.opensource.microsoft.com"]):hover {
background: backgroundclr i;
}
}
}