chore(userstyle): simplify userstyles

This commit is contained in:
2020-12-24 01:51:40 +00:00
parent b2c0995d5c
commit fd25093de7
2 changed files with 29 additions and 32 deletions

View File

@@ -1,7 +1,7 @@
/* ==UserStyle== /* ==UserStyle==
@name GitHub Dark Tweaks @name GitHub Dark Tweaks
@description Custom tweaks for GitHub Dark (https://github.com/StylishThemes/GitHub-Dark) @description Custom tweaks for GitHub Dark (https://github.com/StylishThemes/GitHub-Dark)
@version 1.0.1 @version 1.0.2
@license MIT @license MIT
@author Jim Myhrberg (https://jimeh.me/) @author Jim Myhrberg (https://jimeh.me/)
@namespace jimeh.me @namespace jimeh.me
@@ -24,7 +24,6 @@
@var color ghdt-diff-hover-bg "Diff Hover BG" rgba(255, 255, 255, .04) @var color ghdt-diff-hover-bg "Diff Hover BG" rgba(255, 255, 255, .04)
@var color ghdt-diff-hover-selected-bg "Diff Hover Selected BG" rgba(255, 255, 255, .08) @var color ghdt-diff-hover-selected-bg "Diff Hover Selected BG" rgba(255, 255, 255, .08)
==/UserStyle== */ ==/UserStyle== */
@-moz-document domain("githubusercontent.com"), @-moz-document domain("githubusercontent.com"),
domain("www.githubstatus.com"), domain("www.githubstatus.com"),
regexp("^https?://((education|graphql|guides|raw|resources|status|developer|support|vscode-auth)\\.)?github\\.com/((?!(sponsors)).)*$") { regexp("^https?://((education|graphql|guides|raw|resources|status|developer|support|vscode-auth)\\.)?github\\.com/((?!(sponsors)).)*$") {
@@ -34,33 +33,32 @@ regexp("^https?://((education|graphql|guides|raw|resources|status|developer|supp
Make red/green diff background colors more subtle, with configuration Make red/green diff background colors more subtle, with configuration
options to fully customize them. options to fully customize them.
*/ */
.highlight .blob-num-deletion {
color: ghdt-diff-del-fringe-text !important;
background-color: ghdt-diff-del-fringe-bg !important;
}
.highlight { .highlight .blob-code-deletion {
.blob-num-deletion { background-color: ghdt-diff-del-code-bg !important;
color: ghdt-diff-del-fringe-text !important; }
background-color: ghdt-diff-del-fringe-bg !important;
}
.blob-code-deletion { .highlight .blob-code-deletion .x {
background-color: ghdt-diff-del-code-bg !important; color: ghdt-diff-del-region-text !important;
.x { background-color: ghdt-diff-del-region-bg !important;
color: ghdt-diff-del-region-text !important; }
background-color: ghdt-diff-del-region-bg !important;
}
}
.blob-num-addition { .highlight .blob-num-addition {
color: ghdt-diff-add-fringe-text !important; color: ghdt-diff-add-fringe-text !important;
background-color: ghdt-diff-add-fringe-bg !important; background-color: ghdt-diff-add-fringe-bg !important;
} }
.blob-code-addition { .highlight .blob-code-addition {
background-color: ghdt-diff-add-code-bg !important; background-color: ghdt-diff-add-code-bg !important;
.x { }
color: ghdt-diff-add-region-text !important;
background-color: ghdt-diff-add-region-bg !important; .highlight .blob-code-addition .x {
} color: ghdt-diff-add-region-text !important;
} background-color: ghdt-diff-add-region-bg !important;
} }
.diff-table > tbody > tr[data-hunk]:hover > td::after, .diff-table > tbody > tr[data-hunk]:hover > td::after,

View File

@@ -1,17 +1,16 @@
/* ==UserStyle== /* ==UserStyle==
@name GitHub Tab-Size @name GitHub Tab-Size
@description Customize tab-width in GitHub code views @description Customize tab-width in GitHub code views
@version 1.0.1 @version 1.0.2
@license MIT @license MIT
@author Jim Myhrberg (https://jimeh.me/) @author Jim Myhrberg (https://jimeh.me/)
@namespace jimeh.me @namespace jimeh.me
@homepageURL https://github.com/jimeh/dotfiles/blob/master/userstyles/github-tab-size.user.css @homepageURL https://github.com/jimeh/dotfiles/blob/master/userstyles/github-tab-size.user.css
@updateURL https://github.com/jimeh/dotfiles/raw/master/userstyles/github-tab-size.user.css @updateURL https://github.com/jimeh/dotfiles/raw/master/userstyles/github-tab-size.user.css
@preprocessor default @preprocessor stylus
@var range ghts-tab-size "Code Tab Size" [4, 1, 12, 1] @var range ghts-tab-size "Code Tab Size" [4, 1, 12, 1]
==/UserStyle== */ ==/UserStyle== */
@-moz-document domain("github.com") { @-moz-document domain("github.com") {
pre, pre,
.highlight, .highlight,
@@ -19,9 +18,9 @@
.tab-size, .tab-size,
.blob-code, .blob-code,
.line-data { .line-data {
-moz-tab-size: var(--ghts-tab-size) !important; -moz-tab-size: ghts-tab-size !important;
-webkit-tab-size: var(--ghts-tab-size) !important; -webkit-tab-size: ghts-tab-size !important;
-o-tab-size: var(--ghts-tab-size) !important; -o-tab-size: ghts-tab-size !important;
tab-size: var(--ghts-tab-size) !important; tab-size: ghts-tab-size !important;
} }
} }