From 7b27d12231cf1baa133e4a7cf522b9db72d1b9c0 Mon Sep 17 00:00:00 2001 From: overdodactyl Date: Sat, 14 Apr 2018 19:46:21 -0600 Subject: [PATCH] move code mirror to generic_style --- .../webextension-tweaks/generic_style.css | 149 ++++++++++++++++++ .../webextension-tweaks/ublock_origin.css | 92 ----------- .../webextension-tweaks/umatrix.css | 55 ------- .../webextension-tweaks/violentmonkey.css | 90 ----------- 4 files changed, 149 insertions(+), 237 deletions(-) diff --git a/css/userContent-files/webextension-tweaks/generic_style.css b/css/userContent-files/webextension-tweaks/generic_style.css index 85c7e87..b375169 100644 --- a/css/userContent-files/webextension-tweaks/generic_style.css +++ b/css/userContent-files/webextension-tweaks/generic_style.css @@ -112,3 +112,152 @@ } } + +/* Code Mirror */ +@-moz-document url-prefix("moz-extension://violentmonkey_UUID/"), + url-prefix("moz-extension://ublock_origin_UUID/"), + url-prefix("moz-extension://umatrix_UUID/") { + .CodeMirror { + border: 1px solid #2a2a2c!important; + background: var(--tone-8)!important; + color: #b1b1b3!important; + font-size: 11px!important; + line-height: 14px!important + } + div.CodeMirror-selected { + background: #353b48!important + } + .CodeMirror-line > span > span::selection, + .CodeMirror-line > span::selection, + .CodeMirror-line::selection { + background: #353b48!important + } + .CodeMirror-line > span > span::-moz-selection, + .CodeMirror-line > span::-moz-selection, + .CodeMirror-line::-moz-selection { + background: #353b48!important + } + .CodeMirror-gutters { + background: var(--theme-sidebar-background)!important; + border-right: 0 solid #4a4a4f!important + } + .CodeMirror-guttermarker, + .CodeMirror-guttermarker-subtle { + color: #555!important + } + .CodeMirror-linenumber { + padding: 0 8px 0 5px!important; + color: #58575c!important + } + .CodeMirror-cursor { + border-left: 1px solid!important; + border-color: #fff!important + } + span.cm-comment { + color: #939393!important + } + span.cm-atom, + span.cm-attribute, + span.cm-builtin, + span.cm-error, + span.cm-keyword, + span.cm-quote { + color: #ff7de9!important + } + span.cm-number, + span.cm-string, + span.cm-string-2 { + color: #6b89ff!important + } + span.cm-hr, + span.cm-meta { + color: #939393!important + } + span.cm-header, + span.cm-qualifier, + span.cm-variable-2 { + color: #75bfff!important + } + span.cm-property { + color: #86de74!important + } + span.cm-bracket, + span.cm-def, + span.cm-link:visited, + span.cm-tag { + color: #75bfff!important + } + span.cm-variable { + color: #b98eff!important + } + span.cm-variable-3 { + color: #d7d7db!important + } + span.cm-link { + color: #737373!important + } + span.cm-operator { + color: #b1b1b3!important + } + span.cm-special { + color: #d7d7db!important + } + .CodeMirror-activeline-background { + background: rgba(185,215,253,.15)!important + } + .CodeMirror-matchingbracket { + outline: rgba(255,255,255,.25) solid 1px!important; + color: #fff!important + } + .CodeMirror-merge-l-chunk { + background: var(--tone-7)!important + } + .cm-search-widget { + background-color: var(--theme-sidebar-background)!important; + border: 1px solid; + border-bottom: none!important; + border-color: #2a2a2c!important; + max-height: 15px!important; + justify-content: right!important + } + .cm-search-widget input { + -moz-appearance: none!important; + background-color: rgba(24,29,32,1)!important; + border: 1px solid!important; + border-color: var(--tone-7)!important; + color: var(--tone-4)!important; + border-radius: 8px!important; + padding-left: 8px!important + } + .cm-searching { + background-color: var(--warning-background-color)!important + } + .cm-staticOpt { + background-color: var(--tone-6)!important; + font-weight: 700 + } + .CodeMirror-merge-gap { + background-color: var(--theme-sidebar-background)!important; + border-top: 1px solid!important; + border-bottom: 1px solid!important; + border-right: none!important; + border-left: none!important; + border-color: #2a2a2c!important + } + .CodeMirror-merge { + border: none!important + } + .cm-search-widget span.fa { + color: var(--tone-6)!important; + font-size: 100%!important + } + .cm-staticext { + color: var(--theme-highlight-blue)!important + } + .cm-staticnetBlock { + color: #de7474!important + } + .cm-staticnetAllow { + color: var(--theme-highlight-green)!important + } +} diff --git a/css/userContent-files/webextension-tweaks/ublock_origin.css b/css/userContent-files/webextension-tweaks/ublock_origin.css index 2a8d7e6..4dff029 100644 --- a/css/userContent-files/webextension-tweaks/ublock_origin.css +++ b/css/userContent-files/webextension-tweaks/ublock_origin.css @@ -1,98 +1,6 @@ /*! Alters the webextension uBlock Origin IMPORTANT: change the Internal UUID */ @-moz-document url-prefix("moz-extension://ublock_origin_UUID/") { - .CodeMirror { - border: 1px solid #2a2a2c!important; - background: var(--tone-8)!important; - color: #b1b1b3!important; - font-size: 11px!important; - line-height: 14px!important - } - div.CodeMirror-selected { - background: #353b48!important - } - .CodeMirror-line > span > span::selection, - .CodeMirror-line > span::selection, - .CodeMirror-line::selection { - background: #353b48!important - } - .CodeMirror-line > span > span::-moz-selection, - .CodeMirror-line > span::-moz-selection, - .CodeMirror-line::-moz-selection { - background: #353b48!important - } - .CodeMirror-activeline-background { - background: rgba(185,215,253,.15)!important - } - .CodeMirror-merge-l-chunk { - background: var(--tone-7)!important - } - .cm-search-widget { - background-color: var(--theme-sidebar-background)!important; - border: 1px solid; - border-bottom: none!important; - border-color: #2a2a2c!important; - max-height: 15px!important; - justify-content: right!important - } - .cm-search-widget input { - -moz-appearance: none!important; - background-color: rgba(24,29,32,1)!important; - border: 1px solid!important; - border-color: var(--tone-7)!important; - color: var(--tone-4)!important; - border-radius: 8px!important; - padding-left: 8px!important - } - .cm-searching { - background-color: var(--warning-background-color)!important - } - .cm-staticOpt { - background-color: var(--tone-6)!important; - font-weight: 700 - } - .CodeMirror-merge-gap { - background-color: var(--theme-sidebar-background)!important; - border-top: 1px solid!important; - border-bottom: 1px solid!important; - border-right: none!important; - border-left: none!important; - border-color: #2a2a2c!important - } - .CodeMirror-merge { - border: none!important - } - html body div#userFilters.codeMirrorContainer div div.cm-search-widget span.fa { - color: var(--tone-6)!important; - font-size: 100%!important - } - .CodeMirror-gutters { - background: var(--theme-sidebar-background)!important; - border-right: 0 solid #4a4a4f!important - } - .CodeMirror-guttermarker, - .CodeMirror-guttermarker-subtle { - color: #555!important - } - .CodeMirror-linenumber { - padding: 0 8px 0 5px!important; - color: #58575c!important - } - .CodeMirror-cursor { - border-left: 1px solid #fff!important - } - .cm-comment { - color: #939393!important - } - .cm-staticext { - color: var(--theme-highlight-blue)!important - } - .cm-staticnetBlock { - color: #de7474!important - } - .cm-staticnetAllow { - color: var(--theme-highlight-green)!important - } button.custom { background-color: var(--in-content-page-background)!important; background-image: none!important; diff --git a/css/userContent-files/webextension-tweaks/umatrix.css b/css/userContent-files/webextension-tweaks/umatrix.css index a5fba0b..68a9cfe 100644 --- a/css/userContent-files/webextension-tweaks/umatrix.css +++ b/css/userContent-files/webextension-tweaks/umatrix.css @@ -1,61 +1,6 @@ /*! Alters the webextension uMatrix IMPORTANT: change the Internal UUID */ @-moz-document url-prefix("moz-extension://umatrix_UUID/") { - .CodeMirror { - border: 1px solid #2a2a2c!important; - background: var(--tone-8)!important; - color: #b1b1b3!important; - font-size: 11px!important; - line-height: 14px!important - } - div.CodeMirror-selected { - background: #353b48!important - } - .CodeMirror-line > span > span::selection, - .CodeMirror-line > span::selection, - .CodeMirror-line::selection { - background: #353b48!important - } - .CodeMirror-line > span > span::-moz-selection, - .CodeMirror-line > span::-moz-selection, - .CodeMirror-line::-moz-selection { - background: #353b48!important - } - .CodeMirror-activeline-background { - background: rgba(185,215,253,.15)!important - } - .CodeMirror-merge-l-chunk { - background: var(--tone-7)!important - } - .cm-searching { - background-color: var(--warning-background-color)!important - } - .CodeMirror-merge-gap { - background-color: var(--theme-sidebar-background)!important; - border-top: 1px solid!important; - border-bottom: 1px solid!important; - border-right: none!important; - border-left: none!important; - border-color: #2a2a2c!important - } - .CodeMirror-merge { - border: none!important - } - .CodeMirror-gutters { - background: var(--theme-sidebar-background)!important; - border-right: 0 solid #4a4a4f!important - } - .CodeMirror-guttermarker, - .CodeMirror-guttermarker-subtle { - color: #555!important - } - .CodeMirror-linenumber { - padding: 0 8px 0 5px!important; - color: #58575c!important - } - .CodeMirror-cursor { - border-left: 1px solid #fff!important - } .t81 { color: #fff; background-color: #db4c4c!important diff --git a/css/userContent-files/webextension-tweaks/violentmonkey.css b/css/userContent-files/webextension-tweaks/violentmonkey.css index 210033e..df6fc81 100644 --- a/css/userContent-files/webextension-tweaks/violentmonkey.css +++ b/css/userContent-files/webextension-tweaks/violentmonkey.css @@ -114,94 +114,4 @@ .frame-block { background: var(--in-content-box-background)!important } - .CodeMirror { - border: 1px solid #4a4a4f; - border-radius: 4px!important; - background: #2a2a2e!important; - color: #b1b1b3!important - } - div.CodeMirror-selected { - background: #353b48!important - } - .CodeMirror-line > span > span::selection, - .CodeMirror-line > span::selection, - .CodeMirror-line::selection { - background: #353b48!important - } - .CodeMirror-line > span > span::-moz-selection, - .CodeMirror-line > span::-moz-selection, - .CodeMirror-line::-moz-selection { - background: #353b48!important - } - .CodeMirror-gutters { - background: #2a2a2e!important; - border-right: 0 solid #4a4a4f!important - } - .CodeMirror-guttermarker, - .CodeMirror-guttermarker-subtle { - color: #555!important - } - .CodeMirror-linenumber { - color: #939393!important - } - .CodeMirror-cursor { - border-left: 1px solid!important; - border-color: #fff!important - } - span.cm-comment { - color: #939393!important - } - span.cm-atom, - span.cm-attribute, - span.cm-builtin, - span.cm-error, - span.cm-keyword, - span.cm-quote { - color: #ff7de9!important - } - span.cm-number, - span.cm-string, - span.cm-string-2 { - color: #6b89ff!important - } - span.cm-hr, - span.cm-meta { - color: #939393!important - } - span.cm-header, - span.cm-qualifier, - span.cm-variable-2 { - color: #75bfff!important - } - span.cm-property { - color: #86de74!important - } - span.cm-bracket, - span.cm-def, - span.cm-link:visited, - span.cm-tag { - color: #75bfff!important - } - span.cm-variable { - color: #b98eff!important - } - span.cm-variable-3 { - color: #d7d7db!important - } - span.cm-link { - color: #737373!important - } - span.cm-operator { - color: #b1b1b3!important - } - span.cm-special { - color: #d7d7db!important - } - .CodeMirror-activeline-background { - background: rgba(185,215,253,.15)!important - } - .CodeMirror-matchingbracket { - outline: rgba(255,255,255,.25) solid 1px!important; - color: #fff!important - } }